Interface ContainerPortConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ContainerPortConfiguration.Builder,
,ContainerPortConfiguration> SdkBuilder<ContainerPortConfiguration.Builder,
,ContainerPortConfiguration> SdkPojo
- Enclosing class:
ContainerPortConfiguration
-
Method Summary
Modifier and TypeMethodDescriptioncontainerPortRanges
(Collection<ContainerPortRange> containerPortRanges) A set of one or more container port number ranges.containerPortRanges
(Consumer<ContainerPortRange.Builder>... containerPortRanges) A set of one or more container port number ranges.containerPortRanges
(ContainerPortRange... containerPortRanges) A set of one or more container port number ranges.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
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
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 theContainerPortRange.Builder
avoiding the need to create one manually viaContainerPortRange.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontainerPortRanges(List<ContainerPortRange>)
.- Parameters:
containerPortRanges
- a consumer that will call methods onContainerPortRange.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-