Interface SentimentResponse.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SentimentResponse.Builder,,SentimentResponse> SdkBuilder<SentimentResponse.Builder,,SentimentResponse> SdkPojo
- Enclosing class:
SentimentResponse
public static interface SentimentResponse.Builder
extends SdkPojo, CopyableBuilder<SentimentResponse.Builder,SentimentResponse>
-
Method Summary
Modifier and TypeMethodDescriptionsentimentLabel(String sentimentLabel) The inferred sentiment that Amazon Comprehend has the highest confidence in.sentimentScore(String sentimentScore) The likelihood that the sentiment was correctly inferred.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
sentimentLabel
The inferred sentiment that Amazon Comprehend has the highest confidence in.
- Parameters:
sentimentLabel- The inferred sentiment that Amazon Comprehend has the highest confidence in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sentimentScore
The likelihood that the sentiment was correctly inferred.
- Parameters:
sentimentScore- The likelihood that the sentiment was correctly inferred.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-