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
Constructors -
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. If any auto-scaling policy is defined for the container fleet, the desired instance will only be applied once during fleet creation and will be ignored in updates to avoid conflicts with auto-scaling. During updates with any auto-scaling policy defined, if current desired instance is lower than the new MinSize, it will be increased to the new MinSize; if current desired instance is larger than the new MaxSize, it will be decreased to the new MaxSize.- 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
-