public class DetectSentimentResult
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
DetectSentimentResult() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getSentiment()
The inferred sentiment that Amazon Comprehend has the highest level of
confidence in.
|
SentimentScore |
getSentimentScore()
An object that lists the sentiments, and their corresponding confidence
levels.
|
int |
hashCode() |
void |
setSentiment(SentimentType sentiment)
The inferred sentiment that Amazon Comprehend has the highest level of
confidence in.
|
void |
setSentiment(java.lang.String sentiment)
The inferred sentiment that Amazon Comprehend has the highest level of
confidence in.
|
void |
setSentimentScore(SentimentScore sentimentScore)
An object that lists the sentiments, and their corresponding confidence
levels.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DetectSentimentResult |
withSentiment(SentimentType sentiment)
The inferred sentiment that Amazon Comprehend has the highest level of
confidence in.
|
DetectSentimentResult |
withSentiment(java.lang.String sentiment)
The inferred sentiment that Amazon Comprehend has the highest level of
confidence in.
|
DetectSentimentResult |
withSentimentScore(SentimentScore sentimentScore)
An object that lists the sentiments, and their corresponding confidence
levels.
|
public java.lang.String getSentiment()
The inferred sentiment that Amazon Comprehend has the highest level of confidence in.
Constraints:
Allowed Values: POSITIVE, NEGATIVE, NEUTRAL, MIXED
The inferred sentiment that Amazon Comprehend has the highest level of confidence in.
SentimentTypepublic void setSentiment(java.lang.String sentiment)
The inferred sentiment that Amazon Comprehend has the highest level of confidence in.
Constraints:
Allowed Values: POSITIVE, NEGATIVE, NEUTRAL, MIXED
sentiment - The inferred sentiment that Amazon Comprehend has the highest level of confidence in.
SentimentTypepublic DetectSentimentResult withSentiment(java.lang.String sentiment)
The inferred sentiment that Amazon Comprehend has the highest level of confidence in.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: POSITIVE, NEGATIVE, NEUTRAL, MIXED
sentiment - The inferred sentiment that Amazon Comprehend has the highest level of confidence in.
SentimentTypepublic void setSentiment(SentimentType sentiment)
The inferred sentiment that Amazon Comprehend has the highest level of confidence in.
Constraints:
Allowed Values: POSITIVE, NEGATIVE, NEUTRAL, MIXED
sentiment - The inferred sentiment that Amazon Comprehend has the highest level of confidence in.
SentimentTypepublic DetectSentimentResult withSentiment(SentimentType sentiment)
The inferred sentiment that Amazon Comprehend has the highest level of confidence in.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: POSITIVE, NEGATIVE, NEUTRAL, MIXED
sentiment - The inferred sentiment that Amazon Comprehend has the highest level of confidence in.
SentimentTypepublic SentimentScore getSentimentScore()
An object that lists the sentiments, and their corresponding confidence levels.
An object that lists the sentiments, and their corresponding confidence levels.
public void setSentimentScore(SentimentScore sentimentScore)
An object that lists the sentiments, and their corresponding confidence levels.
sentimentScore - An object that lists the sentiments, and their corresponding confidence levels.
public DetectSentimentResult withSentimentScore(SentimentScore sentimentScore)
An object that lists the sentiments, and their corresponding confidence levels.
Returns a reference to this object so that method calls can be chained together.
sentimentScore - An object that lists the sentiments, and their corresponding confidence levels.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.