public class BatchDetectSentimentItemResult
extends java.lang.Object
implements java.io.Serializable
The result of calling the operation. The operation returns one object for each document that is successfully processed by the operation.
Constructor and Description |
---|
BatchDetectSentimentItemResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getIndex()
The zero-based index of the document in the input list.
|
java.lang.String |
getSentiment()
The sentiment detected in the document.
|
SentimentScore |
getSentimentScore()
The level of confidence that Amazon Comprehend has in the accuracy of its
sentiment detection.
|
int |
hashCode() |
void |
setIndex(java.lang.Integer index)
The zero-based index of the document in the input list.
|
void |
setSentiment(SentimentType sentiment)
The sentiment detected in the document.
|
void |
setSentiment(java.lang.String sentiment)
The sentiment detected in the document.
|
void |
setSentimentScore(SentimentScore sentimentScore)
The level of confidence that Amazon Comprehend has in the accuracy of its
sentiment detection.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
BatchDetectSentimentItemResult |
withIndex(java.lang.Integer index)
The zero-based index of the document in the input list.
|
BatchDetectSentimentItemResult |
withSentiment(SentimentType sentiment)
The sentiment detected in the document.
|
BatchDetectSentimentItemResult |
withSentiment(java.lang.String sentiment)
The sentiment detected in the document.
|
BatchDetectSentimentItemResult |
withSentimentScore(SentimentScore sentimentScore)
The level of confidence that Amazon Comprehend has in the accuracy of its
sentiment detection.
|
public java.lang.Integer getIndex()
The zero-based index of the document in the input list.
The zero-based index of the document in the input list.
public void setIndex(java.lang.Integer index)
The zero-based index of the document in the input list.
index
- The zero-based index of the document in the input list.
public BatchDetectSentimentItemResult withIndex(java.lang.Integer index)
The zero-based index of the document in the input list.
Returns a reference to this object so that method calls can be chained together.
index
- The zero-based index of the document in the input list.
public java.lang.String getSentiment()
The sentiment detected in the document.
Constraints:
Allowed Values: POSITIVE, NEGATIVE, NEUTRAL, MIXED
The sentiment detected in the document.
SentimentType
public void setSentiment(java.lang.String sentiment)
The sentiment detected in the document.
Constraints:
Allowed Values: POSITIVE, NEGATIVE, NEUTRAL, MIXED
sentiment
- The sentiment detected in the document.
SentimentType
public BatchDetectSentimentItemResult withSentiment(java.lang.String sentiment)
The sentiment detected in the document.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: POSITIVE, NEGATIVE, NEUTRAL, MIXED
sentiment
- The sentiment detected in the document.
SentimentType
public void setSentiment(SentimentType sentiment)
The sentiment detected in the document.
Constraints:
Allowed Values: POSITIVE, NEGATIVE, NEUTRAL, MIXED
sentiment
- The sentiment detected in the document.
SentimentType
public BatchDetectSentimentItemResult withSentiment(SentimentType sentiment)
The sentiment detected in the document.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: POSITIVE, NEGATIVE, NEUTRAL, MIXED
sentiment
- The sentiment detected in the document.
SentimentType
public SentimentScore getSentimentScore()
The level of confidence that Amazon Comprehend has in the accuracy of its sentiment detection.
The level of confidence that Amazon Comprehend has in the accuracy of its sentiment detection.
public void setSentimentScore(SentimentScore sentimentScore)
The level of confidence that Amazon Comprehend has in the accuracy of its sentiment detection.
sentimentScore
- The level of confidence that Amazon Comprehend has in the accuracy of its sentiment detection.
public BatchDetectSentimentItemResult withSentimentScore(SentimentScore sentimentScore)
The level of confidence that Amazon Comprehend has in the accuracy of its sentiment detection.
Returns a reference to this object so that method calls can be chained together.
sentimentScore
- The level of confidence that Amazon Comprehend has in the accuracy of its sentiment detection.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.