Interface BatchDetectSentimentItemResult.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<BatchDetectSentimentItemResult.Builder,
,BatchDetectSentimentItemResult> SdkBuilder<BatchDetectSentimentItemResult.Builder,
,BatchDetectSentimentItemResult> SdkPojo
- Enclosing class:
BatchDetectSentimentItemResult
public static interface BatchDetectSentimentItemResult.Builder
extends SdkPojo, CopyableBuilder<BatchDetectSentimentItemResult.Builder,BatchDetectSentimentItemResult>
-
Method Summary
Modifier and TypeMethodDescriptionThe zero-based index of the document in the input list.The sentiment detected in the document.sentiment
(SentimentType sentiment) The sentiment detected in the document.sentimentScore
(Consumer<SentimentScore.Builder> sentimentScore) The level of confidence that Amazon Comprehend has in the accuracy of its sentiment detection.sentimentScore
(SentimentScore sentimentScore) The level of confidence that Amazon Comprehend has in the accuracy of its sentiment detection.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
-
Method Details
-
index
The zero-based index of the document in the input list.
- Parameters:
index
- The zero-based index of the document in the input list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sentiment
The sentiment detected in the document.
- Parameters:
sentiment
- The sentiment detected in the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sentiment
The sentiment detected in the document.
- Parameters:
sentiment
- The sentiment detected in the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sentimentScore
The level of confidence that Amazon Comprehend has in the accuracy of its sentiment detection.
- Parameters:
sentimentScore
- The level of confidence that Amazon Comprehend has in the accuracy of its sentiment detection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sentimentScore
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 method that creates an instance of theSentimentScore.Builder
avoiding the need to create one manually viaSentimentScore.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosentimentScore(SentimentScore)
.- Parameters:
sentimentScore
- a consumer that will call methods onSentimentScore.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-