#[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 ==
.