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