public class TagSet
extends java.lang.Object
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
public TagSet()
Creates a new empty TagSet.
TagSet(Map)
public TagSet(java.util.Map<java.lang.String,java.lang.String> tags)
Creates a new TagSet with the set of tags defined.
tags
- A key/value mapping of tags to store in this
TagSet
public java.lang.String getTag(java.lang.String key)
Get the value of the tag with the given key.
key
- The key of the tag to returnpublic void setTag(java.lang.String key, java.lang.String value)
Sets the value of the tag for a given key. Will overwrite existing value.
key
- The key for the tagvalue
- The value for the tagpublic java.util.Map<java.lang.String,java.lang.String> getAllTags()
Get all the tags for this TagSet
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.