Interface OriginRequestPolicyCookiesConfig.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<OriginRequestPolicyCookiesConfig.Builder,
,OriginRequestPolicyCookiesConfig> SdkBuilder<OriginRequestPolicyCookiesConfig.Builder,
,OriginRequestPolicyCookiesConfig> SdkPojo
- Enclosing class:
OriginRequestPolicyCookiesConfig
-
Method Summary
Modifier and TypeMethodDescriptioncookieBehavior
(String cookieBehavior) Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin.cookieBehavior
(OriginRequestPolicyCookieBehavior cookieBehavior) Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin.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 cookies in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:
-
none
– No cookies in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set tonone
, any cookies that are listed in aCachePolicy
are included in origin requests. -
whitelist
– Only the cookies in viewer requests that are listed in theCookieNames
type are included in requests that CloudFront sends to the origin. -
all
– All cookies in viewer requests are included in requests that CloudFront sends to the origin. -
allExcept
– All cookies in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in theCookieNames
type, which are not included.
- Parameters:
cookieBehavior
- Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:-
none
– No cookies in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set tonone
, any cookies that are listed in aCachePolicy
are included in origin requests. -
whitelist
– Only the cookies in viewer requests that are listed in theCookieNames
type are included in requests that CloudFront sends to the origin. -
all
– All cookies in viewer requests are included in requests that CloudFront sends to the origin. -
allExcept
– All cookies in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in theCookieNames
type, which are not included.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
cookieBehavior
OriginRequestPolicyCookiesConfig.Builder cookieBehavior(OriginRequestPolicyCookieBehavior cookieBehavior) Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:
-
none
– No cookies in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set tonone
, any cookies that are listed in aCachePolicy
are included in origin requests. -
whitelist
– Only the cookies in viewer requests that are listed in theCookieNames
type are included in requests that CloudFront sends to the origin. -
all
– All cookies in viewer requests are included in requests that CloudFront sends to the origin. -
allExcept
– All cookies in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in theCookieNames
type, which are not included.
- Parameters:
cookieBehavior
- Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:-
none
– No cookies in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set tonone
, any cookies that are listed in aCachePolicy
are included in origin requests. -
whitelist
– Only the cookies in viewer requests that are listed in theCookieNames
type are included in requests that CloudFront sends to the origin. -
all
– All cookies in viewer requests are included in requests that CloudFront sends to the origin. -
allExcept
– All cookies in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in theCookieNames
type, which are not included.
-
- 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:
-