Class CfnDeploymentConfig.TimeBasedCanaryProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codedeploy.CfnDeploymentConfig.TimeBasedCanaryProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeploymentConfig.TimeBasedCanaryProperty>
- Enclosing interface:
- CfnDeploymentConfig.TimeBasedCanaryProperty
@Stability(Stable)
public static final class CfnDeploymentConfig.TimeBasedCanaryProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeploymentConfig.TimeBasedCanaryProperty>
A builder for
CfnDeploymentConfig.TimeBasedCanaryProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.canaryInterval
(Number canaryInterval) Sets the value ofCfnDeploymentConfig.TimeBasedCanaryProperty.getCanaryInterval()
canaryPercentage
(Number canaryPercentage) Sets the value ofCfnDeploymentConfig.TimeBasedCanaryProperty.getCanaryPercentage()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
canaryInterval
@Stability(Stable) public CfnDeploymentConfig.TimeBasedCanaryProperty.Builder canaryInterval(Number canaryInterval) Sets the value ofCfnDeploymentConfig.TimeBasedCanaryProperty.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 CfnDeploymentConfig.TimeBasedCanaryProperty.Builder canaryPercentage(Number canaryPercentage) Sets the value ofCfnDeploymentConfig.TimeBasedCanaryProperty.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<CfnDeploymentConfig.TimeBasedCanaryProperty>
- Returns:
- a new instance of
CfnDeploymentConfig.TimeBasedCanaryProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-