com.amazonaws.services.s3.model
Class TagSet

java.lang.Object
  extended by com.amazonaws.services.s3.model.TagSet

public class TagSet
extends java.lang.Object


Constructor Summary
TagSet()
           Creates a new empty TagSet.
TagSet(java.util.Map<java.lang.String,java.lang.String> tags)
           Creates a new TagSet with the set of tags defined.
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> getAllTags()
           Get all the tags for this TagSet
 java.lang.String getTag(java.lang.String key)
           Get the value of the tag with the given key.
 void setTag(java.lang.String key, java.lang.String value)
           Sets the value of the tag for a given key.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TagSet

public TagSet()

Creates a new empty TagSet.

See Also:
TagSet(Map)

TagSet

public TagSet(java.util.Map<java.lang.String,java.lang.String> tags)

Creates a new TagSet with the set of tags defined.

Parameters:
tags - A key/value mapping of tags to store in this TagSet
Method Detail

getTag

public java.lang.String getTag(java.lang.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(java.lang.String key,
                   java.lang.String value)

Sets the value of the tag for a given key. Will overwrite existing value.

Parameters:
key - The key for the tag
value - The value for the tag

getAllTags

public java.util.Map<java.lang.String,java.lang.String> getAllTags()

Get all the tags for this TagSet

Returns:
A map of key/value for all tags

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.