Package com.amazonaws.services.s3.model
Class TagSet
java.lang.Object
com.amazonaws.services.s3.model.TagSet
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TagSet
public TagSet()Creates a new empty TagSet.
- See Also:
-
TagSet
Creates a new TagSet with the set of tags defined.
- Parameters:
tags
- A key/value mapping of tags to store in thisTagSet
-
-
Method Details
-
getTag
Get the value of the tag with the given key.
- Parameters:
key
- The key of the tag to return- Returns:
- The value of the given tag. Will return null if no tag by the given key exists.
-
setTag
Sets the value of the tag for a given key. Will overwrite existing value.
- Parameters:
key
- The key for the tagvalue
- The value for the tag
-
getAllTags
Get all the tags for this
TagSet
- Returns:
- A map of key/value for all tags
-
toString
-