aws_sdk_comprehend/client/batch_detect_targeted_sentiment.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 [`BatchDetectTargetedSentiment`](crate::operation::batch_detect_targeted_sentiment::builders::BatchDetectTargetedSentimentFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`text_list(impl Into<String>)`](crate::operation::batch_detect_targeted_sentiment::builders::BatchDetectTargetedSentimentFluentBuilder::text_list) / [`set_text_list(Option<Vec::<String>>)`](crate::operation::batch_detect_targeted_sentiment::builders::BatchDetectTargetedSentimentFluentBuilder::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. The maximum size of each document is 5 KB.</p><br>
7 /// - [`language_code(LanguageCode)`](crate::operation::batch_detect_targeted_sentiment::builders::BatchDetectTargetedSentimentFluentBuilder::language_code) / [`set_language_code(Option<LanguageCode>)`](crate::operation::batch_detect_targeted_sentiment::builders::BatchDetectTargetedSentimentFluentBuilder::set_language_code):<br>required: **true**<br><p>The language of the input documents. Currently, English is the only supported language.</p><br>
8 /// - On success, responds with [`BatchDetectTargetedSentimentOutput`](crate::operation::batch_detect_targeted_sentiment::BatchDetectTargetedSentimentOutput) with field(s):
9 /// - [`result_list(Vec::<BatchDetectTargetedSentimentItemResult>)`](crate::operation::batch_detect_targeted_sentiment::BatchDetectTargetedSentimentOutput::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>
10 /// - [`error_list(Vec::<BatchItemError>)`](crate::operation::batch_detect_targeted_sentiment::BatchDetectTargetedSentimentOutput::error_list): <p>List of errors that the operation can return.</p>
11 /// - On failure, responds with [`SdkError<BatchDetectTargetedSentimentError>`](crate::operation::batch_detect_targeted_sentiment::BatchDetectTargetedSentimentError)
12 pub fn batch_detect_targeted_sentiment(
13 &self,
14 ) -> crate::operation::batch_detect_targeted_sentiment::builders::BatchDetectTargetedSentimentFluentBuilder {
15 crate::operation::batch_detect_targeted_sentiment::builders::BatchDetectTargetedSentimentFluentBuilder::new(self.handle.clone())
16 }
17}