Interface BatchPutDocumentResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<BatchPutDocumentResponse.Builder,BatchPutDocumentResponse>,KendraResponse.Builder,SdkBuilder<BatchPutDocumentResponse.Builder,BatchPutDocumentResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- BatchPutDocumentResponse
public static interface BatchPutDocumentResponse.Builder extends KendraResponse.Builder, SdkPojo, CopyableBuilder<BatchPutDocumentResponse.Builder,BatchPutDocumentResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BatchPutDocumentResponse.BuilderfailedDocuments(Collection<BatchPutDocumentResponseFailedDocument> failedDocuments)A list of documents that were not added to the index because the document failed a validation check.BatchPutDocumentResponse.BuilderfailedDocuments(Consumer<BatchPutDocumentResponseFailedDocument.Builder>... failedDocuments)A list of documents that were not added to the index because the document failed a validation check.BatchPutDocumentResponse.BuilderfailedDocuments(BatchPutDocumentResponseFailedDocument... failedDocuments)A list of documents that were not added to the index because the document failed a validation check.-
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 Detail
-
failedDocuments
BatchPutDocumentResponse.Builder failedDocuments(Collection<BatchPutDocumentResponseFailedDocument> failedDocuments)
A list of documents that were not added to the 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.
If there was an error adding a document to an index the error is reported in your Amazon Web Services CloudWatch log. For more information, see Monitoring Amazon Kendra with Amazon CloudWatch logs.
- Parameters:
failedDocuments- A list of documents that were not added to the 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.If there was an error adding a document to an index the error is reported in your Amazon Web Services CloudWatch log. For more information, see Monitoring Amazon Kendra with Amazon CloudWatch logs.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failedDocuments
BatchPutDocumentResponse.Builder failedDocuments(BatchPutDocumentResponseFailedDocument... failedDocuments)
A list of documents that were not added to the 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.
If there was an error adding a document to an index the error is reported in your Amazon Web Services CloudWatch log. For more information, see Monitoring Amazon Kendra with Amazon CloudWatch logs.
- Parameters:
failedDocuments- A list of documents that were not added to the 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.If there was an error adding a document to an index the error is reported in your Amazon Web Services CloudWatch log. For more information, see Monitoring Amazon Kendra with Amazon CloudWatch logs.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failedDocuments
BatchPutDocumentResponse.Builder failedDocuments(Consumer<BatchPutDocumentResponseFailedDocument.Builder>... failedDocuments)
A list of documents that were not added to the 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.
If there was an error adding a document to an index the error is reported in your Amazon Web Services CloudWatch log. For more information, see Monitoring Amazon Kendra with Amazon CloudWatch logs.
This is a convenience method that creates an instance of theBatchPutDocumentResponseFailedDocument.Builderavoiding the need to create one manually viaBatchPutDocumentResponseFailedDocument.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#failedDocuments(List.) - Parameters:
failedDocuments- a consumer that will call methods onBatchPutDocumentResponseFailedDocument.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#failedDocuments(java.util.Collection)
-
-