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.ObjectPort 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 booleanequals(java.lang.Object o)java.lang.StringgetName()If specified, this must be an IANA_SVC_NAME and unique within the pod.java.lang.IntegergetPort()Number of port to expose for the virtual machine.java.lang.StringgetProtocol()Protocol for port.inthashCode()V1Portname(java.lang.String name)V1Portport(java.lang.Integer port)V1Portprotocol(java.lang.String protocol)voidsetName(java.lang.String name)voidsetPort(java.lang.Integer port)voidsetProtocol(java.lang.String protocol)private java.lang.StringtoIndentedString(java.lang.Object o)Convert the given object to string with each line indented by 4 spaces (except the first line).java.lang.StringtoString()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toIndentedString
private java.lang.String toIndentedString(java.lang.Object o)
Convert the given object to string with each line indented by 4 spaces (except the first line).
-
-