Class V1ContainerPort
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1ContainerPort
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1ContainerPort
extends Object
ContainerPort represents a network port in a single container.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncontainerPort(Integer containerPort) Set containerPort in a chainable fashion.booleanNumber of port to expose on the pod's IP address.What host IP to bind the external port to.Number of port to expose on the host.getName()If specified, this must be an IANA_SVC_NAME and unique within the pod.Protocol for port.inthashCode()Set hostIP in a chainable fashion.Set hostPort in a chainable fashion.Set name in a chainable fashion.Set protocol in a chainable fashion.voidsetContainerPort(Integer containerPort) Set the containerPort property valuevoidSet the hostIP property valuevoidsetHostPort(Integer hostPort) Set the hostPort property valuevoidSet the name property valuevoidsetProtocol(String protocol) Set the protocol property valuetoString()
- 
Field Details- 
JSON_PROPERTY_CONTAINER_PORT- See Also:
 
- 
JSON_PROPERTY_HOST_I_P- See Also:
 
- 
JSON_PROPERTY_HOST_PORT- See Also:
 
- 
JSON_PROPERTY_NAME- See Also:
 
- 
JSON_PROPERTY_PROTOCOL- See Also:
 
 
- 
- 
Constructor Details- 
V1ContainerPort
 
- 
- 
Method Details- 
getContainerPortNumber of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.- Returns:
- the containerPort property value
 
- 
setContainerPortSet the containerPort property value- Parameters:
- containerPort- property value to set
 
- 
containerPortSet containerPort in a chainable fashion.- Returns:
- The same instance of V1ContainerPort for chaining.
 
- 
getHostIPWhat host IP to bind the external port to.- Returns:
- the hostIP property value
 
- 
setHostIPSet the hostIP property value- Parameters:
- hostIP- property value to set
 
- 
hostIPSet hostIP in a chainable fashion.- Returns:
- The same instance of V1ContainerPort for chaining.
 
- 
getHostPortNumber 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:
- the hostPort property value
 
- 
setHostPortSet the hostPort property value- Parameters:
- hostPort- property value to set
 
- 
hostPortSet hostPort in a chainable fashion.- Returns:
- The same instance of V1ContainerPort for chaining.
 
- 
getNameIf 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:
- the name property value
 
- 
setNameSet the name property value- Parameters:
- name- property value to set
 
- 
nameSet name in a chainable fashion.- Returns:
- The same instance of V1ContainerPort for chaining.
 
- 
getProtocolProtocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\".- Returns:
- the protocol property value
 
- 
setProtocolSet the protocol property value- Parameters:
- protocol- property value to set
 
- 
protocolSet protocol in a chainable fashion.- Returns:
- The same instance of V1ContainerPort for chaining.
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-