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

    • sentimentLabel

      SentimentResponse.Builder sentimentLabel(String sentimentLabel)

      The inferred sentiment that Amazon Comprehend has the highest confidence in.

      Parameters:
      sentimentLabel - The inferred sentiment that Amazon Comprehend has the highest confidence in.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sentimentScore

      SentimentResponse.Builder sentimentScore(String sentimentScore)

      The likelihood that the sentiment was correctly inferred.

      Parameters:
      sentimentScore - The likelihood that the sentiment was correctly inferred.
      Returns:
      Returns a reference to this object so that method calls can be chained together.