Class CfnContainerFleet.ManagedCapacityConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.CfnContainerFleet.ManagedCapacityConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContainerFleet.ManagedCapacityConfigurationProperty>
- Enclosing interface:
CfnContainerFleet.ManagedCapacityConfigurationProperty
@Stability(Stable)
public static final class CfnContainerFleet.ManagedCapacityConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnContainerFleet.ManagedCapacityConfigurationProperty>
A builder for
CfnContainerFleet.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
-
zeroCapacityStrategy
@Stability(Stable) public CfnContainerFleet.ManagedCapacityConfigurationProperty.Builder zeroCapacityStrategy(String zeroCapacityStrategy) - Parameters:
zeroCapacityStrategy- The strategy Amazon GameLift Servers will use to automatically scale your capacity to and from zero in response to game session activity. This parameter is required. 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
-
scaleInAfterInactivityMinutes
@Stability(Stable) public CfnContainerFleet.ManagedCapacityConfigurationProperty.Builder scaleInAfterInactivityMinutes(Number scaleInAfterInactivityMinutes) Sets the value ofCfnContainerFleet.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
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnContainerFleet.ManagedCapacityConfigurationProperty>- Returns:
- a new instance of
CfnContainerFleet.ManagedCapacityConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-