Class CfnRuleGroup.JsonMatchPatternProperty.Builder
java.lang.Object
software.amazon.awscdk.services.wafv2.CfnRuleGroup.JsonMatchPatternProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuleGroup.JsonMatchPatternProperty>
- Enclosing interface:
CfnRuleGroup.JsonMatchPatternProperty
@Stability(Stable)
public static final class CfnRuleGroup.JsonMatchPatternProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRuleGroup.JsonMatchPatternProperty>
A builder for
CfnRuleGroup.JsonMatchPatternProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnRuleGroup.JsonMatchPatternProperty.getAll()
build()
Builds the configured instance.includedPaths
(List<String> includedPaths) Sets the value ofCfnRuleGroup.JsonMatchPatternProperty.getIncludedPaths()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
all
Sets the value ofCfnRuleGroup.JsonMatchPatternProperty.getAll()
- Parameters:
all
- Match all of the elements. See alsoMatchScope
in theJsonBody
FieldToMatch
specification. You must specify either this setting or theIncludedPaths
setting, but not both.- Returns:
this
-
includedPaths
@Stability(Stable) public CfnRuleGroup.JsonMatchPatternProperty.Builder includedPaths(List<String> includedPaths) Sets the value ofCfnRuleGroup.JsonMatchPatternProperty.getIncludedPaths()
- Parameters:
includedPaths
- Match only the specified include paths. See alsoMatchScope
in theJsonBody
FieldToMatch
specification. Provide the include paths using JSON Pointer syntax. For example,"IncludedPaths": ["/dogs/0/name", "/dogs/1/name"]
. For information about this syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer .You must specify either this setting or the
All
setting, but not both.Don't use this option to include all paths. Instead, use the
All
setting.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRuleGroup.JsonMatchPatternProperty>
- Returns:
- a new instance of
CfnRuleGroup.JsonMatchPatternProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-