Interface DetectKeyPhrasesResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, ComprehendResponse.Builder, CopyableBuilder<DetectKeyPhrasesResponse.Builder,DetectKeyPhrasesResponse>, SdkBuilder<DetectKeyPhrasesResponse.Builder,DetectKeyPhrasesResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
DetectKeyPhrasesResponse

public static interface DetectKeyPhrasesResponse.Builder extends ComprehendResponse.Builder, SdkPojo, CopyableBuilder<DetectKeyPhrasesResponse.Builder,DetectKeyPhrasesResponse>
  • Method Details

    • keyPhrases

      A collection of key phrases that Amazon Comprehend identified in the input text. For each key phrase, the response provides the text of the key phrase, where the key phrase begins and ends, and the level of confidence that Amazon Comprehend has in the accuracy of the detection.

      Parameters:
      keyPhrases - A collection of key phrases that Amazon Comprehend identified in the input text. For each key phrase, the response provides the text of the key phrase, where the key phrase begins and ends, and the level of confidence that Amazon Comprehend has in the accuracy of the detection.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • keyPhrases

      DetectKeyPhrasesResponse.Builder keyPhrases(KeyPhrase... keyPhrases)

      A collection of key phrases that Amazon Comprehend identified in the input text. For each key phrase, the response provides the text of the key phrase, where the key phrase begins and ends, and the level of confidence that Amazon Comprehend has in the accuracy of the detection.

      Parameters:
      keyPhrases - A collection of key phrases that Amazon Comprehend identified in the input text. For each key phrase, the response provides the text of the key phrase, where the key phrase begins and ends, and the level of confidence that Amazon Comprehend has in the accuracy of the detection.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • keyPhrases

      A collection of key phrases that Amazon Comprehend identified in the input text. For each key phrase, the response provides the text of the key phrase, where the key phrase begins and ends, and the level of confidence that Amazon Comprehend has in the accuracy of the detection.

      This is a convenience method that creates an instance of the KeyPhrase.Builder avoiding the need to create one manually via KeyPhrase.builder().

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

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