Class TargetConfiguration
- java.lang.Object
-
- software.amazon.awssdk.services.gamelift.model.TargetConfiguration
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TargetConfiguration.Builder,TargetConfiguration>
@Generated("software.amazon.awssdk:codegen") public final class TargetConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TargetConfiguration.Builder,TargetConfiguration>
Settings for a target-based scaling policy. 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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTargetConfiguration.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TargetConfiguration.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends TargetConfiguration.Builder>serializableBuilderClass()DoubletargetValue()Desired value to use with a target-based scaling policy.TargetConfiguration.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
targetValue
public 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).
- Returns:
- 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).
-
toBuilder
public TargetConfiguration.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<TargetConfiguration.Builder,TargetConfiguration>
-
builder
public static TargetConfiguration.Builder builder()
-
serializableBuilderClass
public static Class<? extends TargetConfiguration.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-