@Generated(value="software.amazon.awssdk:codegen") public final class SentimentResponse extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SentimentResponse.Builder,SentimentResponse>
Provides information about the sentiment expressed in a user's response in a conversation. Sentiments are determined using Amazon Comprehend. Sentiments are only returned if they are enabled for the bot.
For more information, see Determine Sentiment in the Amazon Comprehend developer guide.
| Modifier and Type | Class and Description |
|---|---|
static interface |
SentimentResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
static SentimentResponse.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 overall sentiment expressed in the user's response.
|
String |
sentimentAsString()
The overall sentiment expressed in the user's response.
|
SentimentScore |
sentimentScore()
Returns the value of the SentimentScore property for this object.
|
static Class<? extends SentimentResponse.Builder> |
serializableBuilderClass() |
SentimentResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final SentimentType sentiment()
The overall sentiment expressed in the user's response. This is the sentiment most likely expressed by the user based on the analysis by Amazon Comprehend.
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 overall sentiment expressed in the user's response. This is the sentiment most likely expressed by the user based on the analysis by Amazon Comprehend.
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 SentimentResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SentimentResponse.Builder,SentimentResponse>public static SentimentResponse.Builder builder()
public static Class<? extends SentimentResponse.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.