Interface TextSegment.Builder

    • Method Detail

      • beginOffset

        TextSegment.Builder beginOffset​(Integer beginOffset)

        The zero-based location in the response string where the source attribution starts.

        Parameters:
        beginOffset - The zero-based location in the response string where the source attribution starts.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • endOffset

        TextSegment.Builder endOffset​(Integer endOffset)

        The zero-based location in the response string where the source attribution ends.

        Parameters:
        endOffset - The zero-based location in the response string where the source attribution ends.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • snippetExcerpt

        TextSegment.Builder snippetExcerpt​(SnippetExcerpt snippetExcerpt)

        The relevant text excerpt from a source that was used to generate a citation text segment in an Amazon Q Business chat response.

        Parameters:
        snippetExcerpt - The relevant text excerpt from a source that was used to generate a citation text segment in an Amazon Q Business chat response.
        Returns:
        Returns a reference to this object so that method calls can be chained together.