Package net.stickycode.kuuty.model.v18
Class IoK8sApiCoreV1ContainerPort
- java.lang.Object
-
- net.stickycode.kuuty.model.v18.IoK8sApiCoreV1ContainerPort
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-11-26T11:01:11.402583+13:00[Pacific/Auckland]") public class IoK8sApiCoreV1ContainerPort extends Object
ContainerPort represents a network port in a single container.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CONTAINER_PORTstatic StringJSON_PROPERTY_HOST_I_Pstatic StringJSON_PROPERTY_HOST_PORTstatic StringJSON_PROPERTY_NAMEstatic StringJSON_PROPERTY_PROTOCOL
-
Constructor Summary
Constructors Constructor Description IoK8sApiCoreV1ContainerPort()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IoK8sApiCoreV1ContainerPortcontainerPort(Integer containerPort)booleanequals(Object o)IntegergetContainerPort()Number of port to expose on the pod's IP address.StringgetHostIP()What host IP to bind the external port to.IntegergetHostPort()Number of port to expose on the host.StringgetName()If specified, this must be an IANA_SVC_NAME and unique within the pod.StringgetProtocol()Protocol for port.inthashCode()IoK8sApiCoreV1ContainerPorthostIP(String hostIP)IoK8sApiCoreV1ContainerPorthostPort(Integer hostPort)IoK8sApiCoreV1ContainerPortname(String name)IoK8sApiCoreV1ContainerPortprotocol(String protocol)voidsetContainerPort(Integer containerPort)voidsetHostIP(String hostIP)voidsetHostPort(Integer hostPort)voidsetName(String name)voidsetProtocol(String protocol)StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_CONTAINER_PORT
public static final String JSON_PROPERTY_CONTAINER_PORT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HOST_I_P
public static final String JSON_PROPERTY_HOST_I_P
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HOST_PORT
public static final String JSON_PROPERTY_HOST_PORT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PROTOCOL
public static final String JSON_PROPERTY_PROTOCOL
- See Also:
- Constant Field Values
-
-
Method Detail
-
containerPort
public IoK8sApiCoreV1ContainerPort containerPort(Integer containerPort)
-
getContainerPort
public Integer getContainerPort()
Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.- Returns:
- containerPort
-
setContainerPort
public void setContainerPort(Integer containerPort)
-
hostIP
public IoK8sApiCoreV1ContainerPort hostIP(String hostIP)
-
getHostIP
@Nullable public String getHostIP()
What host IP to bind the external port to.- Returns:
- hostIP
-
setHostIP
public void setHostIP(String hostIP)
-
hostPort
public IoK8sApiCoreV1ContainerPort hostPort(Integer hostPort)
-
getHostPort
@Nullable public Integer getHostPort()
Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.- Returns:
- hostPort
-
setHostPort
public void setHostPort(Integer hostPort)
-
name
public IoK8sApiCoreV1ContainerPort name(String name)
-
getName
@Nullable public 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.- Returns:
- name
-
setName
public void setName(String name)
-
protocol
public IoK8sApiCoreV1ContainerPort protocol(String protocol)
-
getProtocol
@Nullable public String getProtocol()
Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\".- Returns:
- protocol
-
setProtocol
public void setProtocol(String protocol)
-
-