Struct aws_sdk_comprehend::model::errors_list_item::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for ErrorsListItem.
Implementations§
source§impl Builder
impl Builder
sourcepub fn error_code(self, input: PageBasedErrorCode) -> Self
pub fn error_code(self, input: PageBasedErrorCode) -> Self
Error code for the cause of the error.
sourcepub fn set_error_code(self, input: Option<PageBasedErrorCode>) -> Self
pub fn set_error_code(self, input: Option<PageBasedErrorCode>) -> Self
Error code for the cause of the error.
sourcepub fn error_message(self, input: impl Into<String>) -> Self
pub fn error_message(self, input: impl Into<String>) -> Self
Text message explaining the reason for the error.
sourcepub fn set_error_message(self, input: Option<String>) -> Self
pub fn set_error_message(self, input: Option<String>) -> Self
Text message explaining the reason for the error.
sourcepub fn build(self) -> ErrorsListItem
pub fn build(self) -> ErrorsListItem
Consumes the builder and constructs a ErrorsListItem.