Class 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>

    Metadata that is associated with Amazon Web Services resources. In particular, a name-value pair that can be associated with an Cloud9 development environment. There are two types of tags: user tags and system tags. A user tag is created by the user. A system tag is automatically created by Amazon Web Services services. A system tag is prefixed with "aws:" and cannot be modified by the user.

    See Also:
    Serialized Form
    • Method Detail

      • key

        public final String key()

        The name part of a tag.

        Returns:
        The name part of a tag.
      • value

        public final String value()

        The value part of a tag.

        Returns:
        The value part of a tag.
      • serializableBuilderClass

        public static Class<? extends Tag.Builder> serializableBuilderClass()
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)