Interface BatchDetectSentimentItemResult.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<BatchDetectSentimentItemResult.Builder,,- BatchDetectSentimentItemResult> - SdkBuilder<BatchDetectSentimentItemResult.Builder,,- BatchDetectSentimentItemResult> - SdkPojo
- Enclosing class:
- BatchDetectSentimentItemResult
@Mutable
@NotThreadSafe
public static interface BatchDetectSentimentItemResult.Builder
extends SdkPojo, CopyableBuilder<BatchDetectSentimentItemResult.Builder,BatchDetectSentimentItemResult> 
- 
Method SummaryModifier 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.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
indexThe 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.
 
- 
sentimentThe 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:
 
- 
sentimentThe 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:
 
- 
sentimentScoreThe 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.
 
- 
sentimentScoredefault 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 on- SentimentScore.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
 
-