Class CfnServicePropsMixin.DeploymentCircuitBreakerProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ecs.CfnServicePropsMixin.DeploymentCircuitBreakerProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServicePropsMixin.DeploymentCircuitBreakerProperty>
- Enclosing interface:
CfnServicePropsMixin.DeploymentCircuitBreakerProperty
@Stability(Stable)
public static final class CfnServicePropsMixin.DeploymentCircuitBreakerProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServicePropsMixin.DeploymentCircuitBreakerProperty>
A builder for
CfnServicePropsMixin.DeploymentCircuitBreakerProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnServicePropsMixin.DeploymentCircuitBreakerProperty.getEnable()enable(IResolvable enable) Sets the value ofCfnServicePropsMixin.DeploymentCircuitBreakerProperty.getEnable()Sets the value ofCfnServicePropsMixin.DeploymentCircuitBreakerProperty.getRollback()rollback(IResolvable rollback) Sets the value ofCfnServicePropsMixin.DeploymentCircuitBreakerProperty.getRollback()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enable
@Stability(Stable) public CfnServicePropsMixin.DeploymentCircuitBreakerProperty.Builder enable(Boolean enable) Sets the value ofCfnServicePropsMixin.DeploymentCircuitBreakerProperty.getEnable()- Parameters:
enable- Determines whether to use the deployment circuit breaker logic for the service.- Returns:
this
-
enable
@Stability(Stable) public CfnServicePropsMixin.DeploymentCircuitBreakerProperty.Builder enable(IResolvable enable) Sets the value ofCfnServicePropsMixin.DeploymentCircuitBreakerProperty.getEnable()- Parameters:
enable- Determines whether to use the deployment circuit breaker logic for the service.- Returns:
this
-
rollback
@Stability(Stable) public CfnServicePropsMixin.DeploymentCircuitBreakerProperty.Builder rollback(Boolean rollback) Sets the value ofCfnServicePropsMixin.DeploymentCircuitBreakerProperty.getRollback()- Parameters:
rollback- Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. If rollback is on, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.- Returns:
this
-
rollback
@Stability(Stable) public CfnServicePropsMixin.DeploymentCircuitBreakerProperty.Builder rollback(IResolvable rollback) Sets the value ofCfnServicePropsMixin.DeploymentCircuitBreakerProperty.getRollback()- Parameters:
rollback- Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. If rollback is on, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServicePropsMixin.DeploymentCircuitBreakerProperty>- Returns:
- a new instance of
CfnServicePropsMixin.DeploymentCircuitBreakerProperty - Throws:
NullPointerException- if any required attribute was not provided
-