Interface BatchDetectKeyPhrasesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,ComprehendResponse.Builder
,CopyableBuilder<BatchDetectKeyPhrasesResponse.Builder,
,BatchDetectKeyPhrasesResponse> SdkBuilder<BatchDetectKeyPhrasesResponse.Builder,
,BatchDetectKeyPhrasesResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
BatchDetectKeyPhrasesResponse
-
Method Summary
Modifier and TypeMethodDescriptionerrorList
(Collection<BatchItemError> errorList) A list containing one object for each document that contained an error.errorList
(Consumer<BatchItemError.Builder>... errorList) A list containing one object for each document that contained an error.errorList
(BatchItemError... errorList) A list containing one object for each document that contained an error.resultList
(Collection<BatchDetectKeyPhrasesItemResult> resultList) A list of objects containing the results of the operation.resultList
(Consumer<BatchDetectKeyPhrasesItemResult.Builder>... resultList) A list of objects containing the results of the operation.resultList
(BatchDetectKeyPhrasesItemResult... resultList) A list of objects containing the results of the operation.Methods inherited from interface software.amazon.awssdk.services.comprehend.model.ComprehendResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
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
-
resultList
BatchDetectKeyPhrasesResponse.Builder resultList(Collection<BatchDetectKeyPhrasesItemResult> resultList) A list of objects containing the results of the operation. The results are sorted in ascending order by the
Index
field and match the order of the documents in the input list. If all of the documents contain an error, theResultList
is empty.- Parameters:
resultList
- A list of objects containing the results of the operation. The results are sorted in ascending order by theIndex
field and match the order of the documents in the input list. If all of the documents contain an error, theResultList
is empty.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resultList
A list of objects containing the results of the operation. The results are sorted in ascending order by the
Index
field and match the order of the documents in the input list. If all of the documents contain an error, theResultList
is empty.- Parameters:
resultList
- A list of objects containing the results of the operation. The results are sorted in ascending order by theIndex
field and match the order of the documents in the input list. If all of the documents contain an error, theResultList
is empty.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resultList
BatchDetectKeyPhrasesResponse.Builder resultList(Consumer<BatchDetectKeyPhrasesItemResult.Builder>... resultList) A list of objects containing the results of the operation. The results are sorted in ascending order by the
This is a convenience method that creates an instance of theIndex
field and match the order of the documents in the input list. If all of the documents contain an error, theResultList
is empty.BatchDetectKeyPhrasesItemResult.Builder
avoiding the need to create one manually viaBatchDetectKeyPhrasesItemResult.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresultList(List<BatchDetectKeyPhrasesItemResult>)
.- Parameters:
resultList
- a consumer that will call methods onBatchDetectKeyPhrasesItemResult.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
errorList
A list containing one object for each document that contained an error. The results are sorted in ascending order by the
Index
field and match the order of the documents in the input list. If there are no errors in the batch, theErrorList
is empty.- Parameters:
errorList
- A list containing one object for each document that contained an error. The results are sorted in ascending order by theIndex
field and match the order of the documents in the input list. If there are no errors in the batch, theErrorList
is empty.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorList
A list containing one object for each document that contained an error. The results are sorted in ascending order by the
Index
field and match the order of the documents in the input list. If there are no errors in the batch, theErrorList
is empty.- Parameters:
errorList
- A list containing one object for each document that contained an error. The results are sorted in ascending order by theIndex
field and match the order of the documents in the input list. If there are no errors in the batch, theErrorList
is empty.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorList
A list containing one object for each document that contained an error. The results are sorted in ascending order by the
This is a convenience method that creates an instance of theIndex
field and match the order of the documents in the input list. If there are no errors in the batch, theErrorList
is empty.BatchItemError.Builder
avoiding the need to create one manually viaBatchItemError.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toerrorList(List<BatchItemError>)
.- Parameters:
errorList
- a consumer that will call methods onBatchItemError.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-