@Generated(value="software.amazon.awssdk:codegen") public class AutoScalingPolicyStateChangeReason extends Object implements StructuredPojo, 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) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
String |
message()
A friendly, more verbose message that accompanies an automatic scaling policy state change.
|
static Class<? extends AutoScalingPolicyStateChangeReason.Builder> |
serializableBuilderClass() |
AutoScalingPolicyStateChangeReason.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copypublic 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.AutoScalingPolicyStateChangeReasonCodepublic 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.AutoScalingPolicyStateChangeReasonCodepublic String message()
A friendly, more verbose message that accompanies an automatic scaling policy state change.
public AutoScalingPolicyStateChangeReason.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<AutoScalingPolicyStateChangeReason.Builder,AutoScalingPolicyStateChangeReason>public static AutoScalingPolicyStateChangeReason.Builder builder()
public static Class<? extends AutoScalingPolicyStateChangeReason.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.