public static final class CfnRuleGroup.LabelMatchStatementProperty.Builder
extends java.lang.Object
CfnRuleGroup.LabelMatchStatementProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnRuleGroup.LabelMatchStatementProperty |
build()
Builds the configured instance.
|
CfnRuleGroup.LabelMatchStatementProperty.Builder |
key(java.lang.String key)
Sets the value of
CfnRuleGroup.LabelMatchStatementProperty.getKey() |
CfnRuleGroup.LabelMatchStatementProperty.Builder |
scope(java.lang.String scope)
Sets the value of
CfnRuleGroup.LabelMatchStatementProperty.getScope() |
public CfnRuleGroup.LabelMatchStatementProperty.Builder key(java.lang.String key)
CfnRuleGroup.LabelMatchStatementProperty.getKey()
key
- The string to match against. The setting you provide for this depends on the match statement's `Scope` setting:. This parameter is required.
Scope
indicates LABEL
, 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.Scope
indicates NAMESPACE
, 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
.
this
public CfnRuleGroup.LabelMatchStatementProperty.Builder scope(java.lang.String scope)
CfnRuleGroup.LabelMatchStatementProperty.getScope()
scope
- Specify whether you want to match using the label name or just the namespace. This parameter is required.this
public CfnRuleGroup.LabelMatchStatementProperty build()
CfnRuleGroup.LabelMatchStatementProperty
java.lang.NullPointerException
- if any required attribute was not provided