Class IpamResourceTag

java.lang.Object
software.amazon.awssdk.services.ec2.model.IpamResourceTag
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<IpamResourceTag.Builder,IpamResourceTag>

@Generated("software.amazon.awssdk:codegen") public final class IpamResourceTag extends Object implements SdkPojo, Serializable, ToCopyableBuilder<IpamResourceTag.Builder,IpamResourceTag>

The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

See Also:
  • Method Details

    • key

      public final String key()

      The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

      Returns:
      The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.
    • value

      public final String value()

      The value of the tag.

      Returns:
      The value of the tag.
    • toBuilder

      public IpamResourceTag.Builder toBuilder()
      Specified by:
      toBuilder in interface ToCopyableBuilder<IpamResourceTag.Builder,IpamResourceTag>
    • builder

      public static IpamResourceTag.Builder builder()
    • serializableBuilderClass

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

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

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Specified by:
      equalsBySdkFields in interface SdkPojo
    • 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)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo