Class CfnContinuousDeploymentPolicy.SingleHeaderConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.CfnContinuousDeploymentPolicy.SingleHeaderConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContinuousDeploymentPolicy.SingleHeaderConfigProperty>
- Enclosing interface:
CfnContinuousDeploymentPolicy.SingleHeaderConfigProperty
@Stability(Stable)
public static final class CfnContinuousDeploymentPolicy.SingleHeaderConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnContinuousDeploymentPolicy.SingleHeaderConfigProperty>
A builder for
CfnContinuousDeploymentPolicy.SingleHeaderConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnContinuousDeploymentPolicy.SingleHeaderConfigProperty.getHeader()
Sets the value ofCfnContinuousDeploymentPolicy.SingleHeaderConfigProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
header
@Stability(Stable) public CfnContinuousDeploymentPolicy.SingleHeaderConfigProperty.Builder header(String header) Sets the value ofCfnContinuousDeploymentPolicy.SingleHeaderConfigProperty.getHeader()
- Parameters:
header
- The request header name that you want CloudFront to send to your staging distribution. This parameter is required. The header must contain the prefixaws-cf-cd-
.- Returns:
this
-
value
@Stability(Stable) public CfnContinuousDeploymentPolicy.SingleHeaderConfigProperty.Builder value(String value) Sets the value ofCfnContinuousDeploymentPolicy.SingleHeaderConfigProperty.getValue()
- Parameters:
value
- The request header value. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnContinuousDeploymentPolicy.SingleHeaderConfigProperty>
- Returns:
- a new instance of
CfnContinuousDeploymentPolicy.SingleHeaderConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-