@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BatchDetectEntitiesItemResult extends Object implements Serializable, Cloneable, StructuredPojo
The result of calling the operation. The operation returns one object for each document that is successfully processed by the operation.
| Constructor and Description |
|---|
BatchDetectEntitiesItemResult() |
| Modifier and Type | Method and Description |
|---|---|
BatchDetectEntitiesItemResult |
clone() |
boolean |
equals(Object obj) |
List<Entity> |
getEntities()
One or more Entity objects, one for each entity detected in the document.
|
Integer |
getIndex()
The zero-based index of the document in the input list.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setEntities(Collection<Entity> entities)
One or more Entity objects, one for each entity detected in the document.
|
void |
setIndex(Integer index)
The zero-based index of the document in the input list.
|
String |
toString()
Returns a string representation of this object.
|
BatchDetectEntitiesItemResult |
withEntities(Collection<Entity> entities)
One or more Entity objects, one for each entity detected in the document.
|
BatchDetectEntitiesItemResult |
withEntities(Entity... entities)
One or more Entity objects, one for each entity detected in the document.
|
BatchDetectEntitiesItemResult |
withIndex(Integer index)
The zero-based index of the document in the input list.
|
public void setIndex(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 Integer getIndex()
The zero-based index of the document in the input list.
public BatchDetectEntitiesItemResult withIndex(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 List<Entity> getEntities()
One or more Entity objects, one for each entity detected in the document.
public void setEntities(Collection<Entity> entities)
One or more Entity objects, one for each entity detected in the document.
entities - One or more Entity objects, one for each entity detected in the document.public BatchDetectEntitiesItemResult withEntities(Entity... entities)
One or more Entity objects, one for each entity detected in the document.
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 - One or more Entity objects, one for each entity detected in the document.public BatchDetectEntitiesItemResult withEntities(Collection<Entity> entities)
One or more Entity objects, one for each entity detected in the document.
entities - One or more Entity objects, one for each entity detected in the document.public String toString()
toString in class ObjectObject.toString()public BatchDetectEntitiesItemResult clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.