@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListTagsForResourceResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListTagsForResourceResult() |
Modifier and Type | Method and Description |
---|---|
ListTagsForResourceResult |
clone() |
boolean |
equals(Object obj) |
List<Tag> |
getTags()
The tags to add to the resource.
|
int |
hashCode() |
void |
setTags(Collection<Tag> tags)
The tags to add to the resource.
|
String |
toString()
Returns a string representation of this object.
|
ListTagsForResourceResult |
withTags(Collection<Tag> tags)
The tags to add to the resource.
|
ListTagsForResourceResult |
withTags(Tag... tags)
The tags to add to the resource.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<Tag> getTags()
The tags to add to the resource. A tag is an array of key-value pairs. Tag keys can have a maximum character length of 128 characters. Tag values can have a maximum length of 256 characters.
public void setTags(Collection<Tag> tags)
The tags to add to the resource. A tag is an array of key-value pairs. Tag keys can have a maximum character length of 128 characters. Tag values can have a maximum length of 256 characters.
tags
- The tags to add to the resource. A tag is an array of key-value pairs. Tag keys can have a maximum
character length of 128 characters. Tag values can have a maximum length of 256 characters.public ListTagsForResourceResult withTags(Tag... tags)
The tags to add to the resource. A tag is an array of key-value pairs. Tag keys can have a maximum character length of 128 characters. Tag values can have a maximum length of 256 characters.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The tags to add to the resource. A tag is an array of key-value pairs. Tag keys can have a maximum
character length of 128 characters. Tag values can have a maximum length of 256 characters.public ListTagsForResourceResult withTags(Collection<Tag> tags)
The tags to add to the resource. A tag is an array of key-value pairs. Tag keys can have a maximum character length of 128 characters. Tag values can have a maximum length of 256 characters.
tags
- The tags to add to the resource. A tag is an array of key-value pairs. Tag keys can have a maximum
character length of 128 characters. Tag values can have a maximum length of 256 characters.public String toString()
toString
in class Object
Object.toString()
public ListTagsForResourceResult clone()