Struct aws_sdk_detective::error::validation_exception::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for ValidationException.
Implementations§
source§impl Builder
impl Builder
pub fn message(self, input: impl Into<String>) -> Self
pub fn set_message(self, input: Option<String>) -> Self
sourcepub fn error_code(self, input: ErrorCode) -> Self
pub fn error_code(self, input: ErrorCode) -> Self
The error code associated with the validation failure.
sourcepub fn set_error_code(self, input: Option<ErrorCode>) -> Self
pub fn set_error_code(self, input: Option<ErrorCode>) -> Self
The error code associated with the validation failure.
sourcepub fn error_code_reason(self, input: impl Into<String>) -> Self
pub fn error_code_reason(self, input: impl Into<String>) -> Self
An explanation of why validation failed.
sourcepub fn set_error_code_reason(self, input: Option<String>) -> Self
pub fn set_error_code_reason(self, input: Option<String>) -> Self
An explanation of why validation failed.
sourcepub fn build(self) -> ValidationException
pub fn build(self) -> ValidationException
Consumes the builder and constructs a ValidationException.