Class CfnDistributionPropsMixin.CookieObjectProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lightsail.CfnDistributionPropsMixin.CookieObjectProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDistributionPropsMixin.CookieObjectProperty>
- Enclosing interface:
CfnDistributionPropsMixin.CookieObjectProperty
@Stability(Stable)
public static final class CfnDistributionPropsMixin.CookieObjectProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDistributionPropsMixin.CookieObjectProperty>
A builder for
CfnDistributionPropsMixin.CookieObjectProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cookiesAllowList(List<String> cookiesAllowList) Sets the value ofCfnDistributionPropsMixin.CookieObjectProperty.getCookiesAllowList()Sets the value ofCfnDistributionPropsMixin.CookieObjectProperty.getOption()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cookiesAllowList
@Stability(Stable) public CfnDistributionPropsMixin.CookieObjectProperty.Builder cookiesAllowList(List<String> cookiesAllowList) Sets the value ofCfnDistributionPropsMixin.CookieObjectProperty.getCookiesAllowList()- Parameters:
cookiesAllowList- The specific cookies to forward to your distribution's origin.- Returns:
this
-
option
@Stability(Stable) public CfnDistributionPropsMixin.CookieObjectProperty.Builder option(String option) Sets the value ofCfnDistributionPropsMixin.CookieObjectProperty.getOption()- Parameters:
option- Specifies which cookies to forward to the distribution's origin for a cache behavior. Use one of the following configurations for your distribution:all- Forwards all cookies to your origin.none- Doesn’t forward cookies to your origin.allow-list- Forwards only the cookies that you specify using theCookiesAllowListparameter.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDistributionPropsMixin.CookieObjectProperty>- Returns:
- a new instance of
CfnDistributionPropsMixin.CookieObjectProperty - Throws:
NullPointerException- if any required attribute was not provided
-