Interface BatchDeleteDocumentResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<BatchDeleteDocumentResponse.Builder,
,BatchDeleteDocumentResponse> KendraResponse.Builder
,SdkBuilder<BatchDeleteDocumentResponse.Builder,
,BatchDeleteDocumentResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
BatchDeleteDocumentResponse
public static interface BatchDeleteDocumentResponse.Builder
extends KendraResponse.Builder, SdkPojo, CopyableBuilder<BatchDeleteDocumentResponse.Builder,BatchDeleteDocumentResponse>
-
Method Summary
Modifier and TypeMethodDescriptionfailedDocuments
(Collection<BatchDeleteDocumentResponseFailedDocument> failedDocuments) A list of documents that could not be removed from the index.failedDocuments
(Consumer<BatchDeleteDocumentResponseFailedDocument.Builder>... failedDocuments) A list of documents that could not be removed from the index.failedDocuments
(BatchDeleteDocumentResponseFailedDocument... failedDocuments) A list of documents that could not be removed from the index.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.kendra.model.KendraResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
failedDocuments
BatchDeleteDocumentResponse.Builder failedDocuments(Collection<BatchDeleteDocumentResponseFailedDocument> failedDocuments) A list of documents that could not be removed from the 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 could not be removed from the 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(BatchDeleteDocumentResponseFailedDocument... failedDocuments) A list of documents that could not be removed from the 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 could not be removed from the 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(Consumer<BatchDeleteDocumentResponseFailedDocument.Builder>... failedDocuments) A list of documents that could not be removed from the 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 theBatchDeleteDocumentResponseFailedDocument.Builder
avoiding the need to create one manually viaBatchDeleteDocumentResponseFailedDocument.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofailedDocuments(List<BatchDeleteDocumentResponseFailedDocument>)
.- Parameters:
failedDocuments
- a consumer that will call methods onBatchDeleteDocumentResponseFailedDocument.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-