public static interface ForwardedValues.Builder extends SdkPojo, CopyableBuilder<ForwardedValues.Builder,ForwardedValues>
Modifier and Type | Method and Description |
---|---|
default ForwardedValues.Builder |
cookies(Consumer<CookiePreference.Builder> cookies)
A complex type that specifies whether you want CloudFront to forward cookies to the origin and, if so, which
ones.
|
ForwardedValues.Builder |
cookies(CookiePreference cookies)
A complex type that specifies whether you want CloudFront to forward cookies to the origin and, if so, which
ones.
|
default ForwardedValues.Builder |
headers(Consumer<Headers.Builder> headers)
A complex type that specifies the
Headers , if any, that you want CloudFront to base caching on
for this cache behavior. |
ForwardedValues.Builder |
headers(Headers headers)
A complex type that specifies the
Headers , if any, that you want CloudFront to base caching on
for this cache behavior. |
ForwardedValues.Builder |
queryString(Boolean queryString)
Indicates whether you want CloudFront to forward query strings to the origin that is associated with this
cache behavior and cache based on the query string parameters.
|
default ForwardedValues.Builder |
queryStringCacheKeys(Consumer<QueryStringCacheKeys.Builder> queryStringCacheKeys)
A complex type that contains information about the query string parameters that you want CloudFront to use
for caching for this cache behavior.
|
ForwardedValues.Builder |
queryStringCacheKeys(QueryStringCacheKeys queryStringCacheKeys)
A complex type that contains information about the query string parameters that you want CloudFront to use
for caching for this cache behavior.
|
copy
applyMutation, build
ForwardedValues.Builder queryString(Boolean queryString)
Indicates whether you want CloudFront to forward query strings to the origin that is associated with this
cache behavior and cache based on the query string parameters. CloudFront behavior depends on the value of
QueryString
and on the values that you specify for QueryStringCacheKeys
, if any:
If you specify true for QueryString
and you don't specify any values for
QueryStringCacheKeys
, CloudFront forwards all query string parameters to the origin and caches
based on all query string parameters. Depending on how many query string parameters and values you have, this
can adversely affect performance because CloudFront must forward more requests to the origin.
If you specify true for QueryString
and you specify one or more values for
QueryStringCacheKeys
, CloudFront forwards all query string parameters to the origin, but it only
caches based on the query string parameters that you specify.
If you specify false for QueryString
, CloudFront doesn't forward any query string parameters to
the origin, and doesn't cache based on query string parameters.
For more information, see Configuring CloudFront to Cache Based on Query String Parameters in the Amazon CloudFront Developer Guide.
queryString
- Indicates whether you want CloudFront to forward query strings to the origin that is associated with
this cache behavior and cache based on the query string parameters. CloudFront behavior depends on the
value of QueryString
and on the values that you specify for
QueryStringCacheKeys
, if any:
If you specify true for QueryString
and you don't specify any values for
QueryStringCacheKeys
, CloudFront forwards all query string parameters to the origin and
caches based on all query string parameters. Depending on how many query string parameters and values
you have, this can adversely affect performance because CloudFront must forward more requests to the
origin.
If you specify true for QueryString
and you specify one or more values for
QueryStringCacheKeys
, CloudFront forwards all query string parameters to the origin, but
it only caches based on the query string parameters that you specify.
If you specify false for QueryString
, CloudFront doesn't forward any query string
parameters to the origin, and doesn't cache based on query string parameters.
For more information, see Configuring CloudFront to Cache Based on Query String Parameters in the Amazon CloudFront Developer Guide.
ForwardedValues.Builder cookies(CookiePreference cookies)
A complex type that specifies whether you want CloudFront to forward cookies to the origin and, if so, which ones. For more information about forwarding cookies to the origin, see How CloudFront Forwards, Caches, and Logs Cookies in the Amazon CloudFront Developer Guide.
cookies
- A complex type that specifies whether you want CloudFront to forward cookies to the origin and, if so,
which ones. For more information about forwarding cookies to the origin, see How CloudFront
Forwards, Caches, and Logs Cookies in the Amazon CloudFront Developer Guide.default ForwardedValues.Builder cookies(Consumer<CookiePreference.Builder> cookies)
A complex type that specifies whether you want CloudFront to forward cookies to the origin and, if so, which ones. For more information about forwarding cookies to the origin, see How CloudFront Forwards, Caches, and Logs Cookies in the Amazon CloudFront Developer Guide.
This is a convenience that creates an instance of theCookiePreference.Builder
avoiding the need to
create one manually via CookiePreference.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to cookies(CookiePreference)
.cookies
- a consumer that will call methods on CookiePreference.Builder
cookies(CookiePreference)
ForwardedValues.Builder headers(Headers headers)
A complex type that specifies the Headers
, if any, that you want CloudFront to base caching on
for this cache behavior.
headers
- A complex type that specifies the Headers
, if any, that you want CloudFront to base
caching on for this cache behavior.default ForwardedValues.Builder headers(Consumer<Headers.Builder> headers)
A complex type that specifies the Headers
, if any, that you want CloudFront to base caching on
for this cache behavior.
Headers.Builder
avoiding the need to create one
manually via Headers.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to headers(Headers)
.headers
- a consumer that will call methods on Headers.Builder
headers(Headers)
ForwardedValues.Builder queryStringCacheKeys(QueryStringCacheKeys queryStringCacheKeys)
A complex type that contains information about the query string parameters that you want CloudFront to use for caching for this cache behavior.
queryStringCacheKeys
- A complex type that contains information about the query string parameters that you want CloudFront to
use for caching for this cache behavior.default ForwardedValues.Builder queryStringCacheKeys(Consumer<QueryStringCacheKeys.Builder> queryStringCacheKeys)
A complex type that contains information about the query string parameters that you want CloudFront to use for caching for this cache behavior.
This is a convenience that creates an instance of theQueryStringCacheKeys.Builder
avoiding the need
to create one manually via QueryStringCacheKeys.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to queryStringCacheKeys(QueryStringCacheKeys)
.queryStringCacheKeys
- a consumer that will call methods on QueryStringCacheKeys.Builder
queryStringCacheKeys(QueryStringCacheKeys)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.