Class TimeBasedCanaryTrafficRoutingProps.Builder
java.lang.Object
software.amazon.awscdk.services.codedeploy.TimeBasedCanaryTrafficRoutingProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TimeBasedCanaryTrafficRoutingProps>
- Enclosing interface:
TimeBasedCanaryTrafficRoutingProps
@Stability(Stable)
public static final class TimeBasedCanaryTrafficRoutingProps.Builder
extends Object
implements software.amazon.jsii.Builder<TimeBasedCanaryTrafficRoutingProps>
A builder for
TimeBasedCanaryTrafficRoutingProps
-
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<TimeBasedCanaryTrafficRoutingProps>
- Returns:
- a new instance of
TimeBasedCanaryTrafficRoutingProps
- Throws:
NullPointerException
- if any required attribute was not provided
-