JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.793

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 CachePolicyHeadersConfig

    • Constructor Detail

      • CachePolicyHeadersConfig

        public CachePolicyHeadersConfig()
    • Method Detail

      • setHeaderBehavior

        public void setHeaderBehavior(String headerBehavior)

        Determines whether any HTTP headers are included in the cache key and in requests that CloudFront sends to the origin. Valid values are:

        • none – No HTTP headers are included in the cache key or in requests that CloudFront sends to the origin. Even when this field is set to none, any headers that are listed in an OriginRequestPolicy are included in origin requests.

        • whitelist – Only the HTTP headers that are listed in the Headers type are included in the cache key and in requests that CloudFront sends to the origin.

        Parameters:
        headerBehavior - Determines whether any HTTP headers are included in the cache key and in requests that CloudFront sends to the origin. Valid values are:

        • none – No HTTP headers are included in the cache key or in requests that CloudFront sends to the origin. Even when this field is set to none, any headers that are listed in an OriginRequestPolicy are included in origin requests.

        • whitelist – Only the HTTP headers that are listed in the Headers type are included in the cache key and in requests that CloudFront sends to the origin.

        See Also:
        CachePolicyHeaderBehavior
      • getHeaderBehavior

        public String getHeaderBehavior()

        Determines whether any HTTP headers are included in the cache key and in requests that CloudFront sends to the origin. Valid values are:

        • none – No HTTP headers are included in the cache key or in requests that CloudFront sends to the origin. Even when this field is set to none, any headers that are listed in an OriginRequestPolicy are included in origin requests.

        • whitelist – Only the HTTP headers that are listed in the Headers type are included in the cache key and in requests that CloudFront sends to the origin.

        Returns:
        Determines whether any HTTP headers are included in the cache key and in requests that CloudFront sends to the origin. Valid values are:

        • none – No HTTP headers are included in the cache key or in requests that CloudFront sends to the origin. Even when this field is set to none, any headers that are listed in an OriginRequestPolicy are included in origin requests.

        • whitelist – Only the HTTP headers that are listed in the Headers type are included in the cache key and in requests that CloudFront sends to the origin.

        See Also:
        CachePolicyHeaderBehavior
      • withHeaderBehavior

        public CachePolicyHeadersConfig withHeaderBehavior(String headerBehavior)

        Determines whether any HTTP headers are included in the cache key and in requests that CloudFront sends to the origin. Valid values are:

        • none – No HTTP headers are included in the cache key or in requests that CloudFront sends to the origin. Even when this field is set to none, any headers that are listed in an OriginRequestPolicy are included in origin requests.

        • whitelist – Only the HTTP headers that are listed in the Headers type are included in the cache key and in requests that CloudFront sends to the origin.

        Parameters:
        headerBehavior - Determines whether any HTTP headers are included in the cache key and in requests that CloudFront sends to the origin. Valid values are:

        • none – No HTTP headers are included in the cache key or in requests that CloudFront sends to the origin. Even when this field is set to none, any headers that are listed in an OriginRequestPolicy are included in origin requests.

        • whitelist – Only the HTTP headers that are listed in the Headers type are included in the cache key and in requests that CloudFront sends to the origin.

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

        public CachePolicyHeadersConfig withHeaderBehavior(CachePolicyHeaderBehavior headerBehavior)

        Determines whether any HTTP headers are included in the cache key and in requests that CloudFront sends to the origin. Valid values are:

        • none – No HTTP headers are included in the cache key or in requests that CloudFront sends to the origin. Even when this field is set to none, any headers that are listed in an OriginRequestPolicy are included in origin requests.

        • whitelist – Only the HTTP headers that are listed in the Headers type are included in the cache key and in requests that CloudFront sends to the origin.

        Parameters:
        headerBehavior - Determines whether any HTTP headers are included in the cache key and in requests that CloudFront sends to the origin. Valid values are:

        • none – No HTTP headers are included in the cache key or in requests that CloudFront sends to the origin. Even when this field is set to none, any headers that are listed in an OriginRequestPolicy are included in origin requests.

        • whitelist – Only the HTTP headers that are listed in the Headers type are included in the cache key and in requests that CloudFront sends to the origin.

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

        public void setHeaders(Headers headers)
        Parameters:
        headers -
      • getHeaders

        public Headers getHeaders()
        Returns:
      • withHeaders

        public CachePolicyHeadersConfig withHeaders(Headers headers)
        Parameters:
        headers -
        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. 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 によって変換されたページ (->オリジナル) /