Class CfnCachePolicyPropsMixin.CookiesConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cloudfront.CfnCachePolicyPropsMixin.CookiesConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCachePolicyPropsMixin.CookiesConfigProperty>
- Enclosing interface:
CfnCachePolicyPropsMixin.CookiesConfigProperty
@Stability(Stable)
public static final class CfnCachePolicyPropsMixin.CookiesConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCachePolicyPropsMixin.CookiesConfigProperty>
A builder for
CfnCachePolicyPropsMixin.CookiesConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cookieBehavior(String cookieBehavior) Sets the value ofCfnCachePolicyPropsMixin.CookiesConfigProperty.getCookieBehavior()Sets the value ofCfnCachePolicyPropsMixin.CookiesConfigProperty.getCookies()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cookieBehavior
@Stability(Stable) public CfnCachePolicyPropsMixin.CookiesConfigProperty.Builder cookieBehavior(String cookieBehavior) Sets the value ofCfnCachePolicyPropsMixin.CookiesConfigProperty.getCookieBehavior()- Parameters:
cookieBehavior- Determines whether any cookies in viewer requests are included in the cache key and in requests that CloudFront sends to the origin. Valid values are:none– No cookies 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 cookies that are listed in anOriginRequestPolicyare included in origin requests.whitelist– Only the cookies in viewer requests that are listed in theCookieNamestype are included in the cache key and in requests that CloudFront sends to the origin.allExcept– All cookies in viewer requests are included in the cache key and in requests that CloudFront sends to the origin, except for those that are listed in theCookieNamestype, which are not included.all– All cookies in viewer requests are included in the cache key and in requests that CloudFront sends to the origin.
- Returns:
this
-
cookies
@Stability(Stable) public CfnCachePolicyPropsMixin.CookiesConfigProperty.Builder cookies(List<String> cookies) Sets the value ofCfnCachePolicyPropsMixin.CookiesConfigProperty.getCookies()- Parameters:
cookies- Contains a list of cookie names.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCachePolicyPropsMixin.CookiesConfigProperty>- Returns:
- a new instance of
CfnCachePolicyPropsMixin.CookiesConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-