Interface SendEmailRequest.Builder

    • Method Detail

      • 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.
      • 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

        SendEmailRequest.Builder content​(EmailContent 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.
      • emailTags

        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.

        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

        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.

        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).

        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:
        #emailTags(java.util.Collection)
      • 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.