Class 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.
    • Constructor Detail

      • IoK8sApiCoreV1ContainerPort

        public IoK8sApiCoreV1ContainerPort()
    • Method Detail

      • 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)
      • getHostIP

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

        public void setHostIP​(String hostIP)
      • 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)
      • 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)
      • 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)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object