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