@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MentionSentiment extends Object implements Serializable, Cloneable, StructuredPojo
Contains the sentiment and sentiment score for one mention of an entity.
For more information about targeted sentiment, see Targeted sentiment.
| Constructor and Description |
|---|
MentionSentiment() |
| Modifier and Type | Method and Description |
|---|---|
MentionSentiment |
clone() |
boolean |
equals(Object obj) |
String |
getSentiment()
The sentiment of the mention.
|
SentimentScore |
getSentimentScore() |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setSentiment(String sentiment)
The sentiment of the mention.
|
void |
setSentimentScore(SentimentScore sentimentScore) |
String |
toString()
Returns a string representation of this object.
|
MentionSentiment |
withSentiment(SentimentType sentiment)
The sentiment of the mention.
|
MentionSentiment |
withSentiment(String sentiment)
The sentiment of the mention.
|
MentionSentiment |
withSentimentScore(SentimentScore sentimentScore) |
public void setSentiment(String sentiment)
The sentiment of the mention.
sentiment - The sentiment of the mention.SentimentTypepublic String getSentiment()
The sentiment of the mention.
SentimentTypepublic MentionSentiment withSentiment(String sentiment)
The sentiment of the mention.
sentiment - The sentiment of the mention.SentimentTypepublic MentionSentiment withSentiment(SentimentType sentiment)
The sentiment of the mention.
sentiment - The sentiment of the mention.SentimentTypepublic void setSentimentScore(SentimentScore sentimentScore)
sentimentScore - public SentimentScore getSentimentScore()
public MentionSentiment withSentimentScore(SentimentScore sentimentScore)
sentimentScore - public String toString()
toString in class ObjectObject.toString()public MentionSentiment clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2023. All rights reserved.