Interface BatchPutDocumentResponse.Builder

    • Method Detail

      • failedDocuments

        BatchPutDocumentResponse.Builder failedDocuments​(Collection<FailedDocument> failedDocuments)

        A list of documents that were not added to the Amazon Q index because the document failed a validation check. Each document contains an error message that indicates why the document couldn't be added to the index.

        Parameters:
        failedDocuments - A list of documents that were not added to the Amazon Q index because the document failed a validation check. Each document contains an error message that indicates why the document couldn't be added to the index.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • failedDocuments

        BatchPutDocumentResponse.Builder failedDocuments​(FailedDocument... failedDocuments)

        A list of documents that were not added to the Amazon Q index because the document failed a validation check. Each document contains an error message that indicates why the document couldn't be added to the index.

        Parameters:
        failedDocuments - A list of documents that were not added to the Amazon Q index because the document failed a validation check. Each document contains an error message that indicates why the document couldn't be added to the index.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • failedDocuments

        BatchPutDocumentResponse.Builder failedDocuments​(Consumer<FailedDocument.Builder>... failedDocuments)

        A list of documents that were not added to the Amazon Q index because the document failed a validation check. Each document contains an error message that indicates why the document couldn't be added to the index.

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

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

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