aws_sdk_comprehend/client/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 [`DetectTargetedSentiment`](crate::operation::detect_targeted_sentiment::builders::DetectTargetedSentimentFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`text(impl Into<String>)`](crate::operation::detect_targeted_sentiment::builders::DetectTargetedSentimentFluentBuilder::text) / [`set_text(Option<String>)`](crate::operation::detect_targeted_sentiment::builders::DetectTargetedSentimentFluentBuilder::set_text):<br>required: **true**<br><p>A UTF-8 text string. The maximum string length is 5 KB.</p><br>
7 /// - [`language_code(LanguageCode)`](crate::operation::detect_targeted_sentiment::builders::DetectTargetedSentimentFluentBuilder::language_code) / [`set_language_code(Option<LanguageCode>)`](crate::operation::detect_targeted_sentiment::builders::DetectTargetedSentimentFluentBuilder::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 [`DetectTargetedSentimentOutput`](crate::operation::detect_targeted_sentiment::DetectTargetedSentimentOutput) with field(s):
9 /// - [`entities(Option<Vec::<TargetedSentimentEntity>>)`](crate::operation::detect_targeted_sentiment::DetectTargetedSentimentOutput::entities): <p>Targeted sentiment analysis for each of the entities identified in the input text.</p>
10 /// - On failure, responds with [`SdkError<DetectTargetedSentimentError>`](crate::operation::detect_targeted_sentiment::DetectTargetedSentimentError)
11 pub fn detect_targeted_sentiment(&self) -> crate::operation::detect_targeted_sentiment::builders::DetectTargetedSentimentFluentBuilder {
12 crate::operation::detect_targeted_sentiment::builders::DetectTargetedSentimentFluentBuilder::new(self.handle.clone())
13 }
14}