@Generated(value="software.amazon.awssdk:codegen") public final class OriginRequestPolicyCookiesConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<OriginRequestPolicyCookiesConfig.Builder,OriginRequestPolicyCookiesConfig>
An object that determines whether any cookies in viewer requests (and if so, which cookies) are included in requests that CloudFront sends to the origin.
| Modifier and Type | Class and Description |
|---|---|
static interface |
OriginRequestPolicyCookiesConfig.Builder |
| Modifier and Type | Method and Description |
|---|---|
static OriginRequestPolicyCookiesConfig.Builder |
builder() |
OriginRequestPolicyCookieBehavior |
cookieBehavior()
Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin.
|
String |
cookieBehaviorAsString()
Determines whether cookies in viewer requests are 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 OriginRequestPolicyCookiesConfig.Builder> |
serializableBuilderClass() |
OriginRequestPolicyCookiesConfig.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final OriginRequestPolicyCookieBehavior cookieBehavior()
Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:
none – No cookies in viewer requests are 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 – Only 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.
allExcept – All cookies in viewer requests are included in requests that CloudFront sends to the
origin, except for those listed in the CookieNames type, which are not included.
If the service returns an enum value that is not available in the current SDK version, cookieBehavior
will return OriginRequestPolicyCookieBehavior.UNKNOWN_TO_SDK_VERSION. The raw value returned by the
service is available from cookieBehaviorAsString().
none – No cookies in viewer requests are 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 – Only 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.
allExcept – All cookies in viewer requests are included in requests that CloudFront sends to
the origin, except for those listed in the CookieNames type, which are not
included.
OriginRequestPolicyCookieBehaviorpublic final String cookieBehaviorAsString()
Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:
none – No cookies in viewer requests are 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 – Only 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.
allExcept – All cookies in viewer requests are included in requests that CloudFront sends to the
origin, except for those listed in the CookieNames type, which are not included.
If the service returns an enum value that is not available in the current SDK version, cookieBehavior
will return OriginRequestPolicyCookieBehavior.UNKNOWN_TO_SDK_VERSION. The raw value returned by the
service is available from cookieBehaviorAsString().
none – No cookies in viewer requests are 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 – Only 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.
allExcept – All cookies in viewer requests are included in requests that CloudFront sends to
the origin, except for those listed in the CookieNames type, which are not
included.
OriginRequestPolicyCookieBehaviorpublic final CookieNames cookies()
public OriginRequestPolicyCookiesConfig.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<OriginRequestPolicyCookiesConfig.Builder,OriginRequestPolicyCookiesConfig>public static OriginRequestPolicyCookiesConfig.Builder builder()
public static Class<? extends OriginRequestPolicyCookiesConfig.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.