Interface CitationsContentBlock.Builder

    • Method Detail

      • content

        CitationsContentBlock.Builder content​(Collection<CitationGeneratedContent> content)

        The generated content that is supported by the associated citations.

        Parameters:
        content - The generated content that is supported by the associated citations.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • content

        CitationsContentBlock.Builder content​(CitationGeneratedContent... content)

        The generated content that is supported by the associated citations.

        Parameters:
        content - The generated content that is supported by the associated citations.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • citations

        CitationsContentBlock.Builder citations​(Collection<Citation> citations)

        An array of citations that reference the source documents used to generate the associated content.

        Parameters:
        citations - An array of citations that reference the source documents used to generate the associated content.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • citations

        CitationsContentBlock.Builder citations​(Citation... citations)

        An array of citations that reference the source documents used to generate the associated content.

        Parameters:
        citations - An array of citations that reference the source documents used to generate the associated content.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • citations

        CitationsContentBlock.Builder citations​(Consumer<Citation.Builder>... citations)

        An array of citations that reference the source documents used to generate the associated content.

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

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

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