@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TagsModel extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the tags (keys and values) for an application, campaign, message template, or segment.
Constructor and Description |
---|
TagsModel() |
Modifier and Type | Method and Description |
---|---|
TagsModel |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
TagsModel |
clearTagsEntries()
Removes all the entries added into Tags.
|
TagsModel |
clone() |
boolean |
equals(Object obj) |
Map<String,String> |
getTags()
A string-to-string map of key-value pairs that defines the tags for an application, campaign, message template,
or segment.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setTags(Map<String,String> tags)
A string-to-string map of key-value pairs that defines the tags for an application, campaign, message template,
or segment.
|
String |
toString()
Returns a string representation of this object.
|
TagsModel |
withTags(Map<String,String> tags)
A string-to-string map of key-value pairs that defines the tags for an application, campaign, message template,
or segment.
|
public Map<String,String> getTags()
A string-to-string map of key-value pairs that defines the tags for an application, campaign, message template, or segment. Each of these resources can have a maximum of 50 tags.
Each tag consists of a required tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.
Each tag consists of a required tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.
public void setTags(Map<String,String> tags)
A string-to-string map of key-value pairs that defines the tags for an application, campaign, message template, or segment. Each of these resources can have a maximum of 50 tags.
Each tag consists of a required tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.
tags
- A string-to-string map of key-value pairs that defines the tags for an application, campaign, message
template, or segment. Each of these resources can have a maximum of 50 tags.
Each tag consists of a required tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.
public TagsModel withTags(Map<String,String> tags)
A string-to-string map of key-value pairs that defines the tags for an application, campaign, message template, or segment. Each of these resources can have a maximum of 50 tags.
Each tag consists of a required tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.
tags
- A string-to-string map of key-value pairs that defines the tags for an application, campaign, message
template, or segment. Each of these resources can have a maximum of 50 tags.
Each tag consists of a required tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.
public TagsModel clearTagsEntries()
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.