public class Destination extends Object implements Serializable
Represents the destination of the message, consisting of To:, CC:, and BCC: fields.
Constructor and Description |
---|
Destination()
Default constructor for a new Destination object.
|
Destination(List<String> toAddresses)
Constructs a new Destination object.
|
Modifier and Type | Method and Description |
---|---|
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()
public void setToAddresses(Collection<String> toAddresses)
toAddresses
- The To: field(s) of the message.public Destination withToAddresses(String... toAddresses)
Returns a reference to this object so that method calls can be chained together.
toAddresses
- The To: field(s) of the message.public Destination withToAddresses(Collection<String> toAddresses)
Returns a reference to this object so that method calls can be chained together.
toAddresses
- The To: field(s) of the message.public List<String> getCcAddresses()
public void setCcAddresses(Collection<String> ccAddresses)
ccAddresses
- The CC: field(s) of the message.public Destination withCcAddresses(String... ccAddresses)
Returns a reference to this object so that method calls can be chained together.
ccAddresses
- The CC: field(s) of the message.public Destination withCcAddresses(Collection<String> ccAddresses)
Returns a reference to this object so that method calls can be chained together.
ccAddresses
- The CC: field(s) of the message.public List<String> getBccAddresses()
public void setBccAddresses(Collection<String> bccAddresses)
bccAddresses
- The BCC: field(s) of the message.public Destination withBccAddresses(String... bccAddresses)
Returns a reference to this object so that method calls can be chained together.
bccAddresses
- The BCC: field(s) of the message.public Destination withBccAddresses(Collection<String> bccAddresses)
Returns a reference to this object so that method calls can be chained together.
bccAddresses
- The BCC: field(s) of the message.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.