Class LabelMatchStatement
- java.lang.Object
-
- software.amazon.awssdk.services.wafv2.model.LabelMatchStatement
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<LabelMatchStatement.Builder,LabelMatchStatement>
@Generated("software.amazon.awssdk:codegen") public final class LabelMatchStatement extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LabelMatchStatement.Builder,LabelMatchStatement>
A rule statement to match against labels that have been added to the web request by rules that have already run in the web ACL.
The label match statement provides the label or namespace string to search for. The label string can represent a part or all of the fully qualified label name that had been added to the web request. Fully qualified labels have a prefix, optional namespaces, and label name. The prefix identifies the rule group or web ACL context of the rule that added the label. If you do not provide the fully qualified name in your label match string, WAF performs the search for labels that were added in the same context as the label match statement.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceLabelMatchStatement.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LabelMatchStatement.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringkey()The string to match against.LabelMatchScopescope()Specify whether you want to match using the label name or just the namespace.StringscopeAsString()Specify whether you want to match using the label name or just the namespace.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends LabelMatchStatement.Builder>serializableBuilderClass()LabelMatchStatement.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
scope
public final LabelMatchScope scope()
Specify whether you want to match using the label name or just the namespace.
If the service returns an enum value that is not available in the current SDK version,
scopewill returnLabelMatchScope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromscopeAsString().- Returns:
- Specify whether you want to match using the label name or just the namespace.
- See Also:
LabelMatchScope
-
scopeAsString
public final String scopeAsString()
Specify whether you want to match using the label name or just the namespace.
If the service returns an enum value that is not available in the current SDK version,
scopewill returnLabelMatchScope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromscopeAsString().- Returns:
- Specify whether you want to match using the label name or just the namespace.
- See Also:
LabelMatchScope
-
key
public final String key()
The string to match against. The setting you provide for this depends on the match statement's
Scopesetting:-
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.- Returns:
- The string to match against. The setting you provide for this depends on the match statement's
Scopesetting:-
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. -
-
-
toBuilder
public LabelMatchStatement.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<LabelMatchStatement.Builder,LabelMatchStatement>
-
builder
public static LabelMatchStatement.Builder builder()
-
serializableBuilderClass
public static Class<? extends LabelMatchStatement.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-