@Generated(value="software.amazon.awssdk:codegen") public final class MentionSentiment extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MentionSentiment.Builder,MentionSentiment>
Contains the sentiment and sentiment score for one mention of an entity.
For more information about targeted sentiment, see Targeted sentiment.
| Modifier and Type | Class and Description |
|---|---|
static interface |
MentionSentiment.Builder |
| Modifier and Type | Method and Description |
|---|---|
static MentionSentiment.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
SentimentType |
sentiment()
The sentiment of the mention.
|
String |
sentimentAsString()
The sentiment of the mention.
|
SentimentScore |
sentimentScore()
Returns the value of the SentimentScore property for this object.
|
static Class<? extends MentionSentiment.Builder> |
serializableBuilderClass() |
MentionSentiment.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final SentimentType sentiment()
The sentiment of the mention.
If the service returns an enum value that is not available in the current SDK version, sentiment will
return SentimentType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
sentimentAsString().
SentimentTypepublic final String sentimentAsString()
The sentiment of the mention.
If the service returns an enum value that is not available in the current SDK version, sentiment will
return SentimentType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
sentimentAsString().
SentimentTypepublic final SentimentScore sentimentScore()
public MentionSentiment.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<MentionSentiment.Builder,MentionSentiment>public static MentionSentiment.Builder builder()
public static Class<? extends MentionSentiment.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.