Interface Content.Builder

    • Method Detail

      • textList

        Content.Builder textList​(Collection<Text> textList)

        The list of text messages.

        Parameters:
        textList - The list of text messages.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • textList

        Content.Builder textList​(Text... textList)

        The list of text messages.

        Parameters:
        textList - The list of text messages.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • textList

        Content.Builder textList​(Consumer<Text.Builder>... textList)

        The list of text messages.

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

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

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

        Content.Builder ssmlList​(Collection<Ssml> ssmlList)

        The list of SSML messages.

        Parameters:
        ssmlList - The list of SSML messages.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ssmlList

        Content.Builder ssmlList​(Ssml... ssmlList)

        The list of SSML messages.

        Parameters:
        ssmlList - The list of SSML messages.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ssmlList

        Content.Builder ssmlList​(Consumer<Ssml.Builder>... ssmlList)

        The list of SSML messages.

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

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

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

        Content.Builder audioList​(Collection<Audio> audioList)

        The list of audio messages.

        Parameters:
        audioList - The list of audio messages.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • audioList

        Content.Builder audioList​(Audio... audioList)

        The list of audio messages.

        Parameters:
        audioList - The list of audio messages.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • audioList

        Content.Builder audioList​(Consumer<Audio.Builder>... audioList)

        The list of audio messages.

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

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

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