@Generated(value="software.amazon.awssdk:codegen") public final class ScalingPolicy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ScalingPolicy.Builder,ScalingPolicy>
Represents a scaling policy.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ScalingPolicy.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ScalingPolicy.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
policyName()
The name of the scaling policy.
|
PolicyType |
policyType()
The type of scaling policy.
|
String |
policyTypeAsString()
The type of scaling policy.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ScalingPolicy.Builder> |
serializableBuilderClass() |
TargetTrackingConfiguration |
targetTrackingConfiguration()
The target tracking scaling policy.
|
ScalingPolicy.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String policyName()
The name of the scaling policy.
public final PolicyType policyType()
The type of scaling policy.
If the service returns an enum value that is not available in the current SDK version, policyType will
return PolicyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
policyTypeAsString().
PolicyTypepublic final String policyTypeAsString()
The type of scaling policy.
If the service returns an enum value that is not available in the current SDK version, policyType will
return PolicyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
policyTypeAsString().
PolicyTypepublic final TargetTrackingConfiguration targetTrackingConfiguration()
The target tracking scaling policy. Includes support for predefined or customized metrics.
public ScalingPolicy.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ScalingPolicy.Builder,ScalingPolicy>public static ScalingPolicy.Builder builder()
public static Class<? extends ScalingPolicy.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.