Class CfnGameServerGroupPropsMixin.AutoScalingPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.gamelift.CfnGameServerGroupPropsMixin.AutoScalingPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGameServerGroupPropsMixin.AutoScalingPolicyProperty>
- Enclosing interface:
CfnGameServerGroupPropsMixin.AutoScalingPolicyProperty
@Stability(Stable)
public static final class CfnGameServerGroupPropsMixin.AutoScalingPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGameServerGroupPropsMixin.AutoScalingPolicyProperty>
A builder for
CfnGameServerGroupPropsMixin.AutoScalingPolicyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.estimatedInstanceWarmup(Number estimatedInstanceWarmup) targetTrackingConfiguration(CfnGameServerGroupPropsMixin.TargetTrackingConfigurationProperty targetTrackingConfiguration) targetTrackingConfiguration(IResolvable targetTrackingConfiguration)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
estimatedInstanceWarmup
@Stability(Stable) public CfnGameServerGroupPropsMixin.AutoScalingPolicyProperty.Builder estimatedInstanceWarmup(Number estimatedInstanceWarmup) Sets the value ofCfnGameServerGroupPropsMixin.AutoScalingPolicyProperty.getEstimatedInstanceWarmup()- Parameters:
estimatedInstanceWarmup- Length of time, in seconds, it takes for a new instance to start new game server processes and register with Amazon GameLift Servers FleetIQ. Specifying a warm-up time can be useful, particularly with game servers that take a long time to start up, because it avoids prematurely starting new instances.- Returns:
this
-
targetTrackingConfiguration
@Stability(Stable) public CfnGameServerGroupPropsMixin.AutoScalingPolicyProperty.Builder targetTrackingConfiguration(IResolvable targetTrackingConfiguration) Sets the value ofCfnGameServerGroupPropsMixin.AutoScalingPolicyProperty.getTargetTrackingConfiguration()- Parameters:
targetTrackingConfiguration- Settings for a target-based scaling policy applied to Auto Scaling group. These settings are used to create a target-based policy that tracks the GameLift FleetIQ metricPercentUtilizedGameServersand specifies a target value for the metric. As player usage changes, the policy triggers to adjust the game server group capacity so that the metric returns to the target value.- Returns:
this
-
targetTrackingConfiguration
@Stability(Stable) public CfnGameServerGroupPropsMixin.AutoScalingPolicyProperty.Builder targetTrackingConfiguration(CfnGameServerGroupPropsMixin.TargetTrackingConfigurationProperty targetTrackingConfiguration) Sets the value ofCfnGameServerGroupPropsMixin.AutoScalingPolicyProperty.getTargetTrackingConfiguration()- Parameters:
targetTrackingConfiguration- Settings for a target-based scaling policy applied to Auto Scaling group. These settings are used to create a target-based policy that tracks the GameLift FleetIQ metricPercentUtilizedGameServersand specifies a target value for the metric. As player usage changes, the policy triggers to adjust the game server group capacity so that the metric returns to the target value.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGameServerGroupPropsMixin.AutoScalingPolicyProperty>- Returns:
- a new instance of
CfnGameServerGroupPropsMixin.AutoScalingPolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-