public class ResourceTag extends Object implements Serializable, Cloneable
A resource tag.
| Constructor and Description |
|---|
ResourceTag() |
| Modifier and Type | Method and Description |
|---|---|
ResourceTag |
clone() |
boolean |
equals(Object obj) |
String |
getResourceId()
Specifies the ARN of the resource.
|
List<Tag> |
getTagsList()
A list of tags.
|
int |
hashCode() |
void |
setResourceId(String resourceId)
Specifies the ARN of the resource.
|
void |
setTagsList(Collection<Tag> tagsList)
A list of tags.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ResourceTag |
withResourceId(String resourceId)
Specifies the ARN of the resource.
|
ResourceTag |
withTagsList(Collection<Tag> tagsList)
A list of tags.
|
ResourceTag |
withTagsList(Tag... tagsList)
A list of tags.
|
public String getResourceId()
public void setResourceId(String resourceId)
resourceId - Specifies the ARN of the resource.public ResourceTag withResourceId(String resourceId)
Returns a reference to this object so that method calls can be chained together.
resourceId - Specifies the ARN of the resource.public void setTagsList(Collection<Tag> tagsList)
tagsList - A list of tags.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.
Returns a reference to this object so that method calls can be chained together.
tagsList - A list of tags.public ResourceTag withTagsList(Collection<Tag> tagsList)
Returns a reference to this object so that method calls can be chained together.
tagsList - A list of tags.public String toString()
toString in class ObjectObject.toString()public ResourceTag clone()
Copyright © 2015. All rights reserved.