Class CfnDistributionPropsMixin.QueryStringObjectProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lightsail.CfnDistributionPropsMixin.QueryStringObjectProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDistributionPropsMixin.QueryStringObjectProperty>
- Enclosing interface:
CfnDistributionPropsMixin.QueryStringObjectProperty
@Stability(Stable)
public static final class CfnDistributionPropsMixin.QueryStringObjectProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDistributionPropsMixin.QueryStringObjectProperty>
A builder for
CfnDistributionPropsMixin.QueryStringObjectProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnDistributionPropsMixin.QueryStringObjectProperty.getOption()option(IResolvable option) Sets the value ofCfnDistributionPropsMixin.QueryStringObjectProperty.getOption()queryStringsAllowList(List<String> queryStringsAllowList)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
option
@Stability(Stable) public CfnDistributionPropsMixin.QueryStringObjectProperty.Builder option(Boolean option) Sets the value ofCfnDistributionPropsMixin.QueryStringObjectProperty.getOption()- Parameters:
option- Indicates whether the distribution forwards and caches based on query strings.- Returns:
this
-
option
@Stability(Stable) public CfnDistributionPropsMixin.QueryStringObjectProperty.Builder option(IResolvable option) Sets the value ofCfnDistributionPropsMixin.QueryStringObjectProperty.getOption()- Parameters:
option- Indicates whether the distribution forwards and caches based on query strings.- Returns:
this
-
queryStringsAllowList
@Stability(Stable) public CfnDistributionPropsMixin.QueryStringObjectProperty.Builder queryStringsAllowList(List<String> queryStringsAllowList) - Parameters:
queryStringsAllowList- The specific query strings that the distribution forwards to the origin. Your distribution caches content based on the specified query strings.If the
optionparameter is true, then your distribution forwards all query strings, regardless of what you specify using theQueryStringsAllowListparameter.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDistributionPropsMixin.QueryStringObjectProperty>- Returns:
- a new instance of
CfnDistributionPropsMixin.QueryStringObjectProperty - Throws:
NullPointerException- if any required attribute was not provided
-