Class CanaryTrafficRoutingConfig.Builder
java.lang.Object
software.amazon.awscdk.services.codedeploy.CanaryTrafficRoutingConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CanaryTrafficRoutingConfig>
- Enclosing interface:
CanaryTrafficRoutingConfig
@Stability(Stable)
public static final class CanaryTrafficRoutingConfig.Builder
extends Object
implements software.amazon.jsii.Builder<CanaryTrafficRoutingConfig>
A builder for
CanaryTrafficRoutingConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.canaryInterval
(Number canaryInterval) Sets the value ofCanaryTrafficRoutingConfig.getCanaryInterval()
canaryPercentage
(Number canaryPercentage) Sets the value ofCanaryTrafficRoutingConfig.getCanaryPercentage()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
canaryInterval
Sets the value ofCanaryTrafficRoutingConfig.getCanaryInterval()
- Parameters:
canaryInterval
- The number of minutes between the first and second traffic shifts of aTimeBasedCanary
deployment. This parameter is required.- Returns:
this
-
canaryPercentage
@Stability(Stable) public CanaryTrafficRoutingConfig.Builder canaryPercentage(Number canaryPercentage) Sets the value ofCanaryTrafficRoutingConfig.getCanaryPercentage()
- Parameters:
canaryPercentage
- The percentage of traffic to shift in the first increment of aTimeBasedCanary
deployment. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CanaryTrafficRoutingConfig>
- Returns:
- a new instance of
CanaryTrafficRoutingConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-