Interface DetectSyntaxResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,ComprehendResponse.Builder
,CopyableBuilder<DetectSyntaxResponse.Builder,
,DetectSyntaxResponse> SdkBuilder<DetectSyntaxResponse.Builder,
,DetectSyntaxResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
DetectSyntaxResponse
-
Method Summary
Modifier and TypeMethodDescriptionsyntaxTokens
(Collection<SyntaxToken> syntaxTokens) A collection of syntax tokens describing the text.syntaxTokens
(Consumer<SyntaxToken.Builder>... syntaxTokens) A collection of syntax tokens describing the text.syntaxTokens
(SyntaxToken... syntaxTokens) A collection of syntax tokens describing the text.Methods inherited from interface software.amazon.awssdk.services.comprehend.model.ComprehendResponse.Builder
build, responseMetadata, responseMetadata
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
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 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:
-