Package com.amazonaws.services.s3.model
Class TagSet
- java.lang.Object
-
- com.amazonaws.services.s3.model.TagSet
-
- All Implemented Interfaces:
Serializable
public class TagSet extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getAllTags()
Get all the tags for thisTagSet
String
getTag(String key)
Get the value of the tag with the given key.void
setTag(String key, String value)
Sets the value of the tag for a given key.String
toString()
-
-
-
Constructor Detail
-
TagSet
public TagSet()
Creates a new empty TagSet.
- See Also:
TagSet(Map)
-
-
Method Detail
-
getTag
public String getTag(String key)
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
public void setTag(String key, String value)
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
public Map<String,String> getAllTags()
Get all the tags for this
TagSet
- Returns:
- A map of key/value for all tags
-
-