Class CfnDeploymentPropsMixin.DeploymentCanarySettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.apigateway.CfnDeploymentPropsMixin.DeploymentCanarySettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeploymentPropsMixin.DeploymentCanarySettingsProperty>
- Enclosing interface:
CfnDeploymentPropsMixin.DeploymentCanarySettingsProperty
@Stability(Stable)
public static final class CfnDeploymentPropsMixin.DeploymentCanarySettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeploymentPropsMixin.DeploymentCanarySettingsProperty>
A builder for
CfnDeploymentPropsMixin.DeploymentCanarySettingsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.percentTraffic(Number percentTraffic) stageVariableOverrides(Map<String, String> stageVariableOverrides) stageVariableOverrides(IResolvable stageVariableOverrides) useStageCache(Boolean useStageCache) useStageCache(IResolvable useStageCache)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
percentTraffic
@Stability(Stable) public CfnDeploymentPropsMixin.DeploymentCanarySettingsProperty.Builder percentTraffic(Number percentTraffic) - Parameters:
percentTraffic- The percentage (0.0-100.0) of traffic routed to the canary deployment.- Returns:
this
-
stageVariableOverrides
@Stability(Stable) public CfnDeploymentPropsMixin.DeploymentCanarySettingsProperty.Builder stageVariableOverrides(Map<String, String> stageVariableOverrides) Sets the value ofCfnDeploymentPropsMixin.DeploymentCanarySettingsProperty.getStageVariableOverrides()- 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 CfnDeploymentPropsMixin.DeploymentCanarySettingsProperty.Builder stageVariableOverrides(IResolvable stageVariableOverrides) Sets the value ofCfnDeploymentPropsMixin.DeploymentCanarySettingsProperty.getStageVariableOverrides()- 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 CfnDeploymentPropsMixin.DeploymentCanarySettingsProperty.Builder useStageCache(Boolean useStageCache) - Parameters:
useStageCache- A Boolean flag to indicate whether the canary release deployment uses the stage cache or not.- Returns:
this
-
useStageCache
@Stability(Stable) public CfnDeploymentPropsMixin.DeploymentCanarySettingsProperty.Builder useStageCache(IResolvable useStageCache) - 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:
buildin interfacesoftware.amazon.jsii.Builder<CfnDeploymentPropsMixin.DeploymentCanarySettingsProperty>- Returns:
- a new instance of
CfnDeploymentPropsMixin.DeploymentCanarySettingsProperty - Throws:
NullPointerException- if any required attribute was not provided
-