Struct aws_sdk_comprehend::model::batch_item_error::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for BatchItemError.
Implementations§
source§impl Builder
impl Builder
sourcepub fn set_index(self, input: Option<i32>) -> Self
pub fn set_index(self, input: Option<i32>) -> Self
The zero-based index of the document in the input list.
sourcepub fn error_code(self, input: impl Into<String>) -> Self
pub fn error_code(self, input: impl Into<String>) -> Self
The numeric error code of the error.
sourcepub fn set_error_code(self, input: Option<String>) -> Self
pub fn set_error_code(self, input: Option<String>) -> Self
The numeric error code of the error.
sourcepub fn error_message(self, input: impl Into<String>) -> Self
pub fn error_message(self, input: impl Into<String>) -> Self
A text description of the error.
sourcepub fn set_error_message(self, input: Option<String>) -> Self
pub fn set_error_message(self, input: Option<String>) -> Self
A text description of the error.
sourcepub fn build(self) -> BatchItemError
pub fn build(self) -> BatchItemError
Consumes the builder and constructs a BatchItemError.