1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Contains the details of a snapshot or cluster export to Amazon S3.</p>
/// <p>This data type is used as a response element in the <code>DescribeExportTasks</code> operation.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct StartExportTaskOutput {
    /// <p>A unique identifier for the snapshot or cluster export task. This ID isn't an identifier for the Amazon S3 bucket where the data is exported.</p>
    pub export_task_identifier: ::std::option::Option<::std::string::String>,
    /// <p>The Amazon Resource Name (ARN) of the snapshot or cluster exported to Amazon S3.</p>
    pub source_arn: ::std::option::Option<::std::string::String>,
    /// <p>The data exported from the snapshot or cluster.</p>
    /// <p>Valid Values:</p>
    /// <ul>
    /// <li>
    /// <p><code>database</code> - Export all the data from a specified database.</p></li>
    /// <li>
    /// <p><code>database.table</code> <i>table-name</i> - Export a table of the snapshot or cluster. This format is valid only for RDS for MySQL, RDS for MariaDB, and Aurora MySQL.</p></li>
    /// <li>
    /// <p><code>database.schema</code> <i>schema-name</i> - Export a database schema of the snapshot or cluster. This format is valid only for RDS for PostgreSQL and Aurora PostgreSQL.</p></li>
    /// <li>
    /// <p><code>database.schema.table</code> <i>table-name</i> - Export a table of the database schema. This format is valid only for RDS for PostgreSQL and Aurora PostgreSQL.</p></li>
    /// </ul>
    pub export_only: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    /// <p>The time when the snapshot was created.</p>
    pub snapshot_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The time when the snapshot or cluster export task started.</p>
    pub task_start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The time when the snapshot or cluster export task ended.</p>
    pub task_end_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The Amazon S3 bucket where the snapshot or cluster is exported to.</p>
    pub s3_bucket: ::std::option::Option<::std::string::String>,
    /// <p>The Amazon S3 bucket prefix that is the file name and path of the exported data.</p>
    pub s3_prefix: ::std::option::Option<::std::string::String>,
    /// <p>The name of the IAM role that is used to write to Amazon S3 when exporting a snapshot or cluster.</p>
    pub iam_role_arn: ::std::option::Option<::std::string::String>,
    /// <p>The key identifier of the Amazon Web Services KMS key that is used to encrypt the data when it's exported to Amazon S3. The KMS key identifier is its key ARN, key ID, alias ARN, or alias name. The IAM role used for the export must have encryption and decryption permissions to use this KMS key.</p>
    pub kms_key_id: ::std::option::Option<::std::string::String>,
    /// <p>The progress status of the export task. The status can be one of the following:</p>
    /// <ul>
    /// <li>
    /// <p><code>CANCELED</code></p></li>
    /// <li>
    /// <p><code>CANCELING</code></p></li>
    /// <li>
    /// <p><code>COMPLETE</code></p></li>
    /// <li>
    /// <p><code>FAILED</code></p></li>
    /// <li>
    /// <p><code>IN_PROGRESS</code></p></li>
    /// <li>
    /// <p><code>STARTING</code></p></li>
    /// </ul>
    pub status: ::std::option::Option<::std::string::String>,
    /// <p>The progress of the snapshot or cluster export task as a percentage.</p>
    pub percent_progress: ::std::option::Option<i32>,
    /// <p>The total amount of data exported, in gigabytes.</p>
    pub total_extracted_data_in_gb: ::std::option::Option<i32>,
    /// <p>The reason the export failed, if it failed.</p>
    pub failure_cause: ::std::option::Option<::std::string::String>,
    /// <p>A warning about the snapshot or cluster export task.</p>
    pub warning_message: ::std::option::Option<::std::string::String>,
    /// <p>The type of source for the export.</p>
    pub source_type: ::std::option::Option<crate::types::ExportSourceType>,
    _request_id: Option<String>,
}
impl StartExportTaskOutput {
    /// <p>A unique identifier for the snapshot or cluster export task. This ID isn't an identifier for the Amazon S3 bucket where the data is exported.</p>
    pub fn export_task_identifier(&self) -> ::std::option::Option<&str> {
        self.export_task_identifier.as_deref()
    }
    /// <p>The Amazon Resource Name (ARN) of the snapshot or cluster exported to Amazon S3.</p>
    pub fn source_arn(&self) -> ::std::option::Option<&str> {
        self.source_arn.as_deref()
    }
    /// <p>The data exported from the snapshot or cluster.</p>
    /// <p>Valid Values:</p>
    /// <ul>
    /// <li>
    /// <p><code>database</code> - Export all the data from a specified database.</p></li>
    /// <li>
    /// <p><code>database.table</code> <i>table-name</i> - Export a table of the snapshot or cluster. This format is valid only for RDS for MySQL, RDS for MariaDB, and Aurora MySQL.</p></li>
    /// <li>
    /// <p><code>database.schema</code> <i>schema-name</i> - Export a database schema of the snapshot or cluster. This format is valid only for RDS for PostgreSQL and Aurora PostgreSQL.</p></li>
    /// <li>
    /// <p><code>database.schema.table</code> <i>table-name</i> - Export a table of the database schema. This format is valid only for RDS for PostgreSQL and Aurora PostgreSQL.</p></li>
    /// </ul>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.export_only.is_none()`.
    pub fn export_only(&self) -> &[::std::string::String] {
        self.export_only.as_deref().unwrap_or_default()
    }
    /// <p>The time when the snapshot was created.</p>
    pub fn snapshot_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.snapshot_time.as_ref()
    }
    /// <p>The time when the snapshot or cluster export task started.</p>
    pub fn task_start_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.task_start_time.as_ref()
    }
    /// <p>The time when the snapshot or cluster export task ended.</p>
    pub fn task_end_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.task_end_time.as_ref()
    }
    /// <p>The Amazon S3 bucket where the snapshot or cluster is exported to.</p>
    pub fn s3_bucket(&self) -> ::std::option::Option<&str> {
        self.s3_bucket.as_deref()
    }
    /// <p>The Amazon S3 bucket prefix that is the file name and path of the exported data.</p>
    pub fn s3_prefix(&self) -> ::std::option::Option<&str> {
        self.s3_prefix.as_deref()
    }
    /// <p>The name of the IAM role that is used to write to Amazon S3 when exporting a snapshot or cluster.</p>
    pub fn iam_role_arn(&self) -> ::std::option::Option<&str> {
        self.iam_role_arn.as_deref()
    }
    /// <p>The key identifier of the Amazon Web Services KMS key that is used to encrypt the data when it's exported to Amazon S3. The KMS key identifier is its key ARN, key ID, alias ARN, or alias name. The IAM role used for the export must have encryption and decryption permissions to use this KMS key.</p>
    pub fn kms_key_id(&self) -> ::std::option::Option<&str> {
        self.kms_key_id.as_deref()
    }
    /// <p>The progress status of the export task. The status can be one of the following:</p>
    /// <ul>
    /// <li>
    /// <p><code>CANCELED</code></p></li>
    /// <li>
    /// <p><code>CANCELING</code></p></li>
    /// <li>
    /// <p><code>COMPLETE</code></p></li>
    /// <li>
    /// <p><code>FAILED</code></p></li>
    /// <li>
    /// <p><code>IN_PROGRESS</code></p></li>
    /// <li>
    /// <p><code>STARTING</code></p></li>
    /// </ul>
    pub fn status(&self) -> ::std::option::Option<&str> {
        self.status.as_deref()
    }
    /// <p>The progress of the snapshot or cluster export task as a percentage.</p>
    pub fn percent_progress(&self) -> ::std::option::Option<i32> {
        self.percent_progress
    }
    /// <p>The total amount of data exported, in gigabytes.</p>
    pub fn total_extracted_data_in_gb(&self) -> ::std::option::Option<i32> {
        self.total_extracted_data_in_gb
    }
    /// <p>The reason the export failed, if it failed.</p>
    pub fn failure_cause(&self) -> ::std::option::Option<&str> {
        self.failure_cause.as_deref()
    }
    /// <p>A warning about the snapshot or cluster export task.</p>
    pub fn warning_message(&self) -> ::std::option::Option<&str> {
        self.warning_message.as_deref()
    }
    /// <p>The type of source for the export.</p>
    pub fn source_type(&self) -> ::std::option::Option<&crate::types::ExportSourceType> {
        self.source_type.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for StartExportTaskOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl StartExportTaskOutput {
    /// Creates a new builder-style object to manufacture [`StartExportTaskOutput`](crate::operation::start_export_task::StartExportTaskOutput).
    pub fn builder() -> crate::operation::start_export_task::builders::StartExportTaskOutputBuilder {
        crate::operation::start_export_task::builders::StartExportTaskOutputBuilder::default()
    }
}

/// A builder for [`StartExportTaskOutput`](crate::operation::start_export_task::StartExportTaskOutput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct StartExportTaskOutputBuilder {
    pub(crate) export_task_identifier: ::std::option::Option<::std::string::String>,
    pub(crate) source_arn: ::std::option::Option<::std::string::String>,
    pub(crate) export_only: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    pub(crate) snapshot_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) task_start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) task_end_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) s3_bucket: ::std::option::Option<::std::string::String>,
    pub(crate) s3_prefix: ::std::option::Option<::std::string::String>,
    pub(crate) iam_role_arn: ::std::option::Option<::std::string::String>,
    pub(crate) kms_key_id: ::std::option::Option<::std::string::String>,
    pub(crate) status: ::std::option::Option<::std::string::String>,
    pub(crate) percent_progress: ::std::option::Option<i32>,
    pub(crate) total_extracted_data_in_gb: ::std::option::Option<i32>,
    pub(crate) failure_cause: ::std::option::Option<::std::string::String>,
    pub(crate) warning_message: ::std::option::Option<::std::string::String>,
    pub(crate) source_type: ::std::option::Option<crate::types::ExportSourceType>,
    _request_id: Option<String>,
}
impl StartExportTaskOutputBuilder {
    /// <p>A unique identifier for the snapshot or cluster export task. This ID isn't an identifier for the Amazon S3 bucket where the data is exported.</p>
    pub fn export_task_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.export_task_identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A unique identifier for the snapshot or cluster export task. This ID isn't an identifier for the Amazon S3 bucket where the data is exported.</p>
    pub fn set_export_task_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.export_task_identifier = input;
        self
    }
    /// <p>A unique identifier for the snapshot or cluster export task. This ID isn't an identifier for the Amazon S3 bucket where the data is exported.</p>
    pub fn get_export_task_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.export_task_identifier
    }
    /// <p>The Amazon Resource Name (ARN) of the snapshot or cluster exported to Amazon S3.</p>
    pub fn source_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.source_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the snapshot or cluster exported to Amazon S3.</p>
    pub fn set_source_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.source_arn = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the snapshot or cluster exported to Amazon S3.</p>
    pub fn get_source_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.source_arn
    }
    /// Appends an item to `export_only`.
    ///
    /// To override the contents of this collection use [`set_export_only`](Self::set_export_only).
    ///
    /// <p>The data exported from the snapshot or cluster.</p>
    /// <p>Valid Values:</p>
    /// <ul>
    /// <li>
    /// <p><code>database</code> - Export all the data from a specified database.</p></li>
    /// <li>
    /// <p><code>database.table</code> <i>table-name</i> - Export a table of the snapshot or cluster. This format is valid only for RDS for MySQL, RDS for MariaDB, and Aurora MySQL.</p></li>
    /// <li>
    /// <p><code>database.schema</code> <i>schema-name</i> - Export a database schema of the snapshot or cluster. This format is valid only for RDS for PostgreSQL and Aurora PostgreSQL.</p></li>
    /// <li>
    /// <p><code>database.schema.table</code> <i>table-name</i> - Export a table of the database schema. This format is valid only for RDS for PostgreSQL and Aurora PostgreSQL.</p></li>
    /// </ul>
    pub fn export_only(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.export_only.unwrap_or_default();
        v.push(input.into());
        self.export_only = ::std::option::Option::Some(v);
        self
    }
    /// <p>The data exported from the snapshot or cluster.</p>
    /// <p>Valid Values:</p>
    /// <ul>
    /// <li>
    /// <p><code>database</code> - Export all the data from a specified database.</p></li>
    /// <li>
    /// <p><code>database.table</code> <i>table-name</i> - Export a table of the snapshot or cluster. This format is valid only for RDS for MySQL, RDS for MariaDB, and Aurora MySQL.</p></li>
    /// <li>
    /// <p><code>database.schema</code> <i>schema-name</i> - Export a database schema of the snapshot or cluster. This format is valid only for RDS for PostgreSQL and Aurora PostgreSQL.</p></li>
    /// <li>
    /// <p><code>database.schema.table</code> <i>table-name</i> - Export a table of the database schema. This format is valid only for RDS for PostgreSQL and Aurora PostgreSQL.</p></li>
    /// </ul>
    pub fn set_export_only(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.export_only = input;
        self
    }
    /// <p>The data exported from the snapshot or cluster.</p>
    /// <p>Valid Values:</p>
    /// <ul>
    /// <li>
    /// <p><code>database</code> - Export all the data from a specified database.</p></li>
    /// <li>
    /// <p><code>database.table</code> <i>table-name</i> - Export a table of the snapshot or cluster. This format is valid only for RDS for MySQL, RDS for MariaDB, and Aurora MySQL.</p></li>
    /// <li>
    /// <p><code>database.schema</code> <i>schema-name</i> - Export a database schema of the snapshot or cluster. This format is valid only for RDS for PostgreSQL and Aurora PostgreSQL.</p></li>
    /// <li>
    /// <p><code>database.schema.table</code> <i>table-name</i> - Export a table of the database schema. This format is valid only for RDS for PostgreSQL and Aurora PostgreSQL.</p></li>
    /// </ul>
    pub fn get_export_only(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.export_only
    }
    /// <p>The time when the snapshot was created.</p>
    pub fn snapshot_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.snapshot_time = ::std::option::Option::Some(input);
        self
    }
    /// <p>The time when the snapshot was created.</p>
    pub fn set_snapshot_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.snapshot_time = input;
        self
    }
    /// <p>The time when the snapshot was created.</p>
    pub fn get_snapshot_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.snapshot_time
    }
    /// <p>The time when the snapshot or cluster export task started.</p>
    pub fn task_start_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.task_start_time = ::std::option::Option::Some(input);
        self
    }
    /// <p>The time when the snapshot or cluster export task started.</p>
    pub fn set_task_start_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.task_start_time = input;
        self
    }
    /// <p>The time when the snapshot or cluster export task started.</p>
    pub fn get_task_start_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.task_start_time
    }
    /// <p>The time when the snapshot or cluster export task ended.</p>
    pub fn task_end_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.task_end_time = ::std::option::Option::Some(input);
        self
    }
    /// <p>The time when the snapshot or cluster export task ended.</p>
    pub fn set_task_end_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.task_end_time = input;
        self
    }
    /// <p>The time when the snapshot or cluster export task ended.</p>
    pub fn get_task_end_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.task_end_time
    }
    /// <p>The Amazon S3 bucket where the snapshot or cluster is exported to.</p>
    pub fn s3_bucket(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.s3_bucket = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon S3 bucket where the snapshot or cluster is exported to.</p>
    pub fn set_s3_bucket(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.s3_bucket = input;
        self
    }
    /// <p>The Amazon S3 bucket where the snapshot or cluster is exported to.</p>
    pub fn get_s3_bucket(&self) -> &::std::option::Option<::std::string::String> {
        &self.s3_bucket
    }
    /// <p>The Amazon S3 bucket prefix that is the file name and path of the exported data.</p>
    pub fn s3_prefix(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.s3_prefix = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon S3 bucket prefix that is the file name and path of the exported data.</p>
    pub fn set_s3_prefix(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.s3_prefix = input;
        self
    }
    /// <p>The Amazon S3 bucket prefix that is the file name and path of the exported data.</p>
    pub fn get_s3_prefix(&self) -> &::std::option::Option<::std::string::String> {
        &self.s3_prefix
    }
    /// <p>The name of the IAM role that is used to write to Amazon S3 when exporting a snapshot or cluster.</p>
    pub fn iam_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.iam_role_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the IAM role that is used to write to Amazon S3 when exporting a snapshot or cluster.</p>
    pub fn set_iam_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.iam_role_arn = input;
        self
    }
    /// <p>The name of the IAM role that is used to write to Amazon S3 when exporting a snapshot or cluster.</p>
    pub fn get_iam_role_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.iam_role_arn
    }
    /// <p>The key identifier of the Amazon Web Services KMS key that is used to encrypt the data when it's exported to Amazon S3. The KMS key identifier is its key ARN, key ID, alias ARN, or alias name. The IAM role used for the export must have encryption and decryption permissions to use this KMS key.</p>
    pub fn kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.kms_key_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The key identifier of the Amazon Web Services KMS key that is used to encrypt the data when it's exported to Amazon S3. The KMS key identifier is its key ARN, key ID, alias ARN, or alias name. The IAM role used for the export must have encryption and decryption permissions to use this KMS key.</p>
    pub fn set_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.kms_key_id = input;
        self
    }
    /// <p>The key identifier of the Amazon Web Services KMS key that is used to encrypt the data when it's exported to Amazon S3. The KMS key identifier is its key ARN, key ID, alias ARN, or alias name. The IAM role used for the export must have encryption and decryption permissions to use this KMS key.</p>
    pub fn get_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.kms_key_id
    }
    /// <p>The progress status of the export task. The status can be one of the following:</p>
    /// <ul>
    /// <li>
    /// <p><code>CANCELED</code></p></li>
    /// <li>
    /// <p><code>CANCELING</code></p></li>
    /// <li>
    /// <p><code>COMPLETE</code></p></li>
    /// <li>
    /// <p><code>FAILED</code></p></li>
    /// <li>
    /// <p><code>IN_PROGRESS</code></p></li>
    /// <li>
    /// <p><code>STARTING</code></p></li>
    /// </ul>
    pub fn status(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.status = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The progress status of the export task. The status can be one of the following:</p>
    /// <ul>
    /// <li>
    /// <p><code>CANCELED</code></p></li>
    /// <li>
    /// <p><code>CANCELING</code></p></li>
    /// <li>
    /// <p><code>COMPLETE</code></p></li>
    /// <li>
    /// <p><code>FAILED</code></p></li>
    /// <li>
    /// <p><code>IN_PROGRESS</code></p></li>
    /// <li>
    /// <p><code>STARTING</code></p></li>
    /// </ul>
    pub fn set_status(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.status = input;
        self
    }
    /// <p>The progress status of the export task. The status can be one of the following:</p>
    /// <ul>
    /// <li>
    /// <p><code>CANCELED</code></p></li>
    /// <li>
    /// <p><code>CANCELING</code></p></li>
    /// <li>
    /// <p><code>COMPLETE</code></p></li>
    /// <li>
    /// <p><code>FAILED</code></p></li>
    /// <li>
    /// <p><code>IN_PROGRESS</code></p></li>
    /// <li>
    /// <p><code>STARTING</code></p></li>
    /// </ul>
    pub fn get_status(&self) -> &::std::option::Option<::std::string::String> {
        &self.status
    }
    /// <p>The progress of the snapshot or cluster export task as a percentage.</p>
    pub fn percent_progress(mut self, input: i32) -> Self {
        self.percent_progress = ::std::option::Option::Some(input);
        self
    }
    /// <p>The progress of the snapshot or cluster export task as a percentage.</p>
    pub fn set_percent_progress(mut self, input: ::std::option::Option<i32>) -> Self {
        self.percent_progress = input;
        self
    }
    /// <p>The progress of the snapshot or cluster export task as a percentage.</p>
    pub fn get_percent_progress(&self) -> &::std::option::Option<i32> {
        &self.percent_progress
    }
    /// <p>The total amount of data exported, in gigabytes.</p>
    pub fn total_extracted_data_in_gb(mut self, input: i32) -> Self {
        self.total_extracted_data_in_gb = ::std::option::Option::Some(input);
        self
    }
    /// <p>The total amount of data exported, in gigabytes.</p>
    pub fn set_total_extracted_data_in_gb(mut self, input: ::std::option::Option<i32>) -> Self {
        self.total_extracted_data_in_gb = input;
        self
    }
    /// <p>The total amount of data exported, in gigabytes.</p>
    pub fn get_total_extracted_data_in_gb(&self) -> &::std::option::Option<i32> {
        &self.total_extracted_data_in_gb
    }
    /// <p>The reason the export failed, if it failed.</p>
    pub fn failure_cause(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.failure_cause = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The reason the export failed, if it failed.</p>
    pub fn set_failure_cause(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.failure_cause = input;
        self
    }
    /// <p>The reason the export failed, if it failed.</p>
    pub fn get_failure_cause(&self) -> &::std::option::Option<::std::string::String> {
        &self.failure_cause
    }
    /// <p>A warning about the snapshot or cluster export task.</p>
    pub fn warning_message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.warning_message = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A warning about the snapshot or cluster export task.</p>
    pub fn set_warning_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.warning_message = input;
        self
    }
    /// <p>A warning about the snapshot or cluster export task.</p>
    pub fn get_warning_message(&self) -> &::std::option::Option<::std::string::String> {
        &self.warning_message
    }
    /// <p>The type of source for the export.</p>
    pub fn source_type(mut self, input: crate::types::ExportSourceType) -> Self {
        self.source_type = ::std::option::Option::Some(input);
        self
    }
    /// <p>The type of source for the export.</p>
    pub fn set_source_type(mut self, input: ::std::option::Option<crate::types::ExportSourceType>) -> Self {
        self.source_type = input;
        self
    }
    /// <p>The type of source for the export.</p>
    pub fn get_source_type(&self) -> &::std::option::Option<crate::types::ExportSourceType> {
        &self.source_type
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`StartExportTaskOutput`](crate::operation::start_export_task::StartExportTaskOutput).
    pub fn build(self) -> crate::operation::start_export_task::StartExportTaskOutput {
        crate::operation::start_export_task::StartExportTaskOutput {
            export_task_identifier: self.export_task_identifier,
            source_arn: self.source_arn,
            export_only: self.export_only,
            snapshot_time: self.snapshot_time,
            task_start_time: self.task_start_time,
            task_end_time: self.task_end_time,
            s3_bucket: self.s3_bucket,
            s3_prefix: self.s3_prefix,
            iam_role_arn: self.iam_role_arn,
            kms_key_id: self.kms_key_id,
            status: self.status,
            percent_progress: self.percent_progress,
            total_extracted_data_in_gb: self.total_extracted_data_in_gb,
            failure_cause: self.failure_cause,
            warning_message: self.warning_message,
            source_type: self.source_type,
            _request_id: self._request_id,
        }
    }
}