@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CachePolicyCookiesConfig extends Object implements Serializable, Cloneable
An object that determines whether any cookies in viewer requests (and if so, which cookies) are included in the cache key and automatically included in requests that CloudFront sends to the origin.
Constructor and Description |
---|
CachePolicyCookiesConfig() |
Modifier and Type | Method and Description |
---|---|
CachePolicyCookiesConfig |
clone() |
boolean |
equals(Object obj) |
String |
getCookieBehavior()
Determines whether any cookies in viewer requests are included in the cache key and automatically included in
requests that CloudFront sends to the origin.
|
CookieNames |
getCookies() |
int |
hashCode() |
void |
setCookieBehavior(String cookieBehavior)
Determines whether any cookies in viewer requests are included in the cache key and automatically included in
requests that CloudFront sends to the origin.
|
void |
setCookies(CookieNames cookies) |
String |
toString()
Returns a string representation of this object.
|
CachePolicyCookiesConfig |
withCookieBehavior(CachePolicyCookieBehavior cookieBehavior)
Determines whether any cookies in viewer requests are included in the cache key and automatically included in
requests that CloudFront sends to the origin.
|
CachePolicyCookiesConfig |
withCookieBehavior(String cookieBehavior)
Determines whether any cookies in viewer requests are included in the cache key and automatically included in
requests that CloudFront sends to the origin.
|
CachePolicyCookiesConfig |
withCookies(CookieNames cookies) |
public void setCookieBehavior(String cookieBehavior)
Determines whether any cookies in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are:
none
– Cookies in viewer requests are not included in the cache key and are not automatically
included in requests that CloudFront sends to the origin. Even when this field is set to none
, any
cookies that are listed in an OriginRequestPolicy
are included in origin requests.
whitelist
– The cookies in viewer requests that are listed in the CookieNames
type are
included in the cache key and automatically included in requests that CloudFront sends to the origin.
allExcept
– All cookies in viewer requests that are not listed in the
CookieNames
type are included in the cache key and automatically included in requests that
CloudFront sends to the origin.
all
– All cookies in viewer requests are included in the cache key and are automatically included in
requests that CloudFront sends to the origin.
cookieBehavior
- Determines whether any cookies in viewer requests are included in the cache key and automatically included
in requests that CloudFront sends to the origin. Valid values are:
none
– Cookies in viewer requests are not included in the cache key and are not automatically
included in requests that CloudFront sends to the origin. Even when this field is set to none
, any cookies that are listed in an OriginRequestPolicy
are included in origin
requests.
whitelist
– The cookies in viewer requests that are listed in the CookieNames
type are included in the cache key and automatically included in requests that CloudFront sends to the
origin.
allExcept
– All cookies in viewer requests that are not listed in the
CookieNames
type are included in the cache key and automatically included in requests that
CloudFront sends to the origin.
all
– All cookies in viewer requests are included in the cache key and are automatically
included in requests that CloudFront sends to the origin.
CachePolicyCookieBehavior
public String getCookieBehavior()
Determines whether any cookies in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are:
none
– Cookies in viewer requests are not included in the cache key and are not automatically
included in requests that CloudFront sends to the origin. Even when this field is set to none
, any
cookies that are listed in an OriginRequestPolicy
are included in origin requests.
whitelist
– The cookies in viewer requests that are listed in the CookieNames
type are
included in the cache key and automatically included in requests that CloudFront sends to the origin.
allExcept
– All cookies in viewer requests that are not listed in the
CookieNames
type are included in the cache key and automatically included in requests that
CloudFront sends to the origin.
all
– All cookies in viewer requests are included in the cache key and are automatically included in
requests that CloudFront sends to the origin.
none
– Cookies in viewer requests are not included in the cache key and are not
automatically included in requests that CloudFront sends to the origin. Even when this field is set to
none
, any cookies that are listed in an OriginRequestPolicy
are included
in origin requests.
whitelist
– The cookies in viewer requests that are listed in the CookieNames
type are included in the cache key and automatically included in requests that CloudFront sends to the
origin.
allExcept
– All cookies in viewer requests that are not listed in the
CookieNames
type are included in the cache key and automatically included in requests that
CloudFront sends to the origin.
all
– All cookies in viewer requests are included in the cache key and are automatically
included in requests that CloudFront sends to the origin.
CachePolicyCookieBehavior
public CachePolicyCookiesConfig withCookieBehavior(String cookieBehavior)
Determines whether any cookies in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are:
none
– Cookies in viewer requests are not included in the cache key and are not automatically
included in requests that CloudFront sends to the origin. Even when this field is set to none
, any
cookies that are listed in an OriginRequestPolicy
are included in origin requests.
whitelist
– The cookies in viewer requests that are listed in the CookieNames
type are
included in the cache key and automatically included in requests that CloudFront sends to the origin.
allExcept
– All cookies in viewer requests that are not listed in the
CookieNames
type are included in the cache key and automatically included in requests that
CloudFront sends to the origin.
all
– All cookies in viewer requests are included in the cache key and are automatically included in
requests that CloudFront sends to the origin.
cookieBehavior
- Determines whether any cookies in viewer requests are included in the cache key and automatically included
in requests that CloudFront sends to the origin. Valid values are:
none
– Cookies in viewer requests are not included in the cache key and are not automatically
included in requests that CloudFront sends to the origin. Even when this field is set to none
, any cookies that are listed in an OriginRequestPolicy
are included in origin
requests.
whitelist
– The cookies in viewer requests that are listed in the CookieNames
type are included in the cache key and automatically included in requests that CloudFront sends to the
origin.
allExcept
– All cookies in viewer requests that are not listed in the
CookieNames
type are included in the cache key and automatically included in requests that
CloudFront sends to the origin.
all
– All cookies in viewer requests are included in the cache key and are automatically
included in requests that CloudFront sends to the origin.
CachePolicyCookieBehavior
public CachePolicyCookiesConfig withCookieBehavior(CachePolicyCookieBehavior cookieBehavior)
Determines whether any cookies in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are:
none
– Cookies in viewer requests are not included in the cache key and are not automatically
included in requests that CloudFront sends to the origin. Even when this field is set to none
, any
cookies that are listed in an OriginRequestPolicy
are included in origin requests.
whitelist
– The cookies in viewer requests that are listed in the CookieNames
type are
included in the cache key and automatically included in requests that CloudFront sends to the origin.
allExcept
– All cookies in viewer requests that are not listed in the
CookieNames
type are included in the cache key and automatically included in requests that
CloudFront sends to the origin.
all
– All cookies in viewer requests are included in the cache key and are automatically included in
requests that CloudFront sends to the origin.
cookieBehavior
- Determines whether any cookies in viewer requests are included in the cache key and automatically included
in requests that CloudFront sends to the origin. Valid values are:
none
– Cookies in viewer requests are not included in the cache key and are not automatically
included in requests that CloudFront sends to the origin. Even when this field is set to none
, any cookies that are listed in an OriginRequestPolicy
are included in origin
requests.
whitelist
– The cookies in viewer requests that are listed in the CookieNames
type are included in the cache key and automatically included in requests that CloudFront sends to the
origin.
allExcept
– All cookies in viewer requests that are not listed in the
CookieNames
type are included in the cache key and automatically included in requests that
CloudFront sends to the origin.
all
– All cookies in viewer requests are included in the cache key and are automatically
included in requests that CloudFront sends to the origin.
CachePolicyCookieBehavior
public void setCookies(CookieNames cookies)
cookies
- public CookieNames getCookies()
public CachePolicyCookiesConfig withCookies(CookieNames cookies)
cookies
- public String toString()
toString
in class Object
Object.toString()
public CachePolicyCookiesConfig clone()