@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CookieNames extends Object implements Serializable, Cloneable
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.
Constructor and Description |
---|
CookieNames() |
Modifier and Type | Method and Description |
---|---|
CookieNames |
clone() |
boolean |
equals(Object obj) |
List<String> |
getItems()
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 |
getQuantity()
The number of different cookies that you want CloudFront to forward to the origin for this cache behavior.
|
int |
hashCode() |
void |
setItems(Collection<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. |
void |
setQuantity(Integer quantity)
The number of different cookies that you want CloudFront to forward to the origin for this cache behavior.
|
String |
toString()
Returns a string representation of this object.
|
CookieNames |
withItems(Collection<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. |
CookieNames |
withItems(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. |
CookieNames |
withQuantity(Integer quantity)
The number of different cookies that you want CloudFront to forward to the origin for this cache behavior.
|
public void setQuantity(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.
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.
public Integer getQuantity()
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 CookieNames withQuantity(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.
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.
public List<String> getItems()
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.
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 void setItems(Collection<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.
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.
public CookieNames withItems(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.
NOTE: This method appends the values to the existing list (if any). Use
setItems(java.util.Collection)
or withItems(java.util.Collection)
if you want to override the
existing values.
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.
public CookieNames withItems(Collection<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.
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.
public String toString()
toString
in class Object
Object.toString()
public CookieNames clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.