Class Tag
- java.lang.Object
-
- software.amazon.awssdk.services.b2bi.model.Tag
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Tag.Builder,Tag>
@Generated("software.amazon.awssdk:codegen") public final class Tag extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Tag.Builder,Tag>
Creates a key-value pair for a specific resource. Tags are metadata that you can use to search for and group a resource for various purposes. You can apply tags to capabilities, partnerships, profiles and transformers. A tag key can take more than one value. For example, to group capabilities for accounting purposes, you might create a tag called
Groupand assign the valuesResearchandAccountingto that group.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTag.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Tag.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringkey()Specifies the name assigned to the tag that you create.List<SdkField<?>>sdkFields()static Class<? extends Tag.Builder>serializableBuilderClass()Tag.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringvalue()Contains one or more values that you assigned to the key name that you create.-
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()
Specifies the name assigned to the tag that you create.
- Returns:
- Specifies the name assigned to the tag that you create.
-
value
public final String value()
Contains one or more values that you assigned to the key name that you create.
- Returns:
- Contains one or more values that you assigned to the key name that you create.
-
toBuilder
public Tag.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Tag.Builder,Tag>
-
builder
public static Tag.Builder builder()
-
serializableBuilderClass
public static Class<? extends Tag.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.
-
-