com.amazonaws.services.cloudwatch.model
Class SetAlarmStateRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.cloudwatch.model.SetAlarmStateRequest

public class SetAlarmStateRequest
extends AmazonWebServiceRequest

Container for the parameters to the 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.

See Also:
AmazonCloudWatch.setAlarmState(SetAlarmStateRequest)

Constructor Summary
SetAlarmStateRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getAlarmName()
          The descriptive name for the alarm.
 String getStateReason()
          The reason that this alarm is set to this specific state (in human-readable text format)
 String getStateReasonData()
          The reason that this alarm is set to this specific state (in machine-readable JSON format)
 String getStateValue()
          The value of the state.
 int hashCode()
           
 void setAlarmName(String alarmName)
          The descriptive name for the alarm.
 void setStateReason(String stateReason)
          The reason that this alarm is set to this specific state (in human-readable text format)
 void setStateReasonData(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(String stateValue)
          The value of the state.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 SetAlarmStateRequest withAlarmName(String alarmName)
          The descriptive name for the alarm.
 SetAlarmStateRequest withStateReason(String stateReason)
          The reason that this alarm is set to this specific state (in human-readable text format)
 SetAlarmStateRequest withStateReasonData(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(String stateValue)
          The value of the state.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SetAlarmStateRequest

public SetAlarmStateRequest()
Method Detail

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.

Constraints:
Length: 1 - 255

Returns:
The descriptive name for the alarm. This name must be unique within the user's AWS account. The maximum length is 255 characters.

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.

Constraints:
Length: 1 - 255

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.

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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 255

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:
A reference to this updated object so that method calls can be chained together.

getStateValue

public String getStateValue()
The value of the state.

Constraints:
Allowed Values: OK, ALARM, INSUFFICIENT_DATA

Returns:
The value of the state.
See Also:
StateValue

setStateValue

public void setStateValue(String stateValue)
The value of the state.

Constraints:
Allowed Values: OK, ALARM, INSUFFICIENT_DATA

Parameters:
stateValue - The value of the state.
See Also:
StateValue

withStateValue

public SetAlarmStateRequest withStateValue(String stateValue)
The value of the state.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: OK, ALARM, INSUFFICIENT_DATA

Parameters:
stateValue - The value of the state.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
StateValue

setStateValue

public void setStateValue(StateValue stateValue)
The value of the state.

Constraints:
Allowed Values: OK, ALARM, INSUFFICIENT_DATA

Parameters:
stateValue - The value of the state.
See Also:
StateValue

withStateValue

public SetAlarmStateRequest withStateValue(StateValue stateValue)
The value of the state.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: OK, ALARM, INSUFFICIENT_DATA

Parameters:
stateValue - The value of the state.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
StateValue

getStateReason

public String getStateReason()
The reason that this alarm is set to this specific state (in human-readable text format)

Constraints:
Length: 0 - 1023

Returns:
The reason that this alarm is set to this specific state (in human-readable text format)

setStateReason

public void setStateReason(String stateReason)
The reason that this alarm is set to this specific state (in human-readable text format)

Constraints:
Length: 0 - 1023

Parameters:
stateReason - 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)

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 1023

Parameters:
stateReason - The reason that this alarm is set to this specific state (in human-readable text format)
Returns:
A reference to this updated object so that method calls can be chained together.

getStateReasonData

public String getStateReasonData()
The reason that this alarm is set to this specific state (in machine-readable JSON format)

Constraints:
Length: 0 - 4000

Returns:
The reason that this alarm is set to this specific state (in machine-readable JSON format)

setStateReasonData

public void setStateReasonData(String stateReasonData)
The reason that this alarm is set to this specific state (in machine-readable JSON format)

Constraints:
Length: 0 - 4000

Parameters:
stateReasonData - 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)

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 4000

Parameters:
stateReasonData - The reason that this alarm is set to this specific state (in machine-readable JSON format)
Returns:
A reference to this updated 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:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.