Class CfnDeployment.CanarySettingProperty.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.CfnDeployment.CanarySettingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeployment.CanarySettingProperty>
- Enclosing interface:
CfnDeployment.CanarySettingProperty
@Stability(Stable)
public static final class CfnDeployment.CanarySettingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeployment.CanarySettingProperty>
A builder for
CfnDeployment.CanarySettingProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.percentTraffic(Number percentTraffic) Sets the value ofCfnDeployment.CanarySettingProperty.getPercentTraffic()stageVariableOverrides(Map<String, String> stageVariableOverrides) Sets the value ofCfnDeployment.CanarySettingProperty.getStageVariableOverrides()stageVariableOverrides(IResolvable stageVariableOverrides) Sets the value ofCfnDeployment.CanarySettingProperty.getStageVariableOverrides()useStageCache(Boolean useStageCache) Sets the value ofCfnDeployment.CanarySettingProperty.getUseStageCache()useStageCache(IResolvable useStageCache) Sets the value ofCfnDeployment.CanarySettingProperty.getUseStageCache()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
percentTraffic
@Stability(Stable) public CfnDeployment.CanarySettingProperty.Builder percentTraffic(Number percentTraffic) Sets the value ofCfnDeployment.CanarySettingProperty.getPercentTraffic()- Parameters:
percentTraffic- The percent (0-100) of traffic diverted to a canary deployment.- Returns:
this
-
stageVariableOverrides
@Stability(Stable) public CfnDeployment.CanarySettingProperty.Builder stageVariableOverrides(Map<String, String> stageVariableOverrides) Sets the value ofCfnDeployment.CanarySettingProperty.getStageVariableOverrides()- Parameters:
stageVariableOverrides- Stage variables overridden for a canary release deployment, including new stage variables introduced in the canary. 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.CanarySettingProperty.Builder stageVariableOverrides(IResolvable stageVariableOverrides) Sets the value ofCfnDeployment.CanarySettingProperty.getStageVariableOverrides()- Parameters:
stageVariableOverrides- Stage variables overridden for a canary release deployment, including new stage variables introduced in the canary. 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.CanarySettingProperty.Builder useStageCache(Boolean useStageCache) Sets the value ofCfnDeployment.CanarySettingProperty.getUseStageCache()- Parameters:
useStageCache- A Boolean flag to indicate whether the canary deployment uses the stage cache or not.- Returns:
this
-
useStageCache
@Stability(Stable) public CfnDeployment.CanarySettingProperty.Builder useStageCache(IResolvable useStageCache) Sets the value ofCfnDeployment.CanarySettingProperty.getUseStageCache()- Parameters:
useStageCache- A Boolean flag to indicate whether the canary deployment uses the stage cache or not.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDeployment.CanarySettingProperty>- Returns:
- a new instance of
CfnDeployment.CanarySettingProperty - Throws:
NullPointerException- if any required attribute was not provided
-