Struct aws_sdk_dynamodb::input::update_time_to_live_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for UpdateTimeToLiveInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn table_name(self, input: impl Into<String>) -> Self
pub fn table_name(self, input: impl Into<String>) -> Self
The name of the table to be configured.
sourcepub fn set_table_name(self, input: Option<String>) -> Self
pub fn set_table_name(self, input: Option<String>) -> Self
The name of the table to be configured.
sourcepub fn time_to_live_specification(self, input: TimeToLiveSpecification) -> Self
pub fn time_to_live_specification(self, input: TimeToLiveSpecification) -> Self
Represents the settings used to enable or disable Time to Live for the specified table.
sourcepub fn set_time_to_live_specification(
self,
input: Option<TimeToLiveSpecification>
) -> Self
pub fn set_time_to_live_specification(
self,
input: Option<TimeToLiveSpecification>
) -> Self
Represents the settings used to enable or disable Time to Live for the specified table.
sourcepub fn build(self) -> Result<UpdateTimeToLiveInput, BuildError>
pub fn build(self) -> Result<UpdateTimeToLiveInput, BuildError>
Consumes the builder and constructs a UpdateTimeToLiveInput
.
Examples found in repository?
src/client.rs (line 8474)
8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateTimeToLive,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateTimeToLiveError>,
> {
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::UpdateTimeToLiveOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateTimeToLiveError>,
> {
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
}