Interface CachePolicyCookiesConfig.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CachePolicyCookiesConfig.Builder,
,CachePolicyCookiesConfig> SdkBuilder<CachePolicyCookiesConfig.Builder,
,CachePolicyCookiesConfig> SdkPojo
- Enclosing class:
CachePolicyCookiesConfig
-
Method Summary
Modifier and TypeMethodDescriptioncookieBehavior
(String cookieBehavior) Determines whether any cookies in viewer requests are included in the cache key and in requests that CloudFront sends to the origin.cookieBehavior
(CachePolicyCookieBehavior cookieBehavior) Determines whether any cookies in viewer requests are included in the cache key and in requests that CloudFront sends to the origin.default CachePolicyCookiesConfig.Builder
cookies
(Consumer<CookieNames.Builder> cookies) Sets the value of the Cookies property for this object.cookies
(CookieNames cookies) Sets the value of the Cookies property for this object.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
cookieBehavior
Determines whether any cookies in viewer requests are included in the cache key and in requests that CloudFront sends to the origin. Valid values are:
-
none
– No cookies in viewer requests are included in the cache key or in requests that CloudFront sends to the origin. Even when this field is set tonone
, any cookies that are listed in anOriginRequestPolicy
are included in origin requests. -
whitelist
– Only the cookies in viewer requests that are listed in theCookieNames
type are included in the cache key and in requests that CloudFront sends to the origin. -
allExcept
– All cookies in viewer requests are included in the cache key and in requests that CloudFront sends to the origin, except for those that are listed in theCookieNames
type, which are not included. -
all
– All cookies in viewer requests are included in the cache key and in requests that CloudFront sends to the origin.
- Parameters:
cookieBehavior
- Determines whether any cookies in viewer requests are included in the cache key and in requests that CloudFront sends to the origin. Valid values are:-
none
– No cookies in viewer requests are included in the cache key or in requests that CloudFront sends to the origin. Even when this field is set tonone
, any cookies that are listed in anOriginRequestPolicy
are included in origin requests. -
whitelist
– Only the cookies in viewer requests that are listed in theCookieNames
type are included in the cache key and in requests that CloudFront sends to the origin. -
allExcept
– All cookies in viewer requests are included in the cache key and in requests that CloudFront sends to the origin, except for those that are listed in theCookieNames
type, which are not included. -
all
– All cookies in viewer requests are included in the cache key and in requests that CloudFront sends to the origin.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
cookieBehavior
Determines whether any cookies in viewer requests are included in the cache key and in requests that CloudFront sends to the origin. Valid values are:
-
none
– No cookies in viewer requests are included in the cache key or in requests that CloudFront sends to the origin. Even when this field is set tonone
, any cookies that are listed in anOriginRequestPolicy
are included in origin requests. -
whitelist
– Only the cookies in viewer requests that are listed in theCookieNames
type are included in the cache key and in requests that CloudFront sends to the origin. -
allExcept
– All cookies in viewer requests are included in the cache key and in requests that CloudFront sends to the origin, except for those that are listed in theCookieNames
type, which are not included. -
all
– All cookies in viewer requests are included in the cache key and in requests that CloudFront sends to the origin.
- Parameters:
cookieBehavior
- Determines whether any cookies in viewer requests are included in the cache key and in requests that CloudFront sends to the origin. Valid values are:-
none
– No cookies in viewer requests are included in the cache key or in requests that CloudFront sends to the origin. Even when this field is set tonone
, any cookies that are listed in anOriginRequestPolicy
are included in origin requests. -
whitelist
– Only the cookies in viewer requests that are listed in theCookieNames
type are included in the cache key and in requests that CloudFront sends to the origin. -
allExcept
– All cookies in viewer requests are included in the cache key and in requests that CloudFront sends to the origin, except for those that are listed in theCookieNames
type, which are not included. -
all
– All cookies in viewer requests are included in the cache key and in requests that CloudFront sends to the origin.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
cookies
Sets the value of the Cookies property for this object.- Parameters:
cookies
- The new value for the Cookies property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cookies
Sets the value of the Cookies property for this object. This is a convenience method that creates an instance of theCookieNames.Builder
avoiding the need to create one manually viaCookieNames.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocookies(CookieNames)
.- Parameters:
cookies
- a consumer that will call methods onCookieNames.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-