@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MessageTag extends Object implements Serializable, Cloneable
Contains the name and value of a tag that you can provide to SendEmail
or SendRawEmail
to
apply to an email.
Message tags, which you use with configuration sets, enable you to publish email sending events. For information about using configuration sets, see the Amazon SES Developer Guide.
Constructor and Description |
---|
MessageTag() |
Modifier and Type | Method and Description |
---|---|
MessageTag |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the tag.
|
String |
getValue()
The value of the tag.
|
int |
hashCode() |
void |
setName(String name)
The name of the tag.
|
void |
setValue(String value)
The value of the tag.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
MessageTag |
withName(String name)
The name of the tag.
|
MessageTag |
withValue(String value)
The value of the tag.
|
public void setName(String name)
The name of the tag. The name must:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain less than 256 characters.
name
- The name of the tag. The name must:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain less than 256 characters.
public String getName()
The name of the tag. The name must:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain less than 256 characters.
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain less than 256 characters.
public MessageTag withName(String name)
The name of the tag. The name must:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain less than 256 characters.
name
- The name of the tag. The name must:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain less than 256 characters.
public void setValue(String value)
The value of the tag. The value must:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain less than 256 characters.
value
- The value of the tag. The value must:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain less than 256 characters.
public String getValue()
The value of the tag. The value must:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain less than 256 characters.
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain less than 256 characters.
public MessageTag withValue(String value)
The value of the tag. The value must:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain less than 256 characters.
value
- The value of the tag. The value must:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain less than 256 characters.
public String toString()
toString
in class Object
Object.toString()
public MessageTag clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.