Interface DocumentSource.Builder

    • Method Detail

      • bytes

        DocumentSource.Builder bytes​(SdkBytes bytes)

        The raw bytes for the document. If you use an Amazon Web Services SDK, you don't need to encode the bytes in base64.

        Parameters:
        bytes - The raw bytes for the document. If you use an Amazon Web Services SDK, you don't need to encode the bytes in base64.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • text

        DocumentSource.Builder text​(String text)

        The text content of the document source.

        Parameters:
        text - The text content of the document source.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • content

        DocumentSource.Builder content​(Collection<DocumentContentBlock> content)

        The structured content of the document source, which may include various content blocks such as text, images, or other document elements.

        Parameters:
        content - The structured content of the document source, which may include various content blocks such as text, images, or other document elements.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • content

        DocumentSource.Builder content​(DocumentContentBlock... content)

        The structured content of the document source, which may include various content blocks such as text, images, or other document elements.

        Parameters:
        content - The structured content of the document source, which may include various content blocks such as text, images, or other document elements.
        Returns:
        Returns a reference to this object so that method calls can be chained together.