public class CookieNames extends Object implements Serializable
A complex type that specifies the whitelisted cookies, if any, that you want CloudFront to forward to your origin that is associated with this cache behavior.
Constructor and Description |
---|
CookieNames() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<String> |
getItems()
Optional: A complex type that contains whitelisted cookies for this
cache behavior.
|
Integer |
getQuantity()
The number of whitelisted cookies for this cache behavior.
|
int |
hashCode() |
void |
setItems(Collection<String> items)
Optional: A complex type that contains whitelisted cookies for this
cache behavior.
|
void |
setQuantity(Integer quantity)
The number of whitelisted cookies for this cache behavior.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CookieNames |
withItems(Collection<String> items)
Optional: A complex type that contains whitelisted cookies for this
cache behavior.
|
CookieNames |
withItems(String... items)
Optional: A complex type that contains whitelisted cookies for this
cache behavior.
|
CookieNames |
withQuantity(Integer quantity)
The number of whitelisted cookies for this cache behavior.
|
public Integer getQuantity()
public void setQuantity(Integer quantity)
quantity
- The number of whitelisted cookies for this cache behavior.public CookieNames withQuantity(Integer quantity)
Returns a reference to this object so that method calls can be chained together.
quantity
- The number of whitelisted cookies for this cache behavior.public List<String> getItems()
public void setItems(Collection<String> items)
items
- Optional: A complex type that contains whitelisted cookies for this
cache behavior. If Quantity is 0, you can omit Items.public CookieNames withItems(String... items)
Returns a reference to this object so that method calls can be chained together.
items
- Optional: A complex type that contains whitelisted cookies for this
cache behavior. If Quantity is 0, you can omit Items.public CookieNames withItems(Collection<String> items)
Returns a reference to this object so that method calls can be chained together.
items
- Optional: A complex type that contains whitelisted cookies for this
cache behavior. If Quantity is 0, you can omit Items.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.