Interface BatchDetectTargetedSentimentResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,ComprehendResponse.Builder,CopyableBuilder<BatchDetectTargetedSentimentResponse.Builder,BatchDetectTargetedSentimentResponse>,SdkBuilder<BatchDetectTargetedSentimentResponse.Builder,BatchDetectTargetedSentimentResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- BatchDetectTargetedSentimentResponse
public static interface BatchDetectTargetedSentimentResponse.Builder extends ComprehendResponse.Builder, SdkPojo, CopyableBuilder<BatchDetectTargetedSentimentResponse.Builder,BatchDetectTargetedSentimentResponse>
-
-
Method Summary
-
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
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
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
BatchDetectTargetedSentimentResponse.Builder resultList(BatchDetectTargetedSentimentItemResult... 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
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 theIndexfield and match the order of the documents in the input list. If all of the documents contain an error, theResultListis empty.BatchDetectTargetedSentimentItemResult.Builderavoiding the need to create one manually viaBatchDetectTargetedSentimentItemResult.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 onBatchDetectTargetedSentimentItemResult.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#resultList(java.util.Collection)
-
errorList
BatchDetectTargetedSentimentResponse.Builder errorList(Collection<BatchItemError> 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(BatchItemError... 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.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)
-
-