Class AutoRollbackConfig.Builder
java.lang.Object
software.amazon.awscdk.services.codedeploy.AutoRollbackConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AutoRollbackConfig>
- Enclosing interface:
- AutoRollbackConfig
@Stability(Stable)
public static final class AutoRollbackConfig.Builder
extends Object
implements software.amazon.jsii.Builder<AutoRollbackConfig>
A builder for
AutoRollbackConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.deploymentInAlarm(Boolean deploymentInAlarm) Sets the value ofAutoRollbackConfig.getDeploymentInAlarm()failedDeployment(Boolean failedDeployment) Sets the value ofAutoRollbackConfig.getFailedDeployment()stoppedDeployment(Boolean stoppedDeployment) Sets the value ofAutoRollbackConfig.getStoppedDeployment()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deploymentInAlarm
Sets the value ofAutoRollbackConfig.getDeploymentInAlarm()- Parameters:
deploymentInAlarm- Whether to automatically roll back a deployment during which one of the configured CloudWatch alarms for this Deployment Group went off.- Returns:
this
-
failedDeployment
Sets the value ofAutoRollbackConfig.getFailedDeployment()- Parameters:
failedDeployment- Whether to automatically roll back a deployment that fails.- Returns:
this
-
stoppedDeployment
Sets the value ofAutoRollbackConfig.getStoppedDeployment()- Parameters:
stoppedDeployment- Whether to automatically roll back a deployment that was manually stopped.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AutoRollbackConfig>- Returns:
- a new instance of
AutoRollbackConfig - Throws:
NullPointerException- if any required attribute was not provided
-