public static interface DetectSyntaxResponse.Builder extends ComprehendResponse.Builder, SdkPojo, CopyableBuilder<DetectSyntaxResponse.Builder,DetectSyntaxResponse>
| Modifier and Type | Method and Description |
|---|---|
DetectSyntaxResponse.Builder |
syntaxTokens(Collection<SyntaxToken> syntaxTokens)
A collection of syntax tokens describing the text.
|
DetectSyntaxResponse.Builder |
syntaxTokens(Consumer<SyntaxToken.Builder>... syntaxTokens)
A collection of syntax tokens describing the text.
|
DetectSyntaxResponse.Builder |
syntaxTokens(SyntaxToken... syntaxTokens)
A collection of syntax tokens describing the text.
|
build, responseMetadata, responseMetadatasdkHttpResponse, sdkHttpResponseequalsBySdkFields, sdkFieldscopyapplyMutation, buildDetectSyntaxResponse.Builder syntaxTokens(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.DetectSyntaxResponse.Builder syntaxTokens(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.DetectSyntaxResponse.Builder syntaxTokens(Consumer<SyntaxToken.Builder>... 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.
This is a convenience method that creates an instance of theSyntaxToken.Builder avoiding the need to create one
manually via SyntaxToken.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #syntaxTokens(List.
syntaxTokens - a consumer that will call methods on
SyntaxToken.Builder#syntaxTokens(java.util.Collection) Copyright © 2023. All rights reserved.