Class Label
- java.lang.Object
-
- software.amazon.awssdk.services.wafv2.model.Label
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Label.Builder,Label>
@Generated("software.amazon.awssdk:codegen") public final class Label extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Label.Builder,Label>
A single label container. This is used as an element of a label array in multiple contexts, for example, in
RuleLabelsinside a Rule and inLabelsinside a SampledHTTPRequest.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceLabel.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Label.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringname()The label string.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Label.Builder>serializableBuilderClass()Label.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
-
name
public final String name()
The label string.
- Returns:
- The label string.
-
toBuilder
public Label.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Label.Builder,Label>
-
builder
public static Label.Builder builder()
-
serializableBuilderClass
public static Class<? extends Label.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
-
-