Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.cloudfront.model
Class CookieNames

java.lang.Object
  extended by com.amazonaws.services.cloudfront.model.CookieNames
All Implemented Interfaces:
Serializable

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.

See Also:
Serialized Form

Constructor Summary
CookieNames()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CookieNames

public CookieNames()
Method Detail

getQuantity

public Integer getQuantity()
The number of whitelisted cookies for this cache behavior.

Returns:
The number of whitelisted cookies for this cache behavior.

setQuantity

public void setQuantity(Integer quantity)
The number of whitelisted cookies for this cache behavior.

Parameters:
quantity - The number of whitelisted cookies for this cache behavior.

withQuantity

public CookieNames withQuantity(Integer quantity)
The number of whitelisted cookies for this cache behavior.

Returns a reference to this object so that method calls can be chained together.

Parameters:
quantity - The number of whitelisted cookies for this cache behavior.
Returns:
A reference to this updated object so that method calls can be chained together.

getItems

public List<String> getItems()
Optional: A complex type that contains whitelisted cookies for this cache behavior. If Quantity is 0, you can omit Items.

Returns:
Optional: A complex type that contains whitelisted cookies for this cache behavior. If Quantity is 0, you can omit Items.

setItems

public void setItems(Collection<String> items)
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

public CookieNames withItems(String... items)
Optional: A complex type that contains whitelisted cookies for this cache behavior. If Quantity is 0, you can omit Items.

Returns a reference to this object so that method calls can be chained together.

Parameters:
items - Optional: A complex type that contains whitelisted cookies for this cache behavior. If Quantity is 0, you can omit Items.
Returns:
A reference to this updated object so that method calls can be chained together.

withItems

public CookieNames withItems(Collection<String> items)
Optional: A complex type that contains whitelisted cookies for this cache behavior. If Quantity is 0, you can omit Items.

Returns a reference to this object so that method calls can be chained together.

Parameters:
items - Optional: A complex type that contains whitelisted cookies for this cache behavior. If Quantity is 0, you can omit Items.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.