Interface BatchDetectSyntaxResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,ComprehendResponse.Builder,CopyableBuilder<BatchDetectSyntaxResponse.Builder,,BatchDetectSyntaxResponse> SdkBuilder<BatchDetectSyntaxResponse.Builder,,BatchDetectSyntaxResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
BatchDetectSyntaxResponse
-
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<BatchDetectSyntaxItemResult> resultList) A list of objects containing the results of the operation.resultList(Consumer<BatchDetectSyntaxItemResult.Builder>... resultList) A list of objects containing the results of the operation.resultList(BatchDetectSyntaxItemResult... 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, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
resultList
A list of objects containing the results of the operation. The results are sorted in ascending order by the
Indexfield and match the order of the documents in the input list. If all of the documents contain an error, theResultListis empty.- Parameters:
resultList- A list of objects containing the results of the operation. The results are sorted in ascending order by theIndexfield and match the order of the documents in the input list. If all of the documents contain an error, theResultListis 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
Indexfield and match the order of the documents in the input list. If all of the documents contain an error, theResultListis empty.- Parameters:
resultList- A list of objects containing the results of the operation. The results are sorted in ascending order by theIndexfield and match the order of the documents in the input list. If all of the documents contain an error, theResultListis empty.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resultList
BatchDetectSyntaxResponse.Builder resultList(Consumer<BatchDetectSyntaxItemResult.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 theIndexfield and match the order of the documents in the input list. If all of the documents contain an error, theResultListis empty.BatchDetectSyntaxItemResult.Builderavoiding the need to create one manually viaBatchDetectSyntaxItemResult.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresultList(List<BatchDetectSyntaxItemResult>).- Parameters:
resultList- a consumer that will call methods onBatchDetectSyntaxItemResult.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
Indexfield and match the order of the documents in the input list. If there are no errors in the batch, theErrorListis empty.- Parameters:
errorList- A list containing one object for each document that contained an error. The results are sorted in ascending order by theIndexfield and match the order of the documents in the input list. If there are no errors in the batch, theErrorListis 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
Indexfield and match the order of the documents in the input list. If there are no errors in the batch, theErrorListis empty.- Parameters:
errorList- A list containing one object for each document that contained an error. The results are sorted in ascending order by theIndexfield and match the order of the documents in the input list. If there are no errors in the batch, theErrorListis 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 theIndexfield and match the order of the documents in the input list. If there are no errors in the batch, theErrorListis empty.BatchItemError.Builderavoiding the need to create one manually viaBatchItemError.builder().When the
Consumercompletes,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:
-