Package software.amazon.awscdk
Class CfnTrafficRoutingConfig.Builder
java.lang.Object
software.amazon.awscdk.CfnTrafficRoutingConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTrafficRoutingConfig>
- Enclosing interface:
CfnTrafficRoutingConfig
@Stability(Stable)
public static final class CfnTrafficRoutingConfig.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTrafficRoutingConfig>
A builder for
CfnTrafficRoutingConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.timeBasedCanary
(CfnTrafficRoutingTimeBasedCanary timeBasedCanary) Sets the value ofCfnTrafficRoutingConfig.getTimeBasedCanary()
timeBasedLinear
(CfnTrafficRoutingTimeBasedLinear timeBasedLinear) Sets the value ofCfnTrafficRoutingConfig.getTimeBasedLinear()
type
(CfnTrafficRoutingType type) Sets the value ofCfnTrafficRoutingConfig.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnTrafficRoutingConfig.getType()
- Parameters:
type
- The type of traffic shifting used by the blue-green deployment configuration. This parameter is required.- Returns:
this
-
timeBasedCanary
@Stability(Stable) public CfnTrafficRoutingConfig.Builder timeBasedCanary(CfnTrafficRoutingTimeBasedCanary timeBasedCanary) Sets the value ofCfnTrafficRoutingConfig.getTimeBasedCanary()
- Parameters:
timeBasedCanary
- The configuration for traffic routing whentype
isCfnTrafficRoutingType.TIME_BASED_CANARY
.- Returns:
this
-
timeBasedLinear
@Stability(Stable) public CfnTrafficRoutingConfig.Builder timeBasedLinear(CfnTrafficRoutingTimeBasedLinear timeBasedLinear) Sets the value ofCfnTrafficRoutingConfig.getTimeBasedLinear()
- Parameters:
timeBasedLinear
- The configuration for traffic routing whentype
isCfnTrafficRoutingType.TIME_BASED_LINEAR
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTrafficRoutingConfig>
- Returns:
- a new instance of
CfnTrafficRoutingConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-