@Generated(value="software.amazon.awssdk:codegen") public final class DetectSentimentResponse extends ComprehendResponse implements ToCopyableBuilder<DetectSentimentResponse.Builder,DetectSentimentResponse>
| Modifier and Type | Class and Description |
|---|---|
static interface |
DetectSentimentResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
static DetectSentimentResponse.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 inferred sentiment that Amazon Comprehend has the highest level of confidence in.
|
String |
sentimentAsString()
The inferred sentiment that Amazon Comprehend has the highest level of confidence in.
|
SentimentScore |
sentimentScore()
An object that lists the sentiments, and their corresponding confidence levels.
|
static Class<? extends DetectSentimentResponse.Builder> |
serializableBuilderClass() |
DetectSentimentResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
responseMetadatasdkHttpResponseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final SentimentType sentiment()
The inferred sentiment that Amazon Comprehend has the highest level of confidence in.
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 inferred sentiment that Amazon Comprehend has the highest level of confidence in.
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()
An object that lists the sentiments, and their corresponding confidence levels.
public DetectSentimentResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<DetectSentimentResponse.Builder,DetectSentimentResponse>toBuilder in class AwsResponsepublic static DetectSentimentResponse.Builder builder()
public static Class<? extends DetectSentimentResponse.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsResponsepublic final boolean equals(Object obj)
equals in class AwsResponsepublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkResponseCopyright © 2023. All rights reserved.