pub struct Builder { /* private fields */ }Expand description
A builder for ErrorResponse.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn set_code(self, input: Option<ErrorCode>) -> Self
pub fn set_code(self, input: Option<ErrorCode>) -> Self
The error code associated with the error.
sourcepub fn set_message(self, input: Option<String>) -> Self
pub fn set_message(self, input: Option<String>) -> Self
The message associated with the error.
sourcepub fn account_id(self, input: impl Into<String>) -> Self
pub fn account_id(self, input: impl Into<String>) -> Self
The Amazon Web Services account ID of the resource owner.
sourcepub fn set_account_id(self, input: Option<String>) -> Self
pub fn set_account_id(self, input: Option<String>) -> Self
The Amazon Web Services account ID of the resource owner.
sourcepub fn resource_identifier(self, input: impl Into<String>) -> Self
pub fn resource_identifier(self, input: impl Into<String>) -> Self
The ID of the resource.
sourcepub fn set_resource_identifier(self, input: Option<String>) -> Self
pub fn set_resource_identifier(self, input: Option<String>) -> Self
The ID of the resource.
sourcepub fn resource_type(self, input: ErrorResourceType) -> Self
pub fn resource_type(self, input: ErrorResourceType) -> Self
The type of resource.
sourcepub fn set_resource_type(self, input: Option<ErrorResourceType>) -> Self
pub fn set_resource_type(self, input: Option<ErrorResourceType>) -> Self
The type of resource.
sourcepub fn additional_details(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
pub fn additional_details(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
Adds a key-value pair to additional_details.
To override the contents of this collection use set_additional_details.
Additional details about the error.
sourcepub fn set_additional_details(
self,
input: Option<HashMap<String, String>>
) -> Self
pub fn set_additional_details(
self,
input: Option<HashMap<String, String>>
) -> Self
Additional details about the error.
sourcepub fn build(self) -> ErrorResponse
pub fn build(self) -> ErrorResponse
Consumes the builder and constructs a ErrorResponse.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more