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