|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.simpleemail.model.SendEmailRequest
public class SendEmailRequest
Container for the parameters to the SendEmail operation
.
Composes an email message based on input data, and then immediately queues the message for sending.
IMPORTANT:If you have not yet requested production access to Amazon SES, then you will only be able to send email to and from verified email addresses. For more information, go to the Amazon SES Developer Guide.
AmazonSimpleEmailService.sendEmail(SendEmailRequest)
Constructor Summary | |
---|---|
SendEmailRequest()
Default constructor for a new SendEmailRequest object. |
|
SendEmailRequest(String source,
Destination destination,
Message message)
Constructs a new SendEmailRequest object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
Destination |
getDestination()
The destination for this email, composed of To:, From:, and CC: fields. |
Message |
getMessage()
The message to be sent. |
List<String> |
getReplyToAddresses()
The reply-to email address(es) for the message. |
String |
getReturnPath()
The email address to which bounce notifications are to be forwarded. |
String |
getSource()
The sender's email address. |
int |
hashCode()
|
void |
setDestination(Destination destination)
The destination for this email, composed of To:, From:, and CC: fields. |
void |
setMessage(Message message)
The message to be sent. |
void |
setReplyToAddresses(Collection<String> replyToAddresses)
The reply-to email address(es) for the message. |
void |
setReturnPath(String returnPath)
The email address to which bounce notifications are to be forwarded. |
void |
setSource(String source)
The sender's email address. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
SendEmailRequest |
withDestination(Destination destination)
The destination for this email, composed of To:, From:, and CC: fields. |
SendEmailRequest |
withMessage(Message message)
The message to be sent. |
SendEmailRequest |
withReplyToAddresses(Collection<String> replyToAddresses)
The reply-to email address(es) for the message. |
SendEmailRequest |
withReplyToAddresses(String... replyToAddresses)
The reply-to email address(es) for the message. |
SendEmailRequest |
withReturnPath(String returnPath)
The email address to which bounce notifications are to be forwarded. |
SendEmailRequest |
withSource(String source)
The sender's email address. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SendEmailRequest()
public SendEmailRequest(String source, Destination destination, Message message)
source
- The sender's email address.destination
- The destination for this email, composed of To:,
From:, and CC: fields.message
- The message to be sent.Method Detail |
---|
public String getSource()
public void setSource(String source)
source
- The sender's email address.public SendEmailRequest withSource(String source)
Returns a reference to this object so that method calls can be chained together.
source
- The sender's email address.
public Destination getDestination()
public void setDestination(Destination destination)
destination
- The destination for this email, composed of To:, From:, and CC:
fields.public SendEmailRequest withDestination(Destination destination)
Returns a reference to this object so that method calls can be chained together.
destination
- The destination for this email, composed of To:, From:, and CC:
fields.
public Message getMessage()
public void setMessage(Message message)
message
- The message to be sent.public SendEmailRequest withMessage(Message message)
Returns a reference to this object so that method calls can be chained together.
message
- The message to be sent.
public List<String> getReplyToAddresses()
public void setReplyToAddresses(Collection<String> replyToAddresses)
replyToAddresses
- The reply-to email address(es) for the message. If the recipient
replies to the message, each reply-to address will receive the reply.public SendEmailRequest withReplyToAddresses(String... replyToAddresses)
Returns a reference to this object so that method calls can be chained together.
replyToAddresses
- The reply-to email address(es) for the message. If the recipient
replies to the message, each reply-to address will receive the reply.
public SendEmailRequest withReplyToAddresses(Collection<String> replyToAddresses)
Returns a reference to this object so that method calls can be chained together.
replyToAddresses
- The reply-to email address(es) for the message. If the recipient
replies to the message, each reply-to address will receive the reply.
public String getReturnPath()
ReturnPath
parameter.
ReturnPath
parameter.public void setReturnPath(String returnPath)
ReturnPath
parameter.
returnPath
- The email address to which bounce notifications are to be forwarded.
If the message cannot be delivered to the recipient, then an error
message will be returned from the recipient's ISP; this message will
then be forwarded to the email address specified by the
ReturnPath
parameter.public SendEmailRequest withReturnPath(String returnPath)
ReturnPath
parameter.
Returns a reference to this object so that method calls can be chained together.
returnPath
- The email address to which bounce notifications are to be forwarded.
If the message cannot be delivered to the recipient, then an error
message will be returned from the recipient's ISP; this message will
then be forwarded to the email address specified by the
ReturnPath
parameter.
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |