@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) |
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.AutoScalingPolicyStateChangeReasonCode
public 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.AutoScalingPolicyStateChangeReasonCode
public 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.AutoScalingPolicyStateChangeReasonCode
public 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.AutoScalingPolicyStateChangeReasonCode
public 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.AutoScalingPolicyStateChangeReasonCode
public 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 Object
Object.toString()
public AutoScalingPolicyStateChangeReason clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2020. All rights reserved.