Struct aws_sdk_lexruntimev2::model::sentiment_response::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for SentimentResponse.
Implementations§
source§impl Builder
impl Builder
sourcepub fn sentiment(self, input: SentimentType) -> Self
pub fn sentiment(self, input: SentimentType) -> Self
The overall sentiment expressed in the user's response. This is the sentiment most likely expressed by the user based on the analysis by Amazon Comprehend.
sourcepub fn set_sentiment(self, input: Option<SentimentType>) -> Self
pub fn set_sentiment(self, input: Option<SentimentType>) -> Self
The overall sentiment expressed in the user's response. This is the sentiment most likely expressed by the user based on the analysis by Amazon Comprehend.
sourcepub fn sentiment_score(self, input: SentimentScore) -> Self
pub fn sentiment_score(self, input: SentimentScore) -> Self
The individual sentiment responses for the utterance.
sourcepub fn set_sentiment_score(self, input: Option<SentimentScore>) -> Self
pub fn set_sentiment_score(self, input: Option<SentimentScore>) -> Self
The individual sentiment responses for the utterance.
sourcepub fn build(self) -> SentimentResponse
pub fn build(self) -> SentimentResponse
Consumes the builder and constructs a SentimentResponse.