public class SetAlarmStateRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
alarmName
The descriptive name for the alarm.
|
private java.lang.String |
stateReason
The reason that this alarm is set to this specific state (in
human-readable text format)
|
private java.lang.String |
stateReasonData
The reason that this alarm is set to this specific state (in
machine-readable JSON format)
|
private java.lang.String |
stateValue
The value of the state.
|
NOOP
Constructor and Description |
---|
SetAlarmStateRequest() |
Modifier and Type | Method and Description |
---|---|
SetAlarmStateRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAlarmName()
The descriptive name for the alarm.
|
java.lang.String |
getStateReason()
The reason that this alarm is set to this specific state (in
human-readable text format)
|
java.lang.String |
getStateReasonData()
The reason that this alarm is set to this specific state (in
machine-readable JSON format)
|
java.lang.String |
getStateValue()
The value of the state.
|
int |
hashCode() |
void |
setAlarmName(java.lang.String alarmName)
The descriptive name for the alarm.
|
void |
setStateReason(java.lang.String stateReason)
The reason that this alarm is set to this specific state (in
human-readable text format)
|
void |
setStateReasonData(java.lang.String stateReasonData)
The reason that this alarm is set to this specific state (in
machine-readable JSON format)
|
void |
setStateValue(StateValue stateValue)
The value of the state.
|
void |
setStateValue(java.lang.String stateValue)
The value of the state.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SetAlarmStateRequest |
withAlarmName(java.lang.String alarmName)
The descriptive name for the alarm.
|
SetAlarmStateRequest |
withStateReason(java.lang.String stateReason)
The reason that this alarm is set to this specific state (in
human-readable text format)
|
SetAlarmStateRequest |
withStateReasonData(java.lang.String stateReasonData)
The reason that this alarm is set to this specific state (in
machine-readable JSON format)
|
SetAlarmStateRequest |
withStateValue(StateValue stateValue)
The value of the state.
|
SetAlarmStateRequest |
withStateValue(java.lang.String stateValue)
The value of the state.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String alarmName
The descriptive name for the alarm. This name must be unique within the user's AWS account. The maximum length is 255 characters.
private java.lang.String stateValue
The value of the state.
private java.lang.String stateReason
The reason that this alarm is set to this specific state (in human-readable text format)
private java.lang.String stateReasonData
The reason that this alarm is set to this specific state (in machine-readable JSON format)
public void setAlarmName(java.lang.String alarmName)
The descriptive name for the alarm. This name must be unique within the user's AWS account. The maximum length is 255 characters.
alarmName
- The descriptive name for the alarm. This name must be unique
within the user's AWS account. The maximum length is 255
characters.public java.lang.String getAlarmName()
The descriptive name for the alarm. This name must be unique within the user's AWS account. The maximum length is 255 characters.
public SetAlarmStateRequest withAlarmName(java.lang.String alarmName)
The descriptive name for the alarm. This name must be unique within the user's AWS account. The maximum length is 255 characters.
alarmName
- The descriptive name for the alarm. This name must be unique
within the user's AWS account. The maximum length is 255
characters.public void setStateValue(java.lang.String stateValue)
The value of the state.
stateValue
- The value of the state.StateValue
public java.lang.String getStateValue()
The value of the state.
StateValue
public SetAlarmStateRequest withStateValue(java.lang.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(java.lang.String stateReason)
The reason that this alarm is set to this specific state (in human-readable text format)
stateReason
- The reason that this alarm is set to this specific state (in
human-readable text format)public java.lang.String getStateReason()
The reason that this alarm is set to this specific state (in human-readable text format)
public SetAlarmStateRequest withStateReason(java.lang.String stateReason)
The reason that this alarm is set to this specific state (in human-readable text format)
stateReason
- The reason that this alarm is set to this specific state (in
human-readable text format)public void setStateReasonData(java.lang.String stateReasonData)
The reason that this alarm is set to this specific state (in machine-readable JSON format)
stateReasonData
- The reason that this alarm is set to this specific state (in
machine-readable JSON format)public java.lang.String getStateReasonData()
The reason that this alarm is set to this specific state (in machine-readable JSON format)
public SetAlarmStateRequest withStateReasonData(java.lang.String stateReasonData)
The reason that this alarm is set to this specific state (in machine-readable JSON format)
stateReasonData
- The reason that this alarm is set to this specific state (in
machine-readable JSON format)public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public SetAlarmStateRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()