Class CfnContainerFleetPropsMixin.ManagedCapacityConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.gamelift.CfnContainerFleetPropsMixin.ManagedCapacityConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContainerFleetPropsMixin.ManagedCapacityConfigurationProperty>
- Enclosing interface:
CfnContainerFleetPropsMixin.ManagedCapacityConfigurationProperty
@Stability(Stable)
public static final class CfnContainerFleetPropsMixin.ManagedCapacityConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnContainerFleetPropsMixin.ManagedCapacityConfigurationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.scaleInAfterInactivityMinutes(Number scaleInAfterInactivityMinutes) zeroCapacityStrategy(String zeroCapacityStrategy)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
scaleInAfterInactivityMinutes
@Stability(Stable) public CfnContainerFleetPropsMixin.ManagedCapacityConfigurationProperty.Builder scaleInAfterInactivityMinutes(Number scaleInAfterInactivityMinutes) Sets the value ofCfnContainerFleetPropsMixin.ManagedCapacityConfigurationProperty.getScaleInAfterInactivityMinutes()- Parameters:
scaleInAfterInactivityMinutes- Length of time, in minutes, that Amazon GameLift Servers will wait before scaling in your MinSize and DesiredInstances to 0 after a period with no game session activity.- Returns:
this
-
zeroCapacityStrategy
@Stability(Stable) public CfnContainerFleetPropsMixin.ManagedCapacityConfigurationProperty.Builder zeroCapacityStrategy(String zeroCapacityStrategy) Sets the value ofCfnContainerFleetPropsMixin.ManagedCapacityConfigurationProperty.getZeroCapacityStrategy()- Parameters:
zeroCapacityStrategy- The strategy Amazon GameLift Servers will use to automatically scale your capacity to and from zero in response to game session activity. Game session activity refers to any active running sessions or game session requests. When set to SCALE_TO_AND_FROM_ZERO, MinSize must not be specified and will be managed automatically. When set to MANUAL, MinSize is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnContainerFleetPropsMixin.ManagedCapacityConfigurationProperty>- Returns:
- a new instance of
CfnContainerFleetPropsMixin.ManagedCapacityConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-