Class CfnFleetPropsMixin.ManagedCapacityConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.gamelift.CfnFleetPropsMixin.ManagedCapacityConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFleetPropsMixin.ManagedCapacityConfigurationProperty>
- Enclosing interface:
CfnFleetPropsMixin.ManagedCapacityConfigurationProperty
@Stability(Stable)
public static final class CfnFleetPropsMixin.ManagedCapacityConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFleetPropsMixin.ManagedCapacityConfigurationProperty>
A builder for
CfnFleetPropsMixin.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 CfnFleetPropsMixin.ManagedCapacityConfigurationProperty.Builder scaleInAfterInactivityMinutes(Number scaleInAfterInactivityMinutes) Sets the value ofCfnFleetPropsMixin.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 CfnFleetPropsMixin.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. 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<CfnFleetPropsMixin.ManagedCapacityConfigurationProperty>- Returns:
- a new instance of
CfnFleetPropsMixin.ManagedCapacityConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-