Struct aws_sdk_comprehend::operation::batch_detect_targeted_sentiment::builders::BatchDetectTargetedSentimentOutputBuilder
source · #[non_exhaustive]pub struct BatchDetectTargetedSentimentOutputBuilder { /* private fields */ }Expand description
A builder for BatchDetectTargetedSentimentOutput.
Implementations§
source§impl BatchDetectTargetedSentimentOutputBuilder
impl BatchDetectTargetedSentimentOutputBuilder
sourcepub fn result_list(self, input: BatchDetectTargetedSentimentItemResult) -> Self
pub fn result_list(self, input: BatchDetectTargetedSentimentItemResult) -> Self
Appends an item to result_list.
To override the contents of this collection use set_result_list.
A list of objects containing the results of the operation. The results are sorted in ascending order by the Index field and match the order of the documents in the input list. If all of the documents contain an error, the ResultList is empty.
sourcepub fn set_result_list(
self,
input: Option<Vec<BatchDetectTargetedSentimentItemResult>>
) -> Self
pub fn set_result_list( self, input: Option<Vec<BatchDetectTargetedSentimentItemResult>> ) -> Self
A list of objects containing the results of the operation. The results are sorted in ascending order by the Index field and match the order of the documents in the input list. If all of the documents contain an error, the ResultList is empty.
sourcepub fn get_result_list(
&self
) -> &Option<Vec<BatchDetectTargetedSentimentItemResult>>
pub fn get_result_list( &self ) -> &Option<Vec<BatchDetectTargetedSentimentItemResult>>
A list of objects containing the results of the operation. The results are sorted in ascending order by the Index field and match the order of the documents in the input list. If all of the documents contain an error, the ResultList is empty.
sourcepub fn error_list(self, input: BatchItemError) -> Self
pub fn error_list(self, input: BatchItemError) -> Self
Appends an item to error_list.
To override the contents of this collection use set_error_list.
List of errors that the operation can return.
sourcepub fn set_error_list(self, input: Option<Vec<BatchItemError>>) -> Self
pub fn set_error_list(self, input: Option<Vec<BatchItemError>>) -> Self
List of errors that the operation can return.
sourcepub fn get_error_list(&self) -> &Option<Vec<BatchItemError>>
pub fn get_error_list(&self) -> &Option<Vec<BatchItemError>>
List of errors that the operation can return.
sourcepub fn build(self) -> BatchDetectTargetedSentimentOutput
pub fn build(self) -> BatchDetectTargetedSentimentOutput
Consumes the builder and constructs a BatchDetectTargetedSentimentOutput.
Trait Implementations§
source§impl Clone for BatchDetectTargetedSentimentOutputBuilder
impl Clone for BatchDetectTargetedSentimentOutputBuilder
source§fn clone(&self) -> BatchDetectTargetedSentimentOutputBuilder
fn clone(&self) -> BatchDetectTargetedSentimentOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for BatchDetectTargetedSentimentOutputBuilder
impl Default for BatchDetectTargetedSentimentOutputBuilder
source§fn default() -> BatchDetectTargetedSentimentOutputBuilder
fn default() -> BatchDetectTargetedSentimentOutputBuilder
source§impl PartialEq for BatchDetectTargetedSentimentOutputBuilder
impl PartialEq for BatchDetectTargetedSentimentOutputBuilder
source§fn eq(&self, other: &BatchDetectTargetedSentimentOutputBuilder) -> bool
fn eq(&self, other: &BatchDetectTargetedSentimentOutputBuilder) -> bool
self and other values to be equal, and is used
by ==.