Class TimeBasedLinearTrafficRoutingProps.Builder
java.lang.Object
software.amazon.awscdk.services.codedeploy.TimeBasedLinearTrafficRoutingProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TimeBasedLinearTrafficRoutingProps>
- Enclosing interface:
TimeBasedLinearTrafficRoutingProps
@Stability(Stable)
public static final class TimeBasedLinearTrafficRoutingProps.Builder
extends Object
implements software.amazon.jsii.Builder<TimeBasedLinearTrafficRoutingProps>
A builder for
TimeBasedLinearTrafficRoutingProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofBaseTrafficShiftingConfigProps.getInterval()
percentage
(Number percentage) Sets the value ofBaseTrafficShiftingConfigProps.getPercentage()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
interval
Sets the value ofBaseTrafficShiftingConfigProps.getInterval()
- Parameters:
interval
- The amount of time between traffic shifts. This parameter is required.- Returns:
this
-
percentage
Sets the value ofBaseTrafficShiftingConfigProps.getPercentage()
- Parameters:
percentage
- The percentage to increase traffic on each traffic shift. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<TimeBasedLinearTrafficRoutingProps>
- Returns:
- a new instance of
TimeBasedLinearTrafficRoutingProps
- Throws:
NullPointerException
- if any required attribute was not provided
-