public static interface SentimentResponse.Builder extends SdkPojo, CopyableBuilder<SentimentResponse.Builder,SentimentResponse>
| Modifier and Type | Method and Description |
|---|---|
SentimentResponse.Builder |
sentiment(SentimentType sentiment)
The overall sentiment expressed in the user's response.
|
SentimentResponse.Builder |
sentiment(String sentiment)
The overall sentiment expressed in the user's response.
|
default SentimentResponse.Builder |
sentimentScore(Consumer<SentimentScore.Builder> sentimentScore)
Sets the value of the SentimentScore property for this object.
|
SentimentResponse.Builder |
sentimentScore(SentimentScore sentimentScore)
Sets the value of the SentimentScore property for this object.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildSentimentResponse.Builder sentiment(String sentiment)
The overall sentiment expressed in the user's response. This is the sentiment most likely expressed by the user based on the analysis by Amazon Comprehend.
sentiment - The overall sentiment expressed in the user's response. This is the sentiment most likely expressed by
the user based on the analysis by Amazon Comprehend.SentimentType,
SentimentTypeSentimentResponse.Builder sentiment(SentimentType sentiment)
The overall sentiment expressed in the user's response. This is the sentiment most likely expressed by the user based on the analysis by Amazon Comprehend.
sentiment - The overall sentiment expressed in the user's response. This is the sentiment most likely expressed by
the user based on the analysis by Amazon Comprehend.SentimentType,
SentimentTypeSentimentResponse.Builder sentimentScore(SentimentScore sentimentScore)
sentimentScore - The new value for the SentimentScore property for this object.default SentimentResponse.Builder sentimentScore(Consumer<SentimentScore.Builder> sentimentScore)
SentimentScore.Builder avoiding the need to
create one manually via SentimentScore.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to sentimentScore(SentimentScore).sentimentScore - a consumer that will call methods on SentimentScore.BuildersentimentScore(SentimentScore)Copyright © 2021. All rights reserved.