Class CookieNames
java.lang.Object
com.amazonaws.services.cloudfront.model.CookieNames
- All Implemented Interfaces:
Serializable, Cloneable
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.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleangetItems()Optional: A complex type that contains whitelisted cookies for this cache behavior.The number of whitelisted cookies for this cache behavior.inthashCode()voidsetItems(Collection<String> items) Optional: A complex type that contains whitelisted cookies for this cache behavior.voidsetQuantity(Integer quantity) The number of whitelisted cookies for this cache behavior.toString()Returns a string representation of this object; useful for testing and debugging.Optional: A complex type that contains whitelisted cookies for this cache behavior.withItems(Collection<String> items) Optional: A complex type that contains whitelisted cookies for this cache behavior.withQuantity(Integer quantity) The number of whitelisted cookies for this cache behavior.
-
Constructor Details
-
CookieNames
public CookieNames()
-
-
Method Details
-
setQuantity
The number of whitelisted cookies for this cache behavior.- Parameters:
quantity- The number of whitelisted cookies for this cache behavior.
-
getQuantity
The number of whitelisted cookies for this cache behavior.- Returns:
- The number of whitelisted cookies for this cache behavior.
-
withQuantity
The number of whitelisted cookies for this cache behavior.- Parameters:
quantity- The number of whitelisted cookies for this cache behavior.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getItems
-
setItems
Optional: A complex type that contains whitelisted cookies for this cache behavior. If Quantity is 0, you can omit Items.- Parameters:
items- Optional: A complex type that contains whitelisted cookies for this cache behavior. If Quantity is 0, you can omit Items.
-
withItems
Optional: A complex type that contains whitelisted cookies for this cache behavior. If Quantity is 0, you can omit Items.NOTE: This method appends the values to the existing list (if any). Use
setItems(java.util.Collection)orwithItems(java.util.Collection)if you want to override the existing values.- Parameters:
items- Optional: A complex type that contains whitelisted cookies for this cache behavior. If Quantity is 0, you can omit Items.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withItems
Optional: A complex type that contains whitelisted cookies for this cache behavior. If Quantity is 0, you can omit Items.- Parameters:
items- Optional: A complex type that contains whitelisted cookies for this cache behavior. If Quantity is 0, you can omit Items.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
-
equals
-
hashCode
-
clone
-