Class Port.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.alpha.Port.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<Port>
- Enclosing class:
Port
@Stability(Experimental)
public static final class Port.Builder
extends Object
implements software.amazon.jsii.Builder<Port>
(experimental) A fluent builder for
Port.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static Port.Buildercreate()(experimental) A starting value for a range of allowed port numbers.(experimental) The protocol for the range.(experimental) An ending value for a range of allowed port numbers.
-
Method Details
-
create
- Returns:
- a new instance of
Port.Builder.
-
fromPort
(experimental) A starting value for a range of allowed port numbers.For fleets using Windows and Linux builds, only ports 1026-60000 are valid.
- Parameters:
fromPort- A starting value for a range of allowed port numbers. This parameter is required.- Returns:
this
-
protocol
(experimental) The protocol for the range.- Parameters:
protocol- The protocol for the range. This parameter is required.- Returns:
this
-
toPort
(experimental) An ending value for a range of allowed port numbers.Port numbers are end-inclusive. This value must be higher than
fromPort.For fleets using Windows and Linux builds, only ports 1026-60000 are valid.
Default: the `fromPort` value
- Parameters:
toPort- An ending value for a range of allowed port numbers. This parameter is required.- Returns:
this
-
build
-