Interface PortRange.Builder

    • Method Detail

      • fromPort

        PortRange.Builder fromPort​(Integer fromPort)

        The lower limit of the port range. This must be less than or equal to the ToPort specification.

        Parameters:
        fromPort - The lower limit of the port range. This must be less than or equal to the ToPort specification.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toPort

        PortRange.Builder toPort​(Integer toPort)

        The upper limit of the port range. This must be greater than or equal to the FromPort specification.

        Parameters:
        toPort - The upper limit of the port range. This must be greater than or equal to the FromPort specification.
        Returns:
        Returns a reference to this object so that method calls can be chained together.