public static final class CfnDeploymentGroup.AlarmConfigurationProperty.Builder
extends java.lang.Object
CfnDeploymentGroup.AlarmConfigurationProperty
Constructor and Description |
---|
Builder() |
public CfnDeploymentGroup.AlarmConfigurationProperty.Builder alarms(IResolvable alarms)
CfnDeploymentGroup.AlarmConfigurationProperty.getAlarms()
alarms
- A list of alarms configured for the deployment or deployment group.
A maximum of 10 alarms can be added.this
public CfnDeploymentGroup.AlarmConfigurationProperty.Builder alarms(java.util.List<? extends java.lang.Object> alarms)
CfnDeploymentGroup.AlarmConfigurationProperty.getAlarms()
alarms
- A list of alarms configured for the deployment or deployment group.
A maximum of 10 alarms can be added.this
public CfnDeploymentGroup.AlarmConfigurationProperty.Builder enabled(java.lang.Boolean enabled)
CfnDeploymentGroup.AlarmConfigurationProperty.getEnabled()
enabled
- Indicates whether the alarm configuration is enabled.this
public CfnDeploymentGroup.AlarmConfigurationProperty.Builder enabled(IResolvable enabled)
CfnDeploymentGroup.AlarmConfigurationProperty.getEnabled()
enabled
- Indicates whether the alarm configuration is enabled.this
public CfnDeploymentGroup.AlarmConfigurationProperty.Builder ignorePollAlarmFailure(java.lang.Boolean ignorePollAlarmFailure)
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 CloudWatch .false
: The deployment stops if alarm status information can't be retrieved from CloudWatch .this
public CfnDeploymentGroup.AlarmConfigurationProperty.Builder ignorePollAlarmFailure(IResolvable ignorePollAlarmFailure)
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 CloudWatch .false
: The deployment stops if alarm status information can't be retrieved from CloudWatch .this
public CfnDeploymentGroup.AlarmConfigurationProperty build()
CfnDeploymentGroup.AlarmConfigurationProperty
java.lang.NullPointerException
- if any required attribute was not provided