Interface ContainerPortRange.Builder

All Superinterfaces:
Buildable, CopyableBuilder<ContainerPortRange.Builder,ContainerPortRange>, SdkBuilder<ContainerPortRange.Builder,ContainerPortRange>, SdkPojo
Enclosing class:
ContainerPortRange

public static interface ContainerPortRange.Builder extends SdkPojo, CopyableBuilder<ContainerPortRange.Builder,ContainerPortRange>
  • Method Details

    • 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

      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:
    • 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: