Class CfnFleet.IpPermissionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.CfnFleet.IpPermissionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFleet.IpPermissionProperty>
- Enclosing interface:
CfnFleet.IpPermissionProperty
@Stability(Stable)
public static final class CfnFleet.IpPermissionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFleet.IpPermissionProperty>
A builder for
CfnFleet.IpPermissionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnFleet.IpPermissionProperty.getFromPort()
Sets the value ofCfnFleet.IpPermissionProperty.getIpRange()
Sets the value ofCfnFleet.IpPermissionProperty.getProtocol()
Sets the value ofCfnFleet.IpPermissionProperty.getToPort()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fromPort
Sets the value ofCfnFleet.IpPermissionProperty.getFromPort()
- Parameters:
fromPort
- A starting value for a range of allowed port numbers. This parameter is required. For fleets using Linux builds, only ports22
and1026-60000
are valid.For fleets using Windows builds, only ports
1026-60000
are valid.- Returns:
this
-
ipRange
Sets the value ofCfnFleet.IpPermissionProperty.getIpRange()
- Parameters:
ipRange
- A range of allowed IP addresses. This parameter is required. This value must be expressed in CIDR notation. Example: "000.000.000.000/[subnet mask]
" or optionally the shortened version "0.0.0.0/[subnet mask]
".- Returns:
this
-
protocol
Sets the value ofCfnFleet.IpPermissionProperty.getProtocol()
- Parameters:
protocol
- The network communication protocol used by the fleet. This parameter is required.- Returns:
this
-
toPort
Sets the value ofCfnFleet.IpPermissionProperty.getToPort()
- Parameters:
toPort
- An ending value for a range of allowed port numbers. This parameter is required. Port numbers are end-inclusive. This value must be equal to or greater thanFromPort
.For fleets using Linux builds, only ports
22
and1026-60000
are valid.For fleets using Windows builds, only ports
1026-60000
are valid.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFleet.IpPermissionProperty>
- Returns:
- a new instance of
CfnFleet.IpPermissionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-