Interface DetectKeyPhrasesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,ComprehendResponse.Builder
,CopyableBuilder<DetectKeyPhrasesResponse.Builder,
,DetectKeyPhrasesResponse> SdkBuilder<DetectKeyPhrasesResponse.Builder,
,DetectKeyPhrasesResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
DetectKeyPhrasesResponse
-
Method Summary
Modifier and TypeMethodDescriptionkeyPhrases
(Collection<KeyPhrase> keyPhrases) A collection of key phrases that Amazon Comprehend identified in the input text.keyPhrases
(Consumer<KeyPhrase.Builder>... keyPhrases) A collection of key phrases that Amazon Comprehend identified in the input text.keyPhrases
(KeyPhrase... keyPhrases) A collection of key phrases that Amazon Comprehend identified in the input 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
-
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.
- 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 theKeyPhrase.Builder
avoiding the need to create one manually viaKeyPhrase.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tokeyPhrases(List<KeyPhrase>)
.- Parameters:
keyPhrases
- a consumer that will call methods onKeyPhrase.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-