@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 automatically included 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 automatically included in
requests that CloudFront sends to the origin.
|
String |
cookieBehaviorAsString()
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 |
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, wait
copy
public final 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.
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
– 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 final String cookieBehaviorAsString()
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.
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
– 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 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 SdkPojo
public final String toString()
Copyright © 2021. All rights reserved.