Struct aws_sdk_secretsmanager::types::builders::ApiErrorTypeBuilder
source · #[non_exhaustive]pub struct ApiErrorTypeBuilder { /* private fields */ }
Expand description
A builder for ApiErrorType
.
Implementations§
source§impl ApiErrorTypeBuilder
impl ApiErrorTypeBuilder
sourcepub fn set_secret_id(self, input: Option<String>) -> Self
pub fn set_secret_id(self, input: Option<String>) -> Self
The ARN or name of the secret.
sourcepub fn get_secret_id(&self) -> &Option<String>
pub fn get_secret_id(&self) -> &Option<String>
The ARN or name of the secret.
sourcepub fn error_code(self, input: impl Into<String>) -> Self
pub fn error_code(self, input: impl Into<String>) -> Self
The error Secrets Manager encountered while retrieving an individual secret as part of BatchGetSecretValue
, for example ResourceNotFoundException
,InvalidParameterException
, InvalidRequestException
, DecryptionFailure
, or AccessDeniedException
.
sourcepub fn set_error_code(self, input: Option<String>) -> Self
pub fn set_error_code(self, input: Option<String>) -> Self
The error Secrets Manager encountered while retrieving an individual secret as part of BatchGetSecretValue
, for example ResourceNotFoundException
,InvalidParameterException
, InvalidRequestException
, DecryptionFailure
, or AccessDeniedException
.
sourcepub fn get_error_code(&self) -> &Option<String>
pub fn get_error_code(&self) -> &Option<String>
The error Secrets Manager encountered while retrieving an individual secret as part of BatchGetSecretValue
, for example ResourceNotFoundException
,InvalidParameterException
, InvalidRequestException
, DecryptionFailure
, or AccessDeniedException
.
sourcepub fn set_message(self, input: Option<String>) -> Self
pub fn set_message(self, input: Option<String>) -> Self
A message describing the error.
sourcepub fn get_message(&self) -> &Option<String>
pub fn get_message(&self) -> &Option<String>
A message describing the error.
sourcepub fn build(self) -> ApiErrorType
pub fn build(self) -> ApiErrorType
Consumes the builder and constructs a ApiErrorType
.
Trait Implementations§
source§impl Clone for ApiErrorTypeBuilder
impl Clone for ApiErrorTypeBuilder
source§fn clone(&self) -> ApiErrorTypeBuilder
fn clone(&self) -> ApiErrorTypeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ApiErrorTypeBuilder
impl Debug for ApiErrorTypeBuilder
source§impl Default for ApiErrorTypeBuilder
impl Default for ApiErrorTypeBuilder
source§fn default() -> ApiErrorTypeBuilder
fn default() -> ApiErrorTypeBuilder
source§impl PartialEq for ApiErrorTypeBuilder
impl PartialEq for ApiErrorTypeBuilder
impl StructuralPartialEq for ApiErrorTypeBuilder
Auto Trait Implementations§
impl Freeze for ApiErrorTypeBuilder
impl RefUnwindSafe for ApiErrorTypeBuilder
impl Send for ApiErrorTypeBuilder
impl Sync for ApiErrorTypeBuilder
impl Unpin for ApiErrorTypeBuilder
impl UnwindSafe for ApiErrorTypeBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)