Struct aws_sdk_backupgateway::error::validation_exception::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ValidationException
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn error_code(self, input: impl Into<String>) -> Self
pub fn error_code(self, input: impl Into<String>) -> Self
A description of what caused the validation error.
sourcepub fn set_error_code(self, input: Option<String>) -> Self
pub fn set_error_code(self, input: Option<String>) -> Self
A description of what caused the validation error.
pub fn message(self, input: impl Into<String>) -> Self
pub fn set_message(self, input: Option<String>) -> Self
sourcepub fn build(self) -> ValidationException
pub fn build(self) -> ValidationException
Consumes the builder and constructs a ValidationException
.