Struct aws_sdk_dynamodb::input::transact_get_items_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for TransactGetItemsInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn transact_items(self, input: TransactGetItem) -> Self
pub fn transact_items(self, input: TransactGetItem) -> Self
Appends an item to transact_items
.
To override the contents of this collection use set_transact_items
.
An ordered array of up to 100 TransactGetItem
objects, each of which contains a Get
structure.
sourcepub fn set_transact_items(self, input: Option<Vec<TransactGetItem>>) -> Self
pub fn set_transact_items(self, input: Option<Vec<TransactGetItem>>) -> Self
An ordered array of up to 100 TransactGetItem
objects, each of which contains a Get
structure.
sourcepub fn return_consumed_capacity(self, input: ReturnConsumedCapacity) -> Self
pub fn return_consumed_capacity(self, input: ReturnConsumedCapacity) -> Self
A value of TOTAL
causes consumed capacity information to be returned, and a value of NONE
prevents that information from being returned. No other value is valid.
sourcepub fn set_return_consumed_capacity(
self,
input: Option<ReturnConsumedCapacity>
) -> Self
pub fn set_return_consumed_capacity(
self,
input: Option<ReturnConsumedCapacity>
) -> Self
A value of TOTAL
causes consumed capacity information to be returned, and a value of NONE
prevents that information from being returned. No other value is valid.
sourcepub fn build(self) -> Result<TransactGetItemsInput, BuildError>
pub fn build(self) -> Result<TransactGetItemsInput, BuildError>
Consumes the builder and constructs a TransactGetItemsInput
.
Examples found in repository?
src/client.rs (line 6863)
6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::TransactGetItems,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::TransactGetItemsError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::TransactGetItemsOutput,
aws_smithy_http::result::SdkError<crate::error::TransactGetItemsError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}