Interface ContainerPortRange.Builder

    • Method Detail

      • fromPort

        ContainerPortRange.Builder fromPort​(Integer fromPort)

        A starting value for the range of allowed port numbers.

        Parameters:
        fromPort - A starting value for the range of allowed port numbers.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toPort

        ContainerPortRange.Builder toPort​(Integer toPort)

        An ending value for the range of allowed port numbers. Port numbers are end-inclusive. This value must be equal to or greater than FromPort.

        Parameters:
        toPort - An ending value for the range of allowed port numbers. Port numbers are end-inclusive. This value must be equal to or greater than FromPort.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • protocol

        ContainerPortRange.Builder protocol​(String protocol)

        The network protocol that these ports support.

        Parameters:
        protocol - The network protocol that these ports support.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        IpProtocol, IpProtocol
      • protocol

        ContainerPortRange.Builder protocol​(IpProtocol protocol)

        The network protocol that these ports support.

        Parameters:
        protocol - The network protocol that these ports support.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        IpProtocol, IpProtocol