Struct aws_sdk_dynamodb::operation::batch_execute_statement::builders::BatchExecuteStatementInputBuilder
source · #[non_exhaustive]pub struct BatchExecuteStatementInputBuilder { /* private fields */ }
Expand description
A builder for BatchExecuteStatementInput
.
Implementations§
source§impl BatchExecuteStatementInputBuilder
impl BatchExecuteStatementInputBuilder
sourcepub fn statements(self, input: BatchStatementRequest) -> Self
pub fn statements(self, input: BatchStatementRequest) -> Self
Appends an item to statements
.
To override the contents of this collection use set_statements
.
The list of PartiQL statements representing the batch to run.
sourcepub fn set_statements(self, input: Option<Vec<BatchStatementRequest>>) -> Self
pub fn set_statements(self, input: Option<Vec<BatchStatementRequest>>) -> Self
The list of PartiQL statements representing the batch to run.
sourcepub fn get_statements(&self) -> &Option<Vec<BatchStatementRequest>>
pub fn get_statements(&self) -> &Option<Vec<BatchStatementRequest>>
The list of PartiQL statements representing the batch to run.
sourcepub fn return_consumed_capacity(self, input: ReturnConsumedCapacity) -> Self
pub fn return_consumed_capacity(self, input: ReturnConsumedCapacity) -> Self
Determines the level of detail about either provisioned or on-demand throughput consumption that is returned in the response:
-
INDEXES
- The response includes the aggregateConsumedCapacity
for the operation, together withConsumedCapacity
for each table and secondary index that was accessed.Note that some operations, such as
GetItem
andBatchGetItem
, do not access any indexes at all. In these cases, specifyingINDEXES
will only returnConsumedCapacity
information for table(s). -
TOTAL
- The response includes only the aggregateConsumedCapacity
for the operation. -
NONE
- NoConsumedCapacity
details are included in the response.
sourcepub fn set_return_consumed_capacity(
self,
input: Option<ReturnConsumedCapacity>,
) -> Self
pub fn set_return_consumed_capacity( self, input: Option<ReturnConsumedCapacity>, ) -> Self
Determines the level of detail about either provisioned or on-demand throughput consumption that is returned in the response:
-
INDEXES
- The response includes the aggregateConsumedCapacity
for the operation, together withConsumedCapacity
for each table and secondary index that was accessed.Note that some operations, such as
GetItem
andBatchGetItem
, do not access any indexes at all. In these cases, specifyingINDEXES
will only returnConsumedCapacity
information for table(s). -
TOTAL
- The response includes only the aggregateConsumedCapacity
for the operation. -
NONE
- NoConsumedCapacity
details are included in the response.
sourcepub fn get_return_consumed_capacity(&self) -> &Option<ReturnConsumedCapacity>
pub fn get_return_consumed_capacity(&self) -> &Option<ReturnConsumedCapacity>
Determines the level of detail about either provisioned or on-demand throughput consumption that is returned in the response:
-
INDEXES
- The response includes the aggregateConsumedCapacity
for the operation, together withConsumedCapacity
for each table and secondary index that was accessed.Note that some operations, such as
GetItem
andBatchGetItem
, do not access any indexes at all. In these cases, specifyingINDEXES
will only returnConsumedCapacity
information for table(s). -
TOTAL
- The response includes only the aggregateConsumedCapacity
for the operation. -
NONE
- NoConsumedCapacity
details are included in the response.
sourcepub fn build(self) -> Result<BatchExecuteStatementInput, BuildError>
pub fn build(self) -> Result<BatchExecuteStatementInput, BuildError>
Consumes the builder and constructs a BatchExecuteStatementInput
.
source§impl BatchExecuteStatementInputBuilder
impl BatchExecuteStatementInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<BatchExecuteStatementOutput, SdkError<BatchExecuteStatementError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<BatchExecuteStatementOutput, SdkError<BatchExecuteStatementError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for BatchExecuteStatementInputBuilder
impl Clone for BatchExecuteStatementInputBuilder
source§fn clone(&self) -> BatchExecuteStatementInputBuilder
fn clone(&self) -> BatchExecuteStatementInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for BatchExecuteStatementInputBuilder
impl Default for BatchExecuteStatementInputBuilder
source§fn default() -> BatchExecuteStatementInputBuilder
fn default() -> BatchExecuteStatementInputBuilder
source§impl PartialEq for BatchExecuteStatementInputBuilder
impl PartialEq for BatchExecuteStatementInputBuilder
source§fn eq(&self, other: &BatchExecuteStatementInputBuilder) -> bool
fn eq(&self, other: &BatchExecuteStatementInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BatchExecuteStatementInputBuilder
Auto Trait Implementations§
impl Freeze for BatchExecuteStatementInputBuilder
impl RefUnwindSafe for BatchExecuteStatementInputBuilder
impl Send for BatchExecuteStatementInputBuilder
impl Sync for BatchExecuteStatementInputBuilder
impl Unpin for BatchExecuteStatementInputBuilder
impl UnwindSafe for BatchExecuteStatementInputBuilder
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