@Generated(value="software.amazon.awssdk:codegen") public final class BatchDetectSentimentItemResult extends Object implements StructuredPojo, 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) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
index()
The zero-based index of the document in the input list.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public Integer index()
The zero-based index of the document in the input list.
public 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()
.
SentimentType
public 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()
.
SentimentType
public SentimentScore sentimentScore()
The level of confidence that Amazon Comprehend has in the accuracy of its sentiment detection.
public BatchDetectSentimentItemResult.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<BatchDetectSentimentItemResult.Builder,BatchDetectSentimentItemResult>
public static BatchDetectSentimentItemResult.Builder builder()
public static Class<? extends BatchDetectSentimentItemResult.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.