public class CookiePreference
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private 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.
|
private 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.
|
Constructor and Description |
---|
CookiePreference() |
Modifier and Type | Method and Description |
---|---|
CookiePreference |
clone() |
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.
|
private java.lang.String forward
private CookieNames whitelistedNames
public void setForward(java.lang.String forward)
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.ItemSelection
public java.lang.String getForward()
ItemSelection
public CookiePreference withForward(java.lang.String forward)
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.ItemSelection
public void setForward(ItemSelection forward)
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.ItemSelection
public CookiePreference withForward(ItemSelection forward)
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.ItemSelection
public void setWhitelistedNames(CookieNames whitelistedNames)
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.public CookieNames getWhitelistedNames()
public CookiePreference withWhitelistedNames(CookieNames whitelistedNames)
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.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CookiePreference clone()
clone
in class java.lang.Object