Class BatchDetectSentimentItemResult
- java.lang.Object
-
- software.amazon.awssdk.services.comprehend.model.BatchDetectSentimentItemResult
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<BatchDetectSentimentItemResult.Builder,BatchDetectSentimentItemResult>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceBatchDetectSentimentItemResult.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BatchDetectSentimentItemResult.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Integerindex()The zero-based index of the document in the input list.List<SdkField<?>>sdkFields()SentimentTypesentiment()The sentiment detected in the document.StringsentimentAsString()The sentiment detected in the document.SentimentScoresentimentScore()The level of confidence that Amazon Comprehend has in the accuracy of its sentiment detection.static Class<? extends BatchDetectSentimentItemResult.Builder>serializableBuilderClass()BatchDetectSentimentItemResult.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
index
public final Integer index()
The zero-based index of the document in the input list.
- Returns:
- The zero-based index of the document in the input list.
-
sentiment
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,
sentimentwill returnSentimentType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsentimentAsString().- Returns:
- The sentiment detected in the document.
- See Also:
SentimentType
-
sentimentAsString
public 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,
sentimentwill returnSentimentType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsentimentAsString().- Returns:
- The sentiment detected in the document.
- See Also:
SentimentType
-
sentimentScore
public final SentimentScore sentimentScore()
The level of confidence that Amazon Comprehend has in the accuracy of its sentiment detection.
- Returns:
- The level of confidence that Amazon Comprehend has in the accuracy of its sentiment detection.
-
toBuilder
public BatchDetectSentimentItemResult.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<BatchDetectSentimentItemResult.Builder,BatchDetectSentimentItemResult>
-
builder
public static BatchDetectSentimentItemResult.Builder builder()
-
serializableBuilderClass
public static Class<? extends BatchDetectSentimentItemResult.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-