Class CfnDistributionPropsMixin.OriginCustomHeaderProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cloudfront.CfnDistributionPropsMixin.OriginCustomHeaderProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDistributionPropsMixin.OriginCustomHeaderProperty>
- Enclosing interface:
CfnDistributionPropsMixin.OriginCustomHeaderProperty
@Stability(Stable)
public static final class CfnDistributionPropsMixin.OriginCustomHeaderProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDistributionPropsMixin.OriginCustomHeaderProperty>
A builder for
CfnDistributionPropsMixin.OriginCustomHeaderProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.headerName(String headerName) Sets the value ofCfnDistributionPropsMixin.OriginCustomHeaderProperty.getHeaderName()headerValue(String headerValue) Sets the value ofCfnDistributionPropsMixin.OriginCustomHeaderProperty.getHeaderValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
headerName
@Stability(Stable) public CfnDistributionPropsMixin.OriginCustomHeaderProperty.Builder headerName(String headerName) Sets the value ofCfnDistributionPropsMixin.OriginCustomHeaderProperty.getHeaderName()- Parameters:
headerName- The name of a header that you want CloudFront to send to your origin. For more information, see Adding Custom Headers to Origin Requests in the Amazon CloudFront Developer Guide .- Returns:
this
-
headerValue
@Stability(Stable) public CfnDistributionPropsMixin.OriginCustomHeaderProperty.Builder headerValue(String headerValue) Sets the value ofCfnDistributionPropsMixin.OriginCustomHeaderProperty.getHeaderValue()- Parameters:
headerValue- The value for the header that you specified in theHeaderNamefield.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDistributionPropsMixin.OriginCustomHeaderProperty>- Returns:
- a new instance of
CfnDistributionPropsMixin.OriginCustomHeaderProperty - Throws:
NullPointerException- if any required attribute was not provided
-