Struct aws_sdk_comprehend::types::builders::MentionSentimentBuilder
source · #[non_exhaustive]pub struct MentionSentimentBuilder { /* private fields */ }Expand description
A builder for MentionSentiment.
Implementations§
source§impl MentionSentimentBuilder
impl MentionSentimentBuilder
sourcepub fn sentiment(self, input: SentimentType) -> Self
pub fn sentiment(self, input: SentimentType) -> Self
The sentiment of the mention.
sourcepub fn set_sentiment(self, input: Option<SentimentType>) -> Self
pub fn set_sentiment(self, input: Option<SentimentType>) -> Self
The sentiment of the mention.
sourcepub fn get_sentiment(&self) -> &Option<SentimentType>
pub fn get_sentiment(&self) -> &Option<SentimentType>
The sentiment of the mention.
sourcepub fn sentiment_score(self, input: SentimentScore) -> Self
pub fn sentiment_score(self, input: SentimentScore) -> Self
Describes the level of confidence that Amazon Comprehend has in the accuracy of its detection of sentiments.
sourcepub fn set_sentiment_score(self, input: Option<SentimentScore>) -> Self
pub fn set_sentiment_score(self, input: Option<SentimentScore>) -> Self
Describes the level of confidence that Amazon Comprehend has in the accuracy of its detection of sentiments.
sourcepub fn get_sentiment_score(&self) -> &Option<SentimentScore>
pub fn get_sentiment_score(&self) -> &Option<SentimentScore>
Describes the level of confidence that Amazon Comprehend has in the accuracy of its detection of sentiments.
sourcepub fn build(self) -> MentionSentiment
pub fn build(self) -> MentionSentiment
Consumes the builder and constructs a MentionSentiment.
Trait Implementations§
source§impl Clone for MentionSentimentBuilder
impl Clone for MentionSentimentBuilder
source§fn clone(&self) -> MentionSentimentBuilder
fn clone(&self) -> MentionSentimentBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for MentionSentimentBuilder
impl Debug for MentionSentimentBuilder
source§impl Default for MentionSentimentBuilder
impl Default for MentionSentimentBuilder
source§fn default() -> MentionSentimentBuilder
fn default() -> MentionSentimentBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for MentionSentimentBuilder
impl PartialEq for MentionSentimentBuilder
source§fn eq(&self, other: &MentionSentimentBuilder) -> bool
fn eq(&self, other: &MentionSentimentBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for MentionSentimentBuilder
Auto Trait Implementations§
impl Freeze for MentionSentimentBuilder
impl RefUnwindSafe for MentionSentimentBuilder
impl Send for MentionSentimentBuilder
impl Sync for MentionSentimentBuilder
impl Unpin for MentionSentimentBuilder
impl UnwindSafe for MentionSentimentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.