Class ContainerPort.Jsii$Proxy

  • All Implemented Interfaces:
    ContainerPort, software.amazon.jsii.JsiiSerializable
    Enclosing interface:
    ContainerPort

    @Stability(Stable)
    @Internal
    public static final class ContainerPort.Jsii$Proxy
    extends software.amazon.jsii.JsiiObject
    implements ContainerPort
    An implementation for ContainerPort
    • Constructor Detail

      • Jsii$Proxy

        protected Jsii$Proxy​(software.amazon.jsii.JsiiObjectRef objRef)
        Constructor that initializes the object based on values retrieved from the JsiiObject.
        Parameters:
        objRef - Reference to the JSII managed object.
    • Method Detail

      • getContainerPort

        public final Number getContainerPort()
        Description copied from interface: ContainerPort
        Number of port to expose on the pod's IP address.

        This must be a valid port number, 0 < x < 65536.

        Specified by:
        getContainerPort in interface ContainerPort
      • getHostPort

        public final Number getHostPort()
        Description copied from interface: ContainerPort
        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.

        Specified by:
        getHostPort in interface ContainerPort
      • getName

        public final String getName()
        Description copied from interface: ContainerPort
        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.

        Specified by:
        getName in interface ContainerPort
      • getProtocol

        public final String getProtocol()
        Description copied from interface: ContainerPort
        Protocol for port.

        Must be UDP, TCP, or SCTP. Defaults to "TCP".

        Default: TCP".

        Specified by:
        getProtocol in interface ContainerPort
      • $jsii$toJson

        @Internal
        public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
        Specified by:
        $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object