Interface BatchGetDocumentStatusResponse.Builder

    • Method Detail

      • errors

        BatchGetDocumentStatusResponse.Builder errors​(Collection<BatchGetDocumentStatusResponseError> errors)

        A list of documents that Amazon Kendra couldn't get the status for. The list includes the ID of the document and the reason that the status couldn't be found.

        Parameters:
        errors - A list of documents that Amazon Kendra couldn't get the status for. The list includes the ID of the document and the reason that the status couldn't be found.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • errors

        BatchGetDocumentStatusResponse.Builder errors​(BatchGetDocumentStatusResponseError... errors)

        A list of documents that Amazon Kendra couldn't get the status for. The list includes the ID of the document and the reason that the status couldn't be found.

        Parameters:
        errors - A list of documents that Amazon Kendra couldn't get the status for. The list includes the ID of the document and the reason that the status couldn't be found.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • documentStatusList

        BatchGetDocumentStatusResponse.Builder documentStatusList​(Collection<Status> documentStatusList)

        The status of documents. The status indicates if the document is waiting to be indexed, is in the process of indexing, has completed indexing, or failed indexing. If a document failed indexing, the status provides the reason why.

        Parameters:
        documentStatusList - The status of documents. The status indicates if the document is waiting to be indexed, is in the process of indexing, has completed indexing, or failed indexing. If a document failed indexing, the status provides the reason why.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • documentStatusList

        BatchGetDocumentStatusResponse.Builder documentStatusList​(Status... documentStatusList)

        The status of documents. The status indicates if the document is waiting to be indexed, is in the process of indexing, has completed indexing, or failed indexing. If a document failed indexing, the status provides the reason why.

        Parameters:
        documentStatusList - The status of documents. The status indicates if the document is waiting to be indexed, is in the process of indexing, has completed indexing, or failed indexing. If a document failed indexing, the status provides the reason why.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • documentStatusList

        BatchGetDocumentStatusResponse.Builder documentStatusList​(Consumer<Status.Builder>... documentStatusList)

        The status of documents. The status indicates if the document is waiting to be indexed, is in the process of indexing, has completed indexing, or failed indexing. If a document failed indexing, the status provides the reason why.

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

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

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