public static final class CfnCachePolicy.HeadersConfigProperty.Builder
extends java.lang.Object
CfnCachePolicy.HeadersConfigProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnCachePolicy.HeadersConfigProperty |
build()
Builds the configured instance.
|
CfnCachePolicy.HeadersConfigProperty.Builder |
headerBehavior(java.lang.String headerBehavior)
Sets the value of
CfnCachePolicy.HeadersConfigProperty.getHeaderBehavior() |
CfnCachePolicy.HeadersConfigProperty.Builder |
headers(java.util.List<java.lang.String> headers)
Sets the value of
CfnCachePolicy.HeadersConfigProperty.getHeaders() |
public CfnCachePolicy.HeadersConfigProperty.Builder headerBehavior(java.lang.String headerBehavior)
CfnCachePolicy.HeadersConfigProperty.getHeaderBehavior()
headerBehavior
- Determines whether any HTTP headers are included in the cache key and automatically included in requests that CloudFront sends to the origin. This parameter is required.
Valid values are:
none
– HTTP headers are not included in the cache key and are not automatically included in requests that CloudFront sends to the origin. Even when this field is set to none
, any headers that are listed in an OriginRequestPolicy
are included in origin requests.whitelist
– The HTTP headers that are listed in the Headers
type are included in the cache key and are automatically included in requests that CloudFront sends to the origin.this
public CfnCachePolicy.HeadersConfigProperty.Builder headers(java.util.List<java.lang.String> headers)
CfnCachePolicy.HeadersConfigProperty.getHeaders()
headers
- Contains a list of HTTP header names.this
public CfnCachePolicy.HeadersConfigProperty build()
CfnCachePolicy.HeadersConfigProperty
java.lang.NullPointerException
- if any required attribute was not provided