Package com.amazonaws.services.iot.model
Class CloudwatchAlarmAction
java.lang.Object
com.amazonaws.services.iot.model.CloudwatchAlarmAction
- All Implemented Interfaces:
Serializable
,Cloneable
Describes an action that updates a CloudWatch alarm.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The CloudWatch alarm name.The IAM role that allows access to the CloudWatch alarm.The reason for the alarm change.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.toString()
Returns a string representation of this object; useful for testing and debugging.withAlarmName
(String alarmName) The CloudWatch alarm name.withRoleArn
(String roleArn) The IAM role that allows access to the CloudWatch alarm.withStateReason
(String stateReason) The reason for the alarm change.withStateValue
(String stateValue) The value of the alarm state.
-
Constructor Details
-
CloudwatchAlarmAction
public CloudwatchAlarmAction()
-
-
Method Details
-
setRoleArn
The IAM role that allows access to the CloudWatch alarm.
- Parameters:
roleArn
- The IAM role that allows access to the CloudWatch alarm.
-
getRoleArn
The IAM role that allows access to the CloudWatch alarm.
- Returns:
- The IAM role that allows access to the CloudWatch alarm.
-
withRoleArn
The IAM role that allows access to the CloudWatch alarm.
- Parameters:
roleArn
- The IAM role that allows access to the CloudWatch alarm.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAlarmName
The CloudWatch alarm name.
- Parameters:
alarmName
- The CloudWatch alarm name.
-
getAlarmName
The CloudWatch alarm name.
- Returns:
- The CloudWatch alarm name.
-
withAlarmName
The CloudWatch alarm name.
- Parameters:
alarmName
- The CloudWatch alarm name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStateReason
The reason for the alarm change.
- Parameters:
stateReason
- The reason for the alarm change.
-
getStateReason
The reason for the alarm change.
- Returns:
- The reason for the alarm change.
-
withStateReason
The reason for the alarm change.
- Parameters:
stateReason
- The reason for the alarm change.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStateValue
The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.
- Parameters:
stateValue
- The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.
-
getStateValue
The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.
- Returns:
- The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.
-
withStateValue
The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.
- Parameters:
stateValue
- The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-