public abstract class TagActionData extends PushModelObject
Constructor and Description |
---|
TagActionData() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
getSingleTag()
Returns the tag represented, if this object was constructed
with
single(String) , otherwise throw an exception. |
abstract java.util.Set<java.lang.String> |
getTagSet()
Returns the tags represented, if this object was constructed
with
set(Set) , otherwise throw an exception. |
abstract boolean |
isSingle()
When true, this object represents a single tag (and calling
getSingleTag() will succeed). |
static TagActionData |
set(java.util.Set<java.lang.String> tags)
Represents a set of tags.
|
static TagActionData |
single(java.lang.String tag)
Represents a single tag.
|
toJSON
toJSON
public static TagActionData single(java.lang.String tag)
tag
- String tagpublic static TagActionData set(java.util.Set<java.lang.String> tags)
tags
- Set of tagspublic abstract boolean isSingle()
getSingleTag()
will succeed).
Otherwise, this represents a set of tags (and calling getTagSet()
will succeed).public abstract java.lang.String getSingleTag()
single(String)
, otherwise throw an exception.public abstract java.util.Set<java.lang.String> getTagSet()
set(Set)
, otherwise throw an exception.