Struct aws_sdk_ec2::model::response_error::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ResponseError
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn code(self, input: LaunchTemplateErrorCode) -> Self
pub fn code(self, input: LaunchTemplateErrorCode) -> Self
The error code.
sourcepub fn set_code(self, input: Option<LaunchTemplateErrorCode>) -> Self
pub fn set_code(self, input: Option<LaunchTemplateErrorCode>) -> Self
The error code.
sourcepub fn set_message(self, input: Option<String>) -> Self
pub fn set_message(self, input: Option<String>) -> Self
The error message, if applicable.
sourcepub fn build(self) -> ResponseError
pub fn build(self) -> ResponseError
Consumes the builder and constructs a ResponseError
.