Interface KnowledgeBaseDocumentDetail.Builder

    • Method Detail

      • knowledgeBaseId

        KnowledgeBaseDocumentDetail.Builder knowledgeBaseId​(String knowledgeBaseId)

        The identifier of the knowledge base that the document was ingested into or deleted from.

        Parameters:
        knowledgeBaseId - The identifier of the knowledge base that the document was ingested into or deleted from.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dataSourceId

        KnowledgeBaseDocumentDetail.Builder dataSourceId​(String dataSourceId)

        The identifier of the data source connected to the knowledge base that the document was ingested into or deleted from.

        Parameters:
        dataSourceId - The identifier of the data source connected to the knowledge base that the document was ingested into or deleted from.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • status

        KnowledgeBaseDocumentDetail.Builder status​(String status)

        The ingestion status of the document. The following statuses are possible:

        • STARTED – You submitted the ingestion job containing the document.

        • PENDING – The document is waiting to be ingested.

        • IN_PROGRESS – The document is being ingested.

        • INDEXED – The document was successfully indexed.

        • PARTIALLY_INDEXED – The document was partially indexed.

        • METADATA_PARTIALLY_INDEXED – You submitted metadata for an existing document and it was partially indexed.

        • METADATA_UPDATE_FAILED – You submitted a metadata update for an existing document but it failed.

        • FAILED – The document failed to be ingested.

        • NOT_FOUND – The document wasn't found.

        • IGNORED – The document was ignored during ingestion.

        • DELETING – You submitted the delete job containing the document.

        • DELETE_IN_PROGRESS – The document is being deleted.

        Parameters:
        status - The ingestion status of the document. The following statuses are possible:

        • STARTED – You submitted the ingestion job containing the document.

        • PENDING – The document is waiting to be ingested.

        • IN_PROGRESS – The document is being ingested.

        • INDEXED – The document was successfully indexed.

        • PARTIALLY_INDEXED – The document was partially indexed.

        • METADATA_PARTIALLY_INDEXED – You submitted metadata for an existing document and it was partially indexed.

        • METADATA_UPDATE_FAILED – You submitted a metadata update for an existing document but it failed.

        • FAILED – The document failed to be ingested.

        • NOT_FOUND – The document wasn't found.

        • IGNORED – The document was ignored during ingestion.

        • DELETING – You submitted the delete job containing the document.

        • DELETE_IN_PROGRESS – The document is being deleted.

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

        KnowledgeBaseDocumentDetail.Builder status​(DocumentStatus status)

        The ingestion status of the document. The following statuses are possible:

        • STARTED – You submitted the ingestion job containing the document.

        • PENDING – The document is waiting to be ingested.

        • IN_PROGRESS – The document is being ingested.

        • INDEXED – The document was successfully indexed.

        • PARTIALLY_INDEXED – The document was partially indexed.

        • METADATA_PARTIALLY_INDEXED – You submitted metadata for an existing document and it was partially indexed.

        • METADATA_UPDATE_FAILED – You submitted a metadata update for an existing document but it failed.

        • FAILED – The document failed to be ingested.

        • NOT_FOUND – The document wasn't found.

        • IGNORED – The document was ignored during ingestion.

        • DELETING – You submitted the delete job containing the document.

        • DELETE_IN_PROGRESS – The document is being deleted.

        Parameters:
        status - The ingestion status of the document. The following statuses are possible:

        • STARTED – You submitted the ingestion job containing the document.

        • PENDING – The document is waiting to be ingested.

        • IN_PROGRESS – The document is being ingested.

        • INDEXED – The document was successfully indexed.

        • PARTIALLY_INDEXED – The document was partially indexed.

        • METADATA_PARTIALLY_INDEXED – You submitted metadata for an existing document and it was partially indexed.

        • METADATA_UPDATE_FAILED – You submitted a metadata update for an existing document but it failed.

        • FAILED – The document failed to be ingested.

        • NOT_FOUND – The document wasn't found.

        • IGNORED – The document was ignored during ingestion.

        • DELETING – You submitted the delete job containing the document.

        • DELETE_IN_PROGRESS – The document is being deleted.

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

        KnowledgeBaseDocumentDetail.Builder identifier​(DocumentIdentifier identifier)

        Contains information that identifies the document.

        Parameters:
        identifier - Contains information that identifies the document.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • statusReason

        KnowledgeBaseDocumentDetail.Builder statusReason​(String statusReason)

        The reason for the status. Appears alongside the status IGNORED.

        Parameters:
        statusReason - The reason for the status. Appears alongside the status IGNORED.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • updatedAt

        KnowledgeBaseDocumentDetail.Builder updatedAt​(Instant updatedAt)

        The date and time at which the document was last updated.

        Parameters:
        updatedAt - The date and time at which the document was last updated.
        Returns:
        Returns a reference to this object so that method calls can be chained together.