aws_sdk_dynamodb/operation/restore_table_to_point_in_time/
builders.rs1pub use crate::operation::restore_table_to_point_in_time::_restore_table_to_point_in_time_output::RestoreTableToPointInTimeOutputBuilder;
3
4pub use crate::operation::restore_table_to_point_in_time::_restore_table_to_point_in_time_input::RestoreTableToPointInTimeInputBuilder;
5
6impl crate::operation::restore_table_to_point_in_time::builders::RestoreTableToPointInTimeInputBuilder {
7    pub async fn send_with(
9        self,
10        client: &crate::Client,
11    ) -> ::std::result::Result<
12        crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.restore_table_to_point_in_time();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23#[derive(::std::clone::Clone, ::std::fmt::Debug)]
58pub struct RestoreTableToPointInTimeFluentBuilder {
59    handle: ::std::sync::Arc<crate::client::Handle>,
60    inner: crate::operation::restore_table_to_point_in_time::builders::RestoreTableToPointInTimeInputBuilder,
61    config_override: ::std::option::Option<crate::config::Builder>,
62}
63impl
64    crate::client::customize::internal::CustomizableSend<
65        crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeOutput,
66        crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeError,
67    > for RestoreTableToPointInTimeFluentBuilder
68{
69    fn send(
70        self,
71        config_override: crate::config::Builder,
72    ) -> crate::client::customize::internal::BoxFuture<
73        crate::client::customize::internal::SendResult<
74            crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeOutput,
75            crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeError,
76        >,
77    > {
78        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
79    }
80}
81impl RestoreTableToPointInTimeFluentBuilder {
82    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
84        Self {
85            handle,
86            inner: ::std::default::Default::default(),
87            config_override: ::std::option::Option::None,
88        }
89    }
90    pub fn as_input(&self) -> &crate::operation::restore_table_to_point_in_time::builders::RestoreTableToPointInTimeInputBuilder {
92        &self.inner
93    }
94    pub async fn send(
103        self,
104    ) -> ::std::result::Result<
105        crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeOutput,
106        ::aws_smithy_runtime_api::client::result::SdkError<
107            crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeError,
108            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
109        >,
110    > {
111        let input = self
112            .inner
113            .build()
114            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
115        let runtime_plugins = crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTime::operation_runtime_plugins(
116            self.handle.runtime_plugins.clone(),
117            &self.handle.conf,
118            self.config_override,
119        );
120        crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTime::orchestrate(&runtime_plugins, input).await
121    }
122
123    pub fn customize(
125        self,
126    ) -> crate::client::customize::CustomizableOperation<
127        crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeOutput,
128        crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeError,
129        Self,
130    > {
131        crate::client::customize::CustomizableOperation::new(self)
132    }
133    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
134        self.set_config_override(::std::option::Option::Some(config_override.into()));
135        self
136    }
137
138    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
139        self.config_override = config_override;
140        self
141    }
142    pub fn source_table_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
144        self.inner = self.inner.source_table_arn(input.into());
145        self
146    }
147    pub fn set_source_table_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
149        self.inner = self.inner.set_source_table_arn(input);
150        self
151    }
152    pub fn get_source_table_arn(&self) -> &::std::option::Option<::std::string::String> {
154        self.inner.get_source_table_arn()
155    }
156    pub fn source_table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
158        self.inner = self.inner.source_table_name(input.into());
159        self
160    }
161    pub fn set_source_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
163        self.inner = self.inner.set_source_table_name(input);
164        self
165    }
166    pub fn get_source_table_name(&self) -> &::std::option::Option<::std::string::String> {
168        self.inner.get_source_table_name()
169    }
170    pub fn target_table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
172        self.inner = self.inner.target_table_name(input.into());
173        self
174    }
175    pub fn set_target_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
177        self.inner = self.inner.set_target_table_name(input);
178        self
179    }
180    pub fn get_target_table_name(&self) -> &::std::option::Option<::std::string::String> {
182        self.inner.get_target_table_name()
183    }
184    pub fn use_latest_restorable_time(mut self, input: bool) -> Self {
186        self.inner = self.inner.use_latest_restorable_time(input);
187        self
188    }
189    pub fn set_use_latest_restorable_time(mut self, input: ::std::option::Option<bool>) -> Self {
191        self.inner = self.inner.set_use_latest_restorable_time(input);
192        self
193    }
194    pub fn get_use_latest_restorable_time(&self) -> &::std::option::Option<bool> {
196        self.inner.get_use_latest_restorable_time()
197    }
198    pub fn restore_date_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
200        self.inner = self.inner.restore_date_time(input);
201        self
202    }
203    pub fn set_restore_date_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
205        self.inner = self.inner.set_restore_date_time(input);
206        self
207    }
208    pub fn get_restore_date_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
210        self.inner.get_restore_date_time()
211    }
212    pub fn billing_mode_override(mut self, input: crate::types::BillingMode) -> Self {
214        self.inner = self.inner.billing_mode_override(input);
215        self
216    }
217    pub fn set_billing_mode_override(mut self, input: ::std::option::Option<crate::types::BillingMode>) -> Self {
219        self.inner = self.inner.set_billing_mode_override(input);
220        self
221    }
222    pub fn get_billing_mode_override(&self) -> &::std::option::Option<crate::types::BillingMode> {
224        self.inner.get_billing_mode_override()
225    }
226    pub fn global_secondary_index_override(mut self, input: crate::types::GlobalSecondaryIndex) -> Self {
233        self.inner = self.inner.global_secondary_index_override(input);
234        self
235    }
236    pub fn set_global_secondary_index_override(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::GlobalSecondaryIndex>>) -> Self {
238        self.inner = self.inner.set_global_secondary_index_override(input);
239        self
240    }
241    pub fn get_global_secondary_index_override(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::GlobalSecondaryIndex>> {
243        self.inner.get_global_secondary_index_override()
244    }
245    pub fn local_secondary_index_override(mut self, input: crate::types::LocalSecondaryIndex) -> Self {
252        self.inner = self.inner.local_secondary_index_override(input);
253        self
254    }
255    pub fn set_local_secondary_index_override(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::LocalSecondaryIndex>>) -> Self {
257        self.inner = self.inner.set_local_secondary_index_override(input);
258        self
259    }
260    pub fn get_local_secondary_index_override(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::LocalSecondaryIndex>> {
262        self.inner.get_local_secondary_index_override()
263    }
264    pub fn provisioned_throughput_override(mut self, input: crate::types::ProvisionedThroughput) -> Self {
266        self.inner = self.inner.provisioned_throughput_override(input);
267        self
268    }
269    pub fn set_provisioned_throughput_override(mut self, input: ::std::option::Option<crate::types::ProvisionedThroughput>) -> Self {
271        self.inner = self.inner.set_provisioned_throughput_override(input);
272        self
273    }
274    pub fn get_provisioned_throughput_override(&self) -> &::std::option::Option<crate::types::ProvisionedThroughput> {
276        self.inner.get_provisioned_throughput_override()
277    }
278    pub fn on_demand_throughput_override(mut self, input: crate::types::OnDemandThroughput) -> Self {
280        self.inner = self.inner.on_demand_throughput_override(input);
281        self
282    }
283    pub fn set_on_demand_throughput_override(mut self, input: ::std::option::Option<crate::types::OnDemandThroughput>) -> Self {
285        self.inner = self.inner.set_on_demand_throughput_override(input);
286        self
287    }
288    pub fn get_on_demand_throughput_override(&self) -> &::std::option::Option<crate::types::OnDemandThroughput> {
290        self.inner.get_on_demand_throughput_override()
291    }
292    pub fn sse_specification_override(mut self, input: crate::types::SseSpecification) -> Self {
294        self.inner = self.inner.sse_specification_override(input);
295        self
296    }
297    pub fn set_sse_specification_override(mut self, input: ::std::option::Option<crate::types::SseSpecification>) -> Self {
299        self.inner = self.inner.set_sse_specification_override(input);
300        self
301    }
302    pub fn get_sse_specification_override(&self) -> &::std::option::Option<crate::types::SseSpecification> {
304        self.inner.get_sse_specification_override()
305    }
306}