Class CfnFleet.ManagedCapacityConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.CfnFleet.ManagedCapacityConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFleet.ManagedCapacityConfigurationProperty>
- Enclosing interface:
CfnFleet.ManagedCapacityConfigurationProperty
@Stability(Stable)
public static final class CfnFleet.ManagedCapacityConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFleet.ManagedCapacityConfigurationProperty>
A builder for
CfnFleet.ManagedCapacityConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.scaleInAfterInactivityMinutes(Number scaleInAfterInactivityMinutes) zeroCapacityStrategy(String zeroCapacityStrategy) Sets the value ofCfnFleet.ManagedCapacityConfigurationProperty.getZeroCapacityStrategy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
zeroCapacityStrategy
@Stability(Stable) public CfnFleet.ManagedCapacityConfigurationProperty.Builder zeroCapacityStrategy(String zeroCapacityStrategy) Sets the value ofCfnFleet.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. 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 CfnFleet.ManagedCapacityConfigurationProperty.Builder scaleInAfterInactivityMinutes(Number scaleInAfterInactivityMinutes) - 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<CfnFleet.ManagedCapacityConfigurationProperty>- Returns:
- a new instance of
CfnFleet.ManagedCapacityConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-