Class CfnDistribution.QueryStringObjectProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lightsail.CfnDistribution.QueryStringObjectProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDistribution.QueryStringObjectProperty>
- Enclosing interface:
CfnDistribution.QueryStringObjectProperty
@Stability(Stable)
public static final class CfnDistribution.QueryStringObjectProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDistribution.QueryStringObjectProperty>
A builder for
CfnDistribution.QueryStringObjectProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnDistribution.QueryStringObjectProperty.getOption()
option
(IResolvable option) Sets the value ofCfnDistribution.QueryStringObjectProperty.getOption()
queryStringsAllowList
(List<String> queryStringsAllowList) Sets the value ofCfnDistribution.QueryStringObjectProperty.getQueryStringsAllowList()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
option
Sets the value ofCfnDistribution.QueryStringObjectProperty.getOption()
- Parameters:
option
- Indicates whether the distribution forwards and caches based on query strings.- Returns:
this
-
option
@Stability(Stable) public CfnDistribution.QueryStringObjectProperty.Builder option(IResolvable option) Sets the value ofCfnDistribution.QueryStringObjectProperty.getOption()
- Parameters:
option
- Indicates whether the distribution forwards and caches based on query strings.- Returns:
this
-
queryStringsAllowList
@Stability(Stable) public CfnDistribution.QueryStringObjectProperty.Builder queryStringsAllowList(List<String> queryStringsAllowList) Sets the value ofCfnDistribution.QueryStringObjectProperty.getQueryStringsAllowList()
- 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
option
parameter is true, then your distribution forwards all query strings, regardless of what you specify using theQueryStringsAllowList
parameter.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDistribution.QueryStringObjectProperty>
- Returns:
- a new instance of
CfnDistribution.QueryStringObjectProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-