@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 in the Amazon Comprehend Developer Guide.
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)
Marshalls this structured data using the given
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.SentimentType
public String getSentiment()
The sentiment of the mention.
SentimentType
public MentionSentiment withSentiment(String sentiment)
The sentiment of the mention.
sentiment
- The sentiment of the mention.SentimentType
public MentionSentiment withSentiment(SentimentType sentiment)
The sentiment of the mention.
sentiment
- The sentiment of the mention.SentimentType
public void setSentimentScore(SentimentScore sentimentScore)
sentimentScore
- public SentimentScore getSentimentScore()
public MentionSentiment withSentimentScore(SentimentScore sentimentScore)
sentimentScore
- public String toString()
toString
in class Object
Object.toString()
public MentionSentiment clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.