Interface SendBounceRequest.Builder

    • Method Detail

      • originalMessageId

        SendBounceRequest.Builder originalMessageId​(String originalMessageId)

        The message ID of the message to be bounced.

        Parameters:
        originalMessageId - The message ID of the message to be bounced.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • bounceSender

        SendBounceRequest.Builder bounceSender​(String bounceSender)

        The address to use in the "From" header of the bounce message. This must be an identity that you have verified with Amazon SES.

        Parameters:
        bounceSender - The address to use in the "From" header of the bounce message. This must be an identity that you have verified with Amazon SES.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • explanation

        SendBounceRequest.Builder explanation​(String explanation)

        Human-readable text for the bounce message to explain the failure. If not specified, the text is auto-generated based on the bounced recipient information.

        Parameters:
        explanation - Human-readable text for the bounce message to explain the failure. If not specified, the text is auto-generated based on the bounced recipient information.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • messageDsn

        SendBounceRequest.Builder messageDsn​(MessageDsn messageDsn)

        Message-related DSN fields. If not specified, Amazon SES chooses the values.

        Parameters:
        messageDsn - Message-related DSN fields. If not specified, Amazon SES chooses the values.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • bouncedRecipientInfoList

        SendBounceRequest.Builder bouncedRecipientInfoList​(Collection<BouncedRecipientInfo> bouncedRecipientInfoList)

        A list of recipients of the bounced message, including the information required to create the Delivery Status Notifications (DSNs) for the recipients. You must specify at least one BouncedRecipientInfo in the list.

        Parameters:
        bouncedRecipientInfoList - A list of recipients of the bounced message, including the information required to create the Delivery Status Notifications (DSNs) for the recipients. You must specify at least one BouncedRecipientInfo in the list.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • bouncedRecipientInfoList

        SendBounceRequest.Builder bouncedRecipientInfoList​(BouncedRecipientInfo... bouncedRecipientInfoList)

        A list of recipients of the bounced message, including the information required to create the Delivery Status Notifications (DSNs) for the recipients. You must specify at least one BouncedRecipientInfo in the list.

        Parameters:
        bouncedRecipientInfoList - A list of recipients of the bounced message, including the information required to create the Delivery Status Notifications (DSNs) for the recipients. You must specify at least one BouncedRecipientInfo in the list.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • bouncedRecipientInfoList

        SendBounceRequest.Builder bouncedRecipientInfoList​(Consumer<BouncedRecipientInfo.Builder>... bouncedRecipientInfoList)

        A list of recipients of the bounced message, including the information required to create the Delivery Status Notifications (DSNs) for the recipients. You must specify at least one BouncedRecipientInfo in the list.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #bouncedRecipientInfoList(List).

        Parameters:
        bouncedRecipientInfoList - a consumer that will call methods on BouncedRecipientInfo.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #bouncedRecipientInfoList(java.util.Collection)
      • bounceSenderArn

        SendBounceRequest.Builder bounceSenderArn​(String bounceSenderArn)

        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 address in the "From" header of the bounce. For more information about sending authorization, see the Amazon SES Developer Guide.

        Parameters:
        bounceSenderArn - 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 address in the "From" header of the bounce. 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.