Struct aws_sdk_comprehend::operation::batch_detect_key_phrases::builders::BatchDetectKeyPhrasesOutputBuilder
source · #[non_exhaustive]pub struct BatchDetectKeyPhrasesOutputBuilder { /* private fields */ }Expand description
A builder for BatchDetectKeyPhrasesOutput.
Implementations§
source§impl BatchDetectKeyPhrasesOutputBuilder
impl BatchDetectKeyPhrasesOutputBuilder
sourcepub fn result_list(self, input: BatchDetectKeyPhrasesItemResult) -> Self
pub fn result_list(self, input: BatchDetectKeyPhrasesItemResult) -> 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<BatchDetectKeyPhrasesItemResult>>
) -> Self
pub fn set_result_list( self, input: Option<Vec<BatchDetectKeyPhrasesItemResult>> ) -> 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<BatchDetectKeyPhrasesItemResult>>
pub fn get_result_list(&self) -> &Option<Vec<BatchDetectKeyPhrasesItemResult>>
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<BatchDetectKeyPhrasesOutput, BuildError>
pub fn build(self) -> Result<BatchDetectKeyPhrasesOutput, BuildError>
Consumes the builder and constructs a BatchDetectKeyPhrasesOutput.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for BatchDetectKeyPhrasesOutputBuilder
impl Clone for BatchDetectKeyPhrasesOutputBuilder
source§fn clone(&self) -> BatchDetectKeyPhrasesOutputBuilder
fn clone(&self) -> BatchDetectKeyPhrasesOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for BatchDetectKeyPhrasesOutputBuilder
impl Default for BatchDetectKeyPhrasesOutputBuilder
source§fn default() -> BatchDetectKeyPhrasesOutputBuilder
fn default() -> BatchDetectKeyPhrasesOutputBuilder
source§impl PartialEq for BatchDetectKeyPhrasesOutputBuilder
impl PartialEq for BatchDetectKeyPhrasesOutputBuilder
source§fn eq(&self, other: &BatchDetectKeyPhrasesOutputBuilder) -> bool
fn eq(&self, other: &BatchDetectKeyPhrasesOutputBuilder) -> bool
self and other values to be equal, and is used
by ==.