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 Details

    • 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:
    • 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

      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 the 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).

      Parameters:
      sentimentScore - a consumer that will call methods on SentimentScore.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: