@Generated(value="software.amazon.awssdk:codegen") public final class TargetConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TargetConfiguration.Builder,TargetConfiguration>
Settings for a target-based scaling policy (see ScalingPolicy. A target-based policy tracks a particular fleet metric specifies a target value for the metric. As player usage changes, the policy triggers Amazon GameLift to adjust capacity so that the metric returns to the target value. The target configuration specifies settings as needed for the target based policy, including the target value.
Operations related to fleet capacity scaling include:
Manage scaling policies:
PutScalingPolicy (auto-scaling)
DescribeScalingPolicies (auto-scaling)
DeleteScalingPolicy (auto-scaling)
Manage fleet actions:
Modifier and Type | Class and Description |
---|---|
static interface |
TargetConfiguration.Builder |
Modifier and Type | Method and Description |
---|---|
static TargetConfiguration.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends TargetConfiguration.Builder> |
serializableBuilderClass() |
Double |
targetValue()
Desired value to use with a target-based scaling policy.
|
TargetConfiguration.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public Double targetValue()
Desired value to use with a target-based scaling policy. The value must be relevant for whatever metric the scaling policy is using. For example, in a policy using the metric PercentAvailableGameSessions, the target value should be the preferred size of the fleet's buffer (the percent of capacity that should be idle and ready for new game sessions).
public TargetConfiguration.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<TargetConfiguration.Builder,TargetConfiguration>
public static TargetConfiguration.Builder builder()
public static Class<? extends TargetConfiguration.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.