@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SendEmailRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Represents a request to send a single formatted email using Amazon SES. For more information, see the Amazon SES Developer Guide.
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 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 you want bounce and complaint notifications to be sent to.
|
String |
getFeedbackForwardingEmailAddressIdentityArn()
This parameter is used only for sending authorization.
|
String |
getFromEmailAddress()
The email address to use as the "From" address for the email.
|
String |
getFromEmailAddressIdentityArn()
This parameter is used only for sending authorization.
|
ListManagementOptions |
getListManagementOptions()
An object used to specify a list or topic to which an email belongs, which will be used when a contact chooses to
unsubscribe.
|
List<String> |
getReplyToAddresses()
The "Reply-to" email addresses for the message.
|
int |
hashCode() |
void |
setConfigurationSetName(String configurationSetName)
The name of the configuration set 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 you want bounce and complaint notifications to be sent to.
|
void |
setFeedbackForwardingEmailAddressIdentityArn(String feedbackForwardingEmailAddressIdentityArn)
This parameter is used only for sending authorization.
|
void |
setFromEmailAddress(String fromEmailAddress)
The email address to use as the "From" address for the email.
|
void |
setFromEmailAddressIdentityArn(String fromEmailAddressIdentityArn)
This parameter is used only for sending authorization.
|
void |
setListManagementOptions(ListManagementOptions listManagementOptions)
An object used to specify a list or topic to which an email belongs, which will be used when a contact chooses to
unsubscribe.
|
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 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 you want bounce and complaint notifications to be sent to.
|
SendEmailRequest |
withFeedbackForwardingEmailAddressIdentityArn(String feedbackForwardingEmailAddressIdentityArn)
This parameter is used only for sending authorization.
|
SendEmailRequest |
withFromEmailAddress(String fromEmailAddress)
The email address to use as the "From" address for the email.
|
SendEmailRequest |
withFromEmailAddressIdentityArn(String fromEmailAddressIdentityArn)
This parameter is used only for sending authorization.
|
SendEmailRequest |
withListManagementOptions(ListManagementOptions listManagementOptions)
An object used to specify a list or topic to which an email belongs, which will be used when a contact chooses to
unsubscribe.
|
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 to use as the "From" address for the email. The address that you specify has to be verified.
fromEmailAddress
- The email address to use as the "From" address for the email. The address that you specify has to be
verified.public String getFromEmailAddress()
The email address 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 to use as the "From" address for the email. The address that you specify has to be verified.
fromEmailAddress
- The email address to use as the "From" address for the email. The address that you specify has to be
verified.public void setFromEmailAddressIdentityArn(String fromEmailAddressIdentityArn)
This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the
sending authorization policy that permits you to use the email address specified in the
FromEmailAddress
parameter.
For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com)
attaches a policy to it that authorizes you to use [email protected], then you would specify the
FromEmailAddressIdentityArn
to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the
FromEmailAddress
to be [email protected].
For more information about sending authorization, see the Amazon SES Developer Guide.
For Raw emails, the FromEmailAddressIdentityArn
value overrides the X-SES-SOURCE-ARN and
X-SES-FROM-ARN headers specified in raw email message content.
fromEmailAddressIdentityArn
- This parameter is used only for sending authorization. It is the ARN of the identity that is associated
with the sending authorization policy that permits you to use the email address specified in the
FromEmailAddress
parameter.
For example, if the owner of example.com (which has ARN
arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to
use [email protected], then you would specify the FromEmailAddressIdentityArn
to be
arn:aws:ses:us-east-1:123456789012:identity/example.com, and the FromEmailAddress
to be
[email protected].
For more information about sending authorization, see the Amazon SES Developer Guide.
For Raw emails, the FromEmailAddressIdentityArn
value overrides the X-SES-SOURCE-ARN and
X-SES-FROM-ARN headers specified in raw email message content.
public String getFromEmailAddressIdentityArn()
This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the
sending authorization policy that permits you to use the email address specified in the
FromEmailAddress
parameter.
For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com)
attaches a policy to it that authorizes you to use [email protected], then you would specify the
FromEmailAddressIdentityArn
to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the
FromEmailAddress
to be [email protected].
For more information about sending authorization, see the Amazon SES Developer Guide.
For Raw emails, the FromEmailAddressIdentityArn
value overrides the X-SES-SOURCE-ARN and
X-SES-FROM-ARN headers specified in raw email message content.
FromEmailAddress
parameter.
For example, if the owner of example.com (which has ARN
arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to
use [email protected], then you would specify the FromEmailAddressIdentityArn
to be
arn:aws:ses:us-east-1:123456789012:identity/example.com, and the FromEmailAddress
to be
[email protected].
For more information about sending authorization, see the Amazon SES Developer Guide.
For Raw emails, the FromEmailAddressIdentityArn
value overrides the X-SES-SOURCE-ARN and
X-SES-FROM-ARN headers specified in raw email message content.
public SendEmailRequest withFromEmailAddressIdentityArn(String fromEmailAddressIdentityArn)
This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the
sending authorization policy that permits you to use the email address specified in the
FromEmailAddress
parameter.
For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com)
attaches a policy to it that authorizes you to use [email protected], then you would specify the
FromEmailAddressIdentityArn
to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the
FromEmailAddress
to be [email protected].
For more information about sending authorization, see the Amazon SES Developer Guide.
For Raw emails, the FromEmailAddressIdentityArn
value overrides the X-SES-SOURCE-ARN and
X-SES-FROM-ARN headers specified in raw email message content.
fromEmailAddressIdentityArn
- This parameter is used only for sending authorization. It is the ARN of the identity that is associated
with the sending authorization policy that permits you to use the email address specified in the
FromEmailAddress
parameter.
For example, if the owner of example.com (which has ARN
arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to
use [email protected], then you would specify the FromEmailAddressIdentityArn
to be
arn:aws:ses:us-east-1:123456789012:identity/example.com, and the FromEmailAddress
to be
[email protected].
For more information about sending authorization, see the Amazon SES Developer Guide.
For Raw emails, the FromEmailAddressIdentityArn
value overrides the X-SES-SOURCE-ARN and
X-SES-FROM-ARN headers specified in raw email message content.
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 you want bounce and complaint notifications to be sent to.
feedbackForwardingEmailAddress
- The address that you want bounce and complaint notifications to be sent to.public String getFeedbackForwardingEmailAddress()
The address that you want bounce and complaint notifications to be sent to.
public SendEmailRequest withFeedbackForwardingEmailAddress(String feedbackForwardingEmailAddress)
The address that you want bounce and complaint notifications to be sent to.
feedbackForwardingEmailAddress
- The address that you want bounce and complaint notifications to be sent to.public void setFeedbackForwardingEmailAddressIdentityArn(String feedbackForwardingEmailAddressIdentityArn)
This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the
sending authorization policy that permits you to use the email address specified in the
FeedbackForwardingEmailAddress
parameter.
For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com)
attaches a policy to it that authorizes you to use [email protected], then you would specify the
FeedbackForwardingEmailAddressIdentityArn
to be
arn:aws:ses:us-east-1:123456789012:identity/example.com, and the FeedbackForwardingEmailAddress
to
be [email protected].
For more information about sending authorization, see the Amazon SES Developer Guide.
feedbackForwardingEmailAddressIdentityArn
- This parameter is used only for sending authorization. It is the ARN of the identity that is associated
with the sending authorization policy that permits you to use the email address specified in the
FeedbackForwardingEmailAddress
parameter.
For example, if the owner of example.com (which has ARN
arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to
use [email protected], then you would specify the
FeedbackForwardingEmailAddressIdentityArn
to be
arn:aws:ses:us-east-1:123456789012:identity/example.com, and the
FeedbackForwardingEmailAddress
to be [email protected].
For more information about sending authorization, see the Amazon SES Developer Guide.
public String getFeedbackForwardingEmailAddressIdentityArn()
This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the
sending authorization policy that permits you to use the email address specified in the
FeedbackForwardingEmailAddress
parameter.
For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com)
attaches a policy to it that authorizes you to use [email protected], then you would specify the
FeedbackForwardingEmailAddressIdentityArn
to be
arn:aws:ses:us-east-1:123456789012:identity/example.com, and the FeedbackForwardingEmailAddress
to
be [email protected].
For more information about sending authorization, see the Amazon SES Developer Guide.
FeedbackForwardingEmailAddress
parameter.
For example, if the owner of example.com (which has ARN
arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to
use [email protected], then you would specify the
FeedbackForwardingEmailAddressIdentityArn
to be
arn:aws:ses:us-east-1:123456789012:identity/example.com, and the
FeedbackForwardingEmailAddress
to be [email protected].
For more information about sending authorization, see the Amazon SES Developer Guide.
public SendEmailRequest withFeedbackForwardingEmailAddressIdentityArn(String feedbackForwardingEmailAddressIdentityArn)
This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the
sending authorization policy that permits you to use the email address specified in the
FeedbackForwardingEmailAddress
parameter.
For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com)
attaches a policy to it that authorizes you to use [email protected], then you would specify the
FeedbackForwardingEmailAddressIdentityArn
to be
arn:aws:ses:us-east-1:123456789012:identity/example.com, and the FeedbackForwardingEmailAddress
to
be [email protected].
For more information about sending authorization, see the Amazon SES Developer Guide.
feedbackForwardingEmailAddressIdentityArn
- This parameter is used only for sending authorization. It is the ARN of the identity that is associated
with the sending authorization policy that permits you to use the email address specified in the
FeedbackForwardingEmailAddress
parameter.
For example, if the owner of example.com (which has ARN
arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to
use [email protected], then you would specify the
FeedbackForwardingEmailAddressIdentityArn
to be
arn:aws:ses:us-east-1:123456789012:identity/example.com, and the
FeedbackForwardingEmailAddress
to be [email protected].
For more information about sending authorization, see the Amazon SES Developer Guide.
public void setContent(EmailContent content)
An object that contains the body of the message. You can send either a Simple message, Raw message, or a Templated message.
content
- An object that contains the body of the message. You can send either a Simple message, Raw message, or a
Templated message.public EmailContent getContent()
An object that contains the body of the message. You can send either a Simple message, Raw message, or a Templated message.
public SendEmailRequest withContent(EmailContent content)
An object that contains the body of the message. You can send either a Simple message, Raw message, or a Templated message.
content
- An object that contains the body of the message. You can send either a Simple message, Raw message, or a
Templated 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 to use when sending the email.
configurationSetName
- The name of the configuration set to use when sending the email.public String getConfigurationSetName()
The name of the configuration set to use when sending the email.
public SendEmailRequest withConfigurationSetName(String configurationSetName)
The name of the configuration set to use when sending the email.
configurationSetName
- The name of the configuration set to use when sending the email.public void setListManagementOptions(ListManagementOptions listManagementOptions)
An object used to specify a list or topic to which an email belongs, which will be used when a contact chooses to unsubscribe.
listManagementOptions
- An object used to specify a list or topic to which an email belongs, which will be used when a contact
chooses to unsubscribe.public ListManagementOptions getListManagementOptions()
An object used to specify a list or topic to which an email belongs, which will be used when a contact chooses to unsubscribe.
public SendEmailRequest withListManagementOptions(ListManagementOptions listManagementOptions)
An object used to specify a list or topic to which an email belongs, which will be used when a contact chooses to unsubscribe.
listManagementOptions
- An object used to specify a list or topic to which an email belongs, which will be used when a contact
chooses to unsubscribe.public String toString()
toString
in class Object
Object.toString()
public SendEmailRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()