aws_sdk_comprehend/client/
batch_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 [`BatchDetectDominantLanguage`](crate::operation::batch_detect_dominant_language::builders::BatchDetectDominantLanguageFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`text_list(impl Into<String>)`](crate::operation::batch_detect_dominant_language::builders::BatchDetectDominantLanguageFluentBuilder::text_list) / [`set_text_list(Option<Vec::<String>>)`](crate::operation::batch_detect_dominant_language::builders::BatchDetectDominantLanguageFluentBuilder::set_text_list):<br>required: **true**<br><p>A list containing the UTF-8 encoded text of the input documents. The list can contain a maximum of 25 documents. Each document should contain at least 20 characters. The maximum size of each document is 5 KB.</p><br>
7    /// - On success, responds with [`BatchDetectDominantLanguageOutput`](crate::operation::batch_detect_dominant_language::BatchDetectDominantLanguageOutput) with field(s):
8    ///   - [`result_list(Vec::<BatchDetectDominantLanguageItemResult>)`](crate::operation::batch_detect_dominant_language::BatchDetectDominantLanguageOutput::result_list): <p>A list of objects containing the results of the operation. The results are sorted in ascending order by the <code>Index</code> field and match the order of the documents in the input list. If all of the documents contain an error, the <code>ResultList</code> is empty.</p>
9    ///   - [`error_list(Vec::<BatchItemError>)`](crate::operation::batch_detect_dominant_language::BatchDetectDominantLanguageOutput::error_list): <p>A list containing one object for each document that contained an error. The results are sorted in ascending order by the <code>Index</code> field and match the order of the documents in the input list. If there are no errors in the batch, the <code>ErrorList</code> is empty.</p>
10    /// - On failure, responds with [`SdkError<BatchDetectDominantLanguageError>`](crate::operation::batch_detect_dominant_language::BatchDetectDominantLanguageError)
11    pub fn batch_detect_dominant_language(
12        &self,
13    ) -> crate::operation::batch_detect_dominant_language::builders::BatchDetectDominantLanguageFluentBuilder {
14        crate::operation::batch_detect_dominant_language::builders::BatchDetectDominantLanguageFluentBuilder::new(self.handle.clone())
15    }
16}