@Generated(value="software.amazon.awssdk:codegen") public final class BatchDetectSentimentItemResult extends Object implements SdkPojo, Serializable, ToCopyableBuilder<BatchDetectSentimentItemResult.Builder,BatchDetectSentimentItemResult>
The result of calling the operation. The operation returns one object for each document that is successfully processed by the operation.
| Modifier and Type | Class and Description |
|---|---|
static interface |
BatchDetectSentimentItemResult.Builder |
| Modifier and Type | Method and Description |
|---|---|
static BatchDetectSentimentItemResult.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
index()
The zero-based index of the document in the input list.
|
List<SdkField<?>> |
sdkFields() |
SentimentType |
sentiment()
The sentiment detected in the document.
|
String |
sentimentAsString()
The sentiment detected in the document.
|
SentimentScore |
sentimentScore()
The level of confidence that Amazon Comprehend has in the accuracy of its sentiment detection.
|
static Class<? extends BatchDetectSentimentItemResult.Builder> |
serializableBuilderClass() |
BatchDetectSentimentItemResult.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Integer index()
The zero-based index of the document in the input list.
public final SentimentType sentiment()
The sentiment detected in the document.
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 detected in the document.
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()
The level of confidence that Amazon Comprehend has in the accuracy of its sentiment detection.
public BatchDetectSentimentItemResult.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<BatchDetectSentimentItemResult.Builder,BatchDetectSentimentItemResult>public static BatchDetectSentimentItemResult.Builder builder()
public static Class<? extends BatchDetectSentimentItemResult.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.