Class CfnRuleGroup.HeaderMatchPatternProperty.Builder
java.lang.Object
software.amazon.awscdk.services.wafv2.CfnRuleGroup.HeaderMatchPatternProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuleGroup.HeaderMatchPatternProperty>
- Enclosing interface:
CfnRuleGroup.HeaderMatchPatternProperty
@Stability(Stable)
public static final class CfnRuleGroup.HeaderMatchPatternProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRuleGroup.HeaderMatchPatternProperty>
A builder for
CfnRuleGroup.HeaderMatchPatternProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnRuleGroup.HeaderMatchPatternProperty.getAll()
build()
Builds the configured instance.excludedHeaders
(List<String> excludedHeaders) Sets the value ofCfnRuleGroup.HeaderMatchPatternProperty.getExcludedHeaders()
includedHeaders
(List<String> includedHeaders) Sets the value ofCfnRuleGroup.HeaderMatchPatternProperty.getIncludedHeaders()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
all
Sets the value ofCfnRuleGroup.HeaderMatchPatternProperty.getAll()
- Parameters:
all
- Inspect all headers.- Returns:
this
-
excludedHeaders
@Stability(Stable) public CfnRuleGroup.HeaderMatchPatternProperty.Builder excludedHeaders(List<String> excludedHeaders) Sets the value ofCfnRuleGroup.HeaderMatchPatternProperty.getExcludedHeaders()
- Parameters:
excludedHeaders
- Inspect only the headers whose keys don't match any of the strings specified here.- Returns:
this
-
includedHeaders
@Stability(Stable) public CfnRuleGroup.HeaderMatchPatternProperty.Builder includedHeaders(List<String> includedHeaders) Sets the value ofCfnRuleGroup.HeaderMatchPatternProperty.getIncludedHeaders()
- Parameters:
includedHeaders
- Inspect only the headers 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<CfnRuleGroup.HeaderMatchPatternProperty>
- Returns:
- a new instance of
CfnRuleGroup.HeaderMatchPatternProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-