@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.
Related actions
DescribeFleetCapacity | UpdateFleetCapacity | DescribeEC2InstanceLimits | PutScalingPolicy | DescribeScalingPolicies | DeleteScalingPolicy | StopFleetActions | StartFleetActions | All APIs by task
| Modifier and Type | Class and Description |
|---|---|
static interface |
TargetConfiguration.Builder |
| Modifier and Type | Method and Description |
|---|---|
static TargetConfiguration.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(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() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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()
toBuilder in interface ToCopyableBuilder<TargetConfiguration.Builder,TargetConfiguration>public static TargetConfiguration.Builder builder()
public static Class<? extends TargetConfiguration.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.