Class CfnContainerFleetPropsMixin.ConnectionPortRangeProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.gamelift.CfnContainerFleetPropsMixin.ConnectionPortRangeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContainerFleetPropsMixin.ConnectionPortRangeProperty>
- Enclosing interface:
CfnContainerFleetPropsMixin.ConnectionPortRangeProperty
@Stability(Stable)
public static final class CfnContainerFleetPropsMixin.ConnectionPortRangeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnContainerFleetPropsMixin.ConnectionPortRangeProperty>
A builder for
CfnContainerFleetPropsMixin.ConnectionPortRangeProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnContainerFleetPropsMixin.ConnectionPortRangeProperty.getFromPort()Sets the value ofCfnContainerFleetPropsMixin.ConnectionPortRangeProperty.getToPort()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fromPort
@Stability(Stable) public CfnContainerFleetPropsMixin.ConnectionPortRangeProperty.Builder fromPort(Number fromPort) Sets the value ofCfnContainerFleetPropsMixin.ConnectionPortRangeProperty.getFromPort()- Parameters:
fromPort- Starting value for the port range.- Returns:
this
-
toPort
@Stability(Stable) public CfnContainerFleetPropsMixin.ConnectionPortRangeProperty.Builder toPort(Number toPort) Sets the value ofCfnContainerFleetPropsMixin.ConnectionPortRangeProperty.getToPort()- Parameters:
toPort- Ending value for the port. Port numbers are end-inclusive. This value must be equal to or greater thanFromPort.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnContainerFleetPropsMixin.ConnectionPortRangeProperty>- Returns:
- a new instance of
CfnContainerFleetPropsMixin.ConnectionPortRangeProperty - Throws:
NullPointerException- if any required attribute was not provided
-