JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.795

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.services.cloudfront.model

Class OriginRequestPolicyCookiesConfig

    • Constructor Detail

      • OriginRequestPolicyCookiesConfig

        public OriginRequestPolicyCookiesConfig()
    • Method Detail

      • setCookieBehavior

        public void setCookieBehavior(String cookieBehavior)

        Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:

        • none – No cookies in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set to none, any cookies that are listed in a CachePolicy are included in origin requests.

        • whitelist – Only the cookies in viewer requests that are listed in the CookieNames type are included in requests that CloudFront sends to the origin.

        • all – All cookies in viewer requests are included in requests that CloudFront sends to the origin.

        • allExcept – All cookies in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in the CookieNames type, which are not included.

        Parameters:
        cookieBehavior - Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:

        • none – No cookies in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set to none, any cookies that are listed in a CachePolicy are included in origin requests.

        • whitelist – Only the cookies in viewer requests that are listed in the CookieNames type are included in requests that CloudFront sends to the origin.

        • all – All cookies in viewer requests are included in requests that CloudFront sends to the origin.

        • allExcept – All cookies in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in the CookieNames type, which are not included.

        See Also:
        OriginRequestPolicyCookieBehavior
      • getCookieBehavior

        public String getCookieBehavior()

        Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:

        • none – No cookies in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set to none, any cookies that are listed in a CachePolicy are included in origin requests.

        • whitelist – Only the cookies in viewer requests that are listed in the CookieNames type are included in requests that CloudFront sends to the origin.

        • all – All cookies in viewer requests are included in requests that CloudFront sends to the origin.

        • allExcept – All cookies in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in the CookieNames type, which are not included.

        Returns:
        Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:

        • none – No cookies in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set to none, any cookies that are listed in a CachePolicy are included in origin requests.

        • whitelist – Only the cookies in viewer requests that are listed in the CookieNames type are included in requests that CloudFront sends to the origin.

        • all – All cookies in viewer requests are included in requests that CloudFront sends to the origin.

        • allExcept – All cookies in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in the CookieNames type, which are not included.

        See Also:
        OriginRequestPolicyCookieBehavior
      • withCookieBehavior

        public OriginRequestPolicyCookiesConfig withCookieBehavior(String cookieBehavior)

        Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:

        • none – No cookies in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set to none, any cookies that are listed in a CachePolicy are included in origin requests.

        • whitelist – Only the cookies in viewer requests that are listed in the CookieNames type are included in requests that CloudFront sends to the origin.

        • all – All cookies in viewer requests are included in requests that CloudFront sends to the origin.

        • allExcept – All cookies in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in the CookieNames type, which are not included.

        Parameters:
        cookieBehavior - Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:

        • none – No cookies in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set to none, any cookies that are listed in a CachePolicy are included in origin requests.

        • whitelist – Only the cookies in viewer requests that are listed in the CookieNames type are included in requests that CloudFront sends to the origin.

        • all – All cookies in viewer requests are included in requests that CloudFront sends to the origin.

        • allExcept – All cookies in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in the CookieNames type, which are not included.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        OriginRequestPolicyCookieBehavior
      • withCookieBehavior

        public OriginRequestPolicyCookiesConfig withCookieBehavior(OriginRequestPolicyCookieBehavior cookieBehavior)

        Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:

        • none – No cookies in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set to none, any cookies that are listed in a CachePolicy are included in origin requests.

        • whitelist – Only the cookies in viewer requests that are listed in the CookieNames type are included in requests that CloudFront sends to the origin.

        • all – All cookies in viewer requests are included in requests that CloudFront sends to the origin.

        • allExcept – All cookies in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in the CookieNames type, which are not included.

        Parameters:
        cookieBehavior - Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:

        • none – No cookies in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set to none, any cookies that are listed in a CachePolicy are included in origin requests.

        • whitelist – Only the cookies in viewer requests that are listed in the CookieNames type are included in requests that CloudFront sends to the origin.

        • all – All cookies in viewer requests are included in requests that CloudFront sends to the origin.

        • allExcept – All cookies in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in the CookieNames type, which are not included.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        OriginRequestPolicyCookieBehavior
      • setCookies

        public void setCookies(CookieNames cookies)
        Parameters:
        cookies -
      • toString

        public String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /