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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description BatchDetectSentimentItemResult.Builderindex(Integer index)The zero-based index of the document in the input list.BatchDetectSentimentItemResult.Buildersentiment(String sentiment)The sentiment detected in the document.BatchDetectSentimentItemResult.Buildersentiment(SentimentType sentiment)The sentiment detected in the document.default BatchDetectSentimentItemResult.BuildersentimentScore(Consumer<SentimentScore.Builder> sentimentScore)The level of confidence that Amazon Comprehend has in the accuracy of its sentiment detection.BatchDetectSentimentItemResult.BuildersentimentScore(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 Detail
-
index
BatchDetectSentimentItemResult.Builder index(Integer 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
BatchDetectSentimentItemResult.Builder sentiment(String 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:
SentimentType,SentimentType
-
sentiment
BatchDetectSentimentItemResult.Builder sentiment(SentimentType 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:
SentimentType,SentimentType
-
sentimentScore
BatchDetectSentimentItemResult.Builder sentimentScore(SentimentScore 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.Builderavoiding the need to create one manually viaSentimentScore.builder().When the
Consumercompletes,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:
sentimentScore(SentimentScore)
-
-