Class CfnContainerFleet.LocationCapacityProperty.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.CfnContainerFleet.LocationCapacityProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContainerFleet.LocationCapacityProperty>
- Enclosing interface:
CfnContainerFleet.LocationCapacityProperty
@Stability(Stable)
public static final class CfnContainerFleet.LocationCapacityProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnContainerFleet.LocationCapacityProperty>
A builder for
CfnContainerFleet.LocationCapacityProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.desiredEc2Instances
(Number desiredEc2Instances) Sets the value ofCfnContainerFleet.LocationCapacityProperty.getDesiredEc2Instances()
Sets the value ofCfnContainerFleet.LocationCapacityProperty.getMaxSize()
Sets the value ofCfnContainerFleet.LocationCapacityProperty.getMinSize()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
desiredEc2Instances
@Stability(Stable) public CfnContainerFleet.LocationCapacityProperty.Builder desiredEc2Instances(Number desiredEc2Instances) Sets the value ofCfnContainerFleet.LocationCapacityProperty.getDesiredEc2Instances()
- Parameters:
desiredEc2Instances
- The number of 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
@Stability(Stable) public CfnContainerFleet.LocationCapacityProperty.Builder maxSize(Number maxSize) Sets the value ofCfnContainerFleet.LocationCapacityProperty.getMaxSize()
- Parameters:
maxSize
- The maximum value that is allowed for the fleet's instance count for a location. This parameter is required.- Returns:
this
-
minSize
@Stability(Stable) public CfnContainerFleet.LocationCapacityProperty.Builder minSize(Number minSize) Sets the value ofCfnContainerFleet.LocationCapacityProperty.getMinSize()
- Parameters:
minSize
- The minimum value allowed for the fleet's instance count for a location. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnContainerFleet.LocationCapacityProperty>
- Returns:
- a new instance of
CfnContainerFleet.LocationCapacityProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-