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
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>Describes a snapshot.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Snapshot {
/// <p>The snapshot identifier that is provided in the request.</p>
pub snapshot_identifier: ::std::option::Option<::std::string::String>,
/// <p>The identifier of the cluster for which the snapshot was taken.</p>
pub cluster_identifier: ::std::option::Option<::std::string::String>,
/// <p>The time (in UTC format) when Amazon Redshift began the snapshot. A snapshot contains a copy of the cluster data as of this exact time.</p>
pub snapshot_create_time: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>The snapshot status. The value of the status depends on the API operation used:</p>
/// <ul>
/// <li>
/// <p><code>CreateClusterSnapshot</code> and <code>CopyClusterSnapshot</code> returns status as "creating".</p></li>
/// <li>
/// <p><code>DescribeClusterSnapshots</code> returns status as "creating", "available", "final snapshot", or "failed".</p></li>
/// <li>
/// <p><code>DeleteClusterSnapshot</code> returns status as "deleted".</p></li>
/// </ul>
pub status: ::std::option::Option<::std::string::String>,
/// <p>The port that the cluster is listening on.</p>
pub port: ::std::option::Option<i32>,
/// <p>The Availability Zone in which the cluster was created.</p>
pub availability_zone: ::std::option::Option<::std::string::String>,
/// <p>The time (UTC) when the cluster was originally created.</p>
pub cluster_create_time: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>The admin user name for the cluster.</p>
pub master_username: ::std::option::Option<::std::string::String>,
/// <p>The version ID of the Amazon Redshift engine that is running on the cluster.</p>
pub cluster_version: ::std::option::Option<::std::string::String>,
/// <p>The cluster version of the cluster used to create the snapshot. For example, 1.0.15503.</p>
pub engine_full_version: ::std::option::Option<::std::string::String>,
/// <p>The snapshot type. Snapshots created using <code>CreateClusterSnapshot</code> and <code>CopyClusterSnapshot</code> are of type "manual".</p>
pub snapshot_type: ::std::option::Option<::std::string::String>,
/// <p>The node type of the nodes in the cluster.</p>
pub node_type: ::std::option::Option<::std::string::String>,
/// <p>The number of nodes in the cluster.</p>
pub number_of_nodes: ::std::option::Option<i32>,
/// <p>The name of the database that was created when the cluster was created.</p>
pub db_name: ::std::option::Option<::std::string::String>,
/// <p>The VPC identifier of the cluster if the snapshot is from a cluster in a VPC. Otherwise, this field is not in the output.</p>
pub vpc_id: ::std::option::Option<::std::string::String>,
/// <p>If <code>true</code>, the data in the snapshot is encrypted at rest.</p>
pub encrypted: ::std::option::Option<bool>,
/// <p>The Key Management Service (KMS) key ID of the encryption key that was used to encrypt data in the cluster from which the snapshot was taken.</p>
pub kms_key_id: ::std::option::Option<::std::string::String>,
/// <p>A boolean that indicates whether the snapshot data is encrypted using the HSM keys of the source cluster. <code>true</code> indicates that the data is encrypted using HSM keys.</p>
pub encrypted_with_hsm: ::std::option::Option<bool>,
/// <p>A list of the Amazon Web Services accounts authorized to restore the snapshot. Returns <code>null</code> if no accounts are authorized. Visible only to the snapshot owner.</p>
pub accounts_with_restore_access: ::std::option::Option<::std::vec::Vec<crate::types::AccountWithRestoreAccess>>,
/// <p>For manual snapshots, the Amazon Web Services account used to create or copy the snapshot. For automatic snapshots, the owner of the cluster. The owner can perform all snapshot actions, such as sharing a manual snapshot.</p>
pub owner_account: ::std::option::Option<::std::string::String>,
/// <p>The size of the complete set of backup data that would be used to restore the cluster.</p>
pub total_backup_size_in_mega_bytes: ::std::option::Option<f64>,
/// <p>The size of the incremental backup.</p>
pub actual_incremental_backup_size_in_mega_bytes: ::std::option::Option<f64>,
/// <p>The number of megabytes that have been transferred to the snapshot backup.</p>
pub backup_progress_in_mega_bytes: ::std::option::Option<f64>,
/// <p>The number of megabytes per second being transferred to the snapshot backup. Returns <code>0</code> for a completed backup.</p>
pub current_backup_rate_in_mega_bytes_per_second: ::std::option::Option<f64>,
/// <p>The estimate of the time remaining before the snapshot backup will complete. Returns <code>0</code> for a completed backup.</p>
pub estimated_seconds_to_completion: ::std::option::Option<i64>,
/// <p>The amount of time an in-progress snapshot backup has been running, or the amount of time it took a completed backup to finish.</p>
pub elapsed_time_in_seconds: ::std::option::Option<i64>,
/// <p>The source region from which the snapshot was copied.</p>
pub source_region: ::std::option::Option<::std::string::String>,
/// <p>The list of tags for the cluster snapshot.</p>
pub tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
/// <p>The list of node types that this cluster snapshot is able to restore into.</p>
pub restorable_node_types: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
/// <p>An option that specifies whether to create the cluster with enhanced VPC routing enabled. To create a cluster that uses enhanced VPC routing, the cluster must be in a VPC. For more information, see <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/enhanced-vpc-routing.html">Enhanced VPC Routing</a> in the Amazon Redshift Cluster Management Guide.</p>
/// <p>If this option is <code>true</code>, enhanced VPC routing is enabled.</p>
/// <p>Default: false</p>
pub enhanced_vpc_routing: ::std::option::Option<bool>,
/// <p>The name of the maintenance track for the snapshot.</p>
pub maintenance_track_name: ::std::option::Option<::std::string::String>,
/// <p>The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely.</p>
/// <p>The value must be either -1 or an integer between 1 and 3,653.</p>
pub manual_snapshot_retention_period: ::std::option::Option<i32>,
/// <p>The number of days until a manual snapshot will pass its retention period.</p>
pub manual_snapshot_remaining_days: ::std::option::Option<i32>,
/// <p>A timestamp representing the start of the retention period for the snapshot.</p>
pub snapshot_retention_start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>The Amazon Resource Name (ARN) for the cluster's admin user credentials secret.</p>
pub master_password_secret_arn: ::std::option::Option<::std::string::String>,
/// <p>The ID of the Key Management Service (KMS) key used to encrypt and store the cluster's admin credentials secret.</p>
pub master_password_secret_kms_key_id: ::std::option::Option<::std::string::String>,
/// <p>The Amazon Resource Name (ARN) of the snapshot.</p>
pub snapshot_arn: ::std::option::Option<::std::string::String>,
}
impl Snapshot {
/// <p>The snapshot identifier that is provided in the request.</p>
pub fn snapshot_identifier(&self) -> ::std::option::Option<&str> {
self.snapshot_identifier.as_deref()
}
/// <p>The identifier of the cluster for which the snapshot was taken.</p>
pub fn cluster_identifier(&self) -> ::std::option::Option<&str> {
self.cluster_identifier.as_deref()
}
/// <p>The time (in UTC format) when Amazon Redshift began the snapshot. A snapshot contains a copy of the cluster data as of this exact time.</p>
pub fn snapshot_create_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.snapshot_create_time.as_ref()
}
/// <p>The snapshot status. The value of the status depends on the API operation used:</p>
/// <ul>
/// <li>
/// <p><code>CreateClusterSnapshot</code> and <code>CopyClusterSnapshot</code> returns status as "creating".</p></li>
/// <li>
/// <p><code>DescribeClusterSnapshots</code> returns status as "creating", "available", "final snapshot", or "failed".</p></li>
/// <li>
/// <p><code>DeleteClusterSnapshot</code> returns status as "deleted".</p></li>
/// </ul>
pub fn status(&self) -> ::std::option::Option<&str> {
self.status.as_deref()
}
/// <p>The port that the cluster is listening on.</p>
pub fn port(&self) -> ::std::option::Option<i32> {
self.port
}
/// <p>The Availability Zone in which the cluster was created.</p>
pub fn availability_zone(&self) -> ::std::option::Option<&str> {
self.availability_zone.as_deref()
}
/// <p>The time (UTC) when the cluster was originally created.</p>
pub fn cluster_create_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.cluster_create_time.as_ref()
}
/// <p>The admin user name for the cluster.</p>
pub fn master_username(&self) -> ::std::option::Option<&str> {
self.master_username.as_deref()
}
/// <p>The version ID of the Amazon Redshift engine that is running on the cluster.</p>
pub fn cluster_version(&self) -> ::std::option::Option<&str> {
self.cluster_version.as_deref()
}
/// <p>The cluster version of the cluster used to create the snapshot. For example, 1.0.15503.</p>
pub fn engine_full_version(&self) -> ::std::option::Option<&str> {
self.engine_full_version.as_deref()
}
/// <p>The snapshot type. Snapshots created using <code>CreateClusterSnapshot</code> and <code>CopyClusterSnapshot</code> are of type "manual".</p>
pub fn snapshot_type(&self) -> ::std::option::Option<&str> {
self.snapshot_type.as_deref()
}
/// <p>The node type of the nodes in the cluster.</p>
pub fn node_type(&self) -> ::std::option::Option<&str> {
self.node_type.as_deref()
}
/// <p>The number of nodes in the cluster.</p>
pub fn number_of_nodes(&self) -> ::std::option::Option<i32> {
self.number_of_nodes
}
/// <p>The name of the database that was created when the cluster was created.</p>
pub fn db_name(&self) -> ::std::option::Option<&str> {
self.db_name.as_deref()
}
/// <p>The VPC identifier of the cluster if the snapshot is from a cluster in a VPC. Otherwise, this field is not in the output.</p>
pub fn vpc_id(&self) -> ::std::option::Option<&str> {
self.vpc_id.as_deref()
}
/// <p>If <code>true</code>, the data in the snapshot is encrypted at rest.</p>
pub fn encrypted(&self) -> ::std::option::Option<bool> {
self.encrypted
}
/// <p>The Key Management Service (KMS) key ID of the encryption key that was used to encrypt data in the cluster from which the snapshot was taken.</p>
pub fn kms_key_id(&self) -> ::std::option::Option<&str> {
self.kms_key_id.as_deref()
}
/// <p>A boolean that indicates whether the snapshot data is encrypted using the HSM keys of the source cluster. <code>true</code> indicates that the data is encrypted using HSM keys.</p>
pub fn encrypted_with_hsm(&self) -> ::std::option::Option<bool> {
self.encrypted_with_hsm
}
/// <p>A list of the Amazon Web Services accounts authorized to restore the snapshot. Returns <code>null</code> if no accounts are authorized. Visible only to the snapshot owner.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.accounts_with_restore_access.is_none()`.
pub fn accounts_with_restore_access(&self) -> &[crate::types::AccountWithRestoreAccess] {
self.accounts_with_restore_access.as_deref().unwrap_or_default()
}
/// <p>For manual snapshots, the Amazon Web Services account used to create or copy the snapshot. For automatic snapshots, the owner of the cluster. The owner can perform all snapshot actions, such as sharing a manual snapshot.</p>
pub fn owner_account(&self) -> ::std::option::Option<&str> {
self.owner_account.as_deref()
}
/// <p>The size of the complete set of backup data that would be used to restore the cluster.</p>
pub fn total_backup_size_in_mega_bytes(&self) -> ::std::option::Option<f64> {
self.total_backup_size_in_mega_bytes
}
/// <p>The size of the incremental backup.</p>
pub fn actual_incremental_backup_size_in_mega_bytes(&self) -> ::std::option::Option<f64> {
self.actual_incremental_backup_size_in_mega_bytes
}
/// <p>The number of megabytes that have been transferred to the snapshot backup.</p>
pub fn backup_progress_in_mega_bytes(&self) -> ::std::option::Option<f64> {
self.backup_progress_in_mega_bytes
}
/// <p>The number of megabytes per second being transferred to the snapshot backup. Returns <code>0</code> for a completed backup.</p>
pub fn current_backup_rate_in_mega_bytes_per_second(&self) -> ::std::option::Option<f64> {
self.current_backup_rate_in_mega_bytes_per_second
}
/// <p>The estimate of the time remaining before the snapshot backup will complete. Returns <code>0</code> for a completed backup.</p>
pub fn estimated_seconds_to_completion(&self) -> ::std::option::Option<i64> {
self.estimated_seconds_to_completion
}
/// <p>The amount of time an in-progress snapshot backup has been running, or the amount of time it took a completed backup to finish.</p>
pub fn elapsed_time_in_seconds(&self) -> ::std::option::Option<i64> {
self.elapsed_time_in_seconds
}
/// <p>The source region from which the snapshot was copied.</p>
pub fn source_region(&self) -> ::std::option::Option<&str> {
self.source_region.as_deref()
}
/// <p>The list of tags for the cluster snapshot.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.tags.is_none()`.
pub fn tags(&self) -> &[crate::types::Tag] {
self.tags.as_deref().unwrap_or_default()
}
/// <p>The list of node types that this cluster snapshot is able to restore into.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.restorable_node_types.is_none()`.
pub fn restorable_node_types(&self) -> &[::std::string::String] {
self.restorable_node_types.as_deref().unwrap_or_default()
}
/// <p>An option that specifies whether to create the cluster with enhanced VPC routing enabled. To create a cluster that uses enhanced VPC routing, the cluster must be in a VPC. For more information, see <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/enhanced-vpc-routing.html">Enhanced VPC Routing</a> in the Amazon Redshift Cluster Management Guide.</p>
/// <p>If this option is <code>true</code>, enhanced VPC routing is enabled.</p>
/// <p>Default: false</p>
pub fn enhanced_vpc_routing(&self) -> ::std::option::Option<bool> {
self.enhanced_vpc_routing
}
/// <p>The name of the maintenance track for the snapshot.</p>
pub fn maintenance_track_name(&self) -> ::std::option::Option<&str> {
self.maintenance_track_name.as_deref()
}
/// <p>The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely.</p>
/// <p>The value must be either -1 or an integer between 1 and 3,653.</p>
pub fn manual_snapshot_retention_period(&self) -> ::std::option::Option<i32> {
self.manual_snapshot_retention_period
}
/// <p>The number of days until a manual snapshot will pass its retention period.</p>
pub fn manual_snapshot_remaining_days(&self) -> ::std::option::Option<i32> {
self.manual_snapshot_remaining_days
}
/// <p>A timestamp representing the start of the retention period for the snapshot.</p>
pub fn snapshot_retention_start_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.snapshot_retention_start_time.as_ref()
}
/// <p>The Amazon Resource Name (ARN) for the cluster's admin user credentials secret.</p>
pub fn master_password_secret_arn(&self) -> ::std::option::Option<&str> {
self.master_password_secret_arn.as_deref()
}
/// <p>The ID of the Key Management Service (KMS) key used to encrypt and store the cluster's admin credentials secret.</p>
pub fn master_password_secret_kms_key_id(&self) -> ::std::option::Option<&str> {
self.master_password_secret_kms_key_id.as_deref()
}
/// <p>The Amazon Resource Name (ARN) of the snapshot.</p>
pub fn snapshot_arn(&self) -> ::std::option::Option<&str> {
self.snapshot_arn.as_deref()
}
}
impl Snapshot {
/// Creates a new builder-style object to manufacture [`Snapshot`](crate::types::Snapshot).
pub fn builder() -> crate::types::builders::SnapshotBuilder {
crate::types::builders::SnapshotBuilder::default()
}
}
/// A builder for [`Snapshot`](crate::types::Snapshot).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct SnapshotBuilder {
pub(crate) snapshot_identifier: ::std::option::Option<::std::string::String>,
pub(crate) cluster_identifier: ::std::option::Option<::std::string::String>,
pub(crate) snapshot_create_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) status: ::std::option::Option<::std::string::String>,
pub(crate) port: ::std::option::Option<i32>,
pub(crate) availability_zone: ::std::option::Option<::std::string::String>,
pub(crate) cluster_create_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) master_username: ::std::option::Option<::std::string::String>,
pub(crate) cluster_version: ::std::option::Option<::std::string::String>,
pub(crate) engine_full_version: ::std::option::Option<::std::string::String>,
pub(crate) snapshot_type: ::std::option::Option<::std::string::String>,
pub(crate) node_type: ::std::option::Option<::std::string::String>,
pub(crate) number_of_nodes: ::std::option::Option<i32>,
pub(crate) db_name: ::std::option::Option<::std::string::String>,
pub(crate) vpc_id: ::std::option::Option<::std::string::String>,
pub(crate) encrypted: ::std::option::Option<bool>,
pub(crate) kms_key_id: ::std::option::Option<::std::string::String>,
pub(crate) encrypted_with_hsm: ::std::option::Option<bool>,
pub(crate) accounts_with_restore_access: ::std::option::Option<::std::vec::Vec<crate::types::AccountWithRestoreAccess>>,
pub(crate) owner_account: ::std::option::Option<::std::string::String>,
pub(crate) total_backup_size_in_mega_bytes: ::std::option::Option<f64>,
pub(crate) actual_incremental_backup_size_in_mega_bytes: ::std::option::Option<f64>,
pub(crate) backup_progress_in_mega_bytes: ::std::option::Option<f64>,
pub(crate) current_backup_rate_in_mega_bytes_per_second: ::std::option::Option<f64>,
pub(crate) estimated_seconds_to_completion: ::std::option::Option<i64>,
pub(crate) elapsed_time_in_seconds: ::std::option::Option<i64>,
pub(crate) source_region: ::std::option::Option<::std::string::String>,
pub(crate) tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
pub(crate) restorable_node_types: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) enhanced_vpc_routing: ::std::option::Option<bool>,
pub(crate) maintenance_track_name: ::std::option::Option<::std::string::String>,
pub(crate) manual_snapshot_retention_period: ::std::option::Option<i32>,
pub(crate) manual_snapshot_remaining_days: ::std::option::Option<i32>,
pub(crate) snapshot_retention_start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) master_password_secret_arn: ::std::option::Option<::std::string::String>,
pub(crate) master_password_secret_kms_key_id: ::std::option::Option<::std::string::String>,
pub(crate) snapshot_arn: ::std::option::Option<::std::string::String>,
}
impl SnapshotBuilder {
/// <p>The snapshot identifier that is provided in the request.</p>
pub fn snapshot_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.snapshot_identifier = ::std::option::Option::Some(input.into());
self
}
/// <p>The snapshot identifier that is provided in the request.</p>
pub fn set_snapshot_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.snapshot_identifier = input;
self
}
/// <p>The snapshot identifier that is provided in the request.</p>
pub fn get_snapshot_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.snapshot_identifier
}
/// <p>The identifier of the cluster for which the snapshot was taken.</p>
pub fn cluster_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.cluster_identifier = ::std::option::Option::Some(input.into());
self
}
/// <p>The identifier of the cluster for which the snapshot was taken.</p>
pub fn set_cluster_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.cluster_identifier = input;
self
}
/// <p>The identifier of the cluster for which the snapshot was taken.</p>
pub fn get_cluster_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.cluster_identifier
}
/// <p>The time (in UTC format) when Amazon Redshift began the snapshot. A snapshot contains a copy of the cluster data as of this exact time.</p>
pub fn snapshot_create_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.snapshot_create_time = ::std::option::Option::Some(input);
self
}
/// <p>The time (in UTC format) when Amazon Redshift began the snapshot. A snapshot contains a copy of the cluster data as of this exact time.</p>
pub fn set_snapshot_create_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.snapshot_create_time = input;
self
}
/// <p>The time (in UTC format) when Amazon Redshift began the snapshot. A snapshot contains a copy of the cluster data as of this exact time.</p>
pub fn get_snapshot_create_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.snapshot_create_time
}
/// <p>The snapshot status. The value of the status depends on the API operation used:</p>
/// <ul>
/// <li>
/// <p><code>CreateClusterSnapshot</code> and <code>CopyClusterSnapshot</code> returns status as "creating".</p></li>
/// <li>
/// <p><code>DescribeClusterSnapshots</code> returns status as "creating", "available", "final snapshot", or "failed".</p></li>
/// <li>
/// <p><code>DeleteClusterSnapshot</code> returns status as "deleted".</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 snapshot status. The value of the status depends on the API operation used:</p>
/// <ul>
/// <li>
/// <p><code>CreateClusterSnapshot</code> and <code>CopyClusterSnapshot</code> returns status as "creating".</p></li>
/// <li>
/// <p><code>DescribeClusterSnapshots</code> returns status as "creating", "available", "final snapshot", or "failed".</p></li>
/// <li>
/// <p><code>DeleteClusterSnapshot</code> returns status as "deleted".</p></li>
/// </ul>
pub fn set_status(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.status = input;
self
}
/// <p>The snapshot status. The value of the status depends on the API operation used:</p>
/// <ul>
/// <li>
/// <p><code>CreateClusterSnapshot</code> and <code>CopyClusterSnapshot</code> returns status as "creating".</p></li>
/// <li>
/// <p><code>DescribeClusterSnapshots</code> returns status as "creating", "available", "final snapshot", or "failed".</p></li>
/// <li>
/// <p><code>DeleteClusterSnapshot</code> returns status as "deleted".</p></li>
/// </ul>
pub fn get_status(&self) -> &::std::option::Option<::std::string::String> {
&self.status
}
/// <p>The port that the cluster is listening on.</p>
pub fn port(mut self, input: i32) -> Self {
self.port = ::std::option::Option::Some(input);
self
}
/// <p>The port that the cluster is listening on.</p>
pub fn set_port(mut self, input: ::std::option::Option<i32>) -> Self {
self.port = input;
self
}
/// <p>The port that the cluster is listening on.</p>
pub fn get_port(&self) -> &::std::option::Option<i32> {
&self.port
}
/// <p>The Availability Zone in which the cluster was created.</p>
pub fn availability_zone(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.availability_zone = ::std::option::Option::Some(input.into());
self
}
/// <p>The Availability Zone in which the cluster was created.</p>
pub fn set_availability_zone(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.availability_zone = input;
self
}
/// <p>The Availability Zone in which the cluster was created.</p>
pub fn get_availability_zone(&self) -> &::std::option::Option<::std::string::String> {
&self.availability_zone
}
/// <p>The time (UTC) when the cluster was originally created.</p>
pub fn cluster_create_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.cluster_create_time = ::std::option::Option::Some(input);
self
}
/// <p>The time (UTC) when the cluster was originally created.</p>
pub fn set_cluster_create_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.cluster_create_time = input;
self
}
/// <p>The time (UTC) when the cluster was originally created.</p>
pub fn get_cluster_create_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.cluster_create_time
}
/// <p>The admin user name for the cluster.</p>
pub fn master_username(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.master_username = ::std::option::Option::Some(input.into());
self
}
/// <p>The admin user name for the cluster.</p>
pub fn set_master_username(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.master_username = input;
self
}
/// <p>The admin user name for the cluster.</p>
pub fn get_master_username(&self) -> &::std::option::Option<::std::string::String> {
&self.master_username
}
/// <p>The version ID of the Amazon Redshift engine that is running on the cluster.</p>
pub fn cluster_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.cluster_version = ::std::option::Option::Some(input.into());
self
}
/// <p>The version ID of the Amazon Redshift engine that is running on the cluster.</p>
pub fn set_cluster_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.cluster_version = input;
self
}
/// <p>The version ID of the Amazon Redshift engine that is running on the cluster.</p>
pub fn get_cluster_version(&self) -> &::std::option::Option<::std::string::String> {
&self.cluster_version
}
/// <p>The cluster version of the cluster used to create the snapshot. For example, 1.0.15503.</p>
pub fn engine_full_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.engine_full_version = ::std::option::Option::Some(input.into());
self
}
/// <p>The cluster version of the cluster used to create the snapshot. For example, 1.0.15503.</p>
pub fn set_engine_full_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.engine_full_version = input;
self
}
/// <p>The cluster version of the cluster used to create the snapshot. For example, 1.0.15503.</p>
pub fn get_engine_full_version(&self) -> &::std::option::Option<::std::string::String> {
&self.engine_full_version
}
/// <p>The snapshot type. Snapshots created using <code>CreateClusterSnapshot</code> and <code>CopyClusterSnapshot</code> are of type "manual".</p>
pub fn snapshot_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.snapshot_type = ::std::option::Option::Some(input.into());
self
}
/// <p>The snapshot type. Snapshots created using <code>CreateClusterSnapshot</code> and <code>CopyClusterSnapshot</code> are of type "manual".</p>
pub fn set_snapshot_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.snapshot_type = input;
self
}
/// <p>The snapshot type. Snapshots created using <code>CreateClusterSnapshot</code> and <code>CopyClusterSnapshot</code> are of type "manual".</p>
pub fn get_snapshot_type(&self) -> &::std::option::Option<::std::string::String> {
&self.snapshot_type
}
/// <p>The node type of the nodes in the cluster.</p>
pub fn node_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.node_type = ::std::option::Option::Some(input.into());
self
}
/// <p>The node type of the nodes in the cluster.</p>
pub fn set_node_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.node_type = input;
self
}
/// <p>The node type of the nodes in the cluster.</p>
pub fn get_node_type(&self) -> &::std::option::Option<::std::string::String> {
&self.node_type
}
/// <p>The number of nodes in the cluster.</p>
pub fn number_of_nodes(mut self, input: i32) -> Self {
self.number_of_nodes = ::std::option::Option::Some(input);
self
}
/// <p>The number of nodes in the cluster.</p>
pub fn set_number_of_nodes(mut self, input: ::std::option::Option<i32>) -> Self {
self.number_of_nodes = input;
self
}
/// <p>The number of nodes in the cluster.</p>
pub fn get_number_of_nodes(&self) -> &::std::option::Option<i32> {
&self.number_of_nodes
}
/// <p>The name of the database that was created when the cluster was created.</p>
pub fn db_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.db_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the database that was created when the cluster was created.</p>
pub fn set_db_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.db_name = input;
self
}
/// <p>The name of the database that was created when the cluster was created.</p>
pub fn get_db_name(&self) -> &::std::option::Option<::std::string::String> {
&self.db_name
}
/// <p>The VPC identifier of the cluster if the snapshot is from a cluster in a VPC. Otherwise, this field is not in the output.</p>
pub fn vpc_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.vpc_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The VPC identifier of the cluster if the snapshot is from a cluster in a VPC. Otherwise, this field is not in the output.</p>
pub fn set_vpc_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.vpc_id = input;
self
}
/// <p>The VPC identifier of the cluster if the snapshot is from a cluster in a VPC. Otherwise, this field is not in the output.</p>
pub fn get_vpc_id(&self) -> &::std::option::Option<::std::string::String> {
&self.vpc_id
}
/// <p>If <code>true</code>, the data in the snapshot is encrypted at rest.</p>
pub fn encrypted(mut self, input: bool) -> Self {
self.encrypted = ::std::option::Option::Some(input);
self
}
/// <p>If <code>true</code>, the data in the snapshot is encrypted at rest.</p>
pub fn set_encrypted(mut self, input: ::std::option::Option<bool>) -> Self {
self.encrypted = input;
self
}
/// <p>If <code>true</code>, the data in the snapshot is encrypted at rest.</p>
pub fn get_encrypted(&self) -> &::std::option::Option<bool> {
&self.encrypted
}
/// <p>The Key Management Service (KMS) key ID of the encryption key that was used to encrypt data in the cluster from which the snapshot was taken.</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 Management Service (KMS) key ID of the encryption key that was used to encrypt data in the cluster from which the snapshot was taken.</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 Management Service (KMS) key ID of the encryption key that was used to encrypt data in the cluster from which the snapshot was taken.</p>
pub fn get_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
&self.kms_key_id
}
/// <p>A boolean that indicates whether the snapshot data is encrypted using the HSM keys of the source cluster. <code>true</code> indicates that the data is encrypted using HSM keys.</p>
pub fn encrypted_with_hsm(mut self, input: bool) -> Self {
self.encrypted_with_hsm = ::std::option::Option::Some(input);
self
}
/// <p>A boolean that indicates whether the snapshot data is encrypted using the HSM keys of the source cluster. <code>true</code> indicates that the data is encrypted using HSM keys.</p>
pub fn set_encrypted_with_hsm(mut self, input: ::std::option::Option<bool>) -> Self {
self.encrypted_with_hsm = input;
self
}
/// <p>A boolean that indicates whether the snapshot data is encrypted using the HSM keys of the source cluster. <code>true</code> indicates that the data is encrypted using HSM keys.</p>
pub fn get_encrypted_with_hsm(&self) -> &::std::option::Option<bool> {
&self.encrypted_with_hsm
}
/// Appends an item to `accounts_with_restore_access`.
///
/// To override the contents of this collection use [`set_accounts_with_restore_access`](Self::set_accounts_with_restore_access).
///
/// <p>A list of the Amazon Web Services accounts authorized to restore the snapshot. Returns <code>null</code> if no accounts are authorized. Visible only to the snapshot owner.</p>
pub fn accounts_with_restore_access(mut self, input: crate::types::AccountWithRestoreAccess) -> Self {
let mut v = self.accounts_with_restore_access.unwrap_or_default();
v.push(input);
self.accounts_with_restore_access = ::std::option::Option::Some(v);
self
}
/// <p>A list of the Amazon Web Services accounts authorized to restore the snapshot. Returns <code>null</code> if no accounts are authorized. Visible only to the snapshot owner.</p>
pub fn set_accounts_with_restore_access(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::AccountWithRestoreAccess>>) -> Self {
self.accounts_with_restore_access = input;
self
}
/// <p>A list of the Amazon Web Services accounts authorized to restore the snapshot. Returns <code>null</code> if no accounts are authorized. Visible only to the snapshot owner.</p>
pub fn get_accounts_with_restore_access(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::AccountWithRestoreAccess>> {
&self.accounts_with_restore_access
}
/// <p>For manual snapshots, the Amazon Web Services account used to create or copy the snapshot. For automatic snapshots, the owner of the cluster. The owner can perform all snapshot actions, such as sharing a manual snapshot.</p>
pub fn owner_account(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.owner_account = ::std::option::Option::Some(input.into());
self
}
/// <p>For manual snapshots, the Amazon Web Services account used to create or copy the snapshot. For automatic snapshots, the owner of the cluster. The owner can perform all snapshot actions, such as sharing a manual snapshot.</p>
pub fn set_owner_account(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.owner_account = input;
self
}
/// <p>For manual snapshots, the Amazon Web Services account used to create or copy the snapshot. For automatic snapshots, the owner of the cluster. The owner can perform all snapshot actions, such as sharing a manual snapshot.</p>
pub fn get_owner_account(&self) -> &::std::option::Option<::std::string::String> {
&self.owner_account
}
/// <p>The size of the complete set of backup data that would be used to restore the cluster.</p>
pub fn total_backup_size_in_mega_bytes(mut self, input: f64) -> Self {
self.total_backup_size_in_mega_bytes = ::std::option::Option::Some(input);
self
}
/// <p>The size of the complete set of backup data that would be used to restore the cluster.</p>
pub fn set_total_backup_size_in_mega_bytes(mut self, input: ::std::option::Option<f64>) -> Self {
self.total_backup_size_in_mega_bytes = input;
self
}
/// <p>The size of the complete set of backup data that would be used to restore the cluster.</p>
pub fn get_total_backup_size_in_mega_bytes(&self) -> &::std::option::Option<f64> {
&self.total_backup_size_in_mega_bytes
}
/// <p>The size of the incremental backup.</p>
pub fn actual_incremental_backup_size_in_mega_bytes(mut self, input: f64) -> Self {
self.actual_incremental_backup_size_in_mega_bytes = ::std::option::Option::Some(input);
self
}
/// <p>The size of the incremental backup.</p>
pub fn set_actual_incremental_backup_size_in_mega_bytes(mut self, input: ::std::option::Option<f64>) -> Self {
self.actual_incremental_backup_size_in_mega_bytes = input;
self
}
/// <p>The size of the incremental backup.</p>
pub fn get_actual_incremental_backup_size_in_mega_bytes(&self) -> &::std::option::Option<f64> {
&self.actual_incremental_backup_size_in_mega_bytes
}
/// <p>The number of megabytes that have been transferred to the snapshot backup.</p>
pub fn backup_progress_in_mega_bytes(mut self, input: f64) -> Self {
self.backup_progress_in_mega_bytes = ::std::option::Option::Some(input);
self
}
/// <p>The number of megabytes that have been transferred to the snapshot backup.</p>
pub fn set_backup_progress_in_mega_bytes(mut self, input: ::std::option::Option<f64>) -> Self {
self.backup_progress_in_mega_bytes = input;
self
}
/// <p>The number of megabytes that have been transferred to the snapshot backup.</p>
pub fn get_backup_progress_in_mega_bytes(&self) -> &::std::option::Option<f64> {
&self.backup_progress_in_mega_bytes
}
/// <p>The number of megabytes per second being transferred to the snapshot backup. Returns <code>0</code> for a completed backup.</p>
pub fn current_backup_rate_in_mega_bytes_per_second(mut self, input: f64) -> Self {
self.current_backup_rate_in_mega_bytes_per_second = ::std::option::Option::Some(input);
self
}
/// <p>The number of megabytes per second being transferred to the snapshot backup. Returns <code>0</code> for a completed backup.</p>
pub fn set_current_backup_rate_in_mega_bytes_per_second(mut self, input: ::std::option::Option<f64>) -> Self {
self.current_backup_rate_in_mega_bytes_per_second = input;
self
}
/// <p>The number of megabytes per second being transferred to the snapshot backup. Returns <code>0</code> for a completed backup.</p>
pub fn get_current_backup_rate_in_mega_bytes_per_second(&self) -> &::std::option::Option<f64> {
&self.current_backup_rate_in_mega_bytes_per_second
}
/// <p>The estimate of the time remaining before the snapshot backup will complete. Returns <code>0</code> for a completed backup.</p>
pub fn estimated_seconds_to_completion(mut self, input: i64) -> Self {
self.estimated_seconds_to_completion = ::std::option::Option::Some(input);
self
}
/// <p>The estimate of the time remaining before the snapshot backup will complete. Returns <code>0</code> for a completed backup.</p>
pub fn set_estimated_seconds_to_completion(mut self, input: ::std::option::Option<i64>) -> Self {
self.estimated_seconds_to_completion = input;
self
}
/// <p>The estimate of the time remaining before the snapshot backup will complete. Returns <code>0</code> for a completed backup.</p>
pub fn get_estimated_seconds_to_completion(&self) -> &::std::option::Option<i64> {
&self.estimated_seconds_to_completion
}
/// <p>The amount of time an in-progress snapshot backup has been running, or the amount of time it took a completed backup to finish.</p>
pub fn elapsed_time_in_seconds(mut self, input: i64) -> Self {
self.elapsed_time_in_seconds = ::std::option::Option::Some(input);
self
}
/// <p>The amount of time an in-progress snapshot backup has been running, or the amount of time it took a completed backup to finish.</p>
pub fn set_elapsed_time_in_seconds(mut self, input: ::std::option::Option<i64>) -> Self {
self.elapsed_time_in_seconds = input;
self
}
/// <p>The amount of time an in-progress snapshot backup has been running, or the amount of time it took a completed backup to finish.</p>
pub fn get_elapsed_time_in_seconds(&self) -> &::std::option::Option<i64> {
&self.elapsed_time_in_seconds
}
/// <p>The source region from which the snapshot was copied.</p>
pub fn source_region(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.source_region = ::std::option::Option::Some(input.into());
self
}
/// <p>The source region from which the snapshot was copied.</p>
pub fn set_source_region(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.source_region = input;
self
}
/// <p>The source region from which the snapshot was copied.</p>
pub fn get_source_region(&self) -> &::std::option::Option<::std::string::String> {
&self.source_region
}
/// Appends an item to `tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>The list of tags for the cluster snapshot.</p>
pub fn tags(mut self, input: crate::types::Tag) -> Self {
let mut v = self.tags.unwrap_or_default();
v.push(input);
self.tags = ::std::option::Option::Some(v);
self
}
/// <p>The list of tags for the cluster snapshot.</p>
pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
self.tags = input;
self
}
/// <p>The list of tags for the cluster snapshot.</p>
pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
&self.tags
}
/// Appends an item to `restorable_node_types`.
///
/// To override the contents of this collection use [`set_restorable_node_types`](Self::set_restorable_node_types).
///
/// <p>The list of node types that this cluster snapshot is able to restore into.</p>
pub fn restorable_node_types(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.restorable_node_types.unwrap_or_default();
v.push(input.into());
self.restorable_node_types = ::std::option::Option::Some(v);
self
}
/// <p>The list of node types that this cluster snapshot is able to restore into.</p>
pub fn set_restorable_node_types(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.restorable_node_types = input;
self
}
/// <p>The list of node types that this cluster snapshot is able to restore into.</p>
pub fn get_restorable_node_types(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.restorable_node_types
}
/// <p>An option that specifies whether to create the cluster with enhanced VPC routing enabled. To create a cluster that uses enhanced VPC routing, the cluster must be in a VPC. For more information, see <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/enhanced-vpc-routing.html">Enhanced VPC Routing</a> in the Amazon Redshift Cluster Management Guide.</p>
/// <p>If this option is <code>true</code>, enhanced VPC routing is enabled.</p>
/// <p>Default: false</p>
pub fn enhanced_vpc_routing(mut self, input: bool) -> Self {
self.enhanced_vpc_routing = ::std::option::Option::Some(input);
self
}
/// <p>An option that specifies whether to create the cluster with enhanced VPC routing enabled. To create a cluster that uses enhanced VPC routing, the cluster must be in a VPC. For more information, see <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/enhanced-vpc-routing.html">Enhanced VPC Routing</a> in the Amazon Redshift Cluster Management Guide.</p>
/// <p>If this option is <code>true</code>, enhanced VPC routing is enabled.</p>
/// <p>Default: false</p>
pub fn set_enhanced_vpc_routing(mut self, input: ::std::option::Option<bool>) -> Self {
self.enhanced_vpc_routing = input;
self
}
/// <p>An option that specifies whether to create the cluster with enhanced VPC routing enabled. To create a cluster that uses enhanced VPC routing, the cluster must be in a VPC. For more information, see <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/enhanced-vpc-routing.html">Enhanced VPC Routing</a> in the Amazon Redshift Cluster Management Guide.</p>
/// <p>If this option is <code>true</code>, enhanced VPC routing is enabled.</p>
/// <p>Default: false</p>
pub fn get_enhanced_vpc_routing(&self) -> &::std::option::Option<bool> {
&self.enhanced_vpc_routing
}
/// <p>The name of the maintenance track for the snapshot.</p>
pub fn maintenance_track_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.maintenance_track_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the maintenance track for the snapshot.</p>
pub fn set_maintenance_track_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.maintenance_track_name = input;
self
}
/// <p>The name of the maintenance track for the snapshot.</p>
pub fn get_maintenance_track_name(&self) -> &::std::option::Option<::std::string::String> {
&self.maintenance_track_name
}
/// <p>The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely.</p>
/// <p>The value must be either -1 or an integer between 1 and 3,653.</p>
pub fn manual_snapshot_retention_period(mut self, input: i32) -> Self {
self.manual_snapshot_retention_period = ::std::option::Option::Some(input);
self
}
/// <p>The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely.</p>
/// <p>The value must be either -1 or an integer between 1 and 3,653.</p>
pub fn set_manual_snapshot_retention_period(mut self, input: ::std::option::Option<i32>) -> Self {
self.manual_snapshot_retention_period = input;
self
}
/// <p>The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely.</p>
/// <p>The value must be either -1 or an integer between 1 and 3,653.</p>
pub fn get_manual_snapshot_retention_period(&self) -> &::std::option::Option<i32> {
&self.manual_snapshot_retention_period
}
/// <p>The number of days until a manual snapshot will pass its retention period.</p>
pub fn manual_snapshot_remaining_days(mut self, input: i32) -> Self {
self.manual_snapshot_remaining_days = ::std::option::Option::Some(input);
self
}
/// <p>The number of days until a manual snapshot will pass its retention period.</p>
pub fn set_manual_snapshot_remaining_days(mut self, input: ::std::option::Option<i32>) -> Self {
self.manual_snapshot_remaining_days = input;
self
}
/// <p>The number of days until a manual snapshot will pass its retention period.</p>
pub fn get_manual_snapshot_remaining_days(&self) -> &::std::option::Option<i32> {
&self.manual_snapshot_remaining_days
}
/// <p>A timestamp representing the start of the retention period for the snapshot.</p>
pub fn snapshot_retention_start_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.snapshot_retention_start_time = ::std::option::Option::Some(input);
self
}
/// <p>A timestamp representing the start of the retention period for the snapshot.</p>
pub fn set_snapshot_retention_start_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.snapshot_retention_start_time = input;
self
}
/// <p>A timestamp representing the start of the retention period for the snapshot.</p>
pub fn get_snapshot_retention_start_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.snapshot_retention_start_time
}
/// <p>The Amazon Resource Name (ARN) for the cluster's admin user credentials secret.</p>
pub fn master_password_secret_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.master_password_secret_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) for the cluster's admin user credentials secret.</p>
pub fn set_master_password_secret_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.master_password_secret_arn = input;
self
}
/// <p>The Amazon Resource Name (ARN) for the cluster's admin user credentials secret.</p>
pub fn get_master_password_secret_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.master_password_secret_arn
}
/// <p>The ID of the Key Management Service (KMS) key used to encrypt and store the cluster's admin credentials secret.</p>
pub fn master_password_secret_kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.master_password_secret_kms_key_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The ID of the Key Management Service (KMS) key used to encrypt and store the cluster's admin credentials secret.</p>
pub fn set_master_password_secret_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.master_password_secret_kms_key_id = input;
self
}
/// <p>The ID of the Key Management Service (KMS) key used to encrypt and store the cluster's admin credentials secret.</p>
pub fn get_master_password_secret_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
&self.master_password_secret_kms_key_id
}
/// <p>The Amazon Resource Name (ARN) of the snapshot.</p>
pub fn snapshot_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.snapshot_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the snapshot.</p>
pub fn set_snapshot_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.snapshot_arn = input;
self
}
/// <p>The Amazon Resource Name (ARN) of the snapshot.</p>
pub fn get_snapshot_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.snapshot_arn
}
/// Consumes the builder and constructs a [`Snapshot`](crate::types::Snapshot).
pub fn build(self) -> crate::types::Snapshot {
crate::types::Snapshot {
snapshot_identifier: self.snapshot_identifier,
cluster_identifier: self.cluster_identifier,
snapshot_create_time: self.snapshot_create_time,
status: self.status,
port: self.port,
availability_zone: self.availability_zone,
cluster_create_time: self.cluster_create_time,
master_username: self.master_username,
cluster_version: self.cluster_version,
engine_full_version: self.engine_full_version,
snapshot_type: self.snapshot_type,
node_type: self.node_type,
number_of_nodes: self.number_of_nodes,
db_name: self.db_name,
vpc_id: self.vpc_id,
encrypted: self.encrypted,
kms_key_id: self.kms_key_id,
encrypted_with_hsm: self.encrypted_with_hsm,
accounts_with_restore_access: self.accounts_with_restore_access,
owner_account: self.owner_account,
total_backup_size_in_mega_bytes: self.total_backup_size_in_mega_bytes,
actual_incremental_backup_size_in_mega_bytes: self.actual_incremental_backup_size_in_mega_bytes,
backup_progress_in_mega_bytes: self.backup_progress_in_mega_bytes,
current_backup_rate_in_mega_bytes_per_second: self.current_backup_rate_in_mega_bytes_per_second,
estimated_seconds_to_completion: self.estimated_seconds_to_completion,
elapsed_time_in_seconds: self.elapsed_time_in_seconds,
source_region: self.source_region,
tags: self.tags,
restorable_node_types: self.restorable_node_types,
enhanced_vpc_routing: self.enhanced_vpc_routing,
maintenance_track_name: self.maintenance_track_name,
manual_snapshot_retention_period: self.manual_snapshot_retention_period,
manual_snapshot_remaining_days: self.manual_snapshot_remaining_days,
snapshot_retention_start_time: self.snapshot_retention_start_time,
master_password_secret_arn: self.master_password_secret_arn,
master_password_secret_kms_key_id: self.master_password_secret_kms_key_id,
snapshot_arn: self.snapshot_arn,
}
}
}