@Generated(value="software.amazon.awssdk:codegen") public final class CookieNames extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CookieNames.Builder,CookieNames>
A complex type that specifies whether you want CloudFront to forward cookies to the origin and, if so, which ones. For more information about forwarding cookies to the origin, see Caching Content Based on Request Headers in the Amazon CloudFront Developer Guide.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CookieNames.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CookieNames.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasItems()
Returns true if the Items property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
List<String> |
items()
A complex type that contains one
Name element for each cookie that you want CloudFront to forward to
the origin for this cache behavior. |
Integer |
quantity()
The number of different cookies that you want CloudFront to forward to the origin for this cache behavior.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CookieNames.Builder> |
serializableBuilderClass() |
CookieNames.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic Integer quantity()
The number of different cookies that you want CloudFront to forward to the origin for this cache behavior. The
value must equal the number of items that are in the Items field.
When you set Forward = whitelist (in the CookiePreferences object), this value must be
1 or higher.
Items field.
When you set Forward = whitelist (in the CookiePreferences object), this value
must be 1 or higher.
public boolean hasItems()
public List<String> items()
A complex type that contains one Name element for each cookie that you want CloudFront to forward to
the origin for this cache behavior. It must contain the same number of items that is specified in the
Quantity field.
When you set Forward = whitelist (in the CookiePreferences object), this field must
contain at least one item.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasItems() to see if a value was sent in this field.
Name element for each cookie that you want CloudFront to
forward to the origin for this cache behavior. It must contain the same number of items that is specified
in the Quantity field.
When you set Forward = whitelist (in the CookiePreferences object), this field
must contain at least one item.
public CookieNames.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CookieNames.Builder,CookieNames>public static CookieNames.Builder builder()
public static Class<? extends CookieNames.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.