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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceTagclone()booleanequals(Object obj)StringgetResourceId()Specifies the ARN of the resource.List<Tag>getTagsList()inthashCode()voidsetResourceId(String resourceId)Specifies the ARN of the resource.voidsetTagsList(Collection<Tag> tagsList)StringtoString()Returns a string representation of this object; useful for testing and debugging.ResourceTagwithResourceId(String resourceId)Specifies the ARN of the resource.ResourceTagwithTagsList(Tag... tagsList)NOTE: This method appends the values to the existing list (if any).ResourceTagwithTagsList(Collection<Tag> tagsList)
-
-
-
Method Detail
-
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.
-
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)orwithTagsList(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ResourceTag clone()
-
-