@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 local part of a destination email address (the part of the email address that precedes the @ sign) may only contain 7-bit ASCII characters. If the domain part of an address (the part after the @ sign) contains non-ASCII characters, they must be encoded using Punycode, as described in RFC3492.
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()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.