Interface BatchDeleteDocumentResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, CopyableBuilder<BatchDeleteDocumentResponse.Builder,BatchDeleteDocumentResponse>, QBusinessResponse.Builder, SdkBuilder<BatchDeleteDocumentResponse.Builder,BatchDeleteDocumentResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
BatchDeleteDocumentResponse

public static interface BatchDeleteDocumentResponse.Builder extends QBusinessResponse.Builder, SdkPojo, CopyableBuilder<BatchDeleteDocumentResponse.Builder,BatchDeleteDocumentResponse>
  • Method Details

    • failedDocuments

      A list of documents that couldn't be removed from the Amazon Q Business index. Each entry contains an error message that indicates why the document couldn't be removed from the index.

      Parameters:
      failedDocuments - A list of documents that couldn't be removed from the Amazon Q Business index. Each entry contains an error message that indicates why the document couldn't be removed from the index.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • failedDocuments

      BatchDeleteDocumentResponse.Builder failedDocuments(FailedDocument... failedDocuments)

      A list of documents that couldn't be removed from the Amazon Q Business index. Each entry contains an error message that indicates why the document couldn't be removed from the index.

      Parameters:
      failedDocuments - A list of documents that couldn't be removed from the Amazon Q Business index. Each entry contains an error message that indicates why the document couldn't be removed from the index.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • failedDocuments

      A list of documents that couldn't be removed from the Amazon Q Business index. Each entry contains an error message that indicates why the document couldn't be removed from 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<FailedDocument>).

      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: