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>> {
86 let input = self.inner.build().map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
87 let runtime_plugins = crate::operation::restore_table_from_backup::RestoreTableFromBackup::operation_runtime_plugins(
88 self.handle.runtime_plugins.clone(),
89 &self.handle.conf,
90 self.config_override,
91 );
92 crate::operation::restore_table_from_backup::RestoreTableFromBackup::orchestrate(&runtime_plugins, input).await
93 }
94
95 pub fn customize(
97 self,
98 ) -> crate::client::customize::CustomizableOperation<crate::operation::restore_table_from_backup::RestoreTableFromBackupOutput, crate::operation::restore_table_from_backup::RestoreTableFromBackupError, Self> {
99 crate::client::customize::CustomizableOperation::new(self)
100 }
101 pub(crate) fn config_override(
102 mut self,
103 config_override: impl ::std::convert::Into<crate::config::Builder>,
104 ) -> Self {
105 self.set_config_override(::std::option::Option::Some(config_override.into()));
106 self
107 }
108
109 pub(crate) fn set_config_override(
110 &mut self,
111 config_override: ::std::option::Option<crate::config::Builder>,
112 ) -> &mut Self {
113 self.config_override = config_override;
114 self
115 }
116 pub fn target_table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
118 self.inner = self.inner.target_table_name(input.into());
119 self
120 }
121 pub fn set_target_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
123 self.inner = self.inner.set_target_table_name(input);
124 self
125 }
126 pub fn get_target_table_name(&self) -> &::std::option::Option<::std::string::String> {
128 self.inner.get_target_table_name()
129 }
130 pub fn backup_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
132 self.inner = self.inner.backup_arn(input.into());
133 self
134 }
135 pub fn set_backup_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
137 self.inner = self.inner.set_backup_arn(input);
138 self
139 }
140 pub fn get_backup_arn(&self) -> &::std::option::Option<::std::string::String> {
142 self.inner.get_backup_arn()
143 }
144 pub fn billing_mode_override(mut self, input: crate::types::BillingMode) -> Self {
146 self.inner = self.inner.billing_mode_override(input);
147 self
148 }
149 pub fn set_billing_mode_override(mut self, input: ::std::option::Option<crate::types::BillingMode>) -> Self {
151 self.inner = self.inner.set_billing_mode_override(input);
152 self
153 }
154 pub fn get_billing_mode_override(&self) -> &::std::option::Option<crate::types::BillingMode> {
156 self.inner.get_billing_mode_override()
157 }
158 pub fn global_secondary_index_override(mut self, input: crate::types::GlobalSecondaryIndex) -> Self {
165 self.inner = self.inner.global_secondary_index_override(input);
166 self
167 }
168 pub fn set_global_secondary_index_override(mut self, input: ::std::option::Option<::std::vec::Vec::<crate::types::GlobalSecondaryIndex>>) -> Self {
170 self.inner = self.inner.set_global_secondary_index_override(input);
171 self
172 }
173 pub fn get_global_secondary_index_override(&self) -> &::std::option::Option<::std::vec::Vec::<crate::types::GlobalSecondaryIndex>> {
175 self.inner.get_global_secondary_index_override()
176 }
177 pub fn local_secondary_index_override(mut self, input: crate::types::LocalSecondaryIndex) -> Self {
184 self.inner = self.inner.local_secondary_index_override(input);
185 self
186 }
187 pub fn set_local_secondary_index_override(mut self, input: ::std::option::Option<::std::vec::Vec::<crate::types::LocalSecondaryIndex>>) -> Self {
189 self.inner = self.inner.set_local_secondary_index_override(input);
190 self
191 }
192 pub fn get_local_secondary_index_override(&self) -> &::std::option::Option<::std::vec::Vec::<crate::types::LocalSecondaryIndex>> {
194 self.inner.get_local_secondary_index_override()
195 }
196 pub fn provisioned_throughput_override(mut self, input: crate::types::ProvisionedThroughput) -> Self {
198 self.inner = self.inner.provisioned_throughput_override(input);
199 self
200 }
201 pub fn set_provisioned_throughput_override(mut self, input: ::std::option::Option<crate::types::ProvisionedThroughput>) -> Self {
203 self.inner = self.inner.set_provisioned_throughput_override(input);
204 self
205 }
206 pub fn get_provisioned_throughput_override(&self) -> &::std::option::Option<crate::types::ProvisionedThroughput> {
208 self.inner.get_provisioned_throughput_override()
209 }
210 pub fn on_demand_throughput_override(mut self, input: crate::types::OnDemandThroughput) -> Self {
212 self.inner = self.inner.on_demand_throughput_override(input);
213 self
214 }
215 pub fn set_on_demand_throughput_override(mut self, input: ::std::option::Option<crate::types::OnDemandThroughput>) -> Self {
217 self.inner = self.inner.set_on_demand_throughput_override(input);
218 self
219 }
220 pub fn get_on_demand_throughput_override(&self) -> &::std::option::Option<crate::types::OnDemandThroughput> {
222 self.inner.get_on_demand_throughput_override()
223 }
224 pub fn sse_specification_override(mut self, input: crate::types::SseSpecification) -> Self {
226 self.inner = self.inner.sse_specification_override(input);
227 self
228 }
229 pub fn set_sse_specification_override(mut self, input: ::std::option::Option<crate::types::SseSpecification>) -> Self {
231 self.inner = self.inner.set_sse_specification_override(input);
232 self
233 }
234 pub fn get_sse_specification_override(&self) -> &::std::option::Option<crate::types::SseSpecification> {
236 self.inner.get_sse_specification_override()
237 }
238}
239