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 aggregateConsumedCapacityfor the operation, together withConsumedCapacityfor each table and secondary index that was accessed.Note that some operations, such as
GetItemandBatchGetItem, do not access any indexes at all. In these cases, specifyingINDEXESwill only returnConsumedCapacityinformation for table(s). -
TOTAL- The response includes only the aggregateConsumedCapacityfor the operation. -
NONE- NoConsumedCapacitydetails 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 aggregateConsumedCapacityfor the operation, together withConsumedCapacityfor each table and secondary index that was accessed.Note that some operations, such as
GetItemandBatchGetItem, do not access any indexes at all. In these cases, specifyingINDEXESwill only returnConsumedCapacityinformation for table(s). -
TOTAL- The response includes only the aggregateConsumedCapacityfor the operation. -
NONE- NoConsumedCapacitydetails 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 aggregateConsumedCapacityfor the operation, together withConsumedCapacityfor each table and secondary index that was accessed.Note that some operations, such as
GetItemandBatchGetItem, do not access any indexes at all. In these cases, specifyingINDEXESwill only returnConsumedCapacityinformation for table(s). -
TOTAL- The response includes only the aggregateConsumedCapacityfor the operation. -
NONE- NoConsumedCapacitydetails 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 ==.