@Generated(value="software.amazon.awssdk:codegen") public final class AutoScalingPolicyStateChangeReason extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AutoScalingPolicyStateChangeReason.Builder,AutoScalingPolicyStateChangeReason>
The reason for an AutoScalingPolicyStatus change.
Modifier and Type | Class and Description |
---|---|
static interface |
AutoScalingPolicyStateChangeReason.Builder |
Modifier and Type | Method and Description |
---|---|
static AutoScalingPolicyStateChangeReason.Builder |
builder() |
AutoScalingPolicyStateChangeReasonCode |
code()
The code indicating the reason for the change in status.
USER_REQUEST indicates that the scaling
policy status was changed by a user. |
String |
codeAsString()
The code indicating the reason for the change in status.
USER_REQUEST indicates that the scaling
policy status was changed by a user. |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
message()
A friendly, more verbose message that accompanies an automatic scaling policy state change.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AutoScalingPolicyStateChangeReason.Builder> |
serializableBuilderClass() |
AutoScalingPolicyStateChangeReason.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final AutoScalingPolicyStateChangeReasonCode code()
The code indicating the reason for the change in status.USER_REQUEST
indicates that the scaling
policy status was changed by a user. PROVISION_FAILURE
indicates that the status change was because
the policy failed to provision. CLEANUP_FAILURE
indicates an error.
If the service returns an enum value that is not available in the current SDK version, code
will return
AutoScalingPolicyStateChangeReasonCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from codeAsString()
.
USER_REQUEST
indicates that the
scaling policy status was changed by a user. PROVISION_FAILURE
indicates that the status
change was because the policy failed to provision. CLEANUP_FAILURE
indicates an error.AutoScalingPolicyStateChangeReasonCode
public final String codeAsString()
The code indicating the reason for the change in status.USER_REQUEST
indicates that the scaling
policy status was changed by a user. PROVISION_FAILURE
indicates that the status change was because
the policy failed to provision. CLEANUP_FAILURE
indicates an error.
If the service returns an enum value that is not available in the current SDK version, code
will return
AutoScalingPolicyStateChangeReasonCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from codeAsString()
.
USER_REQUEST
indicates that the
scaling policy status was changed by a user. PROVISION_FAILURE
indicates that the status
change was because the policy failed to provision. CLEANUP_FAILURE
indicates an error.AutoScalingPolicyStateChangeReasonCode
public final String message()
A friendly, more verbose message that accompanies an automatic scaling policy state change.
public AutoScalingPolicyStateChangeReason.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<AutoScalingPolicyStateChangeReason.Builder,AutoScalingPolicyStateChangeReason>
public static AutoScalingPolicyStateChangeReason.Builder builder()
public static Class<? extends AutoScalingPolicyStateChangeReason.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2021. All rights reserved.