@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CompositeAlarm extends Object implements Serializable, Cloneable
The details about a composite alarm.
Constructor and Description |
---|
CompositeAlarm() |
Modifier and Type | Method and Description |
---|---|
CompositeAlarm |
clone() |
boolean |
equals(Object obj) |
Boolean |
getActionsEnabled()
Indicates whether actions should be executed during any changes to the alarm state.
|
List<String> |
getAlarmActions()
The actions to execute when this alarm transitions to the ALARM state from any other state.
|
String |
getAlarmArn()
The Amazon Resource Name (ARN) of the alarm.
|
Date |
getAlarmConfigurationUpdatedTimestamp()
The time stamp of the last update to the alarm configuration.
|
String |
getAlarmDescription()
The description of the alarm.
|
String |
getAlarmName()
The name of the alarm.
|
String |
getAlarmRule()
The rule that this alarm uses to evaluate its alarm state.
|
List<String> |
getInsufficientDataActions()
The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state.
|
List<String> |
getOKActions()
The actions to execute when this alarm transitions to the OK state from any other state.
|
String |
getStateReason()
An explanation for the alarm state, in text format.
|
String |
getStateReasonData()
An explanation for the alarm state, in JSON format.
|
Date |
getStateUpdatedTimestamp()
The time stamp of the last update to the alarm state.
|
String |
getStateValue()
The state value for the alarm.
|
int |
hashCode() |
Boolean |
isActionsEnabled()
Indicates whether actions should be executed during any changes to the alarm state.
|
void |
setActionsEnabled(Boolean actionsEnabled)
Indicates whether actions should be executed during any changes to the alarm state.
|
void |
setAlarmActions(Collection<String> alarmActions)
The actions to execute when this alarm transitions to the ALARM state from any other state.
|
void |
setAlarmArn(String alarmArn)
The Amazon Resource Name (ARN) of the alarm.
|
void |
setAlarmConfigurationUpdatedTimestamp(Date alarmConfigurationUpdatedTimestamp)
The time stamp of the last update to the alarm configuration.
|
void |
setAlarmDescription(String alarmDescription)
The description of the alarm.
|
void |
setAlarmName(String alarmName)
The name of the alarm.
|
void |
setAlarmRule(String alarmRule)
The rule that this alarm uses to evaluate its alarm state.
|
void |
setInsufficientDataActions(Collection<String> insufficientDataActions)
The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state.
|
void |
setOKActions(Collection<String> oKActions)
The actions to execute when this alarm transitions to the OK state from any other state.
|
void |
setStateReason(String stateReason)
An explanation for the alarm state, in text format.
|
void |
setStateReasonData(String stateReasonData)
An explanation for the alarm state, in JSON format.
|
void |
setStateUpdatedTimestamp(Date stateUpdatedTimestamp)
The time stamp of the last update to the alarm state.
|
void |
setStateValue(String stateValue)
The state value for the alarm.
|
String |
toString()
Returns a string representation of this object.
|
CompositeAlarm |
withActionsEnabled(Boolean actionsEnabled)
Indicates whether actions should be executed during any changes to the alarm state.
|
CompositeAlarm |
withAlarmActions(Collection<String> alarmActions)
The actions to execute when this alarm transitions to the ALARM state from any other state.
|
CompositeAlarm |
withAlarmActions(String... alarmActions)
The actions to execute when this alarm transitions to the ALARM state from any other state.
|
CompositeAlarm |
withAlarmArn(String alarmArn)
The Amazon Resource Name (ARN) of the alarm.
|
CompositeAlarm |
withAlarmConfigurationUpdatedTimestamp(Date alarmConfigurationUpdatedTimestamp)
The time stamp of the last update to the alarm configuration.
|
CompositeAlarm |
withAlarmDescription(String alarmDescription)
The description of the alarm.
|
CompositeAlarm |
withAlarmName(String alarmName)
The name of the alarm.
|
CompositeAlarm |
withAlarmRule(String alarmRule)
The rule that this alarm uses to evaluate its alarm state.
|
CompositeAlarm |
withInsufficientDataActions(Collection<String> insufficientDataActions)
The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state.
|
CompositeAlarm |
withInsufficientDataActions(String... insufficientDataActions)
The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state.
|
CompositeAlarm |
withOKActions(Collection<String> oKActions)
The actions to execute when this alarm transitions to the OK state from any other state.
|
CompositeAlarm |
withOKActions(String... oKActions)
The actions to execute when this alarm transitions to the OK state from any other state.
|
CompositeAlarm |
withStateReason(String stateReason)
An explanation for the alarm state, in text format.
|
CompositeAlarm |
withStateReasonData(String stateReasonData)
An explanation for the alarm state, in JSON format.
|
CompositeAlarm |
withStateUpdatedTimestamp(Date stateUpdatedTimestamp)
The time stamp of the last update to the alarm state.
|
CompositeAlarm |
withStateValue(StateValue stateValue)
The state value for the alarm.
|
CompositeAlarm |
withStateValue(String stateValue)
The state value for the alarm.
|
public void setActionsEnabled(Boolean actionsEnabled)
Indicates whether actions should be executed during any changes to the alarm state.
actionsEnabled
- Indicates whether actions should be executed during any changes to the alarm state.public Boolean getActionsEnabled()
Indicates whether actions should be executed during any changes to the alarm state.
public CompositeAlarm withActionsEnabled(Boolean actionsEnabled)
Indicates whether actions should be executed during any changes to the alarm state.
actionsEnabled
- Indicates whether actions should be executed during any changes to the alarm state.public Boolean isActionsEnabled()
Indicates whether actions should be executed during any changes to the alarm state.
public List<String> getAlarmActions()
The actions to execute when this alarm transitions to the ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN).
public void setAlarmActions(Collection<String> alarmActions)
The actions to execute when this alarm transitions to the ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN).
alarmActions
- The actions to execute when this alarm transitions to the ALARM state from any other state. Each action is
specified as an Amazon Resource Name (ARN).public CompositeAlarm withAlarmActions(String... alarmActions)
The actions to execute when this alarm transitions to the ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN).
NOTE: This method appends the values to the existing list (if any). Use
setAlarmActions(java.util.Collection)
or withAlarmActions(java.util.Collection)
if you want to
override the existing values.
alarmActions
- The actions to execute when this alarm transitions to the ALARM state from any other state. Each action is
specified as an Amazon Resource Name (ARN).public CompositeAlarm withAlarmActions(Collection<String> alarmActions)
The actions to execute when this alarm transitions to the ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN).
alarmActions
- The actions to execute when this alarm transitions to the ALARM state from any other state. Each action is
specified as an Amazon Resource Name (ARN).public void setAlarmArn(String alarmArn)
The Amazon Resource Name (ARN) of the alarm.
alarmArn
- The Amazon Resource Name (ARN) of the alarm.public String getAlarmArn()
The Amazon Resource Name (ARN) of the alarm.
public CompositeAlarm withAlarmArn(String alarmArn)
The Amazon Resource Name (ARN) of the alarm.
alarmArn
- The Amazon Resource Name (ARN) of the alarm.public void setAlarmConfigurationUpdatedTimestamp(Date alarmConfigurationUpdatedTimestamp)
The time stamp of the last update to the alarm configuration.
alarmConfigurationUpdatedTimestamp
- The time stamp of the last update to the alarm configuration.public Date getAlarmConfigurationUpdatedTimestamp()
The time stamp of the last update to the alarm configuration.
public CompositeAlarm withAlarmConfigurationUpdatedTimestamp(Date alarmConfigurationUpdatedTimestamp)
The time stamp of the last update to the alarm configuration.
alarmConfigurationUpdatedTimestamp
- The time stamp of the last update to the alarm configuration.public void setAlarmDescription(String alarmDescription)
The description of the alarm.
alarmDescription
- The description of the alarm.public String getAlarmDescription()
The description of the alarm.
public CompositeAlarm withAlarmDescription(String alarmDescription)
The description of the alarm.
alarmDescription
- The description of the alarm.public void setAlarmName(String alarmName)
The name of the alarm.
alarmName
- The name of the alarm.public String getAlarmName()
The name of the alarm.
public CompositeAlarm withAlarmName(String alarmName)
The name of the alarm.
alarmName
- The name of the alarm.public void setAlarmRule(String alarmRule)
The rule that this alarm uses to evaluate its alarm state.
alarmRule
- The rule that this alarm uses to evaluate its alarm state.public String getAlarmRule()
The rule that this alarm uses to evaluate its alarm state.
public CompositeAlarm withAlarmRule(String alarmRule)
The rule that this alarm uses to evaluate its alarm state.
alarmRule
- The rule that this alarm uses to evaluate its alarm state.public List<String> getInsufficientDataActions()
The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).
public void setInsufficientDataActions(Collection<String> insufficientDataActions)
The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).
insufficientDataActions
- The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state.
Each action is specified as an Amazon Resource Name (ARN).public CompositeAlarm withInsufficientDataActions(String... insufficientDataActions)
The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).
NOTE: This method appends the values to the existing list (if any). Use
setInsufficientDataActions(java.util.Collection)
or
withInsufficientDataActions(java.util.Collection)
if you want to override the existing values.
insufficientDataActions
- The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state.
Each action is specified as an Amazon Resource Name (ARN).public CompositeAlarm withInsufficientDataActions(Collection<String> insufficientDataActions)
The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).
insufficientDataActions
- The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state.
Each action is specified as an Amazon Resource Name (ARN).public List<String> getOKActions()
The actions to execute when this alarm transitions to the OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).
public void setOKActions(Collection<String> oKActions)
The actions to execute when this alarm transitions to the OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).
oKActions
- The actions to execute when this alarm transitions to the OK state from any other state. Each action is
specified as an Amazon Resource Name (ARN).public CompositeAlarm withOKActions(String... oKActions)
The actions to execute when this alarm transitions to the OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).
NOTE: This method appends the values to the existing list (if any). Use
setOKActions(java.util.Collection)
or withOKActions(java.util.Collection)
if you want to
override the existing values.
oKActions
- The actions to execute when this alarm transitions to the OK state from any other state. Each action is
specified as an Amazon Resource Name (ARN).public CompositeAlarm withOKActions(Collection<String> oKActions)
The actions to execute when this alarm transitions to the OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).
oKActions
- The actions to execute when this alarm transitions to the OK state from any other state. Each action is
specified as an Amazon Resource Name (ARN).public void setStateReason(String stateReason)
An explanation for the alarm state, in text format.
stateReason
- An explanation for the alarm state, in text format.public String getStateReason()
An explanation for the alarm state, in text format.
public CompositeAlarm withStateReason(String stateReason)
An explanation for the alarm state, in text format.
stateReason
- An explanation for the alarm state, in text format.public void setStateReasonData(String stateReasonData)
An explanation for the alarm state, in JSON format.
stateReasonData
- An explanation for the alarm state, in JSON format.public String getStateReasonData()
An explanation for the alarm state, in JSON format.
public CompositeAlarm withStateReasonData(String stateReasonData)
An explanation for the alarm state, in JSON format.
stateReasonData
- An explanation for the alarm state, in JSON format.public void setStateUpdatedTimestamp(Date stateUpdatedTimestamp)
The time stamp of the last update to the alarm state.
stateUpdatedTimestamp
- The time stamp of the last update to the alarm state.public Date getStateUpdatedTimestamp()
The time stamp of the last update to the alarm state.
public CompositeAlarm withStateUpdatedTimestamp(Date stateUpdatedTimestamp)
The time stamp of the last update to the alarm state.
stateUpdatedTimestamp
- The time stamp of the last update to the alarm state.public void setStateValue(String stateValue)
The state value for the alarm.
stateValue
- The state value for the alarm.StateValue
public String getStateValue()
The state value for the alarm.
StateValue
public CompositeAlarm withStateValue(String stateValue)
The state value for the alarm.
stateValue
- The state value for the alarm.StateValue
public CompositeAlarm withStateValue(StateValue stateValue)
The state value for the alarm.
stateValue
- The state value for the alarm.StateValue
public String toString()
toString
in class Object
Object.toString()
public CompositeAlarm clone()
Copyright © 2022. All rights reserved.