Class CfnWebACL.CookieMatchPatternProperty.Builder
java.lang.Object
software.amazon.awscdk.services.wafv2.CfnWebACL.CookieMatchPatternProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebACL.CookieMatchPatternProperty>
- Enclosing interface:
- CfnWebACL.CookieMatchPatternProperty
@Stability(Stable)
public static final class CfnWebACL.CookieMatchPatternProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWebACL.CookieMatchPatternProperty>
A builder for
CfnWebACL.CookieMatchPatternProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnWebACL.CookieMatchPatternProperty.getAll()
build()
Builds the configured instance.excludedCookies
(List<String> excludedCookies) Sets the value ofCfnWebACL.CookieMatchPatternProperty.getExcludedCookies()
includedCookies
(List<String> includedCookies) Sets the value ofCfnWebACL.CookieMatchPatternProperty.getIncludedCookies()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
all
Sets the value ofCfnWebACL.CookieMatchPatternProperty.getAll()
- Parameters:
all
- Inspect all cookies.- Returns:
this
-
excludedCookies
@Stability(Stable) public CfnWebACL.CookieMatchPatternProperty.Builder excludedCookies(List<String> excludedCookies) Sets the value ofCfnWebACL.CookieMatchPatternProperty.getExcludedCookies()
- Parameters:
excludedCookies
- Inspect only the cookies whose keys don't match any of the strings specified here.- Returns:
this
-
includedCookies
@Stability(Stable) public CfnWebACL.CookieMatchPatternProperty.Builder includedCookies(List<String> includedCookies) Sets the value ofCfnWebACL.CookieMatchPatternProperty.getIncludedCookies()
- Parameters:
includedCookies
- Inspect only the cookies that have a key that matches one of the strings specified here.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnWebACL.CookieMatchPatternProperty>
- Returns:
- a new instance of
CfnWebACL.CookieMatchPatternProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-