Class CookiePreference
java.lang.Object
com.amazonaws.services.cloudfront.model.CookiePreference
- All Implemented Interfaces:
Serializable
,Cloneable
A complex type that specifies the cookie preferences associated with this
cache behavior.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
Use this element to specify whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior.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.toString()
Returns a string representation of this object; useful for testing and debugging.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.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.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.
-
Constructor Details
-
CookiePreference
public CookiePreference()
-
-
Method Details
-
setForward
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:
-
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:
-
withForward
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:
-
setForward
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:
-
withForward
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:
-
setWhitelistedNames
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
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-