public static final class CfnOriginRequestPolicy.CookiesConfigProperty.Builder
extends java.lang.Object
CfnOriginRequestPolicy.CookiesConfigProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnOriginRequestPolicy.CookiesConfigProperty |
build()
Builds the configured instance.
|
CfnOriginRequestPolicy.CookiesConfigProperty.Builder |
cookieBehavior(java.lang.String cookieBehavior)
Sets the value of
CfnOriginRequestPolicy.CookiesConfigProperty.getCookieBehavior() |
CfnOriginRequestPolicy.CookiesConfigProperty.Builder |
cookies(java.util.List<java.lang.String> cookies)
Sets the value of
CfnOriginRequestPolicy.CookiesConfigProperty.getCookies() |
public CfnOriginRequestPolicy.CookiesConfigProperty.Builder cookieBehavior(java.lang.String cookieBehavior)
CfnOriginRequestPolicy.CookiesConfigProperty.getCookieBehavior()
cookieBehavior
- Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:. This parameter is required.
none
– Cookies in viewer requests are not included in requests that CloudFront sends to the origin. Even when this field is set to none
, any cookies that are listed in a CachePolicy
are included in origin requests.whitelist
– The cookies in viewer requests that are listed in the CookieNames
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.this
public CfnOriginRequestPolicy.CookiesConfigProperty.Builder cookies(java.util.List<java.lang.String> cookies)
CfnOriginRequestPolicy.CookiesConfigProperty.getCookies()
cookies
- Contains a list of cookie names.this
public CfnOriginRequestPolicy.CookiesConfigProperty build()
CfnOriginRequestPolicy.CookiesConfigProperty
java.lang.NullPointerException
- if any required attribute was not provided