Class CfnRuleGroup.CookieMatchPatternProperty.Builder
java.lang.Object
software.amazon.awscdk.services.wafv2.CfnRuleGroup.CookieMatchPatternProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuleGroup.CookieMatchPatternProperty>
- Enclosing interface:
CfnRuleGroup.CookieMatchPatternProperty
@Stability(Stable)
public static final class CfnRuleGroup.CookieMatchPatternProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRuleGroup.CookieMatchPatternProperty>
A builder for
CfnRuleGroup.CookieMatchPatternProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnRuleGroup.CookieMatchPatternProperty.getAll()build()Builds the configured instance.excludedCookies(List<String> excludedCookies) Sets the value ofCfnRuleGroup.CookieMatchPatternProperty.getExcludedCookies()includedCookies(List<String> includedCookies) Sets the value ofCfnRuleGroup.CookieMatchPatternProperty.getIncludedCookies()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
all
Sets the value ofCfnRuleGroup.CookieMatchPatternProperty.getAll()- Parameters:
all- Inspect all cookies.- Returns:
this
-
excludedCookies
@Stability(Stable) public CfnRuleGroup.CookieMatchPatternProperty.Builder excludedCookies(List<String> excludedCookies) Sets the value ofCfnRuleGroup.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 CfnRuleGroup.CookieMatchPatternProperty.Builder includedCookies(List<String> includedCookies) Sets the value ofCfnRuleGroup.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnRuleGroup.CookieMatchPatternProperty>- Returns:
- a new instance of
CfnRuleGroup.CookieMatchPatternProperty - Throws:
NullPointerException- if any required attribute was not provided
-