@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SendEmailRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
A request to send an email message.
NOOP
Constructor and Description |
---|
SendEmailRequest() |
Modifier and Type | Method and Description |
---|---|
SendEmailRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getConfigurationSetName()
The name of the configuration set that you want to use when sending the email.
|
EmailContent |
getContent()
An object that contains the body of the message.
|
Destination |
getDestination()
An object that contains the recipients of the email message.
|
List<MessageTag> |
getEmailTags()
A list of tags, in the form of name/value pairs, to apply to an email that you send using the
SendEmail operation. |
String |
getFeedbackForwardingEmailAddress()
The address that Amazon Pinpoint should send bounce and complaint notifications to.
|
String |
getFromEmailAddress()
The email address that you want to use as the "From" address for the email.
|
List<String> |
getReplyToAddresses()
The "Reply-to" email addresses for the message.
|
int |
hashCode() |
void |
setConfigurationSetName(String configurationSetName)
The name of the configuration set that you want to use when sending the email.
|
void |
setContent(EmailContent content)
An object that contains the body of the message.
|
void |
setDestination(Destination destination)
An object that contains the recipients of the email message.
|
void |
setEmailTags(Collection<MessageTag> emailTags)
A list of tags, in the form of name/value pairs, to apply to an email that you send using the
SendEmail operation. |
void |
setFeedbackForwardingEmailAddress(String feedbackForwardingEmailAddress)
The address that Amazon Pinpoint should send bounce and complaint notifications to.
|
void |
setFromEmailAddress(String fromEmailAddress)
The email address that you want to use as the "From" address for the email.
|
void |
setReplyToAddresses(Collection<String> replyToAddresses)
The "Reply-to" email addresses for the message.
|
String |
toString()
Returns a string representation of this object.
|
SendEmailRequest |
withConfigurationSetName(String configurationSetName)
The name of the configuration set that you want to use when sending the email.
|
SendEmailRequest |
withContent(EmailContent content)
An object that contains the body of the message.
|
SendEmailRequest |
withDestination(Destination destination)
An object that contains the recipients of the email message.
|
SendEmailRequest |
withEmailTags(Collection<MessageTag> emailTags)
A list of tags, in the form of name/value pairs, to apply to an email that you send using the
SendEmail operation. |
SendEmailRequest |
withEmailTags(MessageTag... emailTags)
A list of tags, in the form of name/value pairs, to apply to an email that you send using the
SendEmail operation. |
SendEmailRequest |
withFeedbackForwardingEmailAddress(String feedbackForwardingEmailAddress)
The address that Amazon Pinpoint should send bounce and complaint notifications to.
|
SendEmailRequest |
withFromEmailAddress(String fromEmailAddress)
The email address that you want to use as the "From" address for the email.
|
SendEmailRequest |
withReplyToAddresses(Collection<String> replyToAddresses)
The "Reply-to" email addresses for the message.
|
SendEmailRequest |
withReplyToAddresses(String... replyToAddresses)
The "Reply-to" email addresses for the message.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setFromEmailAddress(String fromEmailAddress)
The email address that you want to use as the "From" address for the email. The address that you specify has to be verified.
fromEmailAddress
- The email address that you want to use as the "From" address for the email. The address that you specify
has to be verified.public String getFromEmailAddress()
The email address that you want to use as the "From" address for the email. The address that you specify has to be verified.
public SendEmailRequest withFromEmailAddress(String fromEmailAddress)
The email address that you want to use as the "From" address for the email. The address that you specify has to be verified.
fromEmailAddress
- The email address that you want to use as the "From" address for the email. The address that you specify
has to be verified.public void setDestination(Destination destination)
An object that contains the recipients of the email message.
destination
- An object that contains the recipients of the email message.public Destination getDestination()
An object that contains the recipients of the email message.
public SendEmailRequest withDestination(Destination destination)
An object that contains the recipients of the email message.
destination
- An object that contains the recipients of the email message.public List<String> getReplyToAddresses()
The "Reply-to" email addresses for the message. When the recipient replies to the message, each Reply-to address receives the reply.
public void setReplyToAddresses(Collection<String> replyToAddresses)
The "Reply-to" email addresses for the message. When the recipient replies to the message, each Reply-to address receives the reply.
replyToAddresses
- The "Reply-to" email addresses for the message. When the recipient replies to the message, each Reply-to
address receives the reply.public SendEmailRequest withReplyToAddresses(String... replyToAddresses)
The "Reply-to" email addresses for the message. When the recipient replies to the message, each Reply-to address receives the reply.
NOTE: This method appends the values to the existing list (if any). Use
setReplyToAddresses(java.util.Collection)
or withReplyToAddresses(java.util.Collection)
if you
want to override the existing values.
replyToAddresses
- The "Reply-to" email addresses for the message. When the recipient replies to the message, each Reply-to
address receives the reply.public SendEmailRequest withReplyToAddresses(Collection<String> replyToAddresses)
The "Reply-to" email addresses for the message. When the recipient replies to the message, each Reply-to address receives the reply.
replyToAddresses
- The "Reply-to" email addresses for the message. When the recipient replies to the message, each Reply-to
address receives the reply.public void setFeedbackForwardingEmailAddress(String feedbackForwardingEmailAddress)
The address that Amazon Pinpoint should send bounce and complaint notifications to.
feedbackForwardingEmailAddress
- The address that Amazon Pinpoint should send bounce and complaint notifications to.public String getFeedbackForwardingEmailAddress()
The address that Amazon Pinpoint should send bounce and complaint notifications to.
public SendEmailRequest withFeedbackForwardingEmailAddress(String feedbackForwardingEmailAddress)
The address that Amazon Pinpoint should send bounce and complaint notifications to.
feedbackForwardingEmailAddress
- The address that Amazon Pinpoint should send bounce and complaint notifications to.public void setContent(EmailContent content)
An object that contains the body of the message. You can send either a Simple message or a Raw message.
content
- An object that contains the body of the message. You can send either a Simple message or a Raw message.public EmailContent getContent()
An object that contains the body of the message. You can send either a Simple message or a Raw message.
public SendEmailRequest withContent(EmailContent content)
An object that contains the body of the message. You can send either a Simple message or a Raw message.
content
- An object that contains the body of the message. You can send either a Simple message or a Raw message.public List<MessageTag> getEmailTags()
A list of tags, in the form of name/value pairs, to apply to an email that you send using the
SendEmail
operation. Tags correspond to characteristics of the email that you define, so that you
can publish email sending events.
SendEmail
operation. Tags correspond to characteristics of the email that you define, so
that you can publish email sending events.public void setEmailTags(Collection<MessageTag> emailTags)
A list of tags, in the form of name/value pairs, to apply to an email that you send using the
SendEmail
operation. Tags correspond to characteristics of the email that you define, so that you
can publish email sending events.
emailTags
- A list of tags, in the form of name/value pairs, to apply to an email that you send using the
SendEmail
operation. Tags correspond to characteristics of the email that you define, so that
you can publish email sending events.public SendEmailRequest withEmailTags(MessageTag... emailTags)
A list of tags, in the form of name/value pairs, to apply to an email that you send using the
SendEmail
operation. Tags correspond to characteristics of the email that you define, so that you
can publish email sending events.
NOTE: This method appends the values to the existing list (if any). Use
setEmailTags(java.util.Collection)
or withEmailTags(java.util.Collection)
if you want to
override the existing values.
emailTags
- A list of tags, in the form of name/value pairs, to apply to an email that you send using the
SendEmail
operation. Tags correspond to characteristics of the email that you define, so that
you can publish email sending events.public SendEmailRequest withEmailTags(Collection<MessageTag> emailTags)
A list of tags, in the form of name/value pairs, to apply to an email that you send using the
SendEmail
operation. Tags correspond to characteristics of the email that you define, so that you
can publish email sending events.
emailTags
- A list of tags, in the form of name/value pairs, to apply to an email that you send using the
SendEmail
operation. Tags correspond to characteristics of the email that you define, so that
you can publish email sending events.public void setConfigurationSetName(String configurationSetName)
The name of the configuration set that you want to use when sending the email.
configurationSetName
- The name of the configuration set that you want to use when sending the email.public String getConfigurationSetName()
The name of the configuration set that you want to use when sending the email.
public SendEmailRequest withConfigurationSetName(String configurationSetName)
The name of the configuration set that you want to use when sending the email.
configurationSetName
- The name of the configuration set that you want to use when sending the email.public String toString()
toString
in class Object
Object.toString()
public SendEmailRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()