Struct aws_sdk_dynamodb::input::delete_backup_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for DeleteBackupInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn backup_arn(self, input: impl Into<String>) -> Self
pub fn backup_arn(self, input: impl Into<String>) -> Self
The ARN associated with the backup.
sourcepub fn set_backup_arn(self, input: Option<String>) -> Self
pub fn set_backup_arn(self, input: Option<String>) -> Self
The ARN associated with the backup.
sourcepub fn build(self) -> Result<DeleteBackupInput, BuildError>
pub fn build(self) -> Result<DeleteBackupInput, BuildError>
Consumes the builder and constructs a DeleteBackupInput
.
Examples found in repository?
src/client.rs (line 1909)
1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DeleteBackup,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DeleteBackupError>,
> {
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::DeleteBackupOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteBackupError>,
> {
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
}