@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SentimentScore extends Object implements Serializable, Cloneable, StructuredPojo
The individual sentiment responses for the utterance.
| Constructor and Description |
|---|
SentimentScore() |
| Modifier and Type | Method and Description |
|---|---|
SentimentScore |
clone() |
boolean |
equals(Object obj) |
Double |
getMixed()
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
MIXED
sentiment. |
Double |
getNegative()
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
NEGATIVE
sentiment. |
Double |
getNeutral()
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
NEUTRAL
sentiment. |
Double |
getPositive()
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
POSITIVE
sentiment. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setMixed(Double mixed)
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
MIXED
sentiment. |
void |
setNegative(Double negative)
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
NEGATIVE
sentiment. |
void |
setNeutral(Double neutral)
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
NEUTRAL
sentiment. |
void |
setPositive(Double positive)
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
POSITIVE
sentiment. |
String |
toString()
Returns a string representation of this object.
|
SentimentScore |
withMixed(Double mixed)
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
MIXED
sentiment. |
SentimentScore |
withNegative(Double negative)
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
NEGATIVE
sentiment. |
SentimentScore |
withNeutral(Double neutral)
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
NEUTRAL
sentiment. |
SentimentScore |
withPositive(Double positive)
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
POSITIVE
sentiment. |
public void setPositive(Double positive)
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the POSITIVE
sentiment.
positive - The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
POSITIVE sentiment.public Double getPositive()
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the POSITIVE
sentiment.
POSITIVE sentiment.public SentimentScore withPositive(Double positive)
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the POSITIVE
sentiment.
positive - The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
POSITIVE sentiment.public void setNegative(Double negative)
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the NEGATIVE
sentiment.
negative - The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
NEGATIVE sentiment.public Double getNegative()
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the NEGATIVE
sentiment.
NEGATIVE sentiment.public SentimentScore withNegative(Double negative)
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the NEGATIVE
sentiment.
negative - The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
NEGATIVE sentiment.public void setNeutral(Double neutral)
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the NEUTRAL
sentiment.
neutral - The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
NEUTRAL sentiment.public Double getNeutral()
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the NEUTRAL
sentiment.
NEUTRAL sentiment.public SentimentScore withNeutral(Double neutral)
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the NEUTRAL
sentiment.
neutral - The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
NEUTRAL sentiment.public void setMixed(Double mixed)
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the MIXED
sentiment.
mixed - The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
MIXED sentiment.public Double getMixed()
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the MIXED
sentiment.
MIXED sentiment.public SentimentScore withMixed(Double mixed)
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the MIXED
sentiment.
mixed - The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
MIXED sentiment.public String toString()
toString in class ObjectObject.toString()public SentimentScore clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.