public class SentimentResponse
extends java.lang.Object
implements java.io.Serializable
The sentiment expressed in an utterance.
When the bot is configured to send utterances to Amazon Comprehend for sentiment analysis, this field structure contains the result of the analysis.
Constructor and Description |
---|
SentimentResponse() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getSentimentLabel()
The inferred sentiment that Amazon Comprehend has the highest confidence
in.
|
java.lang.String |
getSentimentScore()
The likelihood that the sentiment was correctly inferred.
|
int |
hashCode() |
void |
setSentimentLabel(java.lang.String sentimentLabel)
The inferred sentiment that Amazon Comprehend has the highest confidence
in.
|
void |
setSentimentScore(java.lang.String sentimentScore)
The likelihood that the sentiment was correctly inferred.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SentimentResponse |
withSentimentLabel(java.lang.String sentimentLabel)
The inferred sentiment that Amazon Comprehend has the highest confidence
in.
|
SentimentResponse |
withSentimentScore(java.lang.String sentimentScore)
The likelihood that the sentiment was correctly inferred.
|
public java.lang.String getSentimentLabel()
The inferred sentiment that Amazon Comprehend has the highest confidence in.
The inferred sentiment that Amazon Comprehend has the highest confidence in.
public void setSentimentLabel(java.lang.String sentimentLabel)
The inferred sentiment that Amazon Comprehend has the highest confidence in.
sentimentLabel
- The inferred sentiment that Amazon Comprehend has the highest confidence in.
public SentimentResponse withSentimentLabel(java.lang.String sentimentLabel)
The inferred sentiment that Amazon Comprehend has the highest confidence in.
Returns a reference to this object so that method calls can be chained together.
sentimentLabel
- The inferred sentiment that Amazon Comprehend has the highest confidence in.
public java.lang.String getSentimentScore()
The likelihood that the sentiment was correctly inferred.
The likelihood that the sentiment was correctly inferred.
public void setSentimentScore(java.lang.String sentimentScore)
The likelihood that the sentiment was correctly inferred.
sentimentScore
- The likelihood that the sentiment was correctly inferred.
public SentimentResponse withSentimentScore(java.lang.String sentimentScore)
The likelihood that the sentiment was correctly inferred.
Returns a reference to this object so that method calls can be chained together.
sentimentScore
- The likelihood that the sentiment was correctly inferred.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.