Class DeploymentStrategyProps.Builder
java.lang.Object
software.amazon.awscdk.services.appconfig.DeploymentStrategyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DeploymentStrategyProps>
- Enclosing interface:
DeploymentStrategyProps
@Stability(Stable)
public static final class DeploymentStrategyProps.Builder
extends Object
implements software.amazon.jsii.Builder<DeploymentStrategyProps>
A builder for
DeploymentStrategyProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.deploymentStrategyName
(String deploymentStrategyName) Sets the value ofDeploymentStrategyProps.getDeploymentStrategyName()
description
(String description) Sets the value ofDeploymentStrategyProps.getDescription()
rolloutStrategy
(RolloutStrategy rolloutStrategy) Sets the value ofDeploymentStrategyProps.getRolloutStrategy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
rolloutStrategy
@Stability(Stable) public DeploymentStrategyProps.Builder rolloutStrategy(RolloutStrategy rolloutStrategy) Sets the value ofDeploymentStrategyProps.getRolloutStrategy()
- Parameters:
rolloutStrategy
- The rollout strategy for the deployment strategy. This parameter is required. You can use predefined deployment strategies, such as RolloutStrategy.ALL_AT_ONCE, RolloutStrategy.LINEAR_50_PERCENT_EVERY_30_SECONDS, or RolloutStrategy.CANARY_10_PERCENT_20_MINUTES.- Returns:
this
-
deploymentStrategyName
@Stability(Stable) public DeploymentStrategyProps.Builder deploymentStrategyName(String deploymentStrategyName) Sets the value ofDeploymentStrategyProps.getDeploymentStrategyName()
- Parameters:
deploymentStrategyName
- A name for the deployment strategy.- Returns:
this
-
description
Sets the value ofDeploymentStrategyProps.getDescription()
- Parameters:
description
- A description of the deployment strategy.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<DeploymentStrategyProps>
- Returns:
- a new instance of
DeploymentStrategyProps
- Throws:
NullPointerException
- if any required attribute was not provided
-