Interface SentimentResponse.Builder

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