Struct aws_sdk_appstream::model::stack_error::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for StackError.
Implementations§
source§impl Builder
impl Builder
sourcepub fn error_code(self, input: StackErrorCode) -> Self
pub fn error_code(self, input: StackErrorCode) -> Self
The error code.
sourcepub fn set_error_code(self, input: Option<StackErrorCode>) -> Self
pub fn set_error_code(self, input: Option<StackErrorCode>) -> Self
The error code.
sourcepub fn error_message(self, input: impl Into<String>) -> Self
pub fn error_message(self, input: impl Into<String>) -> Self
The error message.
sourcepub fn set_error_message(self, input: Option<String>) -> Self
pub fn set_error_message(self, input: Option<String>) -> Self
The error message.
sourcepub fn build(self) -> StackError
pub fn build(self) -> StackError
Consumes the builder and constructs a StackError.