public class BatchDetectEntitiesItemResult
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 |
|---|
BatchDetectEntitiesItemResult() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<Entity> |
getEntities()
One or more Entity objects, one for each entity detected in the
document.
|
java.lang.Integer |
getIndex()
The zero-based index of the document in the input list.
|
int |
hashCode() |
void |
setEntities(java.util.Collection<Entity> entities)
One or more Entity objects, one for each entity detected in the
document.
|
void |
setIndex(java.lang.Integer index)
The zero-based index of the document in the input list.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
BatchDetectEntitiesItemResult |
withEntities(java.util.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(java.lang.Integer index)
The zero-based index of the document in the input list.
|
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 BatchDetectEntitiesItemResult 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.util.List<Entity> getEntities()
One or more Entity objects, one for each entity detected in the document.
One or more Entity objects, one for each entity detected in the document.
public void setEntities(java.util.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.
Returns a reference to this object so that method calls can be chained together.
entities - One or more Entity objects, one for each entity detected in the document.
public BatchDetectEntitiesItemResult withEntities(java.util.Collection<Entity> entities)
One or more Entity objects, one for each entity detected in the document.
Returns a reference to this object so that method calls can be chained together.
entities - One or more Entity objects, one for each entity detected in the document.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.