Class Port


  • public final class Port
    extends Object
    The port exposed on the container group.
    • Constructor Detail

      • Port

        public Port()
    • Method Detail

      • protocol

        public ContainerGroupNetworkProtocol protocol()
        Get the protocol property: The protocol associated with the port.
        Returns:
        the protocol value.
      • withProtocol

        public Port withProtocol​(ContainerGroupNetworkProtocol protocol)
        Set the protocol property: The protocol associated with the port.
        Parameters:
        protocol - the protocol value to set.
        Returns:
        the Port object itself.
      • port

        public int port()
        Get the port property: The port number.
        Returns:
        the port value.
      • withPort

        public Port withPort​(int port)
        Set the port property: The port number.
        Parameters:
        port - the port value to set.
        Returns:
        the Port object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.