Class TagDescription

java.lang.Object
com.amazonaws.services.ec2.model.TagDescription
All Implemented Interfaces:
Serializable, Cloneable

public class TagDescription extends Object implements Serializable, Cloneable

Describes a tag.

See Also:
  • Constructor Details

    • TagDescription

      public TagDescription()
  • Method Details

    • setResourceId

      public void setResourceId(String resourceId)

      The ID of the resource. For example, ami-1a2b3c4d.

      Parameters:
      resourceId - The ID of the resource. For example, ami-1a2b3c4d.
    • getResourceId

      public String getResourceId()

      The ID of the resource. For example, ami-1a2b3c4d.

      Returns:
      The ID of the resource. For example, ami-1a2b3c4d.
    • withResourceId

      public TagDescription withResourceId(String resourceId)

      The ID of the resource. For example, ami-1a2b3c4d.

      Parameters:
      resourceId - The ID of the resource. For example, ami-1a2b3c4d.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setResourceType

      public void setResourceType(String resourceType)

      The resource type.

      Parameters:
      resourceType - The resource type.
      See Also:
    • getResourceType

      public String getResourceType()

      The resource type.

      Returns:
      The resource type.
      See Also:
    • withResourceType

      public TagDescription withResourceType(String resourceType)

      The resource type.

      Parameters:
      resourceType - The resource type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setResourceType

      public void setResourceType(ResourceType resourceType)

      The resource type.

      Parameters:
      resourceType - The resource type.
      See Also:
    • withResourceType

      public TagDescription withResourceType(ResourceType resourceType)

      The resource type.

      Parameters:
      resourceType - The resource type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setKey

      public void setKey(String key)

      The tag key.

      Parameters:
      key - The tag key.
    • getKey

      public String getKey()

      The tag key.

      Returns:
      The tag key.
    • withKey

      public TagDescription withKey(String key)

      The tag key.

      Parameters:
      key - The tag key.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setValue

      public void setValue(String value)

      The tag value.

      Parameters:
      value - The tag value.
    • getValue

      public String getValue()

      The tag value.

      Returns:
      The tag value.
    • withValue

      public TagDescription withValue(String value)

      The tag value.

      Parameters:
      value - The tag value.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public TagDescription clone()
      Overrides:
      clone in class Object