#[non_exhaustive]pub struct BatchStatementErrorBuilder { /* private fields */ }
Expand description
A builder for BatchStatementError
.
Implementations§
source§impl BatchStatementErrorBuilder
impl BatchStatementErrorBuilder
sourcepub fn code(self, input: BatchStatementErrorCodeEnum) -> Self
pub fn code(self, input: BatchStatementErrorCodeEnum) -> Self
The error code associated with the failed PartiQL batch statement.
sourcepub fn set_code(self, input: Option<BatchStatementErrorCodeEnum>) -> Self
pub fn set_code(self, input: Option<BatchStatementErrorCodeEnum>) -> Self
The error code associated with the failed PartiQL batch statement.
sourcepub fn get_code(&self) -> &Option<BatchStatementErrorCodeEnum>
pub fn get_code(&self) -> &Option<BatchStatementErrorCodeEnum>
The error code associated with the failed PartiQL batch statement.
sourcepub fn message(self, input: impl Into<String>) -> Self
pub fn message(self, input: impl Into<String>) -> Self
The error message associated with the PartiQL batch response.
sourcepub fn set_message(self, input: Option<String>) -> Self
pub fn set_message(self, input: Option<String>) -> Self
The error message associated with the PartiQL batch response.
sourcepub fn get_message(&self) -> &Option<String>
pub fn get_message(&self) -> &Option<String>
The error message associated with the PartiQL batch response.
sourcepub fn item(self, k: impl Into<String>, v: AttributeValue) -> Self
pub fn item(self, k: impl Into<String>, v: AttributeValue) -> Self
Adds a key-value pair to item
.
To override the contents of this collection use set_item
.
The item which caused the condition check to fail. This will be set if ReturnValuesOnConditionCheckFailure is specified as ALL_OLD
.
sourcepub fn set_item(self, input: Option<HashMap<String, AttributeValue>>) -> Self
pub fn set_item(self, input: Option<HashMap<String, AttributeValue>>) -> Self
The item which caused the condition check to fail. This will be set if ReturnValuesOnConditionCheckFailure is specified as ALL_OLD
.
sourcepub fn get_item(&self) -> &Option<HashMap<String, AttributeValue>>
pub fn get_item(&self) -> &Option<HashMap<String, AttributeValue>>
The item which caused the condition check to fail. This will be set if ReturnValuesOnConditionCheckFailure is specified as ALL_OLD
.
sourcepub fn build(self) -> BatchStatementError
pub fn build(self) -> BatchStatementError
Consumes the builder and constructs a BatchStatementError
.
Trait Implementations§
source§impl Clone for BatchStatementErrorBuilder
impl Clone for BatchStatementErrorBuilder
source§fn clone(&self) -> BatchStatementErrorBuilder
fn clone(&self) -> BatchStatementErrorBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BatchStatementErrorBuilder
impl Debug for BatchStatementErrorBuilder
source§impl Default for BatchStatementErrorBuilder
impl Default for BatchStatementErrorBuilder
source§fn default() -> BatchStatementErrorBuilder
fn default() -> BatchStatementErrorBuilder
source§impl PartialEq for BatchStatementErrorBuilder
impl PartialEq for BatchStatementErrorBuilder
source§fn eq(&self, other: &BatchStatementErrorBuilder) -> bool
fn eq(&self, other: &BatchStatementErrorBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BatchStatementErrorBuilder
Auto Trait Implementations§
impl Freeze for BatchStatementErrorBuilder
impl RefUnwindSafe for BatchStatementErrorBuilder
impl Send for BatchStatementErrorBuilder
impl Sync for BatchStatementErrorBuilder
impl Unpin for BatchStatementErrorBuilder
impl UnwindSafe for BatchStatementErrorBuilder
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
)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>
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>
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 more