aws_sdk_backup/operation/start_restore_job/builders.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::start_restore_job::_start_restore_job_output::StartRestoreJobOutputBuilder;
3
4pub use crate::operation::start_restore_job::_start_restore_job_input::StartRestoreJobInputBuilder;
5
6impl crate::operation::start_restore_job::builders::StartRestoreJobInputBuilder {
7 /// Sends a request with this input using the given client.
8 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::start_restore_job::StartRestoreJobOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::start_restore_job::StartRestoreJobError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.start_restore_job();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23/// Fluent builder constructing a request to `StartRestoreJob`.
24///
25/// <p>Recovers the saved resource identified by an Amazon Resource Name (ARN).</p>
26#[derive(::std::clone::Clone, ::std::fmt::Debug)]
27pub struct StartRestoreJobFluentBuilder {
28 handle: ::std::sync::Arc<crate::client::Handle>,
29 inner: crate::operation::start_restore_job::builders::StartRestoreJobInputBuilder,
30 config_override: ::std::option::Option<crate::config::Builder>,
31}
32impl
33 crate::client::customize::internal::CustomizableSend<
34 crate::operation::start_restore_job::StartRestoreJobOutput,
35 crate::operation::start_restore_job::StartRestoreJobError,
36 > for StartRestoreJobFluentBuilder
37{
38 fn send(
39 self,
40 config_override: crate::config::Builder,
41 ) -> crate::client::customize::internal::BoxFuture<
42 crate::client::customize::internal::SendResult<
43 crate::operation::start_restore_job::StartRestoreJobOutput,
44 crate::operation::start_restore_job::StartRestoreJobError,
45 >,
46 > {
47 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
48 }
49}
50impl StartRestoreJobFluentBuilder {
51 /// Creates a new `StartRestoreJobFluentBuilder`.
52 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
53 Self {
54 handle,
55 inner: ::std::default::Default::default(),
56 config_override: ::std::option::Option::None,
57 }
58 }
59 /// Access the StartRestoreJob as a reference.
60 pub fn as_input(&self) -> &crate::operation::start_restore_job::builders::StartRestoreJobInputBuilder {
61 &self.inner
62 }
63 /// Sends the request and returns the response.
64 ///
65 /// If an error occurs, an `SdkError` will be returned with additional details that
66 /// can be matched against.
67 ///
68 /// By default, any retryable failures will be retried twice. Retry behavior
69 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
70 /// set when configuring the client.
71 pub async fn send(
72 self,
73 ) -> ::std::result::Result<
74 crate::operation::start_restore_job::StartRestoreJobOutput,
75 ::aws_smithy_runtime_api::client::result::SdkError<
76 crate::operation::start_restore_job::StartRestoreJobError,
77 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
78 >,
79 > {
80 let input = self
81 .inner
82 .build()
83 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
84 let runtime_plugins = crate::operation::start_restore_job::StartRestoreJob::operation_runtime_plugins(
85 self.handle.runtime_plugins.clone(),
86 &self.handle.conf,
87 self.config_override,
88 );
89 crate::operation::start_restore_job::StartRestoreJob::orchestrate(&runtime_plugins, input).await
90 }
91
92 /// Consumes this builder, creating a customizable operation that can be modified before being sent.
93 pub fn customize(
94 self,
95 ) -> crate::client::customize::CustomizableOperation<
96 crate::operation::start_restore_job::StartRestoreJobOutput,
97 crate::operation::start_restore_job::StartRestoreJobError,
98 Self,
99 > {
100 crate::client::customize::CustomizableOperation::new(self)
101 }
102 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
103 self.set_config_override(::std::option::Option::Some(config_override.into()));
104 self
105 }
106
107 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
108 self.config_override = config_override;
109 self
110 }
111 /// <p>An ARN that uniquely identifies a recovery point; for example, <code>arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45</code>.</p>
112 pub fn recovery_point_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
113 self.inner = self.inner.recovery_point_arn(input.into());
114 self
115 }
116 /// <p>An ARN that uniquely identifies a recovery point; for example, <code>arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45</code>.</p>
117 pub fn set_recovery_point_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
118 self.inner = self.inner.set_recovery_point_arn(input);
119 self
120 }
121 /// <p>An ARN that uniquely identifies a recovery point; for example, <code>arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45</code>.</p>
122 pub fn get_recovery_point_arn(&self) -> &::std::option::Option<::std::string::String> {
123 self.inner.get_recovery_point_arn()
124 }
125 ///
126 /// Adds a key-value pair to `Metadata`.
127 ///
128 /// To override the contents of this collection use [`set_metadata`](Self::set_metadata).
129 ///
130 /// <p>A set of metadata key-value pairs.</p>
131 /// <p>You can get configuration metadata about a resource at the time it was backed up by calling <code>GetRecoveryPointRestoreMetadata</code>. However, values in addition to those provided by <code>GetRecoveryPointRestoreMetadata</code> might be required to restore a resource. For example, you might need to provide a new resource name if the original already exists.</p>
132 /// <p>For more information about the metadata for each resource, see the following:</p>
133 /// <ul>
134 /// <li>
135 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-aur.html#aur-restore-cli">Metadata for Amazon Aurora</a></p></li>
136 /// <li>
137 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-docdb.html#docdb-restore-cli">Metadata for Amazon DocumentDB</a></p></li>
138 /// <li>
139 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restore-application-stacks.html#restoring-cfn-cli">Metadata for CloudFormation</a></p></li>
140 /// <li>
141 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-dynamodb.html#ddb-restore-cli">Metadata for Amazon DynamoDB</a></p></li>
142 /// <li>
143 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-ebs.html#ebs-restore-cli"> Metadata for Amazon EBS</a></p></li>
144 /// <li>
145 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-ec2.html#restoring-ec2-cli">Metadata for Amazon EC2</a></p></li>
146 /// <li>
147 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-efs.html#efs-restore-cli">Metadata for Amazon EFS</a></p></li>
148 /// <li>
149 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-fsx.html#fsx-restore-cli">Metadata for Amazon FSx</a></p></li>
150 /// <li>
151 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-nep.html#nep-restore-cli">Metadata for Amazon Neptune</a></p></li>
152 /// <li>
153 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-rds.html#rds-restore-cli">Metadata for Amazon RDS</a></p></li>
154 /// <li>
155 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/redshift-restores.html#redshift-restore-api">Metadata for Amazon Redshift</a></p></li>
156 /// <li>
157 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-storage-gateway.html#restoring-sgw-cli">Metadata for Storage Gateway</a></p></li>
158 /// <li>
159 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-s3.html#s3-restore-cli">Metadata for Amazon S3</a></p></li>
160 /// <li>
161 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/timestream-restore.html#timestream-restore-api">Metadata for Amazon Timestream</a></p></li>
162 /// <li>
163 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-vm.html#vm-restore-cli">Metadata for virtual machines</a></p></li>
164 /// </ul>
165 pub fn metadata(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
166 self.inner = self.inner.metadata(k.into(), v.into());
167 self
168 }
169 /// <p>A set of metadata key-value pairs.</p>
170 /// <p>You can get configuration metadata about a resource at the time it was backed up by calling <code>GetRecoveryPointRestoreMetadata</code>. However, values in addition to those provided by <code>GetRecoveryPointRestoreMetadata</code> might be required to restore a resource. For example, you might need to provide a new resource name if the original already exists.</p>
171 /// <p>For more information about the metadata for each resource, see the following:</p>
172 /// <ul>
173 /// <li>
174 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-aur.html#aur-restore-cli">Metadata for Amazon Aurora</a></p></li>
175 /// <li>
176 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-docdb.html#docdb-restore-cli">Metadata for Amazon DocumentDB</a></p></li>
177 /// <li>
178 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restore-application-stacks.html#restoring-cfn-cli">Metadata for CloudFormation</a></p></li>
179 /// <li>
180 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-dynamodb.html#ddb-restore-cli">Metadata for Amazon DynamoDB</a></p></li>
181 /// <li>
182 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-ebs.html#ebs-restore-cli"> Metadata for Amazon EBS</a></p></li>
183 /// <li>
184 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-ec2.html#restoring-ec2-cli">Metadata for Amazon EC2</a></p></li>
185 /// <li>
186 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-efs.html#efs-restore-cli">Metadata for Amazon EFS</a></p></li>
187 /// <li>
188 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-fsx.html#fsx-restore-cli">Metadata for Amazon FSx</a></p></li>
189 /// <li>
190 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-nep.html#nep-restore-cli">Metadata for Amazon Neptune</a></p></li>
191 /// <li>
192 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-rds.html#rds-restore-cli">Metadata for Amazon RDS</a></p></li>
193 /// <li>
194 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/redshift-restores.html#redshift-restore-api">Metadata for Amazon Redshift</a></p></li>
195 /// <li>
196 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-storage-gateway.html#restoring-sgw-cli">Metadata for Storage Gateway</a></p></li>
197 /// <li>
198 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-s3.html#s3-restore-cli">Metadata for Amazon S3</a></p></li>
199 /// <li>
200 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/timestream-restore.html#timestream-restore-api">Metadata for Amazon Timestream</a></p></li>
201 /// <li>
202 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-vm.html#vm-restore-cli">Metadata for virtual machines</a></p></li>
203 /// </ul>
204 pub fn set_metadata(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
205 self.inner = self.inner.set_metadata(input);
206 self
207 }
208 /// <p>A set of metadata key-value pairs.</p>
209 /// <p>You can get configuration metadata about a resource at the time it was backed up by calling <code>GetRecoveryPointRestoreMetadata</code>. However, values in addition to those provided by <code>GetRecoveryPointRestoreMetadata</code> might be required to restore a resource. For example, you might need to provide a new resource name if the original already exists.</p>
210 /// <p>For more information about the metadata for each resource, see the following:</p>
211 /// <ul>
212 /// <li>
213 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-aur.html#aur-restore-cli">Metadata for Amazon Aurora</a></p></li>
214 /// <li>
215 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-docdb.html#docdb-restore-cli">Metadata for Amazon DocumentDB</a></p></li>
216 /// <li>
217 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restore-application-stacks.html#restoring-cfn-cli">Metadata for CloudFormation</a></p></li>
218 /// <li>
219 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-dynamodb.html#ddb-restore-cli">Metadata for Amazon DynamoDB</a></p></li>
220 /// <li>
221 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-ebs.html#ebs-restore-cli"> Metadata for Amazon EBS</a></p></li>
222 /// <li>
223 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-ec2.html#restoring-ec2-cli">Metadata for Amazon EC2</a></p></li>
224 /// <li>
225 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-efs.html#efs-restore-cli">Metadata for Amazon EFS</a></p></li>
226 /// <li>
227 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-fsx.html#fsx-restore-cli">Metadata for Amazon FSx</a></p></li>
228 /// <li>
229 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-nep.html#nep-restore-cli">Metadata for Amazon Neptune</a></p></li>
230 /// <li>
231 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-rds.html#rds-restore-cli">Metadata for Amazon RDS</a></p></li>
232 /// <li>
233 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/redshift-restores.html#redshift-restore-api">Metadata for Amazon Redshift</a></p></li>
234 /// <li>
235 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-storage-gateway.html#restoring-sgw-cli">Metadata for Storage Gateway</a></p></li>
236 /// <li>
237 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-s3.html#s3-restore-cli">Metadata for Amazon S3</a></p></li>
238 /// <li>
239 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/timestream-restore.html#timestream-restore-api">Metadata for Amazon Timestream</a></p></li>
240 /// <li>
241 /// <p><a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-vm.html#vm-restore-cli">Metadata for virtual machines</a></p></li>
242 /// </ul>
243 pub fn get_metadata(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
244 self.inner.get_metadata()
245 }
246 /// <p>The Amazon Resource Name (ARN) of the IAM role that Backup uses to create the target resource; for example: <code>arn:aws:iam::123456789012:role/S3Access</code>.</p>
247 pub fn iam_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
248 self.inner = self.inner.iam_role_arn(input.into());
249 self
250 }
251 /// <p>The Amazon Resource Name (ARN) of the IAM role that Backup uses to create the target resource; for example: <code>arn:aws:iam::123456789012:role/S3Access</code>.</p>
252 pub fn set_iam_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
253 self.inner = self.inner.set_iam_role_arn(input);
254 self
255 }
256 /// <p>The Amazon Resource Name (ARN) of the IAM role that Backup uses to create the target resource; for example: <code>arn:aws:iam::123456789012:role/S3Access</code>.</p>
257 pub fn get_iam_role_arn(&self) -> &::std::option::Option<::std::string::String> {
258 self.inner.get_iam_role_arn()
259 }
260 /// <p>A customer-chosen string that you can use to distinguish between otherwise identical calls to <code>StartRestoreJob</code>. Retrying a successful request with the same idempotency token results in a success message with no action taken.</p>
261 pub fn idempotency_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
262 self.inner = self.inner.idempotency_token(input.into());
263 self
264 }
265 /// <p>A customer-chosen string that you can use to distinguish between otherwise identical calls to <code>StartRestoreJob</code>. Retrying a successful request with the same idempotency token results in a success message with no action taken.</p>
266 pub fn set_idempotency_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
267 self.inner = self.inner.set_idempotency_token(input);
268 self
269 }
270 /// <p>A customer-chosen string that you can use to distinguish between otherwise identical calls to <code>StartRestoreJob</code>. Retrying a successful request with the same idempotency token results in a success message with no action taken.</p>
271 pub fn get_idempotency_token(&self) -> &::std::option::Option<::std::string::String> {
272 self.inner.get_idempotency_token()
273 }
274 /// <p>Starts a job to restore a recovery point for one of the following resources:</p>
275 /// <ul>
276 /// <li>
277 /// <p><code>Aurora</code> - Amazon Aurora</p></li>
278 /// <li>
279 /// <p><code>DocumentDB</code> - Amazon DocumentDB</p></li>
280 /// <li>
281 /// <p><code>CloudFormation</code> - CloudFormation</p></li>
282 /// <li>
283 /// <p><code>DynamoDB</code> - Amazon DynamoDB</p></li>
284 /// <li>
285 /// <p><code>EBS</code> - Amazon Elastic Block Store</p></li>
286 /// <li>
287 /// <p><code>EC2</code> - Amazon Elastic Compute Cloud</p></li>
288 /// <li>
289 /// <p><code>EFS</code> - Amazon Elastic File System</p></li>
290 /// <li>
291 /// <p><code>FSx</code> - Amazon FSx</p></li>
292 /// <li>
293 /// <p><code>Neptune</code> - Amazon Neptune</p></li>
294 /// <li>
295 /// <p><code>RDS</code> - Amazon Relational Database Service</p></li>
296 /// <li>
297 /// <p><code>Redshift</code> - Amazon Redshift</p></li>
298 /// <li>
299 /// <p><code>Storage Gateway</code> - Storage Gateway</p></li>
300 /// <li>
301 /// <p><code>S3</code> - Amazon Simple Storage Service</p></li>
302 /// <li>
303 /// <p><code>Timestream</code> - Amazon Timestream</p></li>
304 /// <li>
305 /// <p><code>VirtualMachine</code> - Virtual machines</p></li>
306 /// </ul>
307 pub fn resource_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
308 self.inner = self.inner.resource_type(input.into());
309 self
310 }
311 /// <p>Starts a job to restore a recovery point for one of the following resources:</p>
312 /// <ul>
313 /// <li>
314 /// <p><code>Aurora</code> - Amazon Aurora</p></li>
315 /// <li>
316 /// <p><code>DocumentDB</code> - Amazon DocumentDB</p></li>
317 /// <li>
318 /// <p><code>CloudFormation</code> - CloudFormation</p></li>
319 /// <li>
320 /// <p><code>DynamoDB</code> - Amazon DynamoDB</p></li>
321 /// <li>
322 /// <p><code>EBS</code> - Amazon Elastic Block Store</p></li>
323 /// <li>
324 /// <p><code>EC2</code> - Amazon Elastic Compute Cloud</p></li>
325 /// <li>
326 /// <p><code>EFS</code> - Amazon Elastic File System</p></li>
327 /// <li>
328 /// <p><code>FSx</code> - Amazon FSx</p></li>
329 /// <li>
330 /// <p><code>Neptune</code> - Amazon Neptune</p></li>
331 /// <li>
332 /// <p><code>RDS</code> - Amazon Relational Database Service</p></li>
333 /// <li>
334 /// <p><code>Redshift</code> - Amazon Redshift</p></li>
335 /// <li>
336 /// <p><code>Storage Gateway</code> - Storage Gateway</p></li>
337 /// <li>
338 /// <p><code>S3</code> - Amazon Simple Storage Service</p></li>
339 /// <li>
340 /// <p><code>Timestream</code> - Amazon Timestream</p></li>
341 /// <li>
342 /// <p><code>VirtualMachine</code> - Virtual machines</p></li>
343 /// </ul>
344 pub fn set_resource_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
345 self.inner = self.inner.set_resource_type(input);
346 self
347 }
348 /// <p>Starts a job to restore a recovery point for one of the following resources:</p>
349 /// <ul>
350 /// <li>
351 /// <p><code>Aurora</code> - Amazon Aurora</p></li>
352 /// <li>
353 /// <p><code>DocumentDB</code> - Amazon DocumentDB</p></li>
354 /// <li>
355 /// <p><code>CloudFormation</code> - CloudFormation</p></li>
356 /// <li>
357 /// <p><code>DynamoDB</code> - Amazon DynamoDB</p></li>
358 /// <li>
359 /// <p><code>EBS</code> - Amazon Elastic Block Store</p></li>
360 /// <li>
361 /// <p><code>EC2</code> - Amazon Elastic Compute Cloud</p></li>
362 /// <li>
363 /// <p><code>EFS</code> - Amazon Elastic File System</p></li>
364 /// <li>
365 /// <p><code>FSx</code> - Amazon FSx</p></li>
366 /// <li>
367 /// <p><code>Neptune</code> - Amazon Neptune</p></li>
368 /// <li>
369 /// <p><code>RDS</code> - Amazon Relational Database Service</p></li>
370 /// <li>
371 /// <p><code>Redshift</code> - Amazon Redshift</p></li>
372 /// <li>
373 /// <p><code>Storage Gateway</code> - Storage Gateway</p></li>
374 /// <li>
375 /// <p><code>S3</code> - Amazon Simple Storage Service</p></li>
376 /// <li>
377 /// <p><code>Timestream</code> - Amazon Timestream</p></li>
378 /// <li>
379 /// <p><code>VirtualMachine</code> - Virtual machines</p></li>
380 /// </ul>
381 pub fn get_resource_type(&self) -> &::std::option::Option<::std::string::String> {
382 self.inner.get_resource_type()
383 }
384 /// <p>This is an optional parameter. If this equals <code>True</code>, tags included in the backup will be copied to the restored resource.</p>
385 /// <p>This can only be applied to backups created through Backup.</p>
386 pub fn copy_source_tags_to_restored_resource(mut self, input: bool) -> Self {
387 self.inner = self.inner.copy_source_tags_to_restored_resource(input);
388 self
389 }
390 /// <p>This is an optional parameter. If this equals <code>True</code>, tags included in the backup will be copied to the restored resource.</p>
391 /// <p>This can only be applied to backups created through Backup.</p>
392 pub fn set_copy_source_tags_to_restored_resource(mut self, input: ::std::option::Option<bool>) -> Self {
393 self.inner = self.inner.set_copy_source_tags_to_restored_resource(input);
394 self
395 }
396 /// <p>This is an optional parameter. If this equals <code>True</code>, tags included in the backup will be copied to the restored resource.</p>
397 /// <p>This can only be applied to backups created through Backup.</p>
398 pub fn get_copy_source_tags_to_restored_resource(&self) -> &::std::option::Option<bool> {
399 self.inner.get_copy_source_tags_to_restored_resource()
400 }
401}