Class CfnWebACLPropsMixin.LabelMatchStatementProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.wafv2.CfnWebACLPropsMixin.LabelMatchStatementProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebACLPropsMixin.LabelMatchStatementProperty>
- Enclosing interface:
CfnWebACLPropsMixin.LabelMatchStatementProperty
@Stability(Stable)
public static final class CfnWebACLPropsMixin.LabelMatchStatementProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWebACLPropsMixin.LabelMatchStatementProperty>
A builder for
CfnWebACLPropsMixin.LabelMatchStatementProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnWebACLPropsMixin.LabelMatchStatementProperty.getKey()Sets the value ofCfnWebACLPropsMixin.LabelMatchStatementProperty.getScope()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
key
Sets the value ofCfnWebACLPropsMixin.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 CfnWebACLPropsMixin.LabelMatchStatementProperty.Builder scope(String scope) Sets the value ofCfnWebACLPropsMixin.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<CfnWebACLPropsMixin.LabelMatchStatementProperty>- Returns:
- a new instance of
CfnWebACLPropsMixin.LabelMatchStatementProperty - Throws:
NullPointerException- if any required attribute was not provided
-