Interface MessageMetadata.Builder

    • Method Detail

      • messageId

        MessageMetadata.Builder messageId​(String messageId)

        The identifier of the message that contains the metadata information.

        Parameters:
        messageId - The identifier of the message that contains the metadata information.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • receipts

        MessageMetadata.Builder receipts​(Collection<Receipt> receipts)

        The list of receipt information for a message for different recipients.

        Parameters:
        receipts - The list of receipt information for a message for different recipients.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • receipts

        MessageMetadata.Builder receipts​(Receipt... receipts)

        The list of receipt information for a message for different recipients.

        Parameters:
        receipts - The list of receipt information for a message for different recipients.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • receipts

        MessageMetadata.Builder receipts​(Consumer<Receipt.Builder>... receipts)

        The list of receipt information for a message for different recipients.

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

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

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