Struct aws_sdk_appsync::error::bad_request_exception::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for BadRequestException
.
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 reason(self, input: BadRequestReason) -> Self
pub fn reason(self, input: BadRequestReason) -> Self
Provides context for the cause of the bad request. The only supported value is CODE_ERROR
.
sourcepub fn set_reason(self, input: Option<BadRequestReason>) -> Self
pub fn set_reason(self, input: Option<BadRequestReason>) -> Self
Provides context for the cause of the bad request. The only supported value is CODE_ERROR
.
sourcepub fn detail(self, input: BadRequestDetail) -> Self
pub fn detail(self, input: BadRequestDetail) -> Self
Provides further details for the reason behind the bad request. For reason type CODE_ERROR
, the detail will contain a list of code errors.
sourcepub fn set_detail(self, input: Option<BadRequestDetail>) -> Self
pub fn set_detail(self, input: Option<BadRequestDetail>) -> Self
Provides further details for the reason behind the bad request. For reason type CODE_ERROR
, the detail will contain a list of code errors.
sourcepub fn build(self) -> BadRequestException
pub fn build(self) -> BadRequestException
Consumes the builder and constructs a BadRequestException
.