@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Destination extends Object implements Serializable, Cloneable
Represents the destination of the message, consisting of To:, CC:, and BCC: fields.
Amazon SES does not support the SMTPUTF8 extension, as described in RFC6531. For this reason, the email address string must be 7-bit ASCII. If you want to send to or from email addresses that contain Unicode characters in the domain part of an address, you must encode the domain using Punycode. Punycode is not permitted in the local part of the email address (the part before the @ sign) nor in the "friendly from" name. If you want to use Unicode characters in the "friendly from" name, you must encode the "friendly from" name using MIME encoded-word syntax, as described in Sending raw email using the Amazon SES API. For more information about Punycode, see RFC 3492.
Constructor and Description |
---|
Destination()
Default constructor for Destination object.
|
Destination(List<String> toAddresses)
Constructs a new Destination object.
|
Modifier and Type | Method and Description |
---|---|
Destination |
clone() |
boolean |
equals(Object obj) |
List<String> |
getBccAddresses()
The recipients to place on the BCC: line of the message.
|
List<String> |
getCcAddresses()
The recipients to place on the CC: line of the message.
|
List<String> |
getToAddresses()
The recipients to place on the To: line of the message.
|
int |
hashCode() |
void |
setBccAddresses(Collection<String> bccAddresses)
The recipients to place on the BCC: line of the message.
|
void |
setCcAddresses(Collection<String> ccAddresses)
The recipients to place on the CC: line of the message.
|
void |
setToAddresses(Collection<String> toAddresses)
The recipients to place on the To: line of the message.
|
String |
toString()
Returns a string representation of this object.
|
Destination |
withBccAddresses(Collection<String> bccAddresses)
The recipients to place on the BCC: line of the message.
|
Destination |
withBccAddresses(String... bccAddresses)
The recipients to place on the BCC: line of the message.
|
Destination |
withCcAddresses(Collection<String> ccAddresses)
The recipients to place on the CC: line of the message.
|
Destination |
withCcAddresses(String... ccAddresses)
The recipients to place on the CC: line of the message.
|
Destination |
withToAddresses(Collection<String> toAddresses)
The recipients to place on the To: line of the message.
|
Destination |
withToAddresses(String... toAddresses)
The recipients to place on the To: line of the message.
|
public Destination()
public List<String> getToAddresses()
The recipients to place on the To: line of the message.
public void setToAddresses(Collection<String> toAddresses)
The recipients to place on the To: line of the message.
toAddresses
- The recipients to place on the To: line of the message.public Destination withToAddresses(String... toAddresses)
The recipients to place on the To: line of the message.
NOTE: This method appends the values to the existing list (if any). Use
setToAddresses(java.util.Collection)
or withToAddresses(java.util.Collection)
if you want to
override the existing values.
toAddresses
- The recipients to place on the To: line of the message.public Destination withToAddresses(Collection<String> toAddresses)
The recipients to place on the To: line of the message.
toAddresses
- The recipients to place on the To: line of the message.public List<String> getCcAddresses()
The recipients to place on the CC: line of the message.
public void setCcAddresses(Collection<String> ccAddresses)
The recipients to place on the CC: line of the message.
ccAddresses
- The recipients to place on the CC: line of the message.public Destination withCcAddresses(String... ccAddresses)
The recipients to place on the CC: line of the message.
NOTE: This method appends the values to the existing list (if any). Use
setCcAddresses(java.util.Collection)
or withCcAddresses(java.util.Collection)
if you want to
override the existing values.
ccAddresses
- The recipients to place on the CC: line of the message.public Destination withCcAddresses(Collection<String> ccAddresses)
The recipients to place on the CC: line of the message.
ccAddresses
- The recipients to place on the CC: line of the message.public List<String> getBccAddresses()
The recipients to place on the BCC: line of the message.
public void setBccAddresses(Collection<String> bccAddresses)
The recipients to place on the BCC: line of the message.
bccAddresses
- The recipients to place on the BCC: line of the message.public Destination withBccAddresses(String... bccAddresses)
The recipients to place on the BCC: line of the message.
NOTE: This method appends the values to the existing list (if any). Use
setBccAddresses(java.util.Collection)
or withBccAddresses(java.util.Collection)
if you want to
override the existing values.
bccAddresses
- The recipients to place on the BCC: line of the message.public Destination withBccAddresses(Collection<String> bccAddresses)
The recipients to place on the BCC: line of the message.
bccAddresses
- The recipients to place on the BCC: line of the message.public String toString()
toString
in class Object
Object.toString()
public Destination clone()