public class CloudwatchAlarmAction extends Object implements Serializable, Cloneable
Describes an action that updates a CloudWatch alarm.
Constructor and Description |
---|
CloudwatchAlarmAction() |
Modifier and Type | Method and Description |
---|---|
CloudwatchAlarmAction |
clone() |
boolean |
equals(Object obj) |
String |
getAlarmName()
The CloudWatch alarm name.
|
String |
getRoleArn()
The IAM role that allows access to the CloudWatch alarm.
|
String |
getStateReason()
The reason for the alarm change.
|
String |
getStateValue()
The value of the alarm state.
|
int |
hashCode() |
void |
setAlarmName(String alarmName)
The CloudWatch alarm name.
|
void |
setRoleArn(String roleArn)
The IAM role that allows access to the CloudWatch alarm.
|
void |
setStateReason(String stateReason)
The reason for the alarm change.
|
void |
setStateValue(String stateValue)
The value of the alarm state.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CloudwatchAlarmAction |
withAlarmName(String alarmName)
The CloudWatch alarm name.
|
CloudwatchAlarmAction |
withRoleArn(String roleArn)
The IAM role that allows access to the CloudWatch alarm.
|
CloudwatchAlarmAction |
withStateReason(String stateReason)
The reason for the alarm change.
|
CloudwatchAlarmAction |
withStateValue(String stateValue)
The value of the alarm state.
|
public void setRoleArn(String roleArn)
The IAM role that allows access to the CloudWatch alarm.
roleArn
- The IAM role that allows access to the CloudWatch alarm.public String getRoleArn()
The IAM role that allows access to the CloudWatch alarm.
public CloudwatchAlarmAction withRoleArn(String roleArn)
The IAM role that allows access to the CloudWatch alarm.
roleArn
- The IAM role that allows access to the CloudWatch alarm.public void setAlarmName(String alarmName)
The CloudWatch alarm name.
alarmName
- The CloudWatch alarm name.public String getAlarmName()
The CloudWatch alarm name.
public CloudwatchAlarmAction withAlarmName(String alarmName)
The CloudWatch alarm name.
alarmName
- The CloudWatch alarm name.public void setStateReason(String stateReason)
The reason for the alarm change.
stateReason
- The reason for the alarm change.public String getStateReason()
The reason for the alarm change.
public CloudwatchAlarmAction withStateReason(String stateReason)
The reason for the alarm change.
stateReason
- The reason for the alarm change.public void setStateValue(String stateValue)
The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.
stateValue
- The value of the alarm state. Acceptable values are: OK, ALARM,
INSUFFICIENT_DATA.public String getStateValue()
The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.
public CloudwatchAlarmAction withStateValue(String stateValue)
The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.
stateValue
- The value of the alarm state. Acceptable values are: OK, ALARM,
INSUFFICIENT_DATA.public String toString()
toString
in class Object
Object.toString()
public CloudwatchAlarmAction clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.