Interface SentimentResponse.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SentimentResponse.Builder,,SentimentResponse> SdkBuilder<SentimentResponse.Builder,,SentimentResponse> SdkPojo
- Enclosing class:
SentimentResponse
@Mutable
@NotThreadSafe
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.BuildersentimentScore(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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, 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.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 onSentimentScore.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-