public static final class CfnDeploymentGroup.AutoRollbackConfigurationProperty.Builder
extends java.lang.Object
CfnDeploymentGroup.AutoRollbackConfigurationProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnDeploymentGroup.AutoRollbackConfigurationProperty |
build()
Builds the configured instance.
|
CfnDeploymentGroup.AutoRollbackConfigurationProperty.Builder |
enabled(java.lang.Boolean enabled)
Sets the value of
CfnDeploymentGroup.AutoRollbackConfigurationProperty.getEnabled() |
CfnDeploymentGroup.AutoRollbackConfigurationProperty.Builder |
enabled(IResolvable enabled)
Sets the value of
CfnDeploymentGroup.AutoRollbackConfigurationProperty.getEnabled() |
CfnDeploymentGroup.AutoRollbackConfigurationProperty.Builder |
events(java.util.List<java.lang.String> events)
Sets the value of
CfnDeploymentGroup.AutoRollbackConfigurationProperty.getEvents() |
public CfnDeploymentGroup.AutoRollbackConfigurationProperty.Builder enabled(java.lang.Boolean enabled)
CfnDeploymentGroup.AutoRollbackConfigurationProperty.getEnabled()
enabled
- Indicates whether a defined automatic rollback configuration is currently enabled.this
public CfnDeploymentGroup.AutoRollbackConfigurationProperty.Builder enabled(IResolvable enabled)
CfnDeploymentGroup.AutoRollbackConfigurationProperty.getEnabled()
enabled
- Indicates whether a defined automatic rollback configuration is currently enabled.this
public CfnDeploymentGroup.AutoRollbackConfigurationProperty.Builder events(java.util.List<java.lang.String> events)
CfnDeploymentGroup.AutoRollbackConfigurationProperty.getEvents()
events
- The event type or types that trigger a rollback.
Valid values are DEPLOYMENT_FAILURE
, DEPLOYMENT_STOP_ON_ALARM
, or DEPLOYMENT_STOP_ON_REQUEST
.this
public CfnDeploymentGroup.AutoRollbackConfigurationProperty build()
CfnDeploymentGroup.AutoRollbackConfigurationProperty
java.lang.NullPointerException
- if any required attribute was not provided