Interface ContainerPortConfiguration.Builder

  • Method Details

    • containerPortRanges

      ContainerPortConfiguration.Builder containerPortRanges(Collection<ContainerPortRange> containerPortRanges)

      A set of one or more container port number ranges. The ranges can't overlap if the ranges' network protocols are the same. Overlapping ranges with different protocols is allowed but not recommended.

      Parameters:
      containerPortRanges - A set of one or more container port number ranges. The ranges can't overlap if the ranges' network protocols are the same. Overlapping ranges with different protocols is allowed but not recommended.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • containerPortRanges

      ContainerPortConfiguration.Builder containerPortRanges(ContainerPortRange... containerPortRanges)

      A set of one or more container port number ranges. The ranges can't overlap if the ranges' network protocols are the same. Overlapping ranges with different protocols is allowed but not recommended.

      Parameters:
      containerPortRanges - A set of one or more container port number ranges. The ranges can't overlap if the ranges' network protocols are the same. Overlapping ranges with different protocols is allowed but not recommended.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • containerPortRanges

      ContainerPortConfiguration.Builder containerPortRanges(Consumer<ContainerPortRange.Builder>... containerPortRanges)

      A set of one or more container port number ranges. The ranges can't overlap if the ranges' network protocols are the same. Overlapping ranges with different protocols is allowed but not recommended.

      This is a convenience method that creates an instance of the ContainerPortRange.Builder avoiding the need to create one manually via ContainerPortRange.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to containerPortRanges(List<ContainerPortRange>).

      Parameters:
      containerPortRanges - a consumer that will call methods on ContainerPortRange.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: