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