@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AutoScalingPolicyStateChangeReason extends Object implements Serializable, Cloneable, StructuredPojo
The reason for an AutoScalingPolicyStatus change.
| Constructor and Description |
|---|
AutoScalingPolicyStateChangeReason() |
| Modifier and Type | Method and Description |
|---|---|
AutoScalingPolicyStateChangeReason |
clone() |
boolean |
equals(Object obj) |
String |
getCode()
The code indicating the reason for the change in status.
USER_REQUEST indicates that the scaling
policy status was changed by a user. |
String |
getMessage()
A friendly, more verbose message that accompanies an automatic scaling policy state change.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setCode(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. |
void |
setCode(String code)
The code indicating the reason for the change in status.
USER_REQUEST indicates that the scaling
policy status was changed by a user. |
void |
setMessage(String message)
A friendly, more verbose message that accompanies an automatic scaling policy state change.
|
String |
toString()
Returns a string representation of this object.
|
AutoScalingPolicyStateChangeReason |
withCode(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. |
AutoScalingPolicyStateChangeReason |
withCode(String code)
The code indicating the reason for the change in status.
USER_REQUEST indicates that the scaling
policy status was changed by a user. |
AutoScalingPolicyStateChangeReason |
withMessage(String message)
A friendly, more verbose message that accompanies an automatic scaling policy state change.
|
public void setCode(String 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.
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.AutoScalingPolicyStateChangeReasonCodepublic String getCode()
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.
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 AutoScalingPolicyStateChangeReason withCode(String 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.
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.AutoScalingPolicyStateChangeReasonCodepublic void setCode(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.
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.AutoScalingPolicyStateChangeReasonCodepublic AutoScalingPolicyStateChangeReason withCode(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.
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.AutoScalingPolicyStateChangeReasonCodepublic void setMessage(String message)
A friendly, more verbose message that accompanies an automatic scaling policy state change.
message - A friendly, more verbose message that accompanies an automatic scaling policy state change.public String getMessage()
A friendly, more verbose message that accompanies an automatic scaling policy state change.
public AutoScalingPolicyStateChangeReason withMessage(String message)
A friendly, more verbose message that accompanies an automatic scaling policy state change.
message - A friendly, more verbose message that accompanies an automatic scaling policy state change.public String toString()
toString in class ObjectObject.toString()public AutoScalingPolicyStateChangeReason clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.