public class Destination
extends java.lang.Object
implements java.io.Serializable
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(java.util.List<java.lang.String> toAddresses)
Constructs a new Destination object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getBccAddresses()
The recipients to place on the BCC: line of the message.
|
java.util.List<java.lang.String> |
getCcAddresses()
The recipients to place on the CC: line of the message.
|
java.util.List<java.lang.String> |
getToAddresses()
The recipients to place on the To: line of the message.
|
int |
hashCode() |
void |
setBccAddresses(java.util.Collection<java.lang.String> bccAddresses)
The recipients to place on the BCC: line of the message.
|
void |
setCcAddresses(java.util.Collection<java.lang.String> ccAddresses)
The recipients to place on the CC: line of the message.
|
void |
setToAddresses(java.util.Collection<java.lang.String> toAddresses)
The recipients to place on the To: line of the message.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Destination |
withBccAddresses(java.util.Collection<java.lang.String> bccAddresses)
The recipients to place on the BCC: line of the message.
|
Destination |
withBccAddresses(java.lang.String... bccAddresses)
The recipients to place on the BCC: line of the message.
|
Destination |
withCcAddresses(java.util.Collection<java.lang.String> ccAddresses)
The recipients to place on the CC: line of the message.
|
Destination |
withCcAddresses(java.lang.String... ccAddresses)
The recipients to place on the CC: line of the message.
|
Destination |
withToAddresses(java.util.Collection<java.lang.String> toAddresses)
The recipients to place on the To: line of the message.
|
Destination |
withToAddresses(java.lang.String... toAddresses)
The recipients to place on the To: line of the message.
|
public Destination()
public Destination(java.util.List<java.lang.String> toAddresses)
toAddresses
- The recipients to place on the To: line of the message.
public java.util.List<java.lang.String> getToAddresses()
The recipients to place on the To: line of the message.
The recipients to place on the To: line of the message.
public void setToAddresses(java.util.Collection<java.lang.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(java.lang.String... toAddresses)
The recipients to place on the To: line of the message.
Returns a reference to this object so that method calls can be chained together.
toAddresses
- The recipients to place on the To: line of the message.
public Destination withToAddresses(java.util.Collection<java.lang.String> toAddresses)
The recipients to place on the To: line of the message.
Returns a reference to this object so that method calls can be chained together.
toAddresses
- The recipients to place on the To: line of the message.
public java.util.List<java.lang.String> getCcAddresses()
The recipients to place on the CC: line of the message.
The recipients to place on the CC: line of the message.
public void setCcAddresses(java.util.Collection<java.lang.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(java.lang.String... ccAddresses)
The recipients to place on the CC: line of the message.
Returns a reference to this object so that method calls can be chained together.
ccAddresses
- The recipients to place on the CC: line of the message.
public Destination withCcAddresses(java.util.Collection<java.lang.String> ccAddresses)
The recipients to place on the CC: line of the message.
Returns a reference to this object so that method calls can be chained together.
ccAddresses
- The recipients to place on the CC: line of the message.
public java.util.List<java.lang.String> getBccAddresses()
The recipients to place on the BCC: line of the message.
The recipients to place on the BCC: line of the message.
public void setBccAddresses(java.util.Collection<java.lang.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(java.lang.String... bccAddresses)
The recipients to place on the BCC: line of the message.
Returns a reference to this object so that method calls can be chained together.
bccAddresses
- The recipients to place on the BCC: line of the message.
public Destination withBccAddresses(java.util.Collection<java.lang.String> bccAddresses)
The recipients to place on the BCC: line of the message.
Returns a reference to this object so that method calls can be chained together.
bccAddresses
- The recipients to place on the BCC: line of the message.
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.