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 TypeMethodDescriptionThe overall sentiment expressed in the user's response.sentiment
(SentimentType 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.sentimentScore
(SentimentScore sentimentScore) Sets the value of the SentimentScore property for this object.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 Details
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sentimentScore
Sets the value of the SentimentScore property for this object.- Parameters:
sentimentScore
- The new value for the SentimentScore property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sentimentScore
Sets the value of the SentimentScore property for this object. This is a convenience method that creates an instance of theSentimentScore.Builder
avoiding the need to create one manually viaSentimentScore.builder()
.When the
Consumer
completes,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:
-