public static interface SendEmailRequest.Builder extends SesV2Request.Builder, SdkPojo, CopyableBuilder<SendEmailRequest.Builder,SendEmailRequest>
Modifier and Type | Method and Description |
---|---|
SendEmailRequest.Builder |
configurationSetName(String configurationSetName)
The name of the configuration set to use when sending the email.
|
default SendEmailRequest.Builder |
content(Consumer<EmailContent.Builder> content)
An object that contains the body of the message.
|
SendEmailRequest.Builder |
content(EmailContent content)
An object that contains the body of the message.
|
default SendEmailRequest.Builder |
destination(Consumer<Destination.Builder> destination)
An object that contains the recipients of the email message.
|
SendEmailRequest.Builder |
destination(Destination destination)
An object that contains the recipients of the email message.
|
SendEmailRequest.Builder |
emailTags(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.Builder |
emailTags(Consumer<MessageTag.Builder>... 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.Builder |
emailTags(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.Builder |
feedbackForwardingEmailAddress(String feedbackForwardingEmailAddress)
The address that you want bounce and complaint notifications to be sent to.
|
SendEmailRequest.Builder |
feedbackForwardingEmailAddressIdentityArn(String feedbackForwardingEmailAddressIdentityArn)
This parameter is used only for sending authorization.
|
SendEmailRequest.Builder |
fromEmailAddress(String fromEmailAddress)
The email address to use as the "From" address for the email.
|
SendEmailRequest.Builder |
fromEmailAddressIdentityArn(String fromEmailAddressIdentityArn)
This parameter is used only for sending authorization.
|
default SendEmailRequest.Builder |
listManagementOptions(Consumer<ListManagementOptions.Builder> 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.Builder |
listManagementOptions(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.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
SendEmailRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
SendEmailRequest.Builder |
replyToAddresses(Collection<String> replyToAddresses)
The "Reply-to" email addresses for the message.
|
SendEmailRequest.Builder |
replyToAddresses(String... replyToAddresses)
The "Reply-to" email addresses for the message.
|
build
overrideConfiguration
equalsBySdkFields, sdkFields
copy
applyMutation, build
SendEmailRequest.Builder fromEmailAddress(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.SendEmailRequest.Builder fromEmailAddressIdentityArn(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.
SendEmailRequest.Builder destination(Destination destination)
An object that contains the recipients of the email message.
destination
- An object that contains the recipients of the email message.default SendEmailRequest.Builder destination(Consumer<Destination.Builder> destination)
An object that contains the recipients of the email message.
This is a convenience that creates an instance of theDestination.Builder
avoiding the need to create
one manually via Destination.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to destination(Destination)
.destination
- a consumer that will call methods on Destination.Builder
destination(Destination)
SendEmailRequest.Builder replyToAddresses(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.SendEmailRequest.Builder replyToAddresses(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.SendEmailRequest.Builder feedbackForwardingEmailAddress(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.SendEmailRequest.Builder feedbackForwardingEmailAddressIdentityArn(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.
SendEmailRequest.Builder content(EmailContent content)
An object that contains the body of the message. You can send either a Simple message Raw message or a template Message.
content
- An object that contains the body of the message. You can send either a Simple message Raw message or a
template Message.default SendEmailRequest.Builder content(Consumer<EmailContent.Builder> content)
An object that contains the body of the message. You can send either a Simple message Raw message or a template Message.
This is a convenience that creates an instance of theEmailContent.Builder
avoiding the need to
create one manually via EmailContent.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to content(EmailContent)
.content
- a consumer that will call methods on EmailContent.Builder
content(EmailContent)
SendEmailRequest.Builder emailTags(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.SendEmailRequest.Builder emailTags(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.SendEmailRequest.Builder emailTags(Consumer<MessageTag.Builder>... 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.
List.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #emailTags(List)
.emailTags
- a consumer that will call methods on List.Builder
#emailTags(List)
SendEmailRequest.Builder configurationSetName(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.SendEmailRequest.Builder listManagementOptions(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.default SendEmailRequest.Builder listManagementOptions(Consumer<ListManagementOptions.Builder> 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.
This is a convenience that creates an instance of theListManagementOptions.Builder
avoiding the need
to create one manually via ListManagementOptions.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to listManagementOptions(ListManagementOptions)
.listManagementOptions
- a consumer that will call methods on ListManagementOptions.Builder
listManagementOptions(ListManagementOptions)
SendEmailRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration
in interface AwsRequest.Builder
SendEmailRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration
in interface AwsRequest.Builder
Copyright © 2021. All rights reserved.