Interface DetectSyntaxResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,ComprehendResponse.Builder,CopyableBuilder<DetectSyntaxResponse.Builder,DetectSyntaxResponse>,SdkBuilder<DetectSyntaxResponse.Builder,DetectSyntaxResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- DetectSyntaxResponse
public static interface DetectSyntaxResponse.Builder extends ComprehendResponse.Builder, SdkPojo, CopyableBuilder<DetectSyntaxResponse.Builder,DetectSyntaxResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DetectSyntaxResponse.BuildersyntaxTokens(Collection<SyntaxToken> syntaxTokens)A collection of syntax tokens describing the text.DetectSyntaxResponse.BuildersyntaxTokens(Consumer<SyntaxToken.Builder>... syntaxTokens)A collection of syntax tokens describing the text.DetectSyntaxResponse.BuildersyntaxTokens(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 Detail
-
syntaxTokens
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 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
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 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
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 Syntax in the Comprehend Developer Guide.
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)
-
-