Package com.amazonaws.services.iot.model
Class CloudwatchAlarmAction
- java.lang.Object
-
- com.amazonaws.services.iot.model.CloudwatchAlarmAction
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class CloudwatchAlarmAction extends Object implements Serializable, Cloneable
Describes an action that updates a CloudWatch alarm.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CloudwatchAlarmAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudwatchAlarmAction
clone()
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.
-
-
-
Method Detail
-
setRoleArn
public void setRoleArn(String roleArn)
The IAM role that allows access to the CloudWatch alarm.
- Parameters:
roleArn
- The IAM role that allows access to the CloudWatch alarm.
-
getRoleArn
public String getRoleArn()
The IAM role that allows access to the CloudWatch alarm.
- Returns:
- The IAM role that allows access to the CloudWatch alarm.
-
withRoleArn
public CloudwatchAlarmAction withRoleArn(String roleArn)
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
public void setAlarmName(String alarmName)
The CloudWatch alarm name.
- Parameters:
alarmName
- The CloudWatch alarm name.
-
getAlarmName
public String getAlarmName()
The CloudWatch alarm name.
- Returns:
- The CloudWatch alarm name.
-
withAlarmName
public CloudwatchAlarmAction withAlarmName(String alarmName)
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
public void setStateReason(String stateReason)
The reason for the alarm change.
- Parameters:
stateReason
- The reason for the alarm change.
-
getStateReason
public String getStateReason()
The reason for the alarm change.
- Returns:
- The reason for the alarm change.
-
withStateReason
public CloudwatchAlarmAction withStateReason(String stateReason)
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
public void setStateValue(String stateValue)
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
public String 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
public CloudwatchAlarmAction withStateValue(String stateValue)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CloudwatchAlarmAction clone()
-
-