Class CfnFleet.ConnectionPortRangeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.CfnFleet.ConnectionPortRangeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFleet.ConnectionPortRangeProperty>
- Enclosing interface:
CfnFleet.ConnectionPortRangeProperty
@Stability(Stable)
public static final class CfnFleet.ConnectionPortRangeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFleet.ConnectionPortRangeProperty>
A builder for
CfnFleet.ConnectionPortRangeProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnFleet.ConnectionPortRangeProperty.getFromPort()Sets the value ofCfnFleet.ConnectionPortRangeProperty.getToPort()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fromPort
Sets the value ofCfnFleet.ConnectionPortRangeProperty.getFromPort()- Parameters:
fromPort- Starting value for the port range. This parameter is required.- Returns:
this
-
toPort
Sets the value ofCfnFleet.ConnectionPortRangeProperty.getToPort()- Parameters:
toPort- Ending value for the port. This parameter is required. 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<CfnFleet.ConnectionPortRangeProperty>- Returns:
- a new instance of
CfnFleet.ConnectionPortRangeProperty - Throws:
NullPointerException- if any required attribute was not provided
-