Class DeploymentCircuitBreaker.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.DeploymentCircuitBreaker.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DeploymentCircuitBreaker>
- Enclosing interface:
DeploymentCircuitBreaker
@Stability(Stable)
public static final class DeploymentCircuitBreaker.Builder
extends Object
implements software.amazon.jsii.Builder<DeploymentCircuitBreaker>
A builder for
DeploymentCircuitBreaker-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofDeploymentCircuitBreaker.getEnable()Sets the value ofDeploymentCircuitBreaker.getRollback()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enable
Sets the value ofDeploymentCircuitBreaker.getEnable()- Parameters:
enable- Whether to enable the deployment circuit breaker logic.- Returns:
this
-
rollback
Sets the value ofDeploymentCircuitBreaker.getRollback()- Parameters:
rollback- Whether to enable rollback on deployment failure.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DeploymentCircuitBreaker>- Returns:
- a new instance of
DeploymentCircuitBreaker - Throws:
NullPointerException- if any required attribute was not provided
-