Class CfnContinuousDeploymentPolicy.TrafficConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.CfnContinuousDeploymentPolicy.TrafficConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContinuousDeploymentPolicy.TrafficConfigProperty>
- Enclosing interface:
CfnContinuousDeploymentPolicy.TrafficConfigProperty
@Stability(Stable)
public static final class CfnContinuousDeploymentPolicy.TrafficConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnContinuousDeploymentPolicy.TrafficConfigProperty>
A builder for
CfnContinuousDeploymentPolicy.TrafficConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.singleHeaderConfig
(IResolvable singleHeaderConfig) singleHeaderConfig
(CfnContinuousDeploymentPolicy.SingleHeaderConfigProperty singleHeaderConfig) singleWeightConfig
(IResolvable singleWeightConfig) singleWeightConfig
(CfnContinuousDeploymentPolicy.SingleWeightConfigProperty singleWeightConfig) Sets the value ofCfnContinuousDeploymentPolicy.TrafficConfigProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
@Stability(Stable) public CfnContinuousDeploymentPolicy.TrafficConfigProperty.Builder type(String type) Sets the value ofCfnContinuousDeploymentPolicy.TrafficConfigProperty.getType()
- Parameters:
type
- The type of traffic configuration. This parameter is required.- Returns:
this
-
singleHeaderConfig
@Stability(Stable) public CfnContinuousDeploymentPolicy.TrafficConfigProperty.Builder singleHeaderConfig(IResolvable singleHeaderConfig) - Parameters:
singleHeaderConfig
- Determines which HTTP requests are sent to the staging distribution.- Returns:
this
-
singleHeaderConfig
@Stability(Stable) public CfnContinuousDeploymentPolicy.TrafficConfigProperty.Builder singleHeaderConfig(CfnContinuousDeploymentPolicy.SingleHeaderConfigProperty singleHeaderConfig) - Parameters:
singleHeaderConfig
- Determines which HTTP requests are sent to the staging distribution.- Returns:
this
-
singleWeightConfig
@Stability(Stable) public CfnContinuousDeploymentPolicy.TrafficConfigProperty.Builder singleWeightConfig(IResolvable singleWeightConfig) - Parameters:
singleWeightConfig
- Contains the percentage of traffic to send to the staging distribution.- Returns:
this
-
singleWeightConfig
@Stability(Stable) public CfnContinuousDeploymentPolicy.TrafficConfigProperty.Builder singleWeightConfig(CfnContinuousDeploymentPolicy.SingleWeightConfigProperty singleWeightConfig) - Parameters:
singleWeightConfig
- Contains the percentage of traffic to send to the staging distribution.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnContinuousDeploymentPolicy.TrafficConfigProperty>
- Returns:
- a new instance of
CfnContinuousDeploymentPolicy.TrafficConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-