@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 How CloudFront Forwards, Caches, and Logs Cookies 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; useful for testing and debugging.
|
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.
quantity
- The number of different cookies that you want CloudFront to forward to the origin for this cache behavior.public Integer getQuantity()
The number of different cookies that you want CloudFront to forward to the origin for this cache behavior.
public CookieNames withQuantity(Integer quantity)
The number of different cookies that you want CloudFront to forward to the origin for this cache behavior.
quantity
- The number of different cookies that you want CloudFront to forward to the origin for this cache behavior.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.
Name
element for each cookie that you want CloudFront to
forward to the origin for this cache behavior.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.
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.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.
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.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.
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.public String toString()
toString
in class Object
Object.toString()
public CookieNames clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.