Struct aws_sdk_comprehend::output::detect_sentiment_output::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for DetectSentimentOutput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn sentiment(self, input: SentimentType) -> Self
pub fn sentiment(self, input: SentimentType) -> Self
The inferred sentiment that Amazon Comprehend has the highest level of confidence in.
sourcepub fn set_sentiment(self, input: Option<SentimentType>) -> Self
pub fn set_sentiment(self, input: Option<SentimentType>) -> Self
The inferred sentiment that Amazon Comprehend has the highest level of confidence in.
sourcepub fn sentiment_score(self, input: SentimentScore) -> Self
pub fn sentiment_score(self, input: SentimentScore) -> Self
An object that lists the sentiments, and their corresponding confidence levels.
sourcepub fn set_sentiment_score(self, input: Option<SentimentScore>) -> Self
pub fn set_sentiment_score(self, input: Option<SentimentScore>) -> Self
An object that lists the sentiments, and their corresponding confidence levels.
sourcepub fn build(self) -> DetectSentimentOutput
pub fn build(self) -> DetectSentimentOutput
Consumes the builder and constructs a DetectSentimentOutput.