Class CfnContainerFleetPropsMixin.IpPermissionProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.gamelift.CfnContainerFleetPropsMixin.IpPermissionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContainerFleetPropsMixin.IpPermissionProperty>
- Enclosing interface:
CfnContainerFleetPropsMixin.IpPermissionProperty
@Stability(Stable)
public static final class CfnContainerFleetPropsMixin.IpPermissionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnContainerFleetPropsMixin.IpPermissionProperty>
A builder for
CfnContainerFleetPropsMixin.IpPermissionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnContainerFleetPropsMixin.IpPermissionProperty.getFromPort()Sets the value ofCfnContainerFleetPropsMixin.IpPermissionProperty.getIpRange()Sets the value ofCfnContainerFleetPropsMixin.IpPermissionProperty.getProtocol()Sets the value ofCfnContainerFleetPropsMixin.IpPermissionProperty.getToPort()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fromPort
@Stability(Stable) public CfnContainerFleetPropsMixin.IpPermissionProperty.Builder fromPort(Number fromPort) Sets the value ofCfnContainerFleetPropsMixin.IpPermissionProperty.getFromPort()- Parameters:
fromPort- A starting value for a range of allowed port numbers. For fleets using Linux builds, only ports22and1026-60000are valid.For fleets using Windows builds, only ports
1026-60000are valid.- Returns:
this
-
ipRange
@Stability(Stable) public CfnContainerFleetPropsMixin.IpPermissionProperty.Builder ipRange(String ipRange) Sets the value ofCfnContainerFleetPropsMixin.IpPermissionProperty.getIpRange()- Parameters:
ipRange- A range of allowed IP addresses. 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
@Stability(Stable) public CfnContainerFleetPropsMixin.IpPermissionProperty.Builder protocol(String protocol) Sets the value ofCfnContainerFleetPropsMixin.IpPermissionProperty.getProtocol()- Parameters:
protocol- The network communication protocol used by the fleet.- Returns:
this
-
toPort
@Stability(Stable) public CfnContainerFleetPropsMixin.IpPermissionProperty.Builder toPort(Number toPort) Sets the value ofCfnContainerFleetPropsMixin.IpPermissionProperty.getToPort()- Parameters:
toPort- An ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be equal to or greater thanFromPort.For fleets using Linux builds, only ports
22and1026-60000are valid.For fleets using Windows builds, only ports
1026-60000are valid.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnContainerFleetPropsMixin.IpPermissionProperty>- Returns:
- a new instance of
CfnContainerFleetPropsMixin.IpPermissionProperty - Throws:
NullPointerException- if any required attribute was not provided
-