public class CloudwatchAlarmAction
extends java.lang.Object
implements java.io.Serializable
Describes an action that updates a CloudWatch alarm.
Constructor and Description |
---|
CloudwatchAlarmAction() |
Modifier and Type | Method and Description |
---|---|
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.
|
public java.lang.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(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 CloudwatchAlarmAction withRoleArn(java.lang.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 java.lang.String getAlarmName()
The CloudWatch alarm name.
The CloudWatch alarm name.
public void setAlarmName(java.lang.String alarmName)
The CloudWatch alarm name.
alarmName
- The CloudWatch alarm name.
public CloudwatchAlarmAction withAlarmName(java.lang.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 java.lang.String getStateReason()
The reason for the alarm change.
The reason for the alarm change.
public void setStateReason(java.lang.String stateReason)
The reason for the alarm change.
stateReason
- The reason for the alarm change.
public CloudwatchAlarmAction withStateReason(java.lang.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 java.lang.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(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 CloudwatchAlarmAction withStateValue(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.