@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()
If you specify
true for this value, your automation or command continue to run even if we can't
gather information about the state of your CloudWatch alarm. |
int |
hashCode() |
Boolean |
isIgnorePollAlarmFailure()
If you specify
true for this value, your automation or command continue to run even if we can't
gather information about the state of your CloudWatch alarm. |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setAlarms(Collection<Alarm> alarms)
The name of the CloudWatch alarm specified in the configuration.
|
void |
setIgnorePollAlarmFailure(Boolean ignorePollAlarmFailure)
If you specify
true for this value, your automation or command continue to run even if we can't
gather information about the state of your CloudWatch alarm. |
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)
If you specify
true for this value, your automation or command continue to run even if we can't
gather information about the state of your CloudWatch alarm. |
public void setIgnorePollAlarmFailure(Boolean ignorePollAlarmFailure)
If you specify true
for this value, your automation or command continue to run even if we can't
gather information about the state of your CloudWatch alarm. The default value is false
.
ignorePollAlarmFailure
- If you specify true
for this value, your automation or command continue to run even if we
can't gather information about the state of your CloudWatch alarm. The default value is false
.public Boolean getIgnorePollAlarmFailure()
If you specify true
for this value, your automation or command continue to run even if we can't
gather information about the state of your CloudWatch alarm. The default value is false
.
true
for this value, your automation or command continue to run even if we
can't gather information about the state of your CloudWatch alarm. The default value is
false
.public AlarmConfiguration withIgnorePollAlarmFailure(Boolean ignorePollAlarmFailure)
If you specify true
for this value, your automation or command continue to run even if we can't
gather information about the state of your CloudWatch alarm. The default value is false
.
ignorePollAlarmFailure
- If you specify true
for this value, your automation or command continue to run even if we
can't gather information about the state of your CloudWatch alarm. The default value is false
.public Boolean isIgnorePollAlarmFailure()
If you specify true
for this value, your automation or command continue to run even if we can't
gather information about the state of your CloudWatch alarm. The default value is false
.
true
for this value, your automation or command continue to run even if we
can't gather information about the state of your CloudWatch alarm. The default value 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)
marshall
in interface StructuredPojo
Copyright © 2022. All rights reserved.