Class CfnDistribution.CookieObjectProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lightsail.CfnDistribution.CookieObjectProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDistribution.CookieObjectProperty>
- Enclosing interface:
CfnDistribution.CookieObjectProperty
@Stability(Stable)
public static final class CfnDistribution.CookieObjectProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDistribution.CookieObjectProperty>
A builder for
CfnDistribution.CookieObjectProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.cookiesAllowList
(List<String> cookiesAllowList) Sets the value ofCfnDistribution.CookieObjectProperty.getCookiesAllowList()
Sets the value ofCfnDistribution.CookieObjectProperty.getOption()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cookiesAllowList
@Stability(Stable) public CfnDistribution.CookieObjectProperty.Builder cookiesAllowList(List<String> cookiesAllowList) Sets the value ofCfnDistribution.CookieObjectProperty.getCookiesAllowList()
- Parameters:
cookiesAllowList
- The specific cookies to forward to your distribution's origin.- Returns:
this
-
option
Sets the value ofCfnDistribution.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 theCookiesAllowList
parameter.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDistribution.CookieObjectProperty>
- Returns:
- a new instance of
CfnDistribution.CookieObjectProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-