Struct aws_sdk_opensearch::model::error_details::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for ErrorDetails.
Implementations§
source§impl Builder
impl Builder
sourcepub fn error_type(self, input: impl Into<String>) -> Self
pub fn error_type(self, input: impl Into<String>) -> Self
The type of error that occurred.
sourcepub fn set_error_type(self, input: Option<String>) -> Self
pub fn set_error_type(self, input: Option<String>) -> Self
The type of error that occurred.
sourcepub fn error_message(self, input: impl Into<String>) -> Self
pub fn error_message(self, input: impl Into<String>) -> Self
A message describing the error.
sourcepub fn set_error_message(self, input: Option<String>) -> Self
pub fn set_error_message(self, input: Option<String>) -> Self
A message describing the error.
sourcepub fn build(self) -> ErrorDetails
pub fn build(self) -> ErrorDetails
Consumes the builder and constructs a ErrorDetails.