@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SentimentScore extends Object implements Serializable, Cloneable, StructuredPojo
Describes the level of confidence that Amazon Comprehend has in the accuracy of its detection of sentiments.
| Constructor and Description |
|---|
SentimentScore() |
| Modifier and Type | Method and Description |
|---|---|
SentimentScore |
clone() |
boolean |
equals(Object obj) |
Float |
getMixed()
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
MIXED
sentiment. |
Float |
getNegative()
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
NEGATIVE
sentiment. |
Float |
getNeutral()
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
NEUTRAL
sentiment. |
Float |
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(Float mixed)
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
MIXED
sentiment. |
void |
setNegative(Float negative)
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
NEGATIVE
sentiment. |
void |
setNeutral(Float neutral)
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
NEUTRAL
sentiment. |
void |
setPositive(Float 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(Float mixed)
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
MIXED
sentiment. |
SentimentScore |
withNegative(Float negative)
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
NEGATIVE
sentiment. |
SentimentScore |
withNeutral(Float neutral)
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
NEUTRAL
sentiment. |
SentimentScore |
withPositive(Float positive)
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
POSITIVE
sentiment. |
public void setPositive(Float 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 Float getPositive()
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the POSITIVE
sentiment.
POSITIVE sentiment.public SentimentScore withPositive(Float 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(Float 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 Float getNegative()
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the NEGATIVE
sentiment.
NEGATIVE sentiment.public SentimentScore withNegative(Float 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(Float 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 Float getNeutral()
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the NEUTRAL
sentiment.
NEUTRAL sentiment.public SentimentScore withNeutral(Float 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(Float 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 Float getMixed()
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the MIXED
sentiment.
MIXED sentiment.public SentimentScore withMixed(Float 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.