public class SetAlarmStateRequest extends AmazonWebServiceRequest implements java.io.Serializable
SetAlarmState operation.
Temporarily sets the state of an alarm. When the updated StateValue differs from the previous value, the action configured for the
appropriate state is invoked. This is not a permanent change. The next periodic alarm check (in about a minute) will set the alarm to its actual
state.
| コンストラクタと説明 |
|---|
SetAlarmStateRequest() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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)
Constraints:
Length: 0 - 1023 |
java.lang.String |
getStateReasonData()
The reason that this alarm is set to this specific state (in
machine-readable JSON format)
Constraints:
Length: 0 - 4000 |
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)
Constraints:
Length: 0 - 1023 |
void |
setStateReasonData(java.lang.String stateReasonData)
The reason that this alarm is set to this specific state (in
machine-readable JSON format)
Constraints:
Length: 0 - 4000 |
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)
Returns a reference to this object so that method calls can be chained together.
|
SetAlarmStateRequest |
withStateReasonData(java.lang.String stateReasonData)
The reason that this alarm is set to this specific state (in
machine-readable JSON format)
Returns a reference to this object so that method calls can be chained together.
|
SetAlarmStateRequest |
withStateValue(StateValue stateValue)
The value of the state.
|
SetAlarmStateRequest |
withStateValue(java.lang.String stateValue)
The value of the state.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic java.lang.String getAlarmName()
Constraints:
Length: 1 - 255
public void setAlarmName(java.lang.String alarmName)
Constraints:
Length: 1 - 255
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 SetAlarmStateRequest withAlarmName(java.lang.String alarmName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
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 getStateValue()
Constraints:
Allowed Values: OK, ALARM, INSUFFICIENT_DATA
StateValuepublic void setStateValue(java.lang.String stateValue)
Constraints:
Allowed Values: OK, ALARM, INSUFFICIENT_DATA
stateValue - The value of the state.StateValuepublic SetAlarmStateRequest withStateValue(java.lang.String stateValue)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: OK, ALARM, INSUFFICIENT_DATA
stateValue - The value of the state.StateValuepublic void setStateValue(StateValue stateValue)
Constraints:
Allowed Values: OK, ALARM, INSUFFICIENT_DATA
stateValue - The value of the state.StateValuepublic SetAlarmStateRequest withStateValue(StateValue stateValue)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: OK, ALARM, INSUFFICIENT_DATA
stateValue - The value of the state.StateValuepublic java.lang.String getStateReason()
Constraints:
Length: 0 - 1023
public void setStateReason(java.lang.String stateReason)
Constraints:
Length: 0 - 1023
stateReason - The reason that this alarm is set to this specific state (in
human-readable text format)public SetAlarmStateRequest withStateReason(java.lang.String stateReason)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 1023
stateReason - The reason that this alarm is set to this specific state (in
human-readable text format)public java.lang.String getStateReasonData()
Constraints:
Length: 0 - 4000
public void setStateReasonData(java.lang.String stateReasonData)
Constraints:
Length: 0 - 4000
stateReasonData - The reason that this alarm is set to this specific state (in
machine-readable JSON format)public SetAlarmStateRequest withStateReasonData(java.lang.String stateReasonData)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 4000
stateReasonData - The reason that this alarm is set to this specific state (in
machine-readable JSON format)public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object