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
Constructors -
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 alsoMatchScopein theJsonBodyFieldToMatchspecification. You must specify either this setting or theIncludedPathssetting, 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 alsoMatchScopein theJsonBodyFieldToMatchspecification. 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
Allsetting, but not both.Don't use this option to include all paths. Instead, use the
Allsetting.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRuleGroup.JsonMatchPatternProperty>- Returns:
- a new instance of
CfnRuleGroup.JsonMatchPatternProperty - Throws:
NullPointerException- if any required attribute was not provided
-