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, responseMetadata
sdkHttpResponse, sdkHttpResponse
copy
applyMutation, build
DetectSyntaxResponse.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 how-syntax.
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 how-syntax.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 how-syntax.
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 how-syntax.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 how-syntax.
This is a convenience that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #syntaxTokens(List)
.syntaxTokens
- a consumer that will call methods on List.Builder
#syntaxTokens(List)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.