Interface OriginRequestPolicyCookiesConfig.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<OriginRequestPolicyCookiesConfig.Builder,OriginRequestPolicyCookiesConfig>
,SdkBuilder<OriginRequestPolicyCookiesConfig.Builder,OriginRequestPolicyCookiesConfig>
,SdkPojo
- Enclosing class:
- OriginRequestPolicyCookiesConfig
public static interface OriginRequestPolicyCookiesConfig.Builder extends SdkPojo, CopyableBuilder<OriginRequestPolicyCookiesConfig.Builder,OriginRequestPolicyCookiesConfig>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description OriginRequestPolicyCookiesConfig.Builder
cookieBehavior(String cookieBehavior)
Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin.OriginRequestPolicyCookiesConfig.Builder
cookieBehavior(OriginRequestPolicyCookieBehavior cookieBehavior)
Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin.default OriginRequestPolicyCookiesConfig.Builder
cookies(Consumer<CookieNames.Builder> cookies)
Sets the value of the Cookies property for this object.OriginRequestPolicyCookiesConfig.Builder
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 Detail
-
cookieBehavior
OriginRequestPolicyCookiesConfig.Builder cookieBehavior(String 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:
OriginRequestPolicyCookieBehavior
,OriginRequestPolicyCookieBehavior
-
-
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:
OriginRequestPolicyCookieBehavior
,OriginRequestPolicyCookieBehavior
-
-
cookies
OriginRequestPolicyCookiesConfig.Builder cookies(CookieNames 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
default OriginRequestPolicyCookiesConfig.Builder cookies(Consumer<CookieNames.Builder> 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:
cookies(CookieNames)
-
-