Class TagValuePair
- java.lang.Object
-
- software.amazon.awssdk.services.macie2.model.TagValuePair
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TagValuePair.Builder,TagValuePair>
@Generated("software.amazon.awssdk:codegen") public final class TagValuePair extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TagValuePair.Builder,TagValuePair>
Specifies a tag key or tag key and value pair to use in a tag-based condition that determines whether an S3 object is included or excluded from a classification job. Tag keys and values are case sensitive. Also, Amazon Macie doesn't support use of partial values or wildcard characters in tag-based conditions.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTagValuePair.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TagValuePair.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringkey()The value for the tag key to use in the condition.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends TagValuePair.Builder>serializableBuilderClass()TagValuePair.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringvalue()The tag value, associated with the specified tag key (key), to use in the condition.-
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
-
key
public final String key()
The value for the tag key to use in the condition.
- Returns:
- The value for the tag key to use in the condition.
-
value
public final String value()
The tag value, associated with the specified tag key (key), to use in the condition. To specify only a tag key for a condition, specify the tag key for the key property and set this value to an empty string.
- Returns:
- The tag value, associated with the specified tag key (key), to use in the condition. To specify only a tag key for a condition, specify the tag key for the key property and set this value to an empty string.
-
toBuilder
public TagValuePair.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<TagValuePair.Builder,TagValuePair>
-
builder
public static TagValuePair.Builder builder()
-
serializableBuilderClass
public static Class<? extends TagValuePair.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
-
-