@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AlarmConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Information about alarms associated with a deployment or deployment group.
Constructor and Description |
---|
AlarmConfiguration() |
Modifier and Type | Method and Description |
---|---|
AlarmConfiguration |
clone() |
boolean |
equals(Object obj) |
List<Alarm> |
getAlarms()
A list of alarms configured for the deployment or deployment group.
|
Boolean |
getEnabled()
Indicates whether the alarm configuration is enabled.
|
Boolean |
getIgnorePollAlarmFailure()
Indicates whether a deployment should continue if information about the current state of alarms cannot be
retrieved from Amazon CloudWatch.
|
int |
hashCode() |
Boolean |
isEnabled()
Indicates whether the alarm configuration is enabled.
|
Boolean |
isIgnorePollAlarmFailure()
Indicates whether a deployment should continue if information about the current state of alarms cannot be
retrieved from Amazon CloudWatch.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAlarms(Collection<Alarm> alarms)
A list of alarms configured for the deployment or deployment group.
|
void |
setEnabled(Boolean enabled)
Indicates whether the alarm configuration is enabled.
|
void |
setIgnorePollAlarmFailure(Boolean ignorePollAlarmFailure)
Indicates whether a deployment should continue if information about the current state of alarms cannot be
retrieved from Amazon CloudWatch.
|
String |
toString()
Returns a string representation of this object.
|
AlarmConfiguration |
withAlarms(Alarm... alarms)
A list of alarms configured for the deployment or deployment group.
|
AlarmConfiguration |
withAlarms(Collection<Alarm> alarms)
A list of alarms configured for the deployment or deployment group.
|
AlarmConfiguration |
withEnabled(Boolean enabled)
Indicates whether the alarm configuration is enabled.
|
AlarmConfiguration |
withIgnorePollAlarmFailure(Boolean ignorePollAlarmFailure)
Indicates whether a deployment should continue if information about the current state of alarms cannot be
retrieved from Amazon CloudWatch.
|
public void setEnabled(Boolean enabled)
Indicates whether the alarm configuration is enabled.
enabled
- Indicates whether the alarm configuration is enabled.public Boolean getEnabled()
Indicates whether the alarm configuration is enabled.
public AlarmConfiguration withEnabled(Boolean enabled)
Indicates whether the alarm configuration is enabled.
enabled
- Indicates whether the alarm configuration is enabled.public Boolean isEnabled()
Indicates whether the alarm configuration is enabled.
public void setIgnorePollAlarmFailure(Boolean ignorePollAlarmFailure)
Indicates whether a deployment should continue if information about the current state of alarms cannot be retrieved from Amazon CloudWatch. The default value is false.
true
: The deployment proceeds even if alarm status information can't be retrieved from Amazon
CloudWatch.
false
: The deployment stops if alarm status information can't be retrieved from Amazon CloudWatch.
ignorePollAlarmFailure
- Indicates whether a deployment should continue if information about the current state of alarms cannot be
retrieved from Amazon CloudWatch. The default value is false.
true
: The deployment proceeds even if alarm status information can't be retrieved from Amazon
CloudWatch.
false
: The deployment stops if alarm status information can't be retrieved from Amazon
CloudWatch.
public Boolean getIgnorePollAlarmFailure()
Indicates whether a deployment should continue if information about the current state of alarms cannot be retrieved from Amazon CloudWatch. The default value is false.
true
: The deployment proceeds even if alarm status information can't be retrieved from Amazon
CloudWatch.
false
: The deployment stops if alarm status information can't be retrieved from Amazon CloudWatch.
true
: The deployment proceeds even if alarm status information can't be retrieved from
Amazon CloudWatch.
false
: The deployment stops if alarm status information can't be retrieved from Amazon
CloudWatch.
public AlarmConfiguration withIgnorePollAlarmFailure(Boolean ignorePollAlarmFailure)
Indicates whether a deployment should continue if information about the current state of alarms cannot be retrieved from Amazon CloudWatch. The default value is false.
true
: The deployment proceeds even if alarm status information can't be retrieved from Amazon
CloudWatch.
false
: The deployment stops if alarm status information can't be retrieved from Amazon CloudWatch.
ignorePollAlarmFailure
- Indicates whether a deployment should continue if information about the current state of alarms cannot be
retrieved from Amazon CloudWatch. The default value is false.
true
: The deployment proceeds even if alarm status information can't be retrieved from Amazon
CloudWatch.
false
: The deployment stops if alarm status information can't be retrieved from Amazon
CloudWatch.
public Boolean isIgnorePollAlarmFailure()
Indicates whether a deployment should continue if information about the current state of alarms cannot be retrieved from Amazon CloudWatch. The default value is false.
true
: The deployment proceeds even if alarm status information can't be retrieved from Amazon
CloudWatch.
false
: The deployment stops if alarm status information can't be retrieved from Amazon CloudWatch.
true
: The deployment proceeds even if alarm status information can't be retrieved from
Amazon CloudWatch.
false
: The deployment stops if alarm status information can't be retrieved from Amazon
CloudWatch.
public List<Alarm> getAlarms()
A list of alarms configured for the deployment or deployment group. A maximum of 10 alarms can be added.
public void setAlarms(Collection<Alarm> alarms)
A list of alarms configured for the deployment or deployment group. A maximum of 10 alarms can be added.
alarms
- A list of alarms configured for the deployment or deployment group. A maximum of 10 alarms can be added.public AlarmConfiguration withAlarms(Alarm... alarms)
A list of alarms configured for the deployment or deployment group. A maximum of 10 alarms can be added.
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
- A list of alarms configured for the deployment or deployment group. A maximum of 10 alarms can be added.public AlarmConfiguration withAlarms(Collection<Alarm> alarms)
A list of alarms configured for the deployment or deployment group. A maximum of 10 alarms can be added.
alarms
- A list of alarms configured for the deployment or deployment group. A maximum of 10 alarms can be added.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.