Package kubevirt.io
Class V1Port
- java.lang.Object
-
- kubevirt.io.V1Port
-
@Generated(value="io.swagger.codegen.languages.JavaClientCodegen", date="2019-11-10T14:44:51.030+02:00") public class V1Port extends java.lang.Object
Port repesents a port to expose from the virtual machine. Default protocol TCP. The port field is mandatory
-
-
Constructor Summary
Constructors Constructor Description V1Port()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getName()
If specified, this must be an IANA_SVC_NAME and unique within the pod.java.lang.Integer
getPort()
Number of port to expose for the virtual machine.java.lang.String
getProtocol()
Protocol for port.int
hashCode()
V1Port
name(java.lang.String name)
V1Port
port(java.lang.Integer port)
V1Port
protocol(java.lang.String protocol)
void
setName(java.lang.String name)
void
setPort(java.lang.Integer port)
void
setProtocol(java.lang.String protocol)
java.lang.String
toString()
-
-
-
Method Detail
-
name
public V1Port name(java.lang.String name)
-
getName
public java.lang.String getName()
If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. +optional- Returns:
- name
-
setName
public void setName(java.lang.String name)
-
port
public V1Port port(java.lang.Integer port)
-
getPort
public java.lang.Integer getPort()
Number of port to expose for the virtual machine. This must be a valid port number, 0 < x < 65536.- Returns:
- port
-
setPort
public void setPort(java.lang.Integer port)
-
protocol
public V1Port protocol(java.lang.String protocol)
-
getProtocol
public java.lang.String getProtocol()
Protocol for port. Must be UDP or TCP. Defaults to \"TCP\". +optional- Returns:
- protocol
-
setProtocol
public void setProtocol(java.lang.String protocol)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-