Struct aws_sdk_comprehend::operation::batch_detect_entities::builders::BatchDetectEntitiesOutputBuilder
source · #[non_exhaustive]pub struct BatchDetectEntitiesOutputBuilder { /* private fields */ }Expand description
A builder for BatchDetectEntitiesOutput.
Implementations§
source§impl BatchDetectEntitiesOutputBuilder
impl BatchDetectEntitiesOutputBuilder
sourcepub fn result_list(self, input: BatchDetectEntitiesItemResult) -> Self
pub fn result_list(self, input: BatchDetectEntitiesItemResult) -> 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<BatchDetectEntitiesItemResult>>
) -> Self
pub fn set_result_list( self, input: Option<Vec<BatchDetectEntitiesItemResult>> ) -> 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<BatchDetectEntitiesItemResult>>
pub fn get_result_list(&self) -> &Option<Vec<BatchDetectEntitiesItemResult>>
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.
A list containing one object for each document that contained an error. The results are sorted in ascending order by the Index field and match the order of the documents in the input list. If there are no errors in the batch, the ErrorList is empty.
sourcepub fn set_error_list(self, input: Option<Vec<BatchItemError>>) -> Self
pub fn set_error_list(self, input: Option<Vec<BatchItemError>>) -> Self
A list containing one object for each document that contained an error. The results are sorted in ascending order by the Index field and match the order of the documents in the input list. If there are no errors in the batch, the ErrorList is empty.
sourcepub fn get_error_list(&self) -> &Option<Vec<BatchItemError>>
pub fn get_error_list(&self) -> &Option<Vec<BatchItemError>>
A list containing one object for each document that contained an error. The results are sorted in ascending order by the Index field and match the order of the documents in the input list. If there are no errors in the batch, the ErrorList is empty.
sourcepub fn build(self) -> Result<BatchDetectEntitiesOutput, BuildError>
pub fn build(self) -> Result<BatchDetectEntitiesOutput, BuildError>
Consumes the builder and constructs a BatchDetectEntitiesOutput.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for BatchDetectEntitiesOutputBuilder
impl Clone for BatchDetectEntitiesOutputBuilder
source§fn clone(&self) -> BatchDetectEntitiesOutputBuilder
fn clone(&self) -> BatchDetectEntitiesOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for BatchDetectEntitiesOutputBuilder
impl Default for BatchDetectEntitiesOutputBuilder
source§fn default() -> BatchDetectEntitiesOutputBuilder
fn default() -> BatchDetectEntitiesOutputBuilder
source§impl PartialEq for BatchDetectEntitiesOutputBuilder
impl PartialEq for BatchDetectEntitiesOutputBuilder
source§fn eq(&self, other: &BatchDetectEntitiesOutputBuilder) -> bool
fn eq(&self, other: &BatchDetectEntitiesOutputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for BatchDetectEntitiesOutputBuilder
Auto Trait Implementations§
impl Freeze for BatchDetectEntitiesOutputBuilder
impl RefUnwindSafe for BatchDetectEntitiesOutputBuilder
impl Send for BatchDetectEntitiesOutputBuilder
impl Sync for BatchDetectEntitiesOutputBuilder
impl Unpin for BatchDetectEntitiesOutputBuilder
impl UnwindSafe for BatchDetectEntitiesOutputBuilder
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
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>
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>
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 more