aws_sdk_dynamodb/operation/restore_table_from_backup/
builders.rs1pub use crate::operation::restore_table_from_backup::_restore_table_from_backup_output::RestoreTableFromBackupOutputBuilder;
3
4pub use crate::operation::restore_table_from_backup::_restore_table_from_backup_input::RestoreTableFromBackupInputBuilder;
5
6impl crate::operation::restore_table_from_backup::builders::RestoreTableFromBackupInputBuilder {
7 pub async fn send_with(self, client: &crate::Client) -> ::std::result::Result<
9 crate::operation::restore_table_from_backup::RestoreTableFromBackupOutput,
10 ::aws_smithy_runtime_api::client::result::SdkError<
11 crate::operation::restore_table_from_backup::RestoreTableFromBackupError,
12 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse
13 >
14 > {
15 let mut fluent_builder = client.restore_table_from_backup();
16 fluent_builder.inner = self;
17 fluent_builder.send().await
18 }
19 }
20#[derive(::std::clone::Clone, ::std::fmt::Debug)]
40pub struct RestoreTableFromBackupFluentBuilder {
41 handle: ::std::sync::Arc<crate::client::Handle>,
42 inner: crate::operation::restore_table_from_backup::builders::RestoreTableFromBackupInputBuilder,
43config_override: ::std::option::Option<crate::config::Builder>,
44 }
45impl
46 crate::client::customize::internal::CustomizableSend<
47 crate::operation::restore_table_from_backup::RestoreTableFromBackupOutput,
48 crate::operation::restore_table_from_backup::RestoreTableFromBackupError,
49 > for RestoreTableFromBackupFluentBuilder
50 {
51 fn send(
52 self,
53 config_override: crate::config::Builder,
54 ) -> crate::client::customize::internal::BoxFuture<
55 crate::client::customize::internal::SendResult<
56 crate::operation::restore_table_from_backup::RestoreTableFromBackupOutput,
57 crate::operation::restore_table_from_backup::RestoreTableFromBackupError,
58 >,
59 > {
60 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
61 }
62 }
63impl RestoreTableFromBackupFluentBuilder {
64 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
66 Self {
67 handle,
68 inner: ::std::default::Default::default(),
69 config_override: ::std::option::Option::None,
70 }
71 }
72 pub fn as_input(&self) -> &crate::operation::restore_table_from_backup::builders::RestoreTableFromBackupInputBuilder {
74 &self.inner
75 }
76 pub async fn send(self) -> ::std::result::Result<crate::operation::restore_table_from_backup::RestoreTableFromBackupOutput, ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_table_from_backup::RestoreTableFromBackupError, ::aws_smithy_runtime_api::client::orchestrator::HttpResponse>> {
85 let input = self.inner.build().map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
86 let runtime_plugins = crate::operation::restore_table_from_backup::RestoreTableFromBackup::operation_runtime_plugins(
87 self.handle.runtime_plugins.clone(),
88 &self.handle.conf,
89 self.config_override,
90 );
91 crate::operation::restore_table_from_backup::RestoreTableFromBackup::orchestrate(&runtime_plugins, input).await
92 }
93
94 pub fn customize(
96 self,
97 ) -> crate::client::customize::CustomizableOperation<crate::operation::restore_table_from_backup::RestoreTableFromBackupOutput, crate::operation::restore_table_from_backup::RestoreTableFromBackupError, Self> {
98 crate::client::customize::CustomizableOperation::new(self)
99 }
100 pub(crate) fn config_override(
101 mut self,
102 config_override: impl ::std::convert::Into<crate::config::Builder>,
103 ) -> Self {
104 self.set_config_override(::std::option::Option::Some(config_override.into()));
105 self
106 }
107
108 pub(crate) fn set_config_override(
109 &mut self,
110 config_override: ::std::option::Option<crate::config::Builder>,
111 ) -> &mut Self {
112 self.config_override = config_override;
113 self
114 }
115 pub fn target_table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
117 self.inner = self.inner.target_table_name(input.into());
118 self
119 }
120 pub fn set_target_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
122 self.inner = self.inner.set_target_table_name(input);
123 self
124 }
125 pub fn get_target_table_name(&self) -> &::std::option::Option<::std::string::String> {
127 self.inner.get_target_table_name()
128 }
129 pub fn backup_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
131 self.inner = self.inner.backup_arn(input.into());
132 self
133 }
134 pub fn set_backup_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
136 self.inner = self.inner.set_backup_arn(input);
137 self
138 }
139 pub fn get_backup_arn(&self) -> &::std::option::Option<::std::string::String> {
141 self.inner.get_backup_arn()
142 }
143 pub fn billing_mode_override(mut self, input: crate::types::BillingMode) -> Self {
145 self.inner = self.inner.billing_mode_override(input);
146 self
147 }
148 pub fn set_billing_mode_override(mut self, input: ::std::option::Option<crate::types::BillingMode>) -> Self {
150 self.inner = self.inner.set_billing_mode_override(input);
151 self
152 }
153 pub fn get_billing_mode_override(&self) -> &::std::option::Option<crate::types::BillingMode> {
155 self.inner.get_billing_mode_override()
156 }
157 pub fn global_secondary_index_override(mut self, input: crate::types::GlobalSecondaryIndex) -> Self {
164 self.inner = self.inner.global_secondary_index_override(input);
165 self
166 }
167 pub fn set_global_secondary_index_override(mut self, input: ::std::option::Option<::std::vec::Vec::<crate::types::GlobalSecondaryIndex>>) -> Self {
169 self.inner = self.inner.set_global_secondary_index_override(input);
170 self
171 }
172 pub fn get_global_secondary_index_override(&self) -> &::std::option::Option<::std::vec::Vec::<crate::types::GlobalSecondaryIndex>> {
174 self.inner.get_global_secondary_index_override()
175 }
176 pub fn local_secondary_index_override(mut self, input: crate::types::LocalSecondaryIndex) -> Self {
183 self.inner = self.inner.local_secondary_index_override(input);
184 self
185 }
186 pub fn set_local_secondary_index_override(mut self, input: ::std::option::Option<::std::vec::Vec::<crate::types::LocalSecondaryIndex>>) -> Self {
188 self.inner = self.inner.set_local_secondary_index_override(input);
189 self
190 }
191 pub fn get_local_secondary_index_override(&self) -> &::std::option::Option<::std::vec::Vec::<crate::types::LocalSecondaryIndex>> {
193 self.inner.get_local_secondary_index_override()
194 }
195 pub fn provisioned_throughput_override(mut self, input: crate::types::ProvisionedThroughput) -> Self {
197 self.inner = self.inner.provisioned_throughput_override(input);
198 self
199 }
200 pub fn set_provisioned_throughput_override(mut self, input: ::std::option::Option<crate::types::ProvisionedThroughput>) -> Self {
202 self.inner = self.inner.set_provisioned_throughput_override(input);
203 self
204 }
205 pub fn get_provisioned_throughput_override(&self) -> &::std::option::Option<crate::types::ProvisionedThroughput> {
207 self.inner.get_provisioned_throughput_override()
208 }
209 pub fn on_demand_throughput_override(mut self, input: crate::types::OnDemandThroughput) -> Self {
211 self.inner = self.inner.on_demand_throughput_override(input);
212 self
213 }
214 pub fn set_on_demand_throughput_override(mut self, input: ::std::option::Option<crate::types::OnDemandThroughput>) -> Self {
216 self.inner = self.inner.set_on_demand_throughput_override(input);
217 self
218 }
219 pub fn get_on_demand_throughput_override(&self) -> &::std::option::Option<crate::types::OnDemandThroughput> {
221 self.inner.get_on_demand_throughput_override()
222 }
223 pub fn sse_specification_override(mut self, input: crate::types::SseSpecification) -> Self {
225 self.inner = self.inner.sse_specification_override(input);
226 self
227 }
228 pub fn set_sse_specification_override(mut self, input: ::std::option::Option<crate::types::SseSpecification>) -> Self {
230 self.inner = self.inner.set_sse_specification_override(input);
231 self
232 }
233 pub fn get_sse_specification_override(&self) -> &::std::option::Option<crate::types::SseSpecification> {
235 self.inner.get_sse_specification_override()
236 }
237}
238