Class CfnFleet.LocationCapacityProperty.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.CfnFleet.LocationCapacityProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFleet.LocationCapacityProperty>
- Enclosing interface:
- CfnFleet.LocationCapacityProperty
@Stability(Stable)
public static final class CfnFleet.LocationCapacityProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFleet.LocationCapacityProperty>
A builder for
CfnFleet.LocationCapacityProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.desiredEc2Instances(Number desiredEc2Instances) Sets the value ofCfnFleet.LocationCapacityProperty.getDesiredEc2Instances()Sets the value ofCfnFleet.LocationCapacityProperty.getMaxSize()Sets the value ofCfnFleet.LocationCapacityProperty.getMinSize()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
desiredEc2Instances
@Stability(Stable) public CfnFleet.LocationCapacityProperty.Builder desiredEc2Instances(Number desiredEc2Instances) Sets the value ofCfnFleet.LocationCapacityProperty.getDesiredEc2Instances()- Parameters:
desiredEc2Instances- The number of Amazon EC2 instances you want to maintain in the specified fleet location. This parameter is required. This value must fall between the minimum and maximum size limits.- Returns:
this
-
maxSize
Sets the value ofCfnFleet.LocationCapacityProperty.getMaxSize()- Parameters:
maxSize- The maximum number of instances that are allowed in the specified fleet location. This parameter is required. If this parameter is not set, the default is 1.- Returns:
this
-
minSize
Sets the value ofCfnFleet.LocationCapacityProperty.getMinSize()- Parameters:
minSize- The minimum number of instances that are allowed in the specified fleet location. This parameter is required. If this parameter is not set, the default is 0.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFleet.LocationCapacityProperty>- Returns:
- a new instance of
CfnFleet.LocationCapacityProperty - Throws:
NullPointerException- if any required attribute was not provided
-