Class CfnRuleGroup.LabelMatchStatementProperty.Builder
java.lang.Object
software.amazon.awscdk.services.wafv2.CfnRuleGroup.LabelMatchStatementProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuleGroup.LabelMatchStatementProperty>
- Enclosing interface:
CfnRuleGroup.LabelMatchStatementProperty
@Stability(Stable)
public static final class CfnRuleGroup.LabelMatchStatementProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRuleGroup.LabelMatchStatementProperty>
A builder for
CfnRuleGroup.LabelMatchStatementProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnRuleGroup.LabelMatchStatementProperty.getKey()
Sets the value ofCfnRuleGroup.LabelMatchStatementProperty.getScope()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
key
Sets the value ofCfnRuleGroup.LabelMatchStatementProperty.getKey()
- Parameters:
key
- The string to match against. The setting you provide for this depends on the match statement'sScope
setting:. This parameter is required.- If the
Scope
indicatesLABEL
, then this specification must include the name and can include any number of preceding namespace specifications and prefix up to providing the fully qualified label name. - If the
Scope
indicatesNAMESPACE
, then this specification can include any number of contiguous namespace strings, and can include the entire label namespace prefix from the rule group or web ACL where the label originates.
Labels are case sensitive and components of a label must be separated by colon, for example
NS1:NS2:name
.- If the
- Returns:
this
-
scope
Sets the value ofCfnRuleGroup.LabelMatchStatementProperty.getScope()
- Parameters:
scope
- Specify whether you want to match using the label name or just the namespace. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRuleGroup.LabelMatchStatementProperty>
- Returns:
- a new instance of
CfnRuleGroup.LabelMatchStatementProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-