Interface SendEmailRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<SendEmailRequest.Builder,,SendEmailRequest> SdkBuilder<SendEmailRequest.Builder,,SendEmailRequest> SdkPojo,SdkRequest.Builder,SesV2Request.Builder
- Enclosing class:
SendEmailRequest
-
Method Summary
Modifier and TypeMethodDescriptionconfigurationSetName(String configurationSetName) The name of the configuration set to use when sending the email.default SendEmailRequest.Buildercontent(Consumer<EmailContent.Builder> content) An object that contains the body of the message.content(EmailContent content) An object that contains the body of the message.default SendEmailRequest.Builderdestination(Consumer<Destination.Builder> destination) An object that contains the recipients of the email message.destination(Destination destination) An object that contains the recipients of the email message.emailTags(Collection<MessageTag> emailTags) A list of tags, in the form of name/value pairs, to apply to an email that you send using theSendEmailoperation.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 theSendEmailoperation.emailTags(MessageTag... emailTags) A list of tags, in the form of name/value pairs, to apply to an email that you send using theSendEmailoperation.feedbackForwardingEmailAddress(String feedbackForwardingEmailAddress) The address that you want bounce and complaint notifications to be sent to.feedbackForwardingEmailAddressIdentityArn(String feedbackForwardingEmailAddressIdentityArn) This parameter is used only for sending authorization.fromEmailAddress(String fromEmailAddress) The email address to use as the "From" address for the email.fromEmailAddressIdentityArn(String fromEmailAddressIdentityArn) This parameter is used only for sending authorization.default SendEmailRequest.BuilderlistManagementOptions(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.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.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.replyToAddresses(String... replyToAddresses) The "Reply-to" email addresses for the message.replyToAddresses(Collection<String> replyToAddresses) The "Reply-to" email addresses for the message.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.services.sesv2.model.SesV2Request.Builder
build
-
Method Details
-
fromEmailAddress
The email address to use as the "From" address for the email. The address that you specify has to be verified.
- Parameters:
fromEmailAddress- The email address to use as the "From" address for the email. The address that you specify has to be verified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
FromEmailAddressparameter.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 sender@example.com, then you would specify the
FromEmailAddressIdentityArnto be arn:aws:ses:us-east-1:123456789012:identity/example.com, and theFromEmailAddressto be sender@example.com.For more information about sending authorization, see the Amazon SES Developer Guide.
For Raw emails, the
FromEmailAddressIdentityArnvalue overrides the X-SES-SOURCE-ARN and X-SES-FROM-ARN headers specified in raw email message content.- Parameters:
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 theFromEmailAddressparameter.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 sender@example.com, then you would specify the
FromEmailAddressIdentityArnto be arn:aws:ses:us-east-1:123456789012:identity/example.com, and theFromEmailAddressto be sender@example.com.For more information about sending authorization, see the Amazon SES Developer Guide.
For Raw emails, the
FromEmailAddressIdentityArnvalue overrides the X-SES-SOURCE-ARN and X-SES-FROM-ARN headers specified in raw email message content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destination
An object that contains the recipients of the email message.
- Parameters:
destination- An object that contains the recipients of the email message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destination
An object that contains the recipients of the email message.
This is a convenience method that creates an instance of theDestination.Builderavoiding the need to create one manually viaDestination.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todestination(Destination).- Parameters:
destination- a consumer that will call methods onDestination.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
replyToAddresses
The "Reply-to" email addresses for the message. When the recipient replies to the message, each Reply-to address receives the reply.
- Parameters:
replyToAddresses- The "Reply-to" email addresses for the message. When the recipient replies to the message, each Reply-to address receives the reply.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
replyToAddresses
The "Reply-to" email addresses for the message. When the recipient replies to the message, each Reply-to address receives the reply.
- Parameters:
replyToAddresses- The "Reply-to" email addresses for the message. When the recipient replies to the message, each Reply-to address receives the reply.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
feedbackForwardingEmailAddress
The address that you want bounce and complaint notifications to be sent to.
- Parameters:
feedbackForwardingEmailAddress- The address that you want bounce and complaint notifications to be sent to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
feedbackForwardingEmailAddressIdentityArn
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
FeedbackForwardingEmailAddressparameter.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 feedback@example.com, then you would specify the
FeedbackForwardingEmailAddressIdentityArnto be arn:aws:ses:us-east-1:123456789012:identity/example.com, and theFeedbackForwardingEmailAddressto be feedback@example.com.For more information about sending authorization, see the Amazon SES Developer Guide.
- Parameters:
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 theFeedbackForwardingEmailAddressparameter.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 feedback@example.com, then you would specify the
FeedbackForwardingEmailAddressIdentityArnto be arn:aws:ses:us-east-1:123456789012:identity/example.com, and theFeedbackForwardingEmailAddressto be feedback@example.com.For more information about sending authorization, see the Amazon SES Developer Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
An object that contains the body of the message. You can send either a Simple message, Raw message, or a Templated message.
- Parameters:
content- An object that contains the body of the message. You can send either a Simple message, Raw message, or a Templated message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
An object that contains the body of the message. You can send either a Simple message, Raw message, or a Templated message.
This is a convenience method that creates an instance of theEmailContent.Builderavoiding the need to create one manually viaEmailContent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontent(EmailContent).- Parameters:
content- a consumer that will call methods onEmailContent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
emailTags
A list of tags, in the form of name/value pairs, to apply to an email that you send using the
SendEmailoperation. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.- Parameters:
emailTags- A list of tags, in the form of name/value pairs, to apply to an email that you send using theSendEmailoperation. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
emailTags
A list of tags, in the form of name/value pairs, to apply to an email that you send using the
SendEmailoperation. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.- Parameters:
emailTags- A list of tags, in the form of name/value pairs, to apply to an email that you send using theSendEmailoperation. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
emailTags
A list of tags, in the form of name/value pairs, to apply to an email that you send using the
This is a convenience method that creates an instance of theSendEmailoperation. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.MessageTag.Builderavoiding the need to create one manually viaMessageTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toemailTags(List<MessageTag>).- Parameters:
emailTags- a consumer that will call methods onMessageTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
configurationSetName
The name of the configuration set to use when sending the email.
- Parameters:
configurationSetName- The name of the configuration set to use when sending the email.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
listManagementOptions
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 method that creates an instance of theListManagementOptions.Builderavoiding the need to create one manually viaListManagementOptions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolistManagementOptions(ListManagementOptions).- Parameters:
listManagementOptions- a consumer that will call methods onListManagementOptions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
SendEmailRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
SendEmailRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-