public class MessageTag
extends java.lang.Object
implements java.io.Serializable
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 |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
The name of the tag.
|
java.lang.String |
getValue()
The value of the tag.
|
int |
hashCode() |
void |
setName(java.lang.String name)
The name of the tag.
|
void |
setValue(java.lang.String value)
The value of the tag.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
MessageTag |
withName(java.lang.String name)
The name of the tag.
|
MessageTag |
withValue(java.lang.String value)
The value of the tag.
|
public java.lang.String getName()
The name of the tag. The name must:
This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain less than 256 characters.
The name of the tag. The name must:
This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain less than 256 characters.
public void setName(java.lang.String name)
The name of the tag. The name must:
This value can only contain 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:
This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain less than 256 characters.
public MessageTag withName(java.lang.String name)
The name of the tag. The name must:
This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain less than 256 characters.
Returns a reference to this object so that method calls can be chained together.
name
- The name of the tag. The name must:
This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain less than 256 characters.
public java.lang.String getValue()
The value of the tag. The value must:
This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain less than 256 characters.
The value of the tag. The value must:
This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain less than 256 characters.
public void setValue(java.lang.String value)
The value of the tag. The value must:
This value can only contain 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:
This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain less than 256 characters.
public MessageTag withValue(java.lang.String value)
The value of the tag. The value must:
This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain less than 256 characters.
Returns a reference to this object so that method calls can be chained together.
value
- The value of the tag. The value must:
This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain less than 256 characters.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.