Class CfnContainerGroupDefinition.PortConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.CfnContainerGroupDefinition.PortConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContainerGroupDefinition.PortConfigurationProperty>
- Enclosing interface:
CfnContainerGroupDefinition.PortConfigurationProperty
@Stability(Stable)
public static final class CfnContainerGroupDefinition.PortConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnContainerGroupDefinition.PortConfigurationProperty>
A builder for
CfnContainerGroupDefinition.PortConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.containerPortRanges
(List<? extends Object> containerPortRanges) containerPortRanges
(IResolvable containerPortRanges)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containerPortRanges
@Stability(Stable) public CfnContainerGroupDefinition.PortConfigurationProperty.Builder containerPortRanges(IResolvable containerPortRanges) - Parameters:
containerPortRanges
- Specifies one or more ranges of ports on a container. This parameter is required.- Returns:
this
-
containerPortRanges
@Stability(Stable) public CfnContainerGroupDefinition.PortConfigurationProperty.Builder containerPortRanges(List<? extends Object> containerPortRanges) - Parameters:
containerPortRanges
- Specifies one or more ranges of ports on a container. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnContainerGroupDefinition.PortConfigurationProperty>
- Returns:
- a new instance of
CfnContainerGroupDefinition.PortConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-