Interface Document.Builder

    • Method Detail

      • id

        Document.Builder id​(String id)

        The identifier of the document.

        Parameters:
        id - The identifier of the document.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • attributes

        Document.Builder attributes​(Collection<DocumentAttribute> attributes)

        Custom attributes to apply to the document for refining Amazon Q Business web experience responses.

        Parameters:
        attributes - Custom attributes to apply to the document for refining Amazon Q Business web experience responses.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • attributes

        Document.Builder attributes​(DocumentAttribute... attributes)

        Custom attributes to apply to the document for refining Amazon Q Business web experience responses.

        Parameters:
        attributes - Custom attributes to apply to the document for refining Amazon Q Business web experience responses.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • content

        Document.Builder content​(DocumentContent content)

        The contents of the document.

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

        Document.Builder contentType​(String contentType)

        The file type of the document in the Blob field.

        If you want to index snippets or subsets of HTML documents instead of the entirety of the HTML documents, you add the HTML start and closing tags (<HTML>content</HTML>) around the content.

        Parameters:
        contentType - The file type of the document in the Blob field.

        If you want to index snippets or subsets of HTML documents instead of the entirety of the HTML documents, you add the HTML start and closing tags ( <HTML>content</HTML>) around the content.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ContentType, ContentType
      • contentType

        Document.Builder contentType​(ContentType contentType)

        The file type of the document in the Blob field.

        If you want to index snippets or subsets of HTML documents instead of the entirety of the HTML documents, you add the HTML start and closing tags (<HTML>content</HTML>) around the content.

        Parameters:
        contentType - The file type of the document in the Blob field.

        If you want to index snippets or subsets of HTML documents instead of the entirety of the HTML documents, you add the HTML start and closing tags ( <HTML>content</HTML>) around the content.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ContentType, ContentType
      • title

        Document.Builder title​(String title)

        The title of the document.

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

        Document.Builder accessConfiguration​(AccessConfiguration accessConfiguration)

        Configuration information for access permission to a document.

        Parameters:
        accessConfiguration - Configuration information for access permission to a document.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • documentEnrichmentConfiguration

        Document.Builder documentEnrichmentConfiguration​(DocumentEnrichmentConfiguration documentEnrichmentConfiguration)

        The configuration information for altering document metadata and content during the document ingestion process.

        Parameters:
        documentEnrichmentConfiguration - The configuration information for altering document metadata and content during the document ingestion process.
        Returns:
        Returns a reference to this object so that method calls can be chained together.