@Generated(value="software.amazon.awssdk:codegen") public final class SentimentResponse extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SentimentResponse.Builder,SentimentResponse>
The sentiment expressed in an utterance.
When the bot is configured to send utterances to Amazon Comprehend for sentiment analysis, this field structure contains the result of the analysis.
| 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() |
String |
sentimentLabel()
The inferred sentiment that Amazon Comprehend has the highest confidence in.
|
String |
sentimentScore()
The likelihood that the sentiment was correctly inferred.
|
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 String sentimentLabel()
The inferred sentiment that Amazon Comprehend has the highest confidence in.
public final String sentimentScore()
The likelihood that the sentiment was correctly inferred.
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 © 2023. All rights reserved.