Class CfnDeploymentGroup.AutoRollbackConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup.AutoRollbackConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeploymentGroup.AutoRollbackConfigurationProperty>
- Enclosing interface:
CfnDeploymentGroup.AutoRollbackConfigurationProperty
@Stability(Stable)
public static final class CfnDeploymentGroup.AutoRollbackConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeploymentGroup.AutoRollbackConfigurationProperty>
A builder for
CfnDeploymentGroup.AutoRollbackConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnDeploymentGroup.AutoRollbackConfigurationProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnDeploymentGroup.AutoRollbackConfigurationProperty.getEnabled()Sets the value ofCfnDeploymentGroup.AutoRollbackConfigurationProperty.getEvents()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
@Stability(Stable) public CfnDeploymentGroup.AutoRollbackConfigurationProperty.Builder enabled(Boolean enabled) Sets the value ofCfnDeploymentGroup.AutoRollbackConfigurationProperty.getEnabled()- Parameters:
enabled- Indicates whether a defined automatic rollback configuration is currently enabled.- Returns:
this
-
enabled
@Stability(Stable) public CfnDeploymentGroup.AutoRollbackConfigurationProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnDeploymentGroup.AutoRollbackConfigurationProperty.getEnabled()- Parameters:
enabled- Indicates whether a defined automatic rollback configuration is currently enabled.- Returns:
this
-
events
@Stability(Stable) public CfnDeploymentGroup.AutoRollbackConfigurationProperty.Builder events(List<String> events) Sets the value ofCfnDeploymentGroup.AutoRollbackConfigurationProperty.getEvents()- Parameters:
events- The event type or types that trigger a rollback. Valid values areDEPLOYMENT_FAILURE,DEPLOYMENT_STOP_ON_ALARM, orDEPLOYMENT_STOP_ON_REQUEST.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDeploymentGroup.AutoRollbackConfigurationProperty>- Returns:
- a new instance of
CfnDeploymentGroup.AutoRollbackConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-