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 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

      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

      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 the SyntaxToken.Builder avoiding the need to create one manually via SyntaxToken.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to syntaxTokens(List<SyntaxToken>).

      Parameters:
      syntaxTokens - a consumer that will call methods on SyntaxToken.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: