Class PortProps.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.alpha.PortProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PortProps>
- Enclosing interface:
PortProps
@Stability(Experimental)
public static final class PortProps.Builder
extends Object
implements software.amazon.jsii.Builder<PortProps>
A builder for
PortProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofPortProps.getFromPort()Sets the value ofPortProps.getProtocol()Sets the value ofPortProps.getToPort()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fromPort
Sets the value ofPortProps.getFromPort()- Parameters:
fromPort- A starting value for a range of allowed port numbers. This parameter is required. For fleets using Windows and Linux builds, only ports 1026-60000 are valid.- Returns:
this
-
protocol
Sets the value ofPortProps.getProtocol()- Parameters:
protocol- The protocol for the range. This parameter is required.- Returns:
this
-
toPort
Sets the value ofPortProps.getToPort()- Parameters:
toPort- An ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be higher thanfromPort.For fleets using Windows and Linux builds, only ports 1026-60000 are valid.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PortProps>- Returns:
- a new instance of
PortProps - Throws:
NullPointerException- if any required attribute was not provided
-