Interface BatchGetDocumentStatusResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<BatchGetDocumentStatusResponse.Builder,
,BatchGetDocumentStatusResponse> KendraResponse.Builder
,SdkBuilder<BatchGetDocumentStatusResponse.Builder,
,BatchGetDocumentStatusResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
BatchGetDocumentStatusResponse
-
Method Summary
Modifier and TypeMethodDescriptiondocumentStatusList
(Collection<Status> documentStatusList) The status of documents.documentStatusList
(Consumer<Status.Builder>... documentStatusList) The status of documents.documentStatusList
(Status... documentStatusList) The status of documents.A list of documents that Amazon Kendra couldn't get the status for.A list of documents that Amazon Kendra couldn't get the status for.errors
(BatchGetDocumentStatusResponseError... errors) A list of documents that Amazon Kendra couldn't get the status for.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
-
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
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(Consumer<BatchGetDocumentStatusResponseError.Builder>... 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.
This is a convenience method that creates an instance of theBatchGetDocumentStatusResponseError.Builder
avoiding the need to create one manually viaBatchGetDocumentStatusResponseError.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toerrors(List<BatchGetDocumentStatusResponseError>)
.- Parameters:
errors
- a consumer that will call methods onBatchGetDocumentStatusResponseError.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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 theStatus.Builder
avoiding the need to create one manually viaStatus.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todocumentStatusList(List<Status>)
.- Parameters:
documentStatusList
- a consumer that will call methods onStatus.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-