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()
The IAM role that allows access to the CloudWatch alarm.
The IAM role that allows access to the CloudWatch alarm.
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 CloudwatchAlarmAction withRoleArn(String roleArn)
The IAM role that allows access to the CloudWatch alarm.
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()
The CloudWatch alarm name.
The CloudWatch alarm name.
public void setAlarmName(String alarmName)
The CloudWatch alarm name.
alarmName - The CloudWatch alarm name.
public CloudwatchAlarmAction withAlarmName(String alarmName)
The CloudWatch alarm name.
Returns a reference to this object so that method calls can be chained together.
alarmName - The CloudWatch alarm name.
public String getStateReason()
The reason for the alarm change.
The reason for the alarm change.
public void setStateReason(String stateReason)
The reason for the alarm change.
stateReason - The reason for the alarm change.
public CloudwatchAlarmAction withStateReason(String stateReason)
The reason for the alarm change.
Returns a reference to this object so that method calls can be chained together.
stateReason - The reason for the alarm change.
public String getStateValue()
The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.
The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.
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 CloudwatchAlarmAction withStateValue(String stateValue)
The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.
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 © 2017. All rights reserved.