@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DetectSyntaxResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
DetectSyntaxResult() |
Modifier and Type | Method and Description |
---|---|
DetectSyntaxResult |
clone() |
boolean |
equals(Object obj) |
List<SyntaxToken> |
getSyntaxTokens()
A collection of syntax tokens describing the text.
|
int |
hashCode() |
void |
setSyntaxTokens(Collection<SyntaxToken> syntaxTokens)
A collection of syntax tokens describing the text.
|
String |
toString()
Returns a string representation of this object.
|
DetectSyntaxResult |
withSyntaxTokens(Collection<SyntaxToken> syntaxTokens)
A collection of syntax tokens describing the text.
|
DetectSyntaxResult |
withSyntaxTokens(SyntaxToken... syntaxTokens)
A collection of syntax tokens describing the text.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<SyntaxToken> getSyntaxTokens()
A collection of syntax tokens describing the text. For each token, the response provides the text, the token type, where the text begins and ends, and the level of confidence that Amazon Comprehend has that the token is correct. For a list of token types, see Syntax in the Comprehend Developer Guide.
public void setSyntaxTokens(Collection<SyntaxToken> syntaxTokens)
A collection of syntax tokens describing the text. For each token, the response provides the text, the token type, where the text begins and ends, and the level of confidence that Amazon Comprehend has that the token is correct. For a list of token types, see Syntax in the Comprehend Developer Guide.
syntaxTokens
- A collection of syntax tokens describing the text. For each token, the response provides the text, the
token type, where the text begins and ends, and the level of confidence that Amazon Comprehend has that
the token is correct. For a list of token types, see Syntax in the Comprehend
Developer Guide.public DetectSyntaxResult withSyntaxTokens(SyntaxToken... syntaxTokens)
A collection of syntax tokens describing the text. For each token, the response provides the text, the token type, where the text begins and ends, and the level of confidence that Amazon Comprehend has that the token is correct. For a list of token types, see Syntax in the Comprehend Developer Guide.
NOTE: This method appends the values to the existing list (if any). Use
setSyntaxTokens(java.util.Collection)
or withSyntaxTokens(java.util.Collection)
if you want to
override the existing values.
syntaxTokens
- A collection of syntax tokens describing the text. For each token, the response provides the text, the
token type, where the text begins and ends, and the level of confidence that Amazon Comprehend has that
the token is correct. For a list of token types, see Syntax in the Comprehend
Developer Guide.public DetectSyntaxResult withSyntaxTokens(Collection<SyntaxToken> syntaxTokens)
A collection of syntax tokens describing the text. For each token, the response provides the text, the token type, where the text begins and ends, and the level of confidence that Amazon Comprehend has that the token is correct. For a list of token types, see Syntax in the Comprehend Developer Guide.
syntaxTokens
- A collection of syntax tokens describing the text. For each token, the response provides the text, the
token type, where the text begins and ends, and the level of confidence that Amazon Comprehend has that
the token is correct. For a list of token types, see Syntax in the Comprehend
Developer Guide.public String toString()
toString
in class Object
Object.toString()
public DetectSyntaxResult clone()