@Generated(value="software.amazon.awssdk:codegen") public final class CachePolicyCookiesConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CachePolicyCookiesConfig.Builder,CachePolicyCookiesConfig>
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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CachePolicyCookiesConfig.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CachePolicyCookiesConfig.Builder |
builder() |
CachePolicyCookieBehavior |
cookieBehavior()
Determines whether any cookies in viewer requests are included in the cache key and in requests that CloudFront
sends to the origin.
|
String |
cookieBehaviorAsString()
Determines whether any cookies in viewer requests are included in the cache key and in requests that CloudFront
sends to the origin.
|
CookieNames |
cookies()
Returns the value of the Cookies property for this object.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends CachePolicyCookiesConfig.Builder> |
serializableBuilderClass() |
CachePolicyCookiesConfig.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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.
If the service returns an enum value that is not available in the current SDK version, cookieBehavior
will return CachePolicyCookieBehavior.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from cookieBehaviorAsString().
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 final String cookieBehaviorAsString()
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.
If the service returns an enum value that is not available in the current SDK version, cookieBehavior
will return CachePolicyCookieBehavior.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from cookieBehaviorAsString().
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 final CookieNames cookies()
public CachePolicyCookiesConfig.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CachePolicyCookiesConfig.Builder,CachePolicyCookiesConfig>public static CachePolicyCookiesConfig.Builder builder()
public static Class<? extends CachePolicyCookiesConfig.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.