* 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. *
*/ private java.util.List* 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. *
* * @return 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 java.util.List* 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. *
* * @param 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 void setSyntaxTokens(java.util.Collection* 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 * {@link #setSyntaxTokens(java.util.Collection)} or {@link #withSyntaxTokens(java.util.Collection)} if you want to * override the existing values. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public DetectSyntaxResult withSyntaxTokens(SyntaxToken... syntaxTokens) { if (this.syntaxTokens == null) { setSyntaxTokens(new java.util.ArrayList* 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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public DetectSyntaxResult withSyntaxTokens(java.util.Collection