Interface GameServerGroupAutoScalingPolicy.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<GameServerGroupAutoScalingPolicy.Builder,
,GameServerGroupAutoScalingPolicy> SdkBuilder<GameServerGroupAutoScalingPolicy.Builder,
,GameServerGroupAutoScalingPolicy> SdkPojo
- Enclosing class:
GameServerGroupAutoScalingPolicy
-
Method Summary
Modifier and TypeMethodDescriptionestimatedInstanceWarmup
(Integer estimatedInstanceWarmup) Length of time, in seconds, it takes for a new instance to start new game server processes and register with Amazon GameLift FleetIQ.targetTrackingConfiguration
(Consumer<TargetTrackingConfiguration.Builder> targetTrackingConfiguration) Settings for a target-based scaling policy applied to Auto Scaling group.targetTrackingConfiguration
(TargetTrackingConfiguration targetTrackingConfiguration) Settings for a target-based scaling policy applied to Auto Scaling group.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
estimatedInstanceWarmup
Length of time, in seconds, it takes for a new instance to start new game server processes and register with Amazon GameLift 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.
- Parameters:
estimatedInstanceWarmup
- Length of time, in seconds, it takes for a new instance to start new game server processes and register with Amazon GameLift 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:
- Returns a reference to this object so that method calls can be chained together.
-
targetTrackingConfiguration
GameServerGroupAutoScalingPolicy.Builder targetTrackingConfiguration(TargetTrackingConfiguration 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 Amazon GameLift FleetIQ metric
"PercentUtilizedGameServers"
and 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.- 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 Amazon GameLift FleetIQ metric"PercentUtilizedGameServers"
and 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:
- Returns a reference to this object so that method calls can be chained together.
-
targetTrackingConfiguration
default GameServerGroupAutoScalingPolicy.Builder targetTrackingConfiguration(Consumer<TargetTrackingConfiguration.Builder> 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 Amazon GameLift FleetIQ metric
This is a convenience method that creates an instance of the"PercentUtilizedGameServers"
and 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.TargetTrackingConfiguration.Builder
avoiding the need to create one manually viaTargetTrackingConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totargetTrackingConfiguration(TargetTrackingConfiguration)
.- Parameters:
targetTrackingConfiguration
- a consumer that will call methods onTargetTrackingConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-