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