Class ResourceTag

java.lang.Object
com.amazonaws.services.cloudtrail.model.ResourceTag
All Implemented Interfaces:
Serializable, Cloneable

public class ResourceTag extends Object implements Serializable, Cloneable

A resource tag.

See Also:
  • Constructor Details

    • ResourceTag

      public ResourceTag()
  • Method Details

    • setResourceId

      public void setResourceId(String resourceId)

      Specifies the ARN of the resource.

      Parameters:
      resourceId - Specifies the ARN of the resource.
    • getResourceId

      public String getResourceId()

      Specifies the ARN of the resource.

      Returns:
      Specifies the ARN of the resource.
    • withResourceId

      public ResourceTag withResourceId(String resourceId)

      Specifies the ARN of the resource.

      Parameters:
      resourceId - Specifies the ARN of the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getTagsList

      public List<Tag> getTagsList()
      Returns:
    • setTagsList

      public void setTagsList(Collection<Tag> tagsList)
      Parameters:
      tagsList -
    • withTagsList

      public ResourceTag withTagsList(Tag... tagsList)

      NOTE: This method appends the values to the existing list (if any). Use setTagsList(java.util.Collection) or withTagsList(java.util.Collection) if you want to override the existing values.

      Parameters:
      tagsList -
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withTagsList

      public ResourceTag withTagsList(Collection<Tag> tagsList)
      Parameters:
      tagsList -
      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 ResourceTag clone()
      Overrides:
      clone in class Object