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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ContainerPortConfiguration.BuildercontainerPortRanges(Collection<ContainerPortRange> containerPortRanges)Specifies one or more ranges of ports on a container.ContainerPortConfiguration.BuildercontainerPortRanges(Consumer<ContainerPortRange.Builder>... containerPortRanges)Specifies one or more ranges of ports on a container.ContainerPortConfiguration.BuildercontainerPortRanges(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 Detail
-
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
ContainerPortConfiguration.Builder containerPortRanges(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
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.Builderavoiding the need to create one manually viaContainerPortRange.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#containerPortRanges(List.) - 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:
#containerPortRanges(java.util.Collection)
-
-