public static interface BatchDetectSyntaxItemResult.Builder extends SdkPojo, CopyableBuilder<BatchDetectSyntaxItemResult.Builder,BatchDetectSyntaxItemResult>
Modifier and Type | Method and Description |
---|---|
BatchDetectSyntaxItemResult.Builder |
index(Integer index)
The zero-based index of the document in the input list.
|
BatchDetectSyntaxItemResult.Builder |
syntaxTokens(Collection<SyntaxToken> syntaxTokens)
The syntax tokens for the words in the document, one token for each word.
|
BatchDetectSyntaxItemResult.Builder |
syntaxTokens(Consumer<SyntaxToken.Builder>... syntaxTokens)
The syntax tokens for the words in the document, one token for each word.
|
BatchDetectSyntaxItemResult.Builder |
syntaxTokens(SyntaxToken... syntaxTokens)
The syntax tokens for the words in the document, one token for each word.
|
copy
applyMutation, build
BatchDetectSyntaxItemResult.Builder index(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.BatchDetectSyntaxItemResult.Builder syntaxTokens(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.BatchDetectSyntaxItemResult.Builder syntaxTokens(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.BatchDetectSyntaxItemResult.Builder syntaxTokens(Consumer<SyntaxToken.Builder>... syntaxTokens)
The syntax tokens for the words in the document, one token for each word.
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.