Class CfnDeployment.DeploymentCanarySettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.CfnDeployment.DeploymentCanarySettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeployment.DeploymentCanarySettingsProperty>
- Enclosing interface:
- CfnDeployment.DeploymentCanarySettingsProperty
@Stability(Stable)
public static final class CfnDeployment.DeploymentCanarySettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeployment.DeploymentCanarySettingsProperty>
A builder for
CfnDeployment.DeploymentCanarySettingsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.percentTraffic
(Number percentTraffic) Sets the value ofCfnDeployment.DeploymentCanarySettingsProperty.getPercentTraffic()
stageVariableOverrides
(Map<String, String> stageVariableOverrides) stageVariableOverrides
(IResolvable stageVariableOverrides) useStageCache
(Boolean useStageCache) Sets the value ofCfnDeployment.DeploymentCanarySettingsProperty.getUseStageCache()
useStageCache
(IResolvable useStageCache) Sets the value ofCfnDeployment.DeploymentCanarySettingsProperty.getUseStageCache()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
percentTraffic
@Stability(Stable) public CfnDeployment.DeploymentCanarySettingsProperty.Builder percentTraffic(Number percentTraffic) Sets the value ofCfnDeployment.DeploymentCanarySettingsProperty.getPercentTraffic()
- Parameters:
percentTraffic
- The percentage (0.0-100.0) of traffic routed to the canary deployment.- Returns:
this
-
stageVariableOverrides
@Stability(Stable) public CfnDeployment.DeploymentCanarySettingsProperty.Builder stageVariableOverrides(IResolvable stageVariableOverrides) - Parameters:
stageVariableOverrides
- A stage variable overrides used for the canary release deployment. They can override existing stage variables or add new stage variables for the canary release deployment. These stage variables are represented as a string-to-string map between stage variable names and their values.- Returns:
this
-
stageVariableOverrides
@Stability(Stable) public CfnDeployment.DeploymentCanarySettingsProperty.Builder stageVariableOverrides(Map<String, String> stageVariableOverrides) - Parameters:
stageVariableOverrides
- A stage variable overrides used for the canary release deployment. They can override existing stage variables or add new stage variables for the canary release deployment. These stage variables are represented as a string-to-string map between stage variable names and their values.- Returns:
this
-
useStageCache
@Stability(Stable) public CfnDeployment.DeploymentCanarySettingsProperty.Builder useStageCache(Boolean useStageCache) Sets the value ofCfnDeployment.DeploymentCanarySettingsProperty.getUseStageCache()
- Parameters:
useStageCache
- A Boolean flag to indicate whether the canary release deployment uses the stage cache or not.- Returns:
this
-
useStageCache
@Stability(Stable) public CfnDeployment.DeploymentCanarySettingsProperty.Builder useStageCache(IResolvable useStageCache) Sets the value ofCfnDeployment.DeploymentCanarySettingsProperty.getUseStageCache()
- Parameters:
useStageCache
- A Boolean flag to indicate whether the canary release deployment uses the stage cache or not.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDeployment.DeploymentCanarySettingsProperty>
- Returns:
- a new instance of
CfnDeployment.DeploymentCanarySettingsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-