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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SentimentResponse.BuildersentimentLabel(String sentimentLabel)The inferred sentiment that Amazon Comprehend has the highest confidence in.SentimentResponse.BuildersentimentScore(String sentimentScore)The likelihood that the sentiment was correctly inferred.-
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
-
sentimentLabel
SentimentResponse.Builder sentimentLabel(String 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
SentimentResponse.Builder sentimentScore(String 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.
-
-