@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SetAlarmStateRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
SetAlarmStateRequest() |
Modifier and Type | Method and Description |
---|---|
SetAlarmStateRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAlarmName()
The name of the alarm.
|
String |
getStateReason()
The reason that this alarm is set to this specific state, in text format.
|
String |
getStateReasonData()
The reason that this alarm is set to this specific state, in JSON format.
|
String |
getStateValue()
The value of the state.
|
int |
hashCode() |
void |
setAlarmName(String alarmName)
The name of the alarm.
|
void |
setStateReason(String stateReason)
The reason that this alarm is set to this specific state, in text format.
|
void |
setStateReasonData(String stateReasonData)
The reason that this alarm is set to this specific state, in JSON format.
|
void |
setStateValue(StateValue stateValue)
The value of the state.
|
void |
setStateValue(String stateValue)
The value of the state.
|
String |
toString()
Returns a string representation of this object.
|
SetAlarmStateRequest |
withAlarmName(String alarmName)
The name of the alarm.
|
SetAlarmStateRequest |
withStateReason(String stateReason)
The reason that this alarm is set to this specific state, in text format.
|
SetAlarmStateRequest |
withStateReasonData(String stateReasonData)
The reason that this alarm is set to this specific state, in JSON format.
|
SetAlarmStateRequest |
withStateValue(StateValue stateValue)
The value of the state.
|
SetAlarmStateRequest |
withStateValue(String stateValue)
The value of the state.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setAlarmName(String alarmName)
The name of the alarm.
alarmName
- The name of the alarm.public String getAlarmName()
The name of the alarm.
public SetAlarmStateRequest withAlarmName(String alarmName)
The name of the alarm.
alarmName
- The name of the alarm.public void setStateValue(String stateValue)
The value of the state.
stateValue
- The value of the state.StateValue
public String getStateValue()
The value of the state.
StateValue
public SetAlarmStateRequest withStateValue(String stateValue)
The value of the state.
stateValue
- The value of the state.StateValue
public void setStateValue(StateValue stateValue)
The value of the state.
stateValue
- The value of the state.StateValue
public SetAlarmStateRequest withStateValue(StateValue stateValue)
The value of the state.
stateValue
- The value of the state.StateValue
public void setStateReason(String stateReason)
The reason that this alarm is set to this specific state, in text format.
stateReason
- The reason that this alarm is set to this specific state, in text format.public String getStateReason()
The reason that this alarm is set to this specific state, in text format.
public SetAlarmStateRequest withStateReason(String stateReason)
The reason that this alarm is set to this specific state, in text format.
stateReason
- The reason that this alarm is set to this specific state, in text format.public void setStateReasonData(String stateReasonData)
The reason that this alarm is set to this specific state, in JSON format.
For SNS or EC2 alarm actions, this is just informational. But for EC2 Auto Scaling or application Auto Scaling alarm actions, the Auto Scaling policy uses the information in this field to take the correct action.
stateReasonData
- The reason that this alarm is set to this specific state, in JSON format.
For SNS or EC2 alarm actions, this is just informational. But for EC2 Auto Scaling or application Auto Scaling alarm actions, the Auto Scaling policy uses the information in this field to take the correct action.
public String getStateReasonData()
The reason that this alarm is set to this specific state, in JSON format.
For SNS or EC2 alarm actions, this is just informational. But for EC2 Auto Scaling or application Auto Scaling alarm actions, the Auto Scaling policy uses the information in this field to take the correct action.
For SNS or EC2 alarm actions, this is just informational. But for EC2 Auto Scaling or application Auto Scaling alarm actions, the Auto Scaling policy uses the information in this field to take the correct action.
public SetAlarmStateRequest withStateReasonData(String stateReasonData)
The reason that this alarm is set to this specific state, in JSON format.
For SNS or EC2 alarm actions, this is just informational. But for EC2 Auto Scaling or application Auto Scaling alarm actions, the Auto Scaling policy uses the information in this field to take the correct action.
stateReasonData
- The reason that this alarm is set to this specific state, in JSON format.
For SNS or EC2 alarm actions, this is just informational. But for EC2 Auto Scaling or application Auto Scaling alarm actions, the Auto Scaling policy uses the information in this field to take the correct action.
public String toString()
toString
in class Object
Object.toString()
public SetAlarmStateRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()