Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.cloudfront.model
Class CookiePreference

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

public class CookiePreference
extends java.lang.Object
implements java.io.Serializable

A complex type that specifies the cookie preferences associated with this cache behavior.

See Also:
Serialized Form

Constructor Summary
CookiePreference()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getForward()
          Use this element to specify whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior.
 CookieNames getWhitelistedNames()
          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.
 int hashCode()
           
 void setForward(ItemSelection forward)
          Use this element to specify whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior.
 void setForward(java.lang.String forward)
          Use this element to specify whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior.
 void setWhitelistedNames(CookieNames whitelistedNames)
          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.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CookiePreference withForward(ItemSelection forward)
          Use this element to specify whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior.
 CookiePreference withForward(java.lang.String forward)
          Use this element to specify whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior.
 CookiePreference withWhitelistedNames(CookieNames whitelistedNames)
          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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CookiePreference

public CookiePreference()
Method Detail

getForward

public java.lang.String getForward()
Use this element to specify whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior. You can specify all, none or whitelist. If you choose All, CloudFront forwards all cookies regardless of how many your application uses.

Constraints:
Allowed Values: none, whitelist, all

Returns:
Use this element to specify whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior. You can specify all, none or whitelist. If you choose All, CloudFront forwards all cookies regardless of how many your application uses.
See Also:
ItemSelection

setForward

public void setForward(java.lang.String forward)
Use this element to specify whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior. You can specify all, none or whitelist. If you choose All, CloudFront forwards all cookies regardless of how many your application uses.

Constraints:
Allowed Values: none, whitelist, all

Parameters:
forward - Use this element to specify whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior. You can specify all, none or whitelist. If you choose All, CloudFront forwards all cookies regardless of how many your application uses.
See Also:
ItemSelection

withForward

public CookiePreference withForward(java.lang.String forward)
Use this element to specify whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior. You can specify all, none or whitelist. If you choose All, CloudFront forwards all cookies regardless of how many your application uses.

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

Constraints:
Allowed Values: none, whitelist, all

Parameters:
forward - Use this element to specify whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior. You can specify all, none or whitelist. If you choose All, CloudFront forwards all cookies regardless of how many your application uses.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
ItemSelection

setForward

public void setForward(ItemSelection forward)
Use this element to specify whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior. You can specify all, none or whitelist. If you choose All, CloudFront forwards all cookies regardless of how many your application uses.

Constraints:
Allowed Values: none, whitelist, all

Parameters:
forward - Use this element to specify whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior. You can specify all, none or whitelist. If you choose All, CloudFront forwards all cookies regardless of how many your application uses.
See Also:
ItemSelection

withForward

public CookiePreference withForward(ItemSelection forward)
Use this element to specify whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior. You can specify all, none or whitelist. If you choose All, CloudFront forwards all cookies regardless of how many your application uses.

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

Constraints:
Allowed Values: none, whitelist, all

Parameters:
forward - Use this element to specify whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior. You can specify all, none or whitelist. If you choose All, CloudFront forwards all cookies regardless of how many your application uses.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
ItemSelection

getWhitelistedNames

public CookieNames getWhitelistedNames()
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.

Returns:
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.

setWhitelistedNames

public void setWhitelistedNames(CookieNames whitelistedNames)
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.

Parameters:
whitelistedNames - 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.

withWhitelistedNames

public CookiePreference withWhitelistedNames(CookieNames whitelistedNames)
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.

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

Parameters:
whitelistedNames - 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.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

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

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


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