@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.
|
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 meet the following requirements:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain 256 characters or fewer.
name
- The name of the tag. The name must meet the following requirements:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain 256 characters or fewer.
public String getName()
The name of the tag. The name must meet the following requirements:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain 256 characters or fewer.
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain 256 characters or fewer.
public MessageTag withName(String name)
The name of the tag. The name must meet the following requirements:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain 256 characters or fewer.
name
- The name of the tag. The name must meet the following requirements:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain 256 characters or fewer.
public void setValue(String value)
The value of the tag. The value must meet the following requirements:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain 256 characters or fewer.
value
- The value of the tag. The value must meet the following requirements:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain 256 characters or fewer.
public String getValue()
The value of the tag. The value must meet the following requirements:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain 256 characters or fewer.
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain 256 characters or fewer.
public MessageTag withValue(String value)
The value of the tag. The value must meet the following requirements:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain 256 characters or fewer.
value
- The value of the tag. The value must meet the following requirements:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain 256 characters or fewer.
public String toString()
toString
in class Object
Object.toString()
public MessageTag clone()