Class SetAlarmStateRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.cloudwatch.model.SetAlarmStateRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class SetAlarmStateRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description SetAlarmStateRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SetAlarmStateRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetAlarmName()The descriptive name for the alarm.StringgetStateReason()The reason that this alarm is set to this specific state (in human-readable text format)StringgetStateReasonData()The reason that this alarm is set to this specific state (in machine-readable JSON format)StringgetStateValue()The value of the state.inthashCode()voidsetAlarmName(String alarmName)The descriptive name for the alarm.voidsetStateReason(String stateReason)The reason that this alarm is set to this specific state (in human-readable text format)voidsetStateReasonData(String stateReasonData)The reason that this alarm is set to this specific state (in machine-readable JSON format)voidsetStateValue(StateValue stateValue)The value of the state.voidsetStateValue(String stateValue)The value of the state.StringtoString()Returns a string representation of this object; useful for testing and debugging.SetAlarmStateRequestwithAlarmName(String alarmName)The descriptive name for the alarm.SetAlarmStateRequestwithStateReason(String stateReason)The reason that this alarm is set to this specific state (in human-readable text format)SetAlarmStateRequestwithStateReasonData(String stateReasonData)The reason that this alarm is set to this specific state (in machine-readable JSON format)SetAlarmStateRequestwithStateValue(StateValue stateValue)The value of the state.SetAlarmStateRequestwithStateValue(String stateValue)The value of the state.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
-
-
-
Method Detail
-
setAlarmName
public void setAlarmName(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.
- Parameters:
alarmName- The descriptive name for the alarm. This name must be unique within the user's AWS account. The maximum length is 255 characters.
-
getAlarmName
public 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.
- Returns:
- The descriptive name for the alarm. This name must be unique within the user's AWS account. The maximum length is 255 characters.
-
withAlarmName
public SetAlarmStateRequest withAlarmName(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.
- Parameters:
alarmName- The descriptive name for the alarm. This name must be unique within the user's AWS account. The maximum length is 255 characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStateValue
public void setStateValue(String stateValue)
The value of the state.
- Parameters:
stateValue- The value of the state.- See Also:
StateValue
-
getStateValue
public String getStateValue()
The value of the state.
- Returns:
- The value of the state.
- See Also:
StateValue
-
withStateValue
public SetAlarmStateRequest withStateValue(String stateValue)
The value of the state.
- Parameters:
stateValue- The value of the state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
StateValue
-
setStateValue
public void setStateValue(StateValue stateValue)
The value of the state.
- Parameters:
stateValue- The value of the state.- See Also:
StateValue
-
withStateValue
public SetAlarmStateRequest withStateValue(StateValue stateValue)
The value of the state.
- Parameters:
stateValue- The value of the state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
StateValue
-
setStateReason
public void setStateReason(String stateReason)
The reason that this alarm is set to this specific state (in human-readable text format)
- Parameters:
stateReason- The reason that this alarm is set to this specific state (in human-readable text format)
-
getStateReason
public String getStateReason()
The reason that this alarm is set to this specific state (in human-readable text format)
- Returns:
- The reason that this alarm is set to this specific state (in human-readable text format)
-
withStateReason
public SetAlarmStateRequest withStateReason(String stateReason)
The reason that this alarm is set to this specific state (in human-readable text format)
- Parameters:
stateReason- The reason that this alarm is set to this specific state (in human-readable text format)- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStateReasonData
public void setStateReasonData(String stateReasonData)
The reason that this alarm is set to this specific state (in machine-readable JSON format)
- Parameters:
stateReasonData- The reason that this alarm is set to this specific state (in machine-readable JSON format)
-
getStateReasonData
public String getStateReasonData()
The reason that this alarm is set to this specific state (in machine-readable JSON format)
- Returns:
- The reason that this alarm is set to this specific state (in machine-readable JSON format)
-
withStateReasonData
public SetAlarmStateRequest withStateReasonData(String stateReasonData)
The reason that this alarm is set to this specific state (in machine-readable JSON format)
- Parameters:
stateReasonData- The reason that this alarm is set to this specific state (in machine-readable JSON format)- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SetAlarmStateRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-