Class CfnCachePolicyPropsMixin.QueryStringsConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cloudfront.CfnCachePolicyPropsMixin.QueryStringsConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCachePolicyPropsMixin.QueryStringsConfigProperty>
- Enclosing interface:
CfnCachePolicyPropsMixin.QueryStringsConfigProperty
@Stability(Stable)
public static final class CfnCachePolicyPropsMixin.QueryStringsConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCachePolicyPropsMixin.QueryStringsConfigProperty>
A builder for
CfnCachePolicyPropsMixin.QueryStringsConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.queryStringBehavior(String queryStringBehavior) queryStrings(List<String> queryStrings) Sets the value ofCfnCachePolicyPropsMixin.QueryStringsConfigProperty.getQueryStrings()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
queryStringBehavior
@Stability(Stable) public CfnCachePolicyPropsMixin.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. 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 tonone, any query strings that are listed in anOriginRequestPolicyare included in origin requests.whitelist– Only the query strings in viewer requests that are listed in theQueryStringNamestype 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 theQueryStringNamestype, 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 CfnCachePolicyPropsMixin.QueryStringsConfigProperty.Builder queryStrings(List<String> queryStrings) Sets the value ofCfnCachePolicyPropsMixin.QueryStringsConfigProperty.getQueryStrings()- Parameters:
queryStrings- Contains a list of query string names.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCachePolicyPropsMixin.QueryStringsConfigProperty>- Returns:
- a new instance of
CfnCachePolicyPropsMixin.QueryStringsConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-