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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BatchDetectSyntaxItemResult.Builderindex(Integer index)The zero-based index of the document in the input list.BatchDetectSyntaxItemResult.BuildersyntaxTokens(Collection<SyntaxToken> syntaxTokens)The syntax tokens for the words in the document, one token for each word.BatchDetectSyntaxItemResult.BuildersyntaxTokens(Consumer<SyntaxToken.Builder>... syntaxTokens)The syntax tokens for the words in the document, one token for each word.BatchDetectSyntaxItemResult.BuildersyntaxTokens(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 Detail
-
index
BatchDetectSyntaxItemResult.Builder index(Integer 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
BatchDetectSyntaxItemResult.Builder syntaxTokens(Collection<SyntaxToken> 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
BatchDetectSyntaxItemResult.Builder syntaxTokens(SyntaxToken... 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
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 method that creates an instance of theSyntaxToken.Builderavoiding the need to create one manually viaSyntaxToken.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#syntaxTokens(List.) - 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:
#syntaxTokens(java.util.Collection)
-
-