Interface BatchDetectEntitiesResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,ComprehendResponse.Builder,CopyableBuilder<BatchDetectEntitiesResponse.Builder,BatchDetectEntitiesResponse>,SdkBuilder<BatchDetectEntitiesResponse.Builder,BatchDetectEntitiesResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- BatchDetectEntitiesResponse
public static interface BatchDetectEntitiesResponse.Builder extends ComprehendResponse.Builder, SdkPojo, CopyableBuilder<BatchDetectEntitiesResponse.Builder,BatchDetectEntitiesResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BatchDetectEntitiesResponse.BuildererrorList(Collection<BatchItemError> errorList)A list containing one object for each document that contained an error.BatchDetectEntitiesResponse.BuildererrorList(Consumer<BatchItemError.Builder>... errorList)A list containing one object for each document that contained an error.BatchDetectEntitiesResponse.BuildererrorList(BatchItemError... errorList)A list containing one object for each document that contained an error.BatchDetectEntitiesResponse.BuilderresultList(Collection<BatchDetectEntitiesItemResult> resultList)A list of objects containing the results of the operation.BatchDetectEntitiesResponse.BuilderresultList(Consumer<BatchDetectEntitiesItemResult.Builder>... resultList)A list of objects containing the results of the operation.BatchDetectEntitiesResponse.BuilderresultList(BatchDetectEntitiesItemResult... 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 Detail
-
resultList
BatchDetectEntitiesResponse.Builder resultList(Collection<BatchDetectEntitiesItemResult> 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
BatchDetectEntitiesResponse.Builder resultList(BatchDetectEntitiesItemResult... 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
BatchDetectEntitiesResponse.Builder resultList(Consumer<BatchDetectEntitiesItemResult.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.BatchDetectEntitiesItemResult.Builderavoiding the need to create one manually viaBatchDetectEntitiesItemResult.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#resultList(List.) - Parameters:
resultList- a consumer that will call methods onBatchDetectEntitiesItemResult.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#resultList(java.util.Collection)
-
errorList
BatchDetectEntitiesResponse.Builder errorList(Collection<BatchItemError> 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
BatchDetectEntitiesResponse.Builder errorList(BatchItemError... 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
BatchDetectEntitiesResponse.Builder errorList(Consumer<BatchItemError.Builder>... 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 to#errorList(List.) - 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:
#errorList(java.util.Collection)
-
-