Struct aws_sdk_lexruntimev2::model::sentiment_score::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for SentimentScore.
Implementations§
source§impl Builder
impl Builder
sourcepub fn positive(self, input: f64) -> Self
pub fn positive(self, input: f64) -> Self
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the POSITIVE sentiment.
sourcepub fn set_positive(self, input: Option<f64>) -> Self
pub fn set_positive(self, input: Option<f64>) -> Self
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the POSITIVE sentiment.
sourcepub fn negative(self, input: f64) -> Self
pub fn negative(self, input: f64) -> Self
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the NEGATIVE sentiment.
sourcepub fn set_negative(self, input: Option<f64>) -> Self
pub fn set_negative(self, input: Option<f64>) -> Self
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the NEGATIVE sentiment.
sourcepub fn neutral(self, input: f64) -> Self
pub fn neutral(self, input: f64) -> Self
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the NEUTRAL sentiment.
sourcepub fn set_neutral(self, input: Option<f64>) -> Self
pub fn set_neutral(self, input: Option<f64>) -> Self
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the NEUTRAL sentiment.
sourcepub fn mixed(self, input: f64) -> Self
pub fn mixed(self, input: f64) -> Self
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the MIXED sentiment.
sourcepub fn set_mixed(self, input: Option<f64>) -> Self
pub fn set_mixed(self, input: Option<f64>) -> Self
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the MIXED sentiment.
sourcepub fn build(self) -> SentimentScore
pub fn build(self) -> SentimentScore
Consumes the builder and constructs a SentimentScore.