Struct aws_sdk_comprehend::operation::detect_sentiment::builders::DetectSentimentOutputBuilder
source · #[non_exhaustive]pub struct DetectSentimentOutputBuilder { /* private fields */ }Expand description
A builder for DetectSentimentOutput.
Implementations§
source§impl DetectSentimentOutputBuilder
impl DetectSentimentOutputBuilder
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 get_sentiment(&self) -> &Option<SentimentType>
pub fn get_sentiment(&self) -> &Option<SentimentType>
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 get_sentiment_score(&self) -> &Option<SentimentScore>
pub fn get_sentiment_score(&self) -> &Option<SentimentScore>
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.
Trait Implementations§
source§impl Clone for DetectSentimentOutputBuilder
impl Clone for DetectSentimentOutputBuilder
source§fn clone(&self) -> DetectSentimentOutputBuilder
fn clone(&self) -> DetectSentimentOutputBuilder
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 DetectSentimentOutputBuilder
impl Debug for DetectSentimentOutputBuilder
source§impl Default for DetectSentimentOutputBuilder
impl Default for DetectSentimentOutputBuilder
source§fn default() -> DetectSentimentOutputBuilder
fn default() -> DetectSentimentOutputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for DetectSentimentOutputBuilder
impl PartialEq for DetectSentimentOutputBuilder
source§fn eq(&self, other: &DetectSentimentOutputBuilder) -> bool
fn eq(&self, other: &DetectSentimentOutputBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DetectSentimentOutputBuilder
Auto Trait Implementations§
impl Freeze for DetectSentimentOutputBuilder
impl RefUnwindSafe for DetectSentimentOutputBuilder
impl Send for DetectSentimentOutputBuilder
impl Sync for DetectSentimentOutputBuilder
impl Unpin for DetectSentimentOutputBuilder
impl UnwindSafe for DetectSentimentOutputBuilder
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.