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 Details

  • Constructor Details

    • V1ContainerPort

      public V1ContainerPort(Integer containerPort)
  • Method Details

    • 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:
      the containerPort property value
    • setContainerPort

      public void setContainerPort(Integer containerPort)
      Set the containerPort property value
    • containerPort

      public V1ContainerPort containerPort(Integer containerPort)
      Set containerPort in a chainable fashion.
      Returns:
      The same instance of V1ContainerPort for chaining.
    • getHostIP

      public String getHostIP()
      What host IP to bind the external port to.
      Returns:
      the hostIP property value
    • setHostIP

      public void setHostIP(String hostIP)
      Set the hostIP property value
    • hostIP

      public V1ContainerPort hostIP(String hostIP)
      Set hostIP in a chainable fashion.
      Returns:
      The same instance of V1ContainerPort for chaining.
    • getHostPort

      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:
      the hostPort property value
    • setHostPort

      public void setHostPort(Integer hostPort)
      Set the hostPort property value
    • hostPort

      public V1ContainerPort hostPort(Integer hostPort)
      Set hostPort in a chainable fashion.
      Returns:
      The same instance of V1ContainerPort for chaining.
    • getName

      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:
      the name property value
    • setName

      public void setName(String name)
      Set the name property value
    • name

      public V1ContainerPort name(String name)
      Set name in a chainable fashion.
      Returns:
      The same instance of V1ContainerPort for chaining.
    • getProtocol

      public String getProtocol()
      Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\".
      Returns:
      the protocol property value
    • setProtocol

      public void setProtocol(String protocol)
      Set the protocol property value
    • protocol

      public V1ContainerPort protocol(String protocol)
      Set protocol in a chainable fashion.
      Returns:
      The same instance of V1ContainerPort for chaining.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object