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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncontainerPort
(Integer containerPort) Set containerPort in a chainable fashion.boolean
Number 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.int
hashCode()
Set hostIP in a chainable fashion.Set hostPort in a chainable fashion.Set name in a chainable fashion.Set protocol in a chainable fashion.void
setContainerPort
(Integer containerPort) Set the containerPort property valuevoid
Set the hostIP property valuevoid
setHostPort
(Integer hostPort) Set the hostPort property valuevoid
Set the name property valuevoid
setProtocol
(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
-
getContainerPort
Number 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
-
setContainerPort
Set the containerPort property value- Parameters:
containerPort
- property value to set
-
containerPort
Set containerPort in a chainable fashion.- Returns:
- The same instance of V1ContainerPort for chaining.
-
getHostIP
What host IP to bind the external port to.- Returns:
- the hostIP property value
-
setHostIP
Set the hostIP property value- Parameters:
hostIP
- property value to set
-
hostIP
Set hostIP in a chainable fashion.- Returns:
- The same instance of V1ContainerPort for chaining.
-
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:
- the hostPort property value
-
setHostPort
Set the hostPort property value- Parameters:
hostPort
- property value to set
-
hostPort
Set hostPort in a chainable fashion.- Returns:
- The same instance of V1ContainerPort for chaining.
-
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:
- the name property value
-
setName
Set the name property value- Parameters:
name
- property value to set
-
name
Set name in a chainable fashion.- Returns:
- The same instance of V1ContainerPort for chaining.
-
getProtocol
Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\".- Returns:
- the protocol property value
-
setProtocol
Set the protocol property value- Parameters:
protocol
- property value to set
-
protocol
Set protocol in a chainable fashion.- Returns:
- The same instance of V1ContainerPort for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-