Class CookiePreference
- java.lang.Object
-
- com.amazonaws.services.cloudfront.model.CookiePreference
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class CookiePreference extends Object implements Serializable, Cloneable
A complex type that specifies the cookie preferences associated with this cache behavior.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CookiePreference()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CookiePreference
clone()
boolean
equals(Object obj)
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(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.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(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.
-
-
-
Method Detail
-
setForward
public void setForward(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.- 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
-
getForward
public 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.- 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
-
withForward
public CookiePreference withForward(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.- 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:
- Returns a reference to this 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.- 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.- 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ItemSelection
-
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.
-
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.
-
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.- 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:
- Returns a reference to this 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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CookiePreference clone()
-
-