public class CloudwatchAlarmAction extends Object implements Serializable
Describes an action that updates a CloudWatch alarm.
| Constructor and Description |
|---|
CloudwatchAlarmAction() |
| Modifier and Type | Method and Description |
|---|---|
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 String getRoleArn()
public void setRoleArn(String roleArn)
roleArn - The IAM role that allows access to the CloudWatch alarm.public CloudwatchAlarmAction withRoleArn(String roleArn)
Returns a reference to this object so that method calls can be chained together.
roleArn - The IAM role that allows access to the CloudWatch alarm.public String getAlarmName()
public void setAlarmName(String alarmName)
alarmName - The CloudWatch alarm name.public CloudwatchAlarmAction withAlarmName(String alarmName)
Returns a reference to this object so that method calls can be chained together.
alarmName - The CloudWatch alarm name.public String getStateReason()
public void setStateReason(String stateReason)
stateReason - The reason for the alarm change.public CloudwatchAlarmAction withStateReason(String stateReason)
Returns a reference to this object so that method calls can be chained together.
stateReason - The reason for the alarm change.public String getStateValue()
public void setStateValue(String stateValue)
stateValue - The value of the alarm state. Acceptable values are: OK, ALARM,
INSUFFICIENT_DATA.public CloudwatchAlarmAction withStateValue(String stateValue)
Returns a reference to this object so that method calls can be chained together.
stateValue - The value of the alarm state. Acceptable values are: OK, ALARM,
INSUFFICIENT_DATA.public String toString()
toString in class ObjectObject.toString()Copyright © 2016. All rights reserved.