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 Default Methods Modifier and Type Method Description SentimentResponse.Buildersentiment(String sentiment)The overall sentiment expressed in the user's response.SentimentResponse.Buildersentiment(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.SentimentResponse.BuildersentimentScore(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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
sentiment
SentimentResponse.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.
- 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:
SentimentType,SentimentType
-
sentiment
SentimentResponse.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.
- 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:
SentimentType,SentimentType
-
sentimentScore
SentimentResponse.Builder sentimentScore(SentimentScore 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
default SentimentResponse.Builder sentimentScore(Consumer<SentimentScore.Builder> 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:
sentimentScore(SentimentScore)
-
-