-
Notifications
You must be signed in to change notification settings - Fork 249
/
output.rs
929 lines (915 loc) · 40.2 KB
/
output.rs
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
922
923
924
925
926
927
928
929
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct UntagResourceOutput {}
impl std::fmt::Debug for UntagResourceOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("UntagResourceOutput");
formatter.finish()
}
}
/// See [`UntagResourceOutput`](crate::output::UntagResourceOutput)
pub mod untag_resource_output {
/// A builder for [`UntagResourceOutput`](crate::output::UntagResourceOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`UntagResourceOutput`](crate::output::UntagResourceOutput)
pub fn build(self) -> crate::output::UntagResourceOutput {
crate::output::UntagResourceOutput {}
}
}
}
impl UntagResourceOutput {
/// Creates a new builder-style object to manufacture [`UntagResourceOutput`](crate::output::UntagResourceOutput)
pub fn builder() -> crate::output::untag_resource_output::Builder {
crate::output::untag_resource_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TagResourceOutput {}
impl std::fmt::Debug for TagResourceOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TagResourceOutput");
formatter.finish()
}
}
/// See [`TagResourceOutput`](crate::output::TagResourceOutput)
pub mod tag_resource_output {
/// A builder for [`TagResourceOutput`](crate::output::TagResourceOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`TagResourceOutput`](crate::output::TagResourceOutput)
pub fn build(self) -> crate::output::TagResourceOutput {
crate::output::TagResourceOutput {}
}
}
}
impl TagResourceOutput {
/// Creates a new builder-style object to manufacture [`TagResourceOutput`](crate::output::TagResourceOutput)
pub fn builder() -> crate::output::tag_resource_output::Builder {
crate::output::tag_resource_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct RestoreBackupOutput {
/// <p>Information on the <code>Backup</code> object created.</p>
pub backup: std::option::Option<crate::model::Backup>,
}
impl RestoreBackupOutput {
/// <p>Information on the <code>Backup</code> object created.</p>
pub fn backup(&self) -> std::option::Option<&crate::model::Backup> {
self.backup.as_ref()
}
}
impl std::fmt::Debug for RestoreBackupOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("RestoreBackupOutput");
formatter.field("backup", &self.backup);
formatter.finish()
}
}
/// See [`RestoreBackupOutput`](crate::output::RestoreBackupOutput)
pub mod restore_backup_output {
/// A builder for [`RestoreBackupOutput`](crate::output::RestoreBackupOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) backup: std::option::Option<crate::model::Backup>,
}
impl Builder {
/// <p>Information on the <code>Backup</code> object created.</p>
pub fn backup(mut self, input: crate::model::Backup) -> Self {
self.backup = Some(input);
self
}
/// <p>Information on the <code>Backup</code> object created.</p>
pub fn set_backup(mut self, input: std::option::Option<crate::model::Backup>) -> Self {
self.backup = input;
self
}
/// Consumes the builder and constructs a [`RestoreBackupOutput`](crate::output::RestoreBackupOutput)
pub fn build(self) -> crate::output::RestoreBackupOutput {
crate::output::RestoreBackupOutput {
backup: self.backup,
}
}
}
}
impl RestoreBackupOutput {
/// Creates a new builder-style object to manufacture [`RestoreBackupOutput`](crate::output::RestoreBackupOutput)
pub fn builder() -> crate::output::restore_backup_output::Builder {
crate::output::restore_backup_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ModifyClusterOutput {
/// <p>Contains information about an AWS CloudHSM cluster.</p>
pub cluster: std::option::Option<crate::model::Cluster>,
}
impl ModifyClusterOutput {
/// <p>Contains information about an AWS CloudHSM cluster.</p>
pub fn cluster(&self) -> std::option::Option<&crate::model::Cluster> {
self.cluster.as_ref()
}
}
impl std::fmt::Debug for ModifyClusterOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ModifyClusterOutput");
formatter.field("cluster", &self.cluster);
formatter.finish()
}
}
/// See [`ModifyClusterOutput`](crate::output::ModifyClusterOutput)
pub mod modify_cluster_output {
/// A builder for [`ModifyClusterOutput`](crate::output::ModifyClusterOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) cluster: std::option::Option<crate::model::Cluster>,
}
impl Builder {
/// <p>Contains information about an AWS CloudHSM cluster.</p>
pub fn cluster(mut self, input: crate::model::Cluster) -> Self {
self.cluster = Some(input);
self
}
/// <p>Contains information about an AWS CloudHSM cluster.</p>
pub fn set_cluster(mut self, input: std::option::Option<crate::model::Cluster>) -> Self {
self.cluster = input;
self
}
/// Consumes the builder and constructs a [`ModifyClusterOutput`](crate::output::ModifyClusterOutput)
pub fn build(self) -> crate::output::ModifyClusterOutput {
crate::output::ModifyClusterOutput {
cluster: self.cluster,
}
}
}
}
impl ModifyClusterOutput {
/// Creates a new builder-style object to manufacture [`ModifyClusterOutput`](crate::output::ModifyClusterOutput)
pub fn builder() -> crate::output::modify_cluster_output::Builder {
crate::output::modify_cluster_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ModifyBackupAttributesOutput {
/// <p>Contains information about a backup of an AWS CloudHSM cluster. All backup objects
/// contain the <code>BackupId</code>, <code>BackupState</code>, <code>ClusterId</code>, and
/// <code>CreateTimestamp</code> parameters. Backups that were copied into a destination region
/// additionally contain the <code>CopyTimestamp</code>, <code>SourceBackup</code>,
/// <code>SourceCluster</code>, and <code>SourceRegion</code> parameters. A backup that is
/// pending deletion will include the <code>DeleteTimestamp</code> parameter.</p>
pub backup: std::option::Option<crate::model::Backup>,
}
impl ModifyBackupAttributesOutput {
/// <p>Contains information about a backup of an AWS CloudHSM cluster. All backup objects
/// contain the <code>BackupId</code>, <code>BackupState</code>, <code>ClusterId</code>, and
/// <code>CreateTimestamp</code> parameters. Backups that were copied into a destination region
/// additionally contain the <code>CopyTimestamp</code>, <code>SourceBackup</code>,
/// <code>SourceCluster</code>, and <code>SourceRegion</code> parameters. A backup that is
/// pending deletion will include the <code>DeleteTimestamp</code> parameter.</p>
pub fn backup(&self) -> std::option::Option<&crate::model::Backup> {
self.backup.as_ref()
}
}
impl std::fmt::Debug for ModifyBackupAttributesOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ModifyBackupAttributesOutput");
formatter.field("backup", &self.backup);
formatter.finish()
}
}
/// See [`ModifyBackupAttributesOutput`](crate::output::ModifyBackupAttributesOutput)
pub mod modify_backup_attributes_output {
/// A builder for [`ModifyBackupAttributesOutput`](crate::output::ModifyBackupAttributesOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) backup: std::option::Option<crate::model::Backup>,
}
impl Builder {
/// <p>Contains information about a backup of an AWS CloudHSM cluster. All backup objects
/// contain the <code>BackupId</code>, <code>BackupState</code>, <code>ClusterId</code>, and
/// <code>CreateTimestamp</code> parameters. Backups that were copied into a destination region
/// additionally contain the <code>CopyTimestamp</code>, <code>SourceBackup</code>,
/// <code>SourceCluster</code>, and <code>SourceRegion</code> parameters. A backup that is
/// pending deletion will include the <code>DeleteTimestamp</code> parameter.</p>
pub fn backup(mut self, input: crate::model::Backup) -> Self {
self.backup = Some(input);
self
}
/// <p>Contains information about a backup of an AWS CloudHSM cluster. All backup objects
/// contain the <code>BackupId</code>, <code>BackupState</code>, <code>ClusterId</code>, and
/// <code>CreateTimestamp</code> parameters. Backups that were copied into a destination region
/// additionally contain the <code>CopyTimestamp</code>, <code>SourceBackup</code>,
/// <code>SourceCluster</code>, and <code>SourceRegion</code> parameters. A backup that is
/// pending deletion will include the <code>DeleteTimestamp</code> parameter.</p>
pub fn set_backup(mut self, input: std::option::Option<crate::model::Backup>) -> Self {
self.backup = input;
self
}
/// Consumes the builder and constructs a [`ModifyBackupAttributesOutput`](crate::output::ModifyBackupAttributesOutput)
pub fn build(self) -> crate::output::ModifyBackupAttributesOutput {
crate::output::ModifyBackupAttributesOutput {
backup: self.backup,
}
}
}
}
impl ModifyBackupAttributesOutput {
/// Creates a new builder-style object to manufacture [`ModifyBackupAttributesOutput`](crate::output::ModifyBackupAttributesOutput)
pub fn builder() -> crate::output::modify_backup_attributes_output::Builder {
crate::output::modify_backup_attributes_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListTagsOutput {
/// <p>A list of tags.</p>
pub tag_list: std::option::Option<std::vec::Vec<crate::model::Tag>>,
/// <p>An opaque string that indicates that the response contains only a subset of tags. Use
/// this value in a subsequent <code>ListTags</code> request to get more tags.</p>
pub next_token: std::option::Option<std::string::String>,
}
impl ListTagsOutput {
/// <p>A list of tags.</p>
pub fn tag_list(&self) -> std::option::Option<&[crate::model::Tag]> {
self.tag_list.as_deref()
}
/// <p>An opaque string that indicates that the response contains only a subset of tags. Use
/// this value in a subsequent <code>ListTags</code> request to get more tags.</p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
impl std::fmt::Debug for ListTagsOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListTagsOutput");
formatter.field("tag_list", &self.tag_list);
formatter.field("next_token", &self.next_token);
formatter.finish()
}
}
/// See [`ListTagsOutput`](crate::output::ListTagsOutput)
pub mod list_tags_output {
/// A builder for [`ListTagsOutput`](crate::output::ListTagsOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) tag_list: std::option::Option<std::vec::Vec<crate::model::Tag>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
/// Appends an item to `tag_list`.
///
/// To override the contents of this collection use [`set_tag_list`](Self::set_tag_list).
///
/// <p>A list of tags.</p>
pub fn tag_list(mut self, input: impl Into<crate::model::Tag>) -> Self {
let mut v = self.tag_list.unwrap_or_default();
v.push(input.into());
self.tag_list = Some(v);
self
}
/// <p>A list of tags.</p>
pub fn set_tag_list(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Tag>>,
) -> Self {
self.tag_list = input;
self
}
/// <p>An opaque string that indicates that the response contains only a subset of tags. Use
/// this value in a subsequent <code>ListTags</code> request to get more tags.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p>An opaque string that indicates that the response contains only a subset of tags. Use
/// this value in a subsequent <code>ListTags</code> request to get more tags.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
/// Consumes the builder and constructs a [`ListTagsOutput`](crate::output::ListTagsOutput)
pub fn build(self) -> crate::output::ListTagsOutput {
crate::output::ListTagsOutput {
tag_list: self.tag_list,
next_token: self.next_token,
}
}
}
}
impl ListTagsOutput {
/// Creates a new builder-style object to manufacture [`ListTagsOutput`](crate::output::ListTagsOutput)
pub fn builder() -> crate::output::list_tags_output::Builder {
crate::output::list_tags_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InitializeClusterOutput {
/// <p>The cluster's state.</p>
pub state: std::option::Option<crate::model::ClusterState>,
/// <p>A description of the cluster's state.</p>
pub state_message: std::option::Option<std::string::String>,
}
impl InitializeClusterOutput {
/// <p>The cluster's state.</p>
pub fn state(&self) -> std::option::Option<&crate::model::ClusterState> {
self.state.as_ref()
}
/// <p>A description of the cluster's state.</p>
pub fn state_message(&self) -> std::option::Option<&str> {
self.state_message.as_deref()
}
}
impl std::fmt::Debug for InitializeClusterOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InitializeClusterOutput");
formatter.field("state", &self.state);
formatter.field("state_message", &self.state_message);
formatter.finish()
}
}
/// See [`InitializeClusterOutput`](crate::output::InitializeClusterOutput)
pub mod initialize_cluster_output {
/// A builder for [`InitializeClusterOutput`](crate::output::InitializeClusterOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) state: std::option::Option<crate::model::ClusterState>,
pub(crate) state_message: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>The cluster's state.</p>
pub fn state(mut self, input: crate::model::ClusterState) -> Self {
self.state = Some(input);
self
}
/// <p>The cluster's state.</p>
pub fn set_state(mut self, input: std::option::Option<crate::model::ClusterState>) -> Self {
self.state = input;
self
}
/// <p>A description of the cluster's state.</p>
pub fn state_message(mut self, input: impl Into<std::string::String>) -> Self {
self.state_message = Some(input.into());
self
}
/// <p>A description of the cluster's state.</p>
pub fn set_state_message(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.state_message = input;
self
}
/// Consumes the builder and constructs a [`InitializeClusterOutput`](crate::output::InitializeClusterOutput)
pub fn build(self) -> crate::output::InitializeClusterOutput {
crate::output::InitializeClusterOutput {
state: self.state,
state_message: self.state_message,
}
}
}
}
impl InitializeClusterOutput {
/// Creates a new builder-style object to manufacture [`InitializeClusterOutput`](crate::output::InitializeClusterOutput)
pub fn builder() -> crate::output::initialize_cluster_output::Builder {
crate::output::initialize_cluster_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DescribeClustersOutput {
/// <p>A list of clusters.</p>
pub clusters: std::option::Option<std::vec::Vec<crate::model::Cluster>>,
/// <p>An opaque string that indicates that the response contains only a subset of clusters.
/// Use this value in a subsequent <code>DescribeClusters</code> request to get more
/// clusters.</p>
pub next_token: std::option::Option<std::string::String>,
}
impl DescribeClustersOutput {
/// <p>A list of clusters.</p>
pub fn clusters(&self) -> std::option::Option<&[crate::model::Cluster]> {
self.clusters.as_deref()
}
/// <p>An opaque string that indicates that the response contains only a subset of clusters.
/// Use this value in a subsequent <code>DescribeClusters</code> request to get more
/// clusters.</p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
impl std::fmt::Debug for DescribeClustersOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DescribeClustersOutput");
formatter.field("clusters", &self.clusters);
formatter.field("next_token", &self.next_token);
formatter.finish()
}
}
/// See [`DescribeClustersOutput`](crate::output::DescribeClustersOutput)
pub mod describe_clusters_output {
/// A builder for [`DescribeClustersOutput`](crate::output::DescribeClustersOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) clusters: std::option::Option<std::vec::Vec<crate::model::Cluster>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
/// Appends an item to `clusters`.
///
/// To override the contents of this collection use [`set_clusters`](Self::set_clusters).
///
/// <p>A list of clusters.</p>
pub fn clusters(mut self, input: impl Into<crate::model::Cluster>) -> Self {
let mut v = self.clusters.unwrap_or_default();
v.push(input.into());
self.clusters = Some(v);
self
}
/// <p>A list of clusters.</p>
pub fn set_clusters(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Cluster>>,
) -> Self {
self.clusters = input;
self
}
/// <p>An opaque string that indicates that the response contains only a subset of clusters.
/// Use this value in a subsequent <code>DescribeClusters</code> request to get more
/// clusters.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p>An opaque string that indicates that the response contains only a subset of clusters.
/// Use this value in a subsequent <code>DescribeClusters</code> request to get more
/// clusters.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
/// Consumes the builder and constructs a [`DescribeClustersOutput`](crate::output::DescribeClustersOutput)
pub fn build(self) -> crate::output::DescribeClustersOutput {
crate::output::DescribeClustersOutput {
clusters: self.clusters,
next_token: self.next_token,
}
}
}
}
impl DescribeClustersOutput {
/// Creates a new builder-style object to manufacture [`DescribeClustersOutput`](crate::output::DescribeClustersOutput)
pub fn builder() -> crate::output::describe_clusters_output::Builder {
crate::output::describe_clusters_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DescribeBackupsOutput {
/// <p>A list of backups.</p>
pub backups: std::option::Option<std::vec::Vec<crate::model::Backup>>,
/// <p>An opaque string that indicates that the response contains only a subset of backups.
/// Use this value in a subsequent <code>DescribeBackups</code> request to get more
/// backups.</p>
pub next_token: std::option::Option<std::string::String>,
}
impl DescribeBackupsOutput {
/// <p>A list of backups.</p>
pub fn backups(&self) -> std::option::Option<&[crate::model::Backup]> {
self.backups.as_deref()
}
/// <p>An opaque string that indicates that the response contains only a subset of backups.
/// Use this value in a subsequent <code>DescribeBackups</code> request to get more
/// backups.</p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
impl std::fmt::Debug for DescribeBackupsOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DescribeBackupsOutput");
formatter.field("backups", &self.backups);
formatter.field("next_token", &self.next_token);
formatter.finish()
}
}
/// See [`DescribeBackupsOutput`](crate::output::DescribeBackupsOutput)
pub mod describe_backups_output {
/// A builder for [`DescribeBackupsOutput`](crate::output::DescribeBackupsOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) backups: std::option::Option<std::vec::Vec<crate::model::Backup>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
/// Appends an item to `backups`.
///
/// To override the contents of this collection use [`set_backups`](Self::set_backups).
///
/// <p>A list of backups.</p>
pub fn backups(mut self, input: impl Into<crate::model::Backup>) -> Self {
let mut v = self.backups.unwrap_or_default();
v.push(input.into());
self.backups = Some(v);
self
}
/// <p>A list of backups.</p>
pub fn set_backups(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Backup>>,
) -> Self {
self.backups = input;
self
}
/// <p>An opaque string that indicates that the response contains only a subset of backups.
/// Use this value in a subsequent <code>DescribeBackups</code> request to get more
/// backups.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p>An opaque string that indicates that the response contains only a subset of backups.
/// Use this value in a subsequent <code>DescribeBackups</code> request to get more
/// backups.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
/// Consumes the builder and constructs a [`DescribeBackupsOutput`](crate::output::DescribeBackupsOutput)
pub fn build(self) -> crate::output::DescribeBackupsOutput {
crate::output::DescribeBackupsOutput {
backups: self.backups,
next_token: self.next_token,
}
}
}
}
impl DescribeBackupsOutput {
/// Creates a new builder-style object to manufacture [`DescribeBackupsOutput`](crate::output::DescribeBackupsOutput)
pub fn builder() -> crate::output::describe_backups_output::Builder {
crate::output::describe_backups_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DeleteHsmOutput {
/// <p>The identifier (ID) of the HSM that was deleted.</p>
pub hsm_id: std::option::Option<std::string::String>,
}
impl DeleteHsmOutput {
/// <p>The identifier (ID) of the HSM that was deleted.</p>
pub fn hsm_id(&self) -> std::option::Option<&str> {
self.hsm_id.as_deref()
}
}
impl std::fmt::Debug for DeleteHsmOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DeleteHsmOutput");
formatter.field("hsm_id", &self.hsm_id);
formatter.finish()
}
}
/// See [`DeleteHsmOutput`](crate::output::DeleteHsmOutput)
pub mod delete_hsm_output {
/// A builder for [`DeleteHsmOutput`](crate::output::DeleteHsmOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) hsm_id: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>The identifier (ID) of the HSM that was deleted.</p>
pub fn hsm_id(mut self, input: impl Into<std::string::String>) -> Self {
self.hsm_id = Some(input.into());
self
}
/// <p>The identifier (ID) of the HSM that was deleted.</p>
pub fn set_hsm_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.hsm_id = input;
self
}
/// Consumes the builder and constructs a [`DeleteHsmOutput`](crate::output::DeleteHsmOutput)
pub fn build(self) -> crate::output::DeleteHsmOutput {
crate::output::DeleteHsmOutput {
hsm_id: self.hsm_id,
}
}
}
}
impl DeleteHsmOutput {
/// Creates a new builder-style object to manufacture [`DeleteHsmOutput`](crate::output::DeleteHsmOutput)
pub fn builder() -> crate::output::delete_hsm_output::Builder {
crate::output::delete_hsm_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DeleteClusterOutput {
/// <p>Information about the cluster that was deleted.</p>
pub cluster: std::option::Option<crate::model::Cluster>,
}
impl DeleteClusterOutput {
/// <p>Information about the cluster that was deleted.</p>
pub fn cluster(&self) -> std::option::Option<&crate::model::Cluster> {
self.cluster.as_ref()
}
}
impl std::fmt::Debug for DeleteClusterOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DeleteClusterOutput");
formatter.field("cluster", &self.cluster);
formatter.finish()
}
}
/// See [`DeleteClusterOutput`](crate::output::DeleteClusterOutput)
pub mod delete_cluster_output {
/// A builder for [`DeleteClusterOutput`](crate::output::DeleteClusterOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) cluster: std::option::Option<crate::model::Cluster>,
}
impl Builder {
/// <p>Information about the cluster that was deleted.</p>
pub fn cluster(mut self, input: crate::model::Cluster) -> Self {
self.cluster = Some(input);
self
}
/// <p>Information about the cluster that was deleted.</p>
pub fn set_cluster(mut self, input: std::option::Option<crate::model::Cluster>) -> Self {
self.cluster = input;
self
}
/// Consumes the builder and constructs a [`DeleteClusterOutput`](crate::output::DeleteClusterOutput)
pub fn build(self) -> crate::output::DeleteClusterOutput {
crate::output::DeleteClusterOutput {
cluster: self.cluster,
}
}
}
}
impl DeleteClusterOutput {
/// Creates a new builder-style object to manufacture [`DeleteClusterOutput`](crate::output::DeleteClusterOutput)
pub fn builder() -> crate::output::delete_cluster_output::Builder {
crate::output::delete_cluster_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DeleteBackupOutput {
/// <p>Information on the <code>Backup</code> object deleted.</p>
pub backup: std::option::Option<crate::model::Backup>,
}
impl DeleteBackupOutput {
/// <p>Information on the <code>Backup</code> object deleted.</p>
pub fn backup(&self) -> std::option::Option<&crate::model::Backup> {
self.backup.as_ref()
}
}
impl std::fmt::Debug for DeleteBackupOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DeleteBackupOutput");
formatter.field("backup", &self.backup);
formatter.finish()
}
}
/// See [`DeleteBackupOutput`](crate::output::DeleteBackupOutput)
pub mod delete_backup_output {
/// A builder for [`DeleteBackupOutput`](crate::output::DeleteBackupOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) backup: std::option::Option<crate::model::Backup>,
}
impl Builder {
/// <p>Information on the <code>Backup</code> object deleted.</p>
pub fn backup(mut self, input: crate::model::Backup) -> Self {
self.backup = Some(input);
self
}
/// <p>Information on the <code>Backup</code> object deleted.</p>
pub fn set_backup(mut self, input: std::option::Option<crate::model::Backup>) -> Self {
self.backup = input;
self
}
/// Consumes the builder and constructs a [`DeleteBackupOutput`](crate::output::DeleteBackupOutput)
pub fn build(self) -> crate::output::DeleteBackupOutput {
crate::output::DeleteBackupOutput {
backup: self.backup,
}
}
}
}
impl DeleteBackupOutput {
/// Creates a new builder-style object to manufacture [`DeleteBackupOutput`](crate::output::DeleteBackupOutput)
pub fn builder() -> crate::output::delete_backup_output::Builder {
crate::output::delete_backup_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct CreateHsmOutput {
/// <p>Information about the HSM that was created.</p>
pub hsm: std::option::Option<crate::model::Hsm>,
}
impl CreateHsmOutput {
/// <p>Information about the HSM that was created.</p>
pub fn hsm(&self) -> std::option::Option<&crate::model::Hsm> {
self.hsm.as_ref()
}
}
impl std::fmt::Debug for CreateHsmOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("CreateHsmOutput");
formatter.field("hsm", &self.hsm);
formatter.finish()
}
}
/// See [`CreateHsmOutput`](crate::output::CreateHsmOutput)
pub mod create_hsm_output {
/// A builder for [`CreateHsmOutput`](crate::output::CreateHsmOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) hsm: std::option::Option<crate::model::Hsm>,
}
impl Builder {
/// <p>Information about the HSM that was created.</p>
pub fn hsm(mut self, input: crate::model::Hsm) -> Self {
self.hsm = Some(input);
self
}
/// <p>Information about the HSM that was created.</p>
pub fn set_hsm(mut self, input: std::option::Option<crate::model::Hsm>) -> Self {
self.hsm = input;
self
}
/// Consumes the builder and constructs a [`CreateHsmOutput`](crate::output::CreateHsmOutput)
pub fn build(self) -> crate::output::CreateHsmOutput {
crate::output::CreateHsmOutput { hsm: self.hsm }
}
}
}
impl CreateHsmOutput {
/// Creates a new builder-style object to manufacture [`CreateHsmOutput`](crate::output::CreateHsmOutput)
pub fn builder() -> crate::output::create_hsm_output::Builder {
crate::output::create_hsm_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct CreateClusterOutput {
/// <p>Information about the cluster that was created.</p>
pub cluster: std::option::Option<crate::model::Cluster>,
}
impl CreateClusterOutput {
/// <p>Information about the cluster that was created.</p>
pub fn cluster(&self) -> std::option::Option<&crate::model::Cluster> {
self.cluster.as_ref()
}
}
impl std::fmt::Debug for CreateClusterOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("CreateClusterOutput");
formatter.field("cluster", &self.cluster);
formatter.finish()
}
}
/// See [`CreateClusterOutput`](crate::output::CreateClusterOutput)
pub mod create_cluster_output {
/// A builder for [`CreateClusterOutput`](crate::output::CreateClusterOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) cluster: std::option::Option<crate::model::Cluster>,
}
impl Builder {
/// <p>Information about the cluster that was created.</p>
pub fn cluster(mut self, input: crate::model::Cluster) -> Self {
self.cluster = Some(input);
self
}
/// <p>Information about the cluster that was created.</p>
pub fn set_cluster(mut self, input: std::option::Option<crate::model::Cluster>) -> Self {
self.cluster = input;
self
}
/// Consumes the builder and constructs a [`CreateClusterOutput`](crate::output::CreateClusterOutput)
pub fn build(self) -> crate::output::CreateClusterOutput {
crate::output::CreateClusterOutput {
cluster: self.cluster,
}
}
}
}
impl CreateClusterOutput {
/// Creates a new builder-style object to manufacture [`CreateClusterOutput`](crate::output::CreateClusterOutput)
pub fn builder() -> crate::output::create_cluster_output::Builder {
crate::output::create_cluster_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct CopyBackupToRegionOutput {
/// <p>Information on the backup that will be copied to the destination region, including
/// CreateTimestamp, SourceBackup, SourceCluster, and Source Region. CreateTimestamp of the
/// destination backup will be the same as that of the source backup.</p>
/// <p>You will need to use the <code>sourceBackupID</code> returned in this operation to use
/// the <a>DescribeBackups</a> operation on the backup that will be copied to the
/// destination region.</p>
pub destination_backup: std::option::Option<crate::model::DestinationBackup>,
}
impl CopyBackupToRegionOutput {
/// <p>Information on the backup that will be copied to the destination region, including
/// CreateTimestamp, SourceBackup, SourceCluster, and Source Region. CreateTimestamp of the
/// destination backup will be the same as that of the source backup.</p>
/// <p>You will need to use the <code>sourceBackupID</code> returned in this operation to use
/// the <a>DescribeBackups</a> operation on the backup that will be copied to the
/// destination region.</p>
pub fn destination_backup(&self) -> std::option::Option<&crate::model::DestinationBackup> {
self.destination_backup.as_ref()
}
}
impl std::fmt::Debug for CopyBackupToRegionOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("CopyBackupToRegionOutput");
formatter.field("destination_backup", &self.destination_backup);
formatter.finish()
}
}
/// See [`CopyBackupToRegionOutput`](crate::output::CopyBackupToRegionOutput)
pub mod copy_backup_to_region_output {
/// A builder for [`CopyBackupToRegionOutput`](crate::output::CopyBackupToRegionOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) destination_backup: std::option::Option<crate::model::DestinationBackup>,
}
impl Builder {
/// <p>Information on the backup that will be copied to the destination region, including
/// CreateTimestamp, SourceBackup, SourceCluster, and Source Region. CreateTimestamp of the
/// destination backup will be the same as that of the source backup.</p>
/// <p>You will need to use the <code>sourceBackupID</code> returned in this operation to use
/// the <a>DescribeBackups</a> operation on the backup that will be copied to the
/// destination region.</p>
pub fn destination_backup(mut self, input: crate::model::DestinationBackup) -> Self {
self.destination_backup = Some(input);
self
}
/// <p>Information on the backup that will be copied to the destination region, including
/// CreateTimestamp, SourceBackup, SourceCluster, and Source Region. CreateTimestamp of the
/// destination backup will be the same as that of the source backup.</p>
/// <p>You will need to use the <code>sourceBackupID</code> returned in this operation to use
/// the <a>DescribeBackups</a> operation on the backup that will be copied to the
/// destination region.</p>
pub fn set_destination_backup(
mut self,
input: std::option::Option<crate::model::DestinationBackup>,
) -> Self {
self.destination_backup = input;
self
}
/// Consumes the builder and constructs a [`CopyBackupToRegionOutput`](crate::output::CopyBackupToRegionOutput)
pub fn build(self) -> crate::output::CopyBackupToRegionOutput {
crate::output::CopyBackupToRegionOutput {
destination_backup: self.destination_backup,
}
}
}
}
impl CopyBackupToRegionOutput {
/// Creates a new builder-style object to manufacture [`CopyBackupToRegionOutput`](crate::output::CopyBackupToRegionOutput)
pub fn builder() -> crate::output::copy_backup_to_region_output::Builder {
crate::output::copy_backup_to_region_output::Builder::default()
}
}