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.

Namespace: Amazon.CloudWatch.Model
Assembly: AWSSDK (in AWSSDK.dll) Version: 1.4.10.0 (1.4.10.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public class SetAlarmStateRequest : AmazonWebServiceRequest
Public Class SetAlarmStateRequest _
	Inherits AmazonWebServiceRequest
public ref class SetAlarmStateRequest : public AmazonWebServiceRequest

Members

            
 All Members  Constructors   Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
SetAlarmStateRequest()()()()
Initializes a new instance of the SetAlarmStateRequest class
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

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
StateReason
The reason that this alarm is set to this specific state (in human-readable text format)

Constraints:

Length
0 - 1023

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

Constraints:

Length
0 - 4000

StateValue
The value of the state.

Constraints:

Allowed Values
OK, ALARM, INSUFFICIENT_DATA

ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
WithAlarmName(String)
Sets the AlarmName property
WithStateReason(String)
Sets the StateReason property
WithStateReasonData(String)
Sets the StateReasonData property
WithStateValue(String)
Sets the StateValue property

Inheritance Hierarchy

System..::..Object
  Amazon.Runtime..::..AmazonWebServiceRequest
    Amazon.CloudWatch.Model..::..SetAlarmStateRequest

See Also