Interface BatchDetectTargetedSentimentResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,ComprehendResponse.Builder
,CopyableBuilder<BatchDetectTargetedSentimentResponse.Builder,
,BatchDetectTargetedSentimentResponse> SdkBuilder<BatchDetectTargetedSentimentResponse.Builder,
,BatchDetectTargetedSentimentResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
BatchDetectTargetedSentimentResponse
-
Method Summary
Modifier and TypeMethodDescriptionerrorList
(Collection<BatchItemError> errorList) List of errors that the operation can return.errorList
(Consumer<BatchItemError.Builder>... errorList) List of errors that the operation can return.errorList
(BatchItemError... errorList) List of errors that the operation can return.resultList
(Collection<BatchDetectTargetedSentimentItemResult> resultList) A list of objects containing the results of the operation.resultList
(Consumer<BatchDetectTargetedSentimentItemResult.Builder>... resultList) A list of objects containing the results of the operation.resultList
(BatchDetectTargetedSentimentItemResult... 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
BatchDetectTargetedSentimentResponse.Builder resultList(Collection<BatchDetectTargetedSentimentItemResult> 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
BatchDetectTargetedSentimentResponse.Builder resultList(BatchDetectTargetedSentimentItemResult... 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
BatchDetectTargetedSentimentResponse.Builder resultList(Consumer<BatchDetectTargetedSentimentItemResult.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.BatchDetectTargetedSentimentItemResult.Builder
avoiding the need to create one manually viaBatchDetectTargetedSentimentItemResult.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresultList(List<BatchDetectTargetedSentimentItemResult>)
.- Parameters:
resultList
- a consumer that will call methods onBatchDetectTargetedSentimentItemResult.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
errorList
List of errors that the operation can return.
- Parameters:
errorList
- List of errors that the operation can return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorList
List of errors that the operation can return.
- Parameters:
errorList
- List of errors that the operation can return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorList
BatchDetectTargetedSentimentResponse.Builder errorList(Consumer<BatchItemError.Builder>... errorList) List of errors that the operation can return.
This is a convenience method that creates an instance of theBatchItemError.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:
-