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:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    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
     
    void
    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.
    Returns a string representation of this object; useful for testing and debugging.
    Use this element to specify whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior.
    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.

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CookiePreference

      public CookiePreference()
  • Method Details

    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public CookiePreference clone()
      Overrides:
      clone in class Object