Class CfnApi.CanarySettingProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sam.CfnApi.CanarySettingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApi.CanarySettingProperty>
- Enclosing interface:
CfnApi.CanarySettingProperty
@Stability(Stable)
public static final class CfnApi.CanarySettingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApi.CanarySettingProperty>
A builder for
CfnApi.CanarySettingProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.deploymentId(String deploymentId) Sets the value ofCfnApi.CanarySettingProperty.getDeploymentId()percentTraffic(Number percentTraffic) Sets the value ofCfnApi.CanarySettingProperty.getPercentTraffic()stageVariableOverrides(Map<String, String> stageVariableOverrides) Sets the value ofCfnApi.CanarySettingProperty.getStageVariableOverrides()stageVariableOverrides(IResolvable stageVariableOverrides) Sets the value ofCfnApi.CanarySettingProperty.getStageVariableOverrides()useStageCache(Boolean useStageCache) Sets the value ofCfnApi.CanarySettingProperty.getUseStageCache()useStageCache(IResolvable useStageCache) Sets the value ofCfnApi.CanarySettingProperty.getUseStageCache()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deploymentId
Sets the value ofCfnApi.CanarySettingProperty.getDeploymentId()- Parameters:
deploymentId- the value to be set.- Returns:
this
-
percentTraffic
@Stability(Stable) public CfnApi.CanarySettingProperty.Builder percentTraffic(Number percentTraffic) Sets the value ofCfnApi.CanarySettingProperty.getPercentTraffic()- Parameters:
percentTraffic- the value to be set.- Returns:
this
-
stageVariableOverrides
@Stability(Stable) public CfnApi.CanarySettingProperty.Builder stageVariableOverrides(Map<String, String> stageVariableOverrides) Sets the value ofCfnApi.CanarySettingProperty.getStageVariableOverrides()- Parameters:
stageVariableOverrides- the value to be set.- Returns:
this
-
stageVariableOverrides
@Stability(Stable) public CfnApi.CanarySettingProperty.Builder stageVariableOverrides(IResolvable stageVariableOverrides) Sets the value ofCfnApi.CanarySettingProperty.getStageVariableOverrides()- Parameters:
stageVariableOverrides- the value to be set.- Returns:
this
-
useStageCache
Sets the value ofCfnApi.CanarySettingProperty.getUseStageCache()- Parameters:
useStageCache- the value to be set.- Returns:
this
-
useStageCache
@Stability(Stable) public CfnApi.CanarySettingProperty.Builder useStageCache(IResolvable useStageCache) Sets the value ofCfnApi.CanarySettingProperty.getUseStageCache()- Parameters:
useStageCache- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnApi.CanarySettingProperty>- Returns:
- a new instance of
CfnApi.CanarySettingProperty - Throws:
NullPointerException- if any required attribute was not provided
-