public class BatchDetectSyntaxItemResult
extends java.lang.Object
implements java.io.Serializable
The result of calling the operation. The operation returns one object that is successfully processed by the operation.
Constructor and Description |
---|
BatchDetectSyntaxItemResult() |
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.util.List<SyntaxToken> |
getSyntaxTokens()
The syntax tokens for the words in the document, one token for each word.
|
int |
hashCode() |
void |
setIndex(java.lang.Integer index)
The zero-based index of the document in the input list.
|
void |
setSyntaxTokens(java.util.Collection<SyntaxToken> syntaxTokens)
The syntax tokens for the words in the document, one token for each word.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
BatchDetectSyntaxItemResult |
withIndex(java.lang.Integer index)
The zero-based index of the document in the input list.
|
BatchDetectSyntaxItemResult |
withSyntaxTokens(java.util.Collection<SyntaxToken> syntaxTokens)
The syntax tokens for the words in the document, one token for each word.
|
BatchDetectSyntaxItemResult |
withSyntaxTokens(SyntaxToken... syntaxTokens)
The syntax tokens for the words in the document, one token for each word.
|
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 BatchDetectSyntaxItemResult 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<SyntaxToken> getSyntaxTokens()
The syntax tokens for the words in the document, one token for each word.
The syntax tokens for the words in the document, one token for each word.
public void setSyntaxTokens(java.util.Collection<SyntaxToken> syntaxTokens)
The syntax tokens for the words in the document, one token for each word.
syntaxTokens
- The syntax tokens for the words in the document, one token for each word.
public BatchDetectSyntaxItemResult withSyntaxTokens(SyntaxToken... syntaxTokens)
The syntax tokens for the words in the document, one token for each word.
Returns a reference to this object so that method calls can be chained together.
syntaxTokens
- The syntax tokens for the words in the document, one token for each word.
public BatchDetectSyntaxItemResult withSyntaxTokens(java.util.Collection<SyntaxToken> syntaxTokens)
The syntax tokens for the words in the document, one token for each word.
Returns a reference to this object so that method calls can be chained together.
syntaxTokens
- The syntax tokens for the words in the document, one token for each word.
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.