Class CfnContainerFleetPropsMixin.LocationCapacityProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.gamelift.CfnContainerFleetPropsMixin.LocationCapacityProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContainerFleetPropsMixin.LocationCapacityProperty>
- Enclosing interface:
CfnContainerFleetPropsMixin.LocationCapacityProperty
@Stability(Stable)
public static final class CfnContainerFleetPropsMixin.LocationCapacityProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnContainerFleetPropsMixin.LocationCapacityProperty>
A builder for
CfnContainerFleetPropsMixin.LocationCapacityProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.desiredEc2Instances(Number desiredEc2Instances) managedCapacityConfiguration(CfnContainerFleetPropsMixin.ManagedCapacityConfigurationProperty managedCapacityConfiguration) managedCapacityConfiguration(IResolvable managedCapacityConfiguration) Sets the value ofCfnContainerFleetPropsMixin.LocationCapacityProperty.getMaxSize()Sets the value ofCfnContainerFleetPropsMixin.LocationCapacityProperty.getMinSize()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
desiredEc2Instances
@Stability(Stable) public CfnContainerFleetPropsMixin.LocationCapacityProperty.Builder desiredEc2Instances(Number desiredEc2Instances) - Parameters:
desiredEc2Instances- Defaults to MinSize if not defined. The number of EC2 instances you want to maintain in the specified fleet location. 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
-
managedCapacityConfiguration
@Stability(Stable) public CfnContainerFleetPropsMixin.LocationCapacityProperty.Builder managedCapacityConfiguration(IResolvable managedCapacityConfiguration) Sets the value ofCfnContainerFleetPropsMixin.LocationCapacityProperty.getManagedCapacityConfiguration()- Parameters:
managedCapacityConfiguration- Configuration options for Amazon GameLift Servers managed capacity behavior.- Returns:
this
-
managedCapacityConfiguration
@Stability(Stable) public CfnContainerFleetPropsMixin.LocationCapacityProperty.Builder managedCapacityConfiguration(CfnContainerFleetPropsMixin.ManagedCapacityConfigurationProperty managedCapacityConfiguration) Sets the value ofCfnContainerFleetPropsMixin.LocationCapacityProperty.getManagedCapacityConfiguration()- Parameters:
managedCapacityConfiguration- Configuration options for Amazon GameLift Servers managed capacity behavior.- Returns:
this
-
maxSize
@Stability(Stable) public CfnContainerFleetPropsMixin.LocationCapacityProperty.Builder maxSize(Number maxSize) Sets the value ofCfnContainerFleetPropsMixin.LocationCapacityProperty.getMaxSize()- Parameters:
maxSize- The maximum value that is allowed for the fleet's instance count for a location.- Returns:
this
-
minSize
@Stability(Stable) public CfnContainerFleetPropsMixin.LocationCapacityProperty.Builder minSize(Number minSize) Sets the value ofCfnContainerFleetPropsMixin.LocationCapacityProperty.getMinSize()- Parameters:
minSize- The minimum value allowed for the fleet's instance count for a location.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnContainerFleetPropsMixin.LocationCapacityProperty>- Returns:
- a new instance of
CfnContainerFleetPropsMixin.LocationCapacityProperty - Throws:
NullPointerException- if any required attribute was not provided
-