Class CfnRuleGroupPropsMixin.LabelMatchStatementProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.wafv2.CfnRuleGroupPropsMixin.LabelMatchStatementProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuleGroupPropsMixin.LabelMatchStatementProperty>
- Enclosing interface:
CfnRuleGroupPropsMixin.LabelMatchStatementProperty
@Stability(Stable)
public static final class CfnRuleGroupPropsMixin.LabelMatchStatementProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRuleGroupPropsMixin.LabelMatchStatementProperty>
A builder for
CfnRuleGroupPropsMixin.LabelMatchStatementProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnRuleGroupPropsMixin.LabelMatchStatementProperty.getKey()Sets the value ofCfnRuleGroupPropsMixin.LabelMatchStatementProperty.getScope()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
key
@Stability(Stable) public CfnRuleGroupPropsMixin.LabelMatchStatementProperty.Builder key(String key) Sets the value ofCfnRuleGroupPropsMixin.LabelMatchStatementProperty.getKey()- Parameters:
key- The string to match against. The setting you provide for this depends on the match statement'sScopesetting:.- If the
ScopeindicatesLABEL, 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
ScopeindicatesNAMESPACE, 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
@Stability(Stable) public CfnRuleGroupPropsMixin.LabelMatchStatementProperty.Builder scope(String scope) Sets the value ofCfnRuleGroupPropsMixin.LabelMatchStatementProperty.getScope()- Parameters:
scope- Specify whether you want to match using the label name or just the namespace.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRuleGroupPropsMixin.LabelMatchStatementProperty>- Returns:
- a new instance of
CfnRuleGroupPropsMixin.LabelMatchStatementProperty - Throws:
NullPointerException- if any required attribute was not provided
-