Interface BulkEmailDestination.Builder

    • Method Detail

      • destination

        BulkEmailDestination.Builder destination​(Destination destination)
        Sets the value of the Destination property for this object.
        Parameters:
        destination - The new value for the Destination property for this object.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • replacementTags

        BulkEmailDestination.Builder replacementTags​(Collection<MessageTag> replacementTags)

        A list of tags, in the form of name/value pairs, to apply to an email that you send using SendBulkTemplatedEmail. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.

        Parameters:
        replacementTags - A list of tags, in the form of name/value pairs, to apply to an email that you send using SendBulkTemplatedEmail. 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.
      • replacementTags

        BulkEmailDestination.Builder replacementTags​(MessageTag... replacementTags)

        A list of tags, in the form of name/value pairs, to apply to an email that you send using SendBulkTemplatedEmail. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.

        Parameters:
        replacementTags - A list of tags, in the form of name/value pairs, to apply to an email that you send using SendBulkTemplatedEmail. 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.
      • replacementTags

        BulkEmailDestination.Builder replacementTags​(Consumer<MessageTag.Builder>... replacementTags)

        A list of tags, in the form of name/value pairs, to apply to an email that you send using SendBulkTemplatedEmail. 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 #replacementTags(List).

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

        BulkEmailDestination.Builder replacementTemplateData​(String replacementTemplateData)

        A list of replacement values to apply to the template. This parameter is a JSON object, typically consisting of key-value pairs in which the keys correspond to replacement tags in the email template.

        Parameters:
        replacementTemplateData - A list of replacement values to apply to the template. This parameter is a JSON object, typically consisting of key-value pairs in which the keys correspond to replacement tags in the email template.
        Returns:
        Returns a reference to this object so that method calls can be chained together.