Interface DetectDominantLanguageResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,ComprehendResponse.Builder
,CopyableBuilder<DetectDominantLanguageResponse.Builder,
,DetectDominantLanguageResponse> SdkBuilder<DetectDominantLanguageResponse.Builder,
,DetectDominantLanguageResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
DetectDominantLanguageResponse
-
Method Summary
Modifier and TypeMethodDescriptionlanguages
(Collection<DominantLanguage> languages) Array of languages that Amazon Comprehend detected in the input text.languages
(Consumer<DominantLanguage.Builder>... languages) Array of languages that Amazon Comprehend detected in the input text.languages
(DominantLanguage... languages) Array of languages that Amazon Comprehend detected 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
-
languages
Array of languages that Amazon Comprehend detected in the input text. The array is sorted in descending order of the score (the dominant language is always the first element in the array).
For each language, the response returns the RFC 5646 language code and the level of confidence that Amazon Comprehend has in the accuracy of its inference. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.
- Parameters:
languages
- Array of languages that Amazon Comprehend detected in the input text. The array is sorted in descending order of the score (the dominant language is always the first element in the array).For each language, the response returns the RFC 5646 language code and the level of confidence that Amazon Comprehend has in the accuracy of its inference. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
languages
Array of languages that Amazon Comprehend detected in the input text. The array is sorted in descending order of the score (the dominant language is always the first element in the array).
For each language, the response returns the RFC 5646 language code and the level of confidence that Amazon Comprehend has in the accuracy of its inference. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.
- Parameters:
languages
- Array of languages that Amazon Comprehend detected in the input text. The array is sorted in descending order of the score (the dominant language is always the first element in the array).For each language, the response returns the RFC 5646 language code and the level of confidence that Amazon Comprehend has in the accuracy of its inference. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
languages
Array of languages that Amazon Comprehend detected in the input text. The array is sorted in descending order of the score (the dominant language is always the first element in the array).
For each language, the response returns the RFC 5646 language code and the level of confidence that Amazon Comprehend has in the accuracy of its inference. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.
This is a convenience method that creates an instance of theDominantLanguage.Builder
avoiding the need to create one manually viaDominantLanguage.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolanguages(List<DominantLanguage>)
.- Parameters:
languages
- a consumer that will call methods onDominantLanguage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-