Interface BatchDetectSyntaxItemResult.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<BatchDetectSyntaxItemResult.Builder,
,BatchDetectSyntaxItemResult> SdkBuilder<BatchDetectSyntaxItemResult.Builder,
,BatchDetectSyntaxItemResult> SdkPojo
- Enclosing class:
BatchDetectSyntaxItemResult
public static interface BatchDetectSyntaxItemResult.Builder
extends SdkPojo, CopyableBuilder<BatchDetectSyntaxItemResult.Builder,BatchDetectSyntaxItemResult>
-
Method Summary
Modifier and TypeMethodDescriptionThe zero-based index of the document in the input list.syntaxTokens
(Collection<SyntaxToken> syntaxTokens) The syntax tokens for the words in the document, one token for each word.syntaxTokens
(Consumer<SyntaxToken.Builder>... syntaxTokens) The syntax tokens for the words in the document, one token for each word.syntaxTokens
(SyntaxToken... syntaxTokens) The syntax tokens for the words in the document, one token for each word.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
index
The zero-based index of the document in the input list.
- Parameters:
index
- The zero-based index of the document in the input list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
syntaxTokens
The syntax tokens for the words in the document, one token for each word.
- Parameters:
syntaxTokens
- The syntax tokens for the words in the document, one token for each word.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
syntaxTokens
The syntax tokens for the words in the document, one token for each word.
- Parameters:
syntaxTokens
- The syntax tokens for the words in the document, one token for each word.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
syntaxTokens
The syntax tokens for the words in the document, one token for each word.
This is a convenience method that creates an instance of theSyntaxToken.Builder
avoiding the need to create one manually viaSyntaxToken.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosyntaxTokens(List<SyntaxToken>)
.- Parameters:
syntaxTokens
- a consumer that will call methods onSyntaxToken.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-