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