public class ListTagsForResourceResult extends Object implements Serializable, Cloneable
Represents the output from the AddTagsToResource , ListTagsOnResource , and RemoveTagsFromResource actions.
Constructor and Description |
---|
ListTagsForResourceResult() |
Modifier and Type | Method and Description |
---|---|
ListTagsForResourceResult |
clone() |
boolean |
equals(Object obj) |
List<Tag> |
getTagList()
A list of cost allocation tags as key-value pairs.
|
int |
hashCode() |
void |
setTagList(Collection<Tag> tagList)
A list of cost allocation tags as key-value pairs.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListTagsForResourceResult |
withTagList(Collection<Tag> tagList)
A list of cost allocation tags as key-value pairs.
|
ListTagsForResourceResult |
withTagList(Tag... tagList)
A list of cost allocation tags as key-value pairs.
|
public List<Tag> getTagList()
public void setTagList(Collection<Tag> tagList)
tagList
- A list of cost allocation tags as key-value pairs.public ListTagsForResourceResult withTagList(Tag... tagList)
NOTE: This method appends the values to the existing list (if
any). Use setTagList(java.util.Collection)
or withTagList(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.
tagList
- A list of cost allocation tags as key-value pairs.public ListTagsForResourceResult withTagList(Collection<Tag> tagList)
Returns a reference to this object so that method calls can be chained together.
tagList
- A list of cost allocation tags as key-value pairs.public String toString()
toString
in class Object
Object.toString()
public ListTagsForResourceResult clone()
Copyright © 2016. All rights reserved.