Class CfnCachePolicyPropsMixin.HeadersConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cloudfront.CfnCachePolicyPropsMixin.HeadersConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCachePolicyPropsMixin.HeadersConfigProperty>
- Enclosing interface:
CfnCachePolicyPropsMixin.HeadersConfigProperty
@Stability(Stable)
public static final class CfnCachePolicyPropsMixin.HeadersConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCachePolicyPropsMixin.HeadersConfigProperty>
A builder for
CfnCachePolicyPropsMixin.HeadersConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.headerBehavior(String headerBehavior) Sets the value ofCfnCachePolicyPropsMixin.HeadersConfigProperty.getHeaderBehavior()Sets the value ofCfnCachePolicyPropsMixin.HeadersConfigProperty.getHeaders()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
headerBehavior
@Stability(Stable) public CfnCachePolicyPropsMixin.HeadersConfigProperty.Builder headerBehavior(String headerBehavior) Sets the value ofCfnCachePolicyPropsMixin.HeadersConfigProperty.getHeaderBehavior()- Parameters:
headerBehavior- Determines whether any HTTP headers are included in the cache key and in requests that CloudFront sends to the origin. Valid values are:none– No HTTP headers are included in the cache key or in requests that CloudFront sends to the origin. Even when this field is set tonone, any headers that are listed in anOriginRequestPolicyare included in origin requests.whitelist– Only the HTTP headers that are listed in theHeaderstype are included in the cache key and in requests that CloudFront sends to the origin.
- Returns:
this
-
headers
@Stability(Stable) public CfnCachePolicyPropsMixin.HeadersConfigProperty.Builder headers(List<String> headers) Sets the value ofCfnCachePolicyPropsMixin.HeadersConfigProperty.getHeaders()- Parameters:
headers- Contains a list of HTTP header names.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCachePolicyPropsMixin.HeadersConfigProperty>- Returns:
- a new instance of
CfnCachePolicyPropsMixin.HeadersConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-