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) Specifies one or more ranges of ports on a container.containerPortRanges
(Consumer<ContainerPortRange.Builder>... containerPortRanges) Specifies one or more ranges of ports on a container.containerPortRanges
(ContainerPortRange... containerPortRanges) Specifies one or more ranges of ports on a container.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, sdkFields
-
Method Details
-
containerPortRanges
ContainerPortConfiguration.Builder containerPortRanges(Collection<ContainerPortRange> containerPortRanges) Specifies one or more ranges of ports on a container. These ranges must not overlap.
- Parameters:
containerPortRanges
- Specifies one or more ranges of ports on a container. These ranges must not overlap.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerPortRanges
Specifies one or more ranges of ports on a container. These ranges must not overlap.
- Parameters:
containerPortRanges
- Specifies one or more ranges of ports on a container. These ranges must not overlap.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerPortRanges
ContainerPortConfiguration.Builder containerPortRanges(Consumer<ContainerPortRange.Builder>... containerPortRanges) Specifies one or more ranges of ports on a container. These ranges must not overlap.
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:
-