Class CfnDeploymentConfig.TimeBasedLinearProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codedeploy.CfnDeploymentConfig.TimeBasedLinearProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeploymentConfig.TimeBasedLinearProperty>
- Enclosing interface:
- CfnDeploymentConfig.TimeBasedLinearProperty
@Stability(Stable)
public static final class CfnDeploymentConfig.TimeBasedLinearProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeploymentConfig.TimeBasedLinearProperty>
A builder for
CfnDeploymentConfig.TimeBasedLinearProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.linearInterval
(Number linearInterval) Sets the value ofCfnDeploymentConfig.TimeBasedLinearProperty.getLinearInterval()
linearPercentage
(Number linearPercentage) Sets the value ofCfnDeploymentConfig.TimeBasedLinearProperty.getLinearPercentage()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
linearInterval
@Stability(Stable) public CfnDeploymentConfig.TimeBasedLinearProperty.Builder linearInterval(Number linearInterval) Sets the value ofCfnDeploymentConfig.TimeBasedLinearProperty.getLinearInterval()
- Parameters:
linearInterval
- The number of minutes between each incremental traffic shift of aTimeBasedLinear
deployment. This parameter is required.- Returns:
this
-
linearPercentage
@Stability(Stable) public CfnDeploymentConfig.TimeBasedLinearProperty.Builder linearPercentage(Number linearPercentage) Sets the value ofCfnDeploymentConfig.TimeBasedLinearProperty.getLinearPercentage()
- Parameters:
linearPercentage
- The percentage of traffic that is shifted at the start of each increment of aTimeBasedLinear
deployment. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDeploymentConfig.TimeBasedLinearProperty>
- Returns:
- a new instance of
CfnDeploymentConfig.TimeBasedLinearProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-