aws_sdk_comprehend/client/detect_dominant_language.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`DetectDominantLanguage`](crate::operation::detect_dominant_language::builders::DetectDominantLanguageFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`text(impl Into<String>)`](crate::operation::detect_dominant_language::builders::DetectDominantLanguageFluentBuilder::text) / [`set_text(Option<String>)`](crate::operation::detect_dominant_language::builders::DetectDominantLanguageFluentBuilder::set_text):<br>required: **true**<br><p>A UTF-8 text string. The string must contain at least 20 characters. The maximum string size is 100 KB.</p><br>
7 /// - On success, responds with [`DetectDominantLanguageOutput`](crate::operation::detect_dominant_language::DetectDominantLanguageOutput) with field(s):
8 /// - [`languages(Option<Vec::<DominantLanguage>>)`](crate::operation::detect_dominant_language::DetectDominantLanguageOutput::languages): <p>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).</p> <p>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 <a href="https://tools.ietf.org/html/rfc5646">Tags for Identifying Languages</a> on the <i>IETF Tools</i> web site.</p>
9 /// - On failure, responds with [`SdkError<DetectDominantLanguageError>`](crate::operation::detect_dominant_language::DetectDominantLanguageError)
10 pub fn detect_dominant_language(&self) -> crate::operation::detect_dominant_language::builders::DetectDominantLanguageFluentBuilder {
11 crate::operation::detect_dominant_language::builders::DetectDominantLanguageFluentBuilder::new(self.handle.clone())
12 }
13}