Interface SendEmailRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CopyableBuilder<SendEmailRequest.Builder,SendEmailRequest>, PinpointEmailRequest.Builder, SdkBuilder<SendEmailRequest.Builder,SendEmailRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
SendEmailRequest

public static interface SendEmailRequest.Builder extends PinpointEmailRequest.Builder, SdkPojo, CopyableBuilder<SendEmailRequest.Builder,SendEmailRequest>
  • Method Details

    • fromEmailAddress

      SendEmailRequest.Builder fromEmailAddress(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.

      Parameters:
      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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • destination

      SendEmailRequest.Builder destination(Destination 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

      default SendEmailRequest.Builder destination(Consumer<Destination.Builder> destination)

      An object that contains the recipients of the email message.

      This is a convenience method that creates an instance of the Destination.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).

      Parameters:
      destination - a consumer that will call methods on Destination.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • replyToAddresses

      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.

      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

      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.

      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

      SendEmailRequest.Builder feedbackForwardingEmailAddress(String feedbackForwardingEmailAddress)

      The address that Amazon Pinpoint should send bounce and complaint notifications to.

      Parameters:
      feedbackForwardingEmailAddress - The address that Amazon Pinpoint should send bounce and complaint notifications to.
      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 or a Raw message.

      Parameters:
      content - An object that contains the body of the message. You can send either a Simple message or a Raw 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 or a Raw message.

      This is a convenience method that creates an instance of the EmailContent.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).

      Parameters:
      content - a consumer that will call methods on EmailContent.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 SendEmail operation. 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 the SendEmail operation. 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

      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.

      Parameters:
      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.
      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 SendEmail operation. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.

      This is a convenience method that creates an instance of the MessageTag.Builder avoiding the need to create one manually via MessageTag.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to emailTags(List<MessageTag>).

      Parameters:
      emailTags - a consumer that will call methods on MessageTag.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • configurationSetName

      SendEmailRequest.Builder configurationSetName(String configurationSetName)

      The name of the configuration set that you want to use when sending the email.

      Parameters:
      configurationSetName - The name of the configuration set that you want to use when sending the email.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      SendEmailRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.