@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.
By default, the string must be 7-bit ASCII. If the text must contain any other characters, then you must use MIME
encoded-word syntax (RFC 2047) instead of a literal string. MIME encoded-word syntax uses the following form:
=?charset?encoding?encoded-text?=
. For more information, see RFC 2047.
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 BCC: field(s) of the message.
|
List<String> |
getCcAddresses()
The CC: field(s) of the message.
|
List<String> |
getToAddresses()
The To: field(s) of the message.
|
int |
hashCode() |
void |
setBccAddresses(Collection<String> bccAddresses)
The BCC: field(s) of the message.
|
void |
setCcAddresses(Collection<String> ccAddresses)
The CC: field(s) of the message.
|
void |
setToAddresses(Collection<String> toAddresses)
The To: field(s) of the message.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Destination |
withBccAddresses(Collection<String> bccAddresses)
The BCC: field(s) of the message.
|
Destination |
withBccAddresses(String... bccAddresses)
The BCC: field(s) of the message.
|
Destination |
withCcAddresses(Collection<String> ccAddresses)
The CC: field(s) of the message.
|
Destination |
withCcAddresses(String... ccAddresses)
The CC: field(s) of the message.
|
Destination |
withToAddresses(Collection<String> toAddresses)
The To: field(s) of the message.
|
Destination |
withToAddresses(String... toAddresses)
The To: field(s) of the message.
|
public Destination()
public List<String> getToAddresses()
The To: field(s) of the message.
public void setToAddresses(Collection<String> toAddresses)
The To: field(s) of the message.
toAddresses
- The To: field(s) of the message.public Destination withToAddresses(String... toAddresses)
The To: field(s) 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 To: field(s) of the message.public Destination withToAddresses(Collection<String> toAddresses)
The To: field(s) of the message.
toAddresses
- The To: field(s) of the message.public List<String> getCcAddresses()
The CC: field(s) of the message.
public void setCcAddresses(Collection<String> ccAddresses)
The CC: field(s) of the message.
ccAddresses
- The CC: field(s) of the message.public Destination withCcAddresses(String... ccAddresses)
The CC: field(s) 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 CC: field(s) of the message.public Destination withCcAddresses(Collection<String> ccAddresses)
The CC: field(s) of the message.
ccAddresses
- The CC: field(s) of the message.public List<String> getBccAddresses()
The BCC: field(s) of the message.
public void setBccAddresses(Collection<String> bccAddresses)
The BCC: field(s) of the message.
bccAddresses
- The BCC: field(s) of the message.public Destination withBccAddresses(String... bccAddresses)
The BCC: field(s) 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 BCC: field(s) of the message.public Destination withBccAddresses(Collection<String> bccAddresses)
The BCC: field(s) of the message.
bccAddresses
- The BCC: field(s) of the message.public String toString()
toString
in class Object
Object.toString()
public Destination clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.