@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 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 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 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 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 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 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 to none, any cookies that are listed in an
OriginRequestPolicy are included in origin requests.
whitelist – Only the cookies in viewer requests that are listed in the CookieNames 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 the CookieNames
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.
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 to none, any cookies that are
listed in an OriginRequestPolicy are included in origin requests.
whitelist – Only the cookies in viewer requests that are listed in the
CookieNames 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 the
CookieNames 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.
CachePolicyCookieBehaviorpublic String getCookieBehavior()
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 to none, any cookies that are listed in an
OriginRequestPolicy are included in origin requests.
whitelist – Only the cookies in viewer requests that are listed in the CookieNames 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 the CookieNames
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.
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 to none, any cookies that are
listed in an OriginRequestPolicy are included in origin requests.
whitelist – Only the cookies in viewer requests that are listed in the
CookieNames 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 the
CookieNames 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.
CachePolicyCookieBehaviorpublic CachePolicyCookiesConfig withCookieBehavior(String 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 to none, any cookies that are listed in an
OriginRequestPolicy are included in origin requests.
whitelist – Only the cookies in viewer requests that are listed in the CookieNames 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 the CookieNames
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.
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 to none, any cookies that are
listed in an OriginRequestPolicy are included in origin requests.
whitelist – Only the cookies in viewer requests that are listed in the
CookieNames 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 the
CookieNames 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.
CachePolicyCookieBehaviorpublic CachePolicyCookiesConfig withCookieBehavior(CachePolicyCookieBehavior 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 to none, any cookies that are listed in an
OriginRequestPolicy are included in origin requests.
whitelist – Only the cookies in viewer requests that are listed in the CookieNames 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 the CookieNames
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.
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 to none, any cookies that are
listed in an OriginRequestPolicy are included in origin requests.
whitelist – Only the cookies in viewer requests that are listed in the
CookieNames 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 the
CookieNames 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.
CachePolicyCookieBehaviorpublic void setCookies(CookieNames cookies)
cookies - public CookieNames getCookies()
public CachePolicyCookiesConfig withCookies(CookieNames cookies)
cookies - public String toString()
toString in class ObjectObject.toString()public CachePolicyCookiesConfig clone()
Copyright © 2023. All rights reserved.