#[non_exhaustive]pub struct WafInvalidParameterExceptionBuilder { /* private fields */ }
Expand description
A builder for WafInvalidParameterException
.
Implementations§
source§impl WafInvalidParameterExceptionBuilder
impl WafInvalidParameterExceptionBuilder
pub fn message(self, input: impl Into<String>) -> Self
pub fn set_message(self, input: Option<String>) -> Self
pub fn get_message(&self) -> &Option<String>
sourcepub fn field(self, input: ParameterExceptionField) -> Self
pub fn field(self, input: ParameterExceptionField) -> Self
The settings where the invalid parameter was found.
sourcepub fn set_field(self, input: Option<ParameterExceptionField>) -> Self
pub fn set_field(self, input: Option<ParameterExceptionField>) -> Self
The settings where the invalid parameter was found.
sourcepub fn get_field(&self) -> &Option<ParameterExceptionField>
pub fn get_field(&self) -> &Option<ParameterExceptionField>
The settings where the invalid parameter was found.
sourcepub fn parameter(self, input: impl Into<String>) -> Self
pub fn parameter(self, input: impl Into<String>) -> Self
The invalid parameter that resulted in the exception.
sourcepub fn set_parameter(self, input: Option<String>) -> Self
pub fn set_parameter(self, input: Option<String>) -> Self
The invalid parameter that resulted in the exception.
sourcepub fn get_parameter(&self) -> &Option<String>
pub fn get_parameter(&self) -> &Option<String>
The invalid parameter that resulted in the exception.
sourcepub fn reason(self, input: impl Into<String>) -> Self
pub fn reason(self, input: impl Into<String>) -> Self
Additional information about the exception.
sourcepub fn set_reason(self, input: Option<String>) -> Self
pub fn set_reason(self, input: Option<String>) -> Self
Additional information about the exception.
sourcepub fn get_reason(&self) -> &Option<String>
pub fn get_reason(&self) -> &Option<String>
Additional information about the exception.
sourcepub fn meta(self, meta: ErrorMetadata) -> Self
pub fn meta(self, meta: ErrorMetadata) -> Self
Sets error metadata
sourcepub fn set_meta(&mut self, meta: Option<ErrorMetadata>) -> &mut Self
pub fn set_meta(&mut self, meta: Option<ErrorMetadata>) -> &mut Self
Sets error metadata
sourcepub fn build(self) -> WafInvalidParameterException
pub fn build(self) -> WafInvalidParameterException
Consumes the builder and constructs a WafInvalidParameterException
.
Trait Implementations§
source§impl Clone for WafInvalidParameterExceptionBuilder
impl Clone for WafInvalidParameterExceptionBuilder
source§fn clone(&self) -> WafInvalidParameterExceptionBuilder
fn clone(&self) -> WafInvalidParameterExceptionBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for WafInvalidParameterExceptionBuilder
impl Default for WafInvalidParameterExceptionBuilder
source§fn default() -> WafInvalidParameterExceptionBuilder
fn default() -> WafInvalidParameterExceptionBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for WafInvalidParameterExceptionBuilder
impl PartialEq for WafInvalidParameterExceptionBuilder
source§fn eq(&self, other: &WafInvalidParameterExceptionBuilder) -> bool
fn eq(&self, other: &WafInvalidParameterExceptionBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for WafInvalidParameterExceptionBuilder
Auto Trait Implementations§
impl Freeze for WafInvalidParameterExceptionBuilder
impl RefUnwindSafe for WafInvalidParameterExceptionBuilder
impl Send for WafInvalidParameterExceptionBuilder
impl Sync for WafInvalidParameterExceptionBuilder
impl Unpin for WafInvalidParameterExceptionBuilder
impl UnwindSafe for WafInvalidParameterExceptionBuilder
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
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.