@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AlarmConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
The details for the CloudWatch alarm you want to apply to an automation or command.
Constructor and Description |
---|
AlarmConfiguration() |
Modifier and Type | Method and Description |
---|---|
AlarmConfiguration |
clone() |
boolean |
equals(Object obj) |
List<Alarm> |
getAlarms()
The name of the CloudWatch alarm specified in the configuration.
|
Boolean |
getIgnorePollAlarmFailure()
When this value is true, your automation or command continues to run in cases where we can’t retrieve
alarm status information from CloudWatch.
|
int |
hashCode() |
Boolean |
isIgnorePollAlarmFailure()
When this value is true, your automation or command continues to run in cases where we can’t retrieve
alarm status information from CloudWatch.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAlarms(Collection<Alarm> alarms)
The name of the CloudWatch alarm specified in the configuration.
|
void |
setIgnorePollAlarmFailure(Boolean ignorePollAlarmFailure)
When this value is true, your automation or command continues to run in cases where we can’t retrieve
alarm status information from CloudWatch.
|
String |
toString()
Returns a string representation of this object.
|
AlarmConfiguration |
withAlarms(Alarm... alarms)
The name of the CloudWatch alarm specified in the configuration.
|
AlarmConfiguration |
withAlarms(Collection<Alarm> alarms)
The name of the CloudWatch alarm specified in the configuration.
|
AlarmConfiguration |
withIgnorePollAlarmFailure(Boolean ignorePollAlarmFailure)
When this value is true, your automation or command continues to run in cases where we can’t retrieve
alarm status information from CloudWatch.
|
public void setIgnorePollAlarmFailure(Boolean ignorePollAlarmFailure)
When this value is true, your automation or command continues to run in cases where we can’t retrieve alarm status information from CloudWatch. In cases where we successfully retrieve an alarm status of OK or INSUFFICIENT_DATA, the automation or command continues to run, regardless of this value. Default is false.
ignorePollAlarmFailure
- When this value is true, your automation or command continues to run in cases where we can’t
retrieve alarm status information from CloudWatch. In cases where we successfully retrieve an alarm status
of OK or INSUFFICIENT_DATA, the automation or command continues to run, regardless of this value. Default
is false.public Boolean getIgnorePollAlarmFailure()
When this value is true, your automation or command continues to run in cases where we can’t retrieve alarm status information from CloudWatch. In cases where we successfully retrieve an alarm status of OK or INSUFFICIENT_DATA, the automation or command continues to run, regardless of this value. Default is false.
public AlarmConfiguration withIgnorePollAlarmFailure(Boolean ignorePollAlarmFailure)
When this value is true, your automation or command continues to run in cases where we can’t retrieve alarm status information from CloudWatch. In cases where we successfully retrieve an alarm status of OK or INSUFFICIENT_DATA, the automation or command continues to run, regardless of this value. Default is false.
ignorePollAlarmFailure
- When this value is true, your automation or command continues to run in cases where we can’t
retrieve alarm status information from CloudWatch. In cases where we successfully retrieve an alarm status
of OK or INSUFFICIENT_DATA, the automation or command continues to run, regardless of this value. Default
is false.public Boolean isIgnorePollAlarmFailure()
When this value is true, your automation or command continues to run in cases where we can’t retrieve alarm status information from CloudWatch. In cases where we successfully retrieve an alarm status of OK or INSUFFICIENT_DATA, the automation or command continues to run, regardless of this value. Default is false.
public List<Alarm> getAlarms()
The name of the CloudWatch alarm specified in the configuration.
public void setAlarms(Collection<Alarm> alarms)
The name of the CloudWatch alarm specified in the configuration.
alarms
- The name of the CloudWatch alarm specified in the configuration.public AlarmConfiguration withAlarms(Alarm... alarms)
The name of the CloudWatch alarm specified in the configuration.
NOTE: This method appends the values to the existing list (if any). Use
setAlarms(java.util.Collection)
or withAlarms(java.util.Collection)
if you want to override the
existing values.
alarms
- The name of the CloudWatch alarm specified in the configuration.public AlarmConfiguration withAlarms(Collection<Alarm> alarms)
The name of the CloudWatch alarm specified in the configuration.
alarms
- The name of the CloudWatch alarm specified in the configuration.public String toString()
toString
in class Object
Object.toString()
public AlarmConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.