public static interface BatchDetectSentimentItemResult.Builder extends CopyableBuilder<BatchDetectSentimentItemResult.Builder,BatchDetectSentimentItemResult>
| Modifier and Type | Method and Description |
|---|---|
BatchDetectSentimentItemResult.Builder |
index(Integer index)
The zero-based index of the document in the input list.
|
BatchDetectSentimentItemResult.Builder |
sentiment(SentimentType sentiment)
The sentiment detected in the document.
|
BatchDetectSentimentItemResult.Builder |
sentiment(String sentiment)
The sentiment detected in the document.
|
default BatchDetectSentimentItemResult.Builder |
sentimentScore(Consumer<SentimentScore.Builder> sentimentScore)
The level of confidence that Amazon Comprehend has in the accuracy of its sentiment detection.
|
BatchDetectSentimentItemResult.Builder |
sentimentScore(SentimentScore sentimentScore)
The level of confidence that Amazon Comprehend has in the accuracy of its sentiment detection.
|
copyapply, buildBatchDetectSentimentItemResult.Builder index(Integer index)
The zero-based index of the document in the input list.
index - The zero-based index of the document in the input list.BatchDetectSentimentItemResult.Builder sentiment(String sentiment)
The sentiment detected in the document.
sentiment - The sentiment detected in the document.SentimentType,
SentimentTypeBatchDetectSentimentItemResult.Builder sentiment(SentimentType sentiment)
The sentiment detected in the document.
sentiment - The sentiment detected in the document.SentimentType,
SentimentTypeBatchDetectSentimentItemResult.Builder sentimentScore(SentimentScore sentimentScore)
The level of confidence that Amazon Comprehend has in the accuracy of its sentiment detection.
sentimentScore - The level of confidence that Amazon Comprehend has in the accuracy of its sentiment detection.default BatchDetectSentimentItemResult.Builder sentimentScore(Consumer<SentimentScore.Builder> sentimentScore)
The level of confidence that Amazon Comprehend has in the accuracy of its sentiment detection.
This is a convenience that creates an instance of theSentimentScore.Builder avoiding the need to
create one manually via SentimentScore.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to sentimentScore(SentimentScore).sentimentScore - a consumer that will call methods on SentimentScore.BuildersentimentScore(SentimentScore)Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.