Class CfnCachePolicy.QueryStringsConfigProperty.Builder

java.lang.Object
software.amazon.awscdk.services.cloudfront.CfnCachePolicy.QueryStringsConfigProperty.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCachePolicy.QueryStringsConfigProperty>
Enclosing interface:
CfnCachePolicy.QueryStringsConfigProperty

@Stability(Stable) public static final class CfnCachePolicy.QueryStringsConfigProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnCachePolicy.QueryStringsConfigProperty>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • queryStringBehavior

      @Stability(Stable) public CfnCachePolicy.QueryStringsConfigProperty.Builder queryStringBehavior(String queryStringBehavior)
      Parameters:
      queryStringBehavior - Determines whether any URL query strings in viewer requests are included in the cache key and in requests that CloudFront sends to the origin. This parameter is required. Valid values are:

      • none – No query strings in viewer requests are included in the cache key or in requests that CloudFront sends to the origin. Even when this field is set to none , any query strings that are listed in an OriginRequestPolicy are included in origin requests.
      • whitelist – Only the query strings in viewer requests that are listed in the QueryStringNames type are included in the cache key and in requests that CloudFront sends to the origin.
      • allExcept – All query strings in viewer requests are included in the cache key and in requests that CloudFront sends to the origin, except those that are listed in the QueryStringNames type, which are not included.
      • all – All query strings in viewer requests are included in the cache key and in requests that CloudFront sends to the origin.
      Returns:
      this
    • queryStrings

      @Stability(Stable) public CfnCachePolicy.QueryStringsConfigProperty.Builder queryStrings(List<String> queryStrings)
      Parameters:
      queryStrings - Contains a list of query string names.
      Returns:
      this
    • build

      @Stability(Stable) public CfnCachePolicy.QueryStringsConfigProperty build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnCachePolicy.QueryStringsConfigProperty>
      Returns:
      a new instance of CfnCachePolicy.QueryStringsConfigProperty
      Throws:
      NullPointerException - if any required attribute was not provided