@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BatchDetectTargetedSentimentItemResult extends Object implements Serializable, Cloneable, StructuredPojo
Analysis results for one of the documents in the batch.
Constructor and Description |
---|
BatchDetectTargetedSentimentItemResult() |
Modifier and Type | Method and Description |
---|---|
BatchDetectTargetedSentimentItemResult |
clone() |
boolean |
equals(Object obj) |
List<TargetedSentimentEntity> |
getEntities()
An array of targeted sentiment entities.
|
Integer |
getIndex()
The zero-based index of this result in the input list.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEntities(Collection<TargetedSentimentEntity> entities)
An array of targeted sentiment entities.
|
void |
setIndex(Integer index)
The zero-based index of this result in the input list.
|
String |
toString()
Returns a string representation of this object.
|
BatchDetectTargetedSentimentItemResult |
withEntities(Collection<TargetedSentimentEntity> entities)
An array of targeted sentiment entities.
|
BatchDetectTargetedSentimentItemResult |
withEntities(TargetedSentimentEntity... entities)
An array of targeted sentiment entities.
|
BatchDetectTargetedSentimentItemResult |
withIndex(Integer index)
The zero-based index of this result in the input list.
|
public BatchDetectTargetedSentimentItemResult()
public void setIndex(Integer index)
The zero-based index of this result in the input list.
index
- The zero-based index of this result in the input list.public Integer getIndex()
The zero-based index of this result in the input list.
public BatchDetectTargetedSentimentItemResult withIndex(Integer index)
The zero-based index of this result in the input list.
index
- The zero-based index of this result in the input list.public List<TargetedSentimentEntity> getEntities()
An array of targeted sentiment entities.
public void setEntities(Collection<TargetedSentimentEntity> entities)
An array of targeted sentiment entities.
entities
- An array of targeted sentiment entities.public BatchDetectTargetedSentimentItemResult withEntities(TargetedSentimentEntity... entities)
An array of targeted sentiment entities.
NOTE: This method appends the values to the existing list (if any). Use
setEntities(java.util.Collection)
or withEntities(java.util.Collection)
if you want to override
the existing values.
entities
- An array of targeted sentiment entities.public BatchDetectTargetedSentimentItemResult withEntities(Collection<TargetedSentimentEntity> entities)
An array of targeted sentiment entities.
entities
- An array of targeted sentiment entities.public String toString()
toString
in class Object
Object.toString()
public BatchDetectTargetedSentimentItemResult clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.