Interface ContainerPortConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ContainerPortConfiguration.Builder,,ContainerPortConfiguration> SdkBuilder<ContainerPortConfiguration.Builder,,ContainerPortConfiguration> SdkPojo
- Enclosing class:
ContainerPortConfiguration
public static interface ContainerPortConfiguration.Builder
extends SdkPojo, CopyableBuilder<ContainerPortConfiguration.Builder,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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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.
- Parameters:
containerPortRanges- A set of one or more container port number ranges. The ranges can't overlap.- 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.
- Parameters:
containerPortRanges- A set of one or more container port number ranges. The ranges can't overlap.- 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.
This is a convenience method that creates an instance of theContainerPortRange.Builderavoiding the need to create one manually viaContainerPortRange.builder().When the
Consumercompletes,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:
-