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
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>A structure that describes a request field with a validation error.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ValidationExceptionField {
    /// <p>The name of the request field that had a validation error.</p>
    #[doc(hidden)]
    pub name: std::option::Option<std::string::String>,
    /// <p>The validation error caused by the request field.</p>
    #[doc(hidden)]
    pub validation_issue: std::option::Option<std::string::String>,
}
impl ValidationExceptionField {
    /// <p>The name of the request field that had a validation error.</p>
    pub fn name(&self) -> std::option::Option<&str> {
        self.name.as_deref()
    }
    /// <p>The validation error caused by the request field.</p>
    pub fn validation_issue(&self) -> std::option::Option<&str> {
        self.validation_issue.as_deref()
    }
}
/// See [`ValidationExceptionField`](crate::model::ValidationExceptionField).
pub mod validation_exception_field {

    /// A builder for [`ValidationExceptionField`](crate::model::ValidationExceptionField).
    #[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) name: std::option::Option<std::string::String>,
        pub(crate) validation_issue: std::option::Option<std::string::String>,
    }
    impl Builder {
        /// <p>The name of the request field that had a validation error.</p>
        pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
            self.name = Some(input.into());
            self
        }
        /// <p>The name of the request field that had a validation error.</p>
        pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.name = input;
            self
        }
        /// <p>The validation error caused by the request field.</p>
        pub fn validation_issue(mut self, input: impl Into<std::string::String>) -> Self {
            self.validation_issue = Some(input.into());
            self
        }
        /// <p>The validation error caused by the request field.</p>
        pub fn set_validation_issue(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.validation_issue = input;
            self
        }
        /// Consumes the builder and constructs a [`ValidationExceptionField`](crate::model::ValidationExceptionField).
        pub fn build(self) -> crate::model::ValidationExceptionField {
            crate::model::ValidationExceptionField {
                name: self.name,
                validation_issue: self.validation_issue,
            }
        }
    }
}
impl ValidationExceptionField {
    /// Creates a new builder-style object to manufacture [`ValidationExceptionField`](crate::model::ValidationExceptionField).
    pub fn builder() -> crate::model::validation_exception_field::Builder {
        crate::model::validation_exception_field::Builder::default()
    }
}

/// <p>A view is a structure that defines a set of filters that provide a view into the information in the Amazon Web Services Resource Explorer index. The filters specify which information from the index is visible to the users of the view. For example, you can specify filters that include only resources that are tagged with the key "ENV" and the value "DEVELOPMENT" in the results returned by this view. You could also create a second view that includes only resources that are tagged with "ENV" and "PRODUCTION".</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct View {
    /// <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon resource name (ARN)</a> of the view.</p>
    #[doc(hidden)]
    pub view_arn: std::option::Option<std::string::String>,
    /// <p>The Amazon Web Services account that owns this view.</p>
    #[doc(hidden)]
    pub owner: std::option::Option<std::string::String>,
    /// <p>The date and time when this view was last modified.</p>
    #[doc(hidden)]
    pub last_updated_at: std::option::Option<aws_smithy_types::DateTime>,
    /// <p>An <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon resource name (ARN)</a> of an Amazon Web Services account, an organization, or an organizational unit (OU) that specifies whether this view includes resources from only the specified Amazon Web Services account, all accounts in the specified organization, or all accounts in the specified OU.</p>
    /// <p>If not specified, the value defaults to the Amazon Web Services account used to call this operation.</p>
    #[doc(hidden)]
    pub scope: std::option::Option<std::string::String>,
    /// <p>A structure that contains additional information about the view.</p>
    #[doc(hidden)]
    pub included_properties: std::option::Option<std::vec::Vec<crate::model::IncludedProperty>>,
    /// <p>An array of <code>SearchFilter</code> objects that specify which resources can be included in the results of queries made using this view.</p>
    #[doc(hidden)]
    pub filters: std::option::Option<crate::model::SearchFilter>,
}
impl View {
    /// <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon resource name (ARN)</a> of the view.</p>
    pub fn view_arn(&self) -> std::option::Option<&str> {
        self.view_arn.as_deref()
    }
    /// <p>The Amazon Web Services account that owns this view.</p>
    pub fn owner(&self) -> std::option::Option<&str> {
        self.owner.as_deref()
    }
    /// <p>The date and time when this view was last modified.</p>
    pub fn last_updated_at(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
        self.last_updated_at.as_ref()
    }
    /// <p>An <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon resource name (ARN)</a> of an Amazon Web Services account, an organization, or an organizational unit (OU) that specifies whether this view includes resources from only the specified Amazon Web Services account, all accounts in the specified organization, or all accounts in the specified OU.</p>
    /// <p>If not specified, the value defaults to the Amazon Web Services account used to call this operation.</p>
    pub fn scope(&self) -> std::option::Option<&str> {
        self.scope.as_deref()
    }
    /// <p>A structure that contains additional information about the view.</p>
    pub fn included_properties(&self) -> std::option::Option<&[crate::model::IncludedProperty]> {
        self.included_properties.as_deref()
    }
    /// <p>An array of <code>SearchFilter</code> objects that specify which resources can be included in the results of queries made using this view.</p>
    pub fn filters(&self) -> std::option::Option<&crate::model::SearchFilter> {
        self.filters.as_ref()
    }
}
impl std::fmt::Debug for View {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("View");
        formatter.field("view_arn", &self.view_arn);
        formatter.field("owner", &self.owner);
        formatter.field("last_updated_at", &self.last_updated_at);
        formatter.field("scope", &self.scope);
        formatter.field("included_properties", &self.included_properties);
        formatter.field("filters", &"*** Sensitive Data Redacted ***");
        formatter.finish()
    }
}
/// See [`View`](crate::model::View).
pub mod view {

    /// A builder for [`View`](crate::model::View).
    #[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
    pub struct Builder {
        pub(crate) view_arn: std::option::Option<std::string::String>,
        pub(crate) owner: std::option::Option<std::string::String>,
        pub(crate) last_updated_at: std::option::Option<aws_smithy_types::DateTime>,
        pub(crate) scope: std::option::Option<std::string::String>,
        pub(crate) included_properties:
            std::option::Option<std::vec::Vec<crate::model::IncludedProperty>>,
        pub(crate) filters: std::option::Option<crate::model::SearchFilter>,
    }
    impl Builder {
        /// <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon resource name (ARN)</a> of the view.</p>
        pub fn view_arn(mut self, input: impl Into<std::string::String>) -> Self {
            self.view_arn = Some(input.into());
            self
        }
        /// <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon resource name (ARN)</a> of the view.</p>
        pub fn set_view_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.view_arn = input;
            self
        }
        /// <p>The Amazon Web Services account that owns this view.</p>
        pub fn owner(mut self, input: impl Into<std::string::String>) -> Self {
            self.owner = Some(input.into());
            self
        }
        /// <p>The Amazon Web Services account that owns this view.</p>
        pub fn set_owner(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.owner = input;
            self
        }
        /// <p>The date and time when this view was last modified.</p>
        pub fn last_updated_at(mut self, input: aws_smithy_types::DateTime) -> Self {
            self.last_updated_at = Some(input);
            self
        }
        /// <p>The date and time when this view was last modified.</p>
        pub fn set_last_updated_at(
            mut self,
            input: std::option::Option<aws_smithy_types::DateTime>,
        ) -> Self {
            self.last_updated_at = input;
            self
        }
        /// <p>An <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon resource name (ARN)</a> of an Amazon Web Services account, an organization, or an organizational unit (OU) that specifies whether this view includes resources from only the specified Amazon Web Services account, all accounts in the specified organization, or all accounts in the specified OU.</p>
        /// <p>If not specified, the value defaults to the Amazon Web Services account used to call this operation.</p>
        pub fn scope(mut self, input: impl Into<std::string::String>) -> Self {
            self.scope = Some(input.into());
            self
        }
        /// <p>An <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon resource name (ARN)</a> of an Amazon Web Services account, an organization, or an organizational unit (OU) that specifies whether this view includes resources from only the specified Amazon Web Services account, all accounts in the specified organization, or all accounts in the specified OU.</p>
        /// <p>If not specified, the value defaults to the Amazon Web Services account used to call this operation.</p>
        pub fn set_scope(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.scope = input;
            self
        }
        /// Appends an item to `included_properties`.
        ///
        /// To override the contents of this collection use [`set_included_properties`](Self::set_included_properties).
        ///
        /// <p>A structure that contains additional information about the view.</p>
        pub fn included_properties(mut self, input: crate::model::IncludedProperty) -> Self {
            let mut v = self.included_properties.unwrap_or_default();
            v.push(input);
            self.included_properties = Some(v);
            self
        }
        /// <p>A structure that contains additional information about the view.</p>
        pub fn set_included_properties(
            mut self,
            input: std::option::Option<std::vec::Vec<crate::model::IncludedProperty>>,
        ) -> Self {
            self.included_properties = input;
            self
        }
        /// <p>An array of <code>SearchFilter</code> objects that specify which resources can be included in the results of queries made using this view.</p>
        pub fn filters(mut self, input: crate::model::SearchFilter) -> Self {
            self.filters = Some(input);
            self
        }
        /// <p>An array of <code>SearchFilter</code> objects that specify which resources can be included in the results of queries made using this view.</p>
        pub fn set_filters(
            mut self,
            input: std::option::Option<crate::model::SearchFilter>,
        ) -> Self {
            self.filters = input;
            self
        }
        /// Consumes the builder and constructs a [`View`](crate::model::View).
        pub fn build(self) -> crate::model::View {
            crate::model::View {
                view_arn: self.view_arn,
                owner: self.owner,
                last_updated_at: self.last_updated_at,
                scope: self.scope,
                included_properties: self.included_properties,
                filters: self.filters,
            }
        }
    }
    impl std::fmt::Debug for Builder {
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
            let mut formatter = f.debug_struct("Builder");
            formatter.field("view_arn", &self.view_arn);
            formatter.field("owner", &self.owner);
            formatter.field("last_updated_at", &self.last_updated_at);
            formatter.field("scope", &self.scope);
            formatter.field("included_properties", &self.included_properties);
            formatter.field("filters", &"*** Sensitive Data Redacted ***");
            formatter.finish()
        }
    }
}
impl View {
    /// Creates a new builder-style object to manufacture [`View`](crate::model::View).
    pub fn builder() -> crate::model::view::Builder {
        crate::model::view::Builder::default()
    }
}

/// <p>A search filter defines which resources can be part of a search query result set.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SearchFilter {
    /// <p>The string that contains the search keywords, prefixes, and operators to control the results that can be returned by a <code>Search</code> operation. For more details, see <a href="https://docs.aws.amazon.com/resource-explorer/latest/APIReference/about-query-syntax.html">Search query syntax</a>.</p>
    #[doc(hidden)]
    pub filter_string: std::option::Option<std::string::String>,
}
impl SearchFilter {
    /// <p>The string that contains the search keywords, prefixes, and operators to control the results that can be returned by a <code>Search</code> operation. For more details, see <a href="https://docs.aws.amazon.com/resource-explorer/latest/APIReference/about-query-syntax.html">Search query syntax</a>.</p>
    pub fn filter_string(&self) -> std::option::Option<&str> {
        self.filter_string.as_deref()
    }
}
impl std::fmt::Debug for SearchFilter {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("SearchFilter");
        formatter.field("filter_string", &"*** Sensitive Data Redacted ***");
        formatter.finish()
    }
}
/// See [`SearchFilter`](crate::model::SearchFilter).
pub mod search_filter {

    /// A builder for [`SearchFilter`](crate::model::SearchFilter).
    #[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
    pub struct Builder {
        pub(crate) filter_string: std::option::Option<std::string::String>,
    }
    impl Builder {
        /// <p>The string that contains the search keywords, prefixes, and operators to control the results that can be returned by a <code>Search</code> operation. For more details, see <a href="https://docs.aws.amazon.com/resource-explorer/latest/APIReference/about-query-syntax.html">Search query syntax</a>.</p>
        pub fn filter_string(mut self, input: impl Into<std::string::String>) -> Self {
            self.filter_string = Some(input.into());
            self
        }
        /// <p>The string that contains the search keywords, prefixes, and operators to control the results that can be returned by a <code>Search</code> operation. For more details, see <a href="https://docs.aws.amazon.com/resource-explorer/latest/APIReference/about-query-syntax.html">Search query syntax</a>.</p>
        pub fn set_filter_string(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.filter_string = input;
            self
        }
        /// Consumes the builder and constructs a [`SearchFilter`](crate::model::SearchFilter).
        pub fn build(self) -> crate::model::SearchFilter {
            crate::model::SearchFilter {
                filter_string: self.filter_string,
            }
        }
    }
    impl std::fmt::Debug for Builder {
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
            let mut formatter = f.debug_struct("Builder");
            formatter.field("filter_string", &"*** Sensitive Data Redacted ***");
            formatter.finish()
        }
    }
}
impl SearchFilter {
    /// Creates a new builder-style object to manufacture [`SearchFilter`](crate::model::SearchFilter).
    pub fn builder() -> crate::model::search_filter::Builder {
        crate::model::search_filter::Builder::default()
    }
}

/// <p>Information about an additional property that describes a resource, that you can optionally include in the view. This lets you view that property in search results, and filter your search results based on the value of the property.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct IncludedProperty {
    /// <p>The name of the property that is included in this view.</p>
    /// <p>You can specify the following property names for this field:</p>
    /// <ul>
    /// <li> <p> <code>Tags</code> </p> </li>
    /// </ul>
    #[doc(hidden)]
    pub name: std::option::Option<std::string::String>,
}
impl IncludedProperty {
    /// <p>The name of the property that is included in this view.</p>
    /// <p>You can specify the following property names for this field:</p>
    /// <ul>
    /// <li> <p> <code>Tags</code> </p> </li>
    /// </ul>
    pub fn name(&self) -> std::option::Option<&str> {
        self.name.as_deref()
    }
}
/// See [`IncludedProperty`](crate::model::IncludedProperty).
pub mod included_property {

    /// A builder for [`IncludedProperty`](crate::model::IncludedProperty).
    #[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) name: std::option::Option<std::string::String>,
    }
    impl Builder {
        /// <p>The name of the property that is included in this view.</p>
        /// <p>You can specify the following property names for this field:</p>
        /// <ul>
        /// <li> <p> <code>Tags</code> </p> </li>
        /// </ul>
        pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
            self.name = Some(input.into());
            self
        }
        /// <p>The name of the property that is included in this view.</p>
        /// <p>You can specify the following property names for this field:</p>
        /// <ul>
        /// <li> <p> <code>Tags</code> </p> </li>
        /// </ul>
        pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.name = input;
            self
        }
        /// Consumes the builder and constructs a [`IncludedProperty`](crate::model::IncludedProperty).
        pub fn build(self) -> crate::model::IncludedProperty {
            crate::model::IncludedProperty { name: self.name }
        }
    }
}
impl IncludedProperty {
    /// Creates a new builder-style object to manufacture [`IncludedProperty`](crate::model::IncludedProperty).
    pub fn builder() -> crate::model::included_property::Builder {
        crate::model::included_property::Builder::default()
    }
}

/// <p>An index is the data store used by Amazon Web Services Resource Explorer to hold information about your Amazon Web Services resources that the service discovers. Creating an index in an Amazon Web Services Region turns on Resource Explorer and lets it discover your resources.</p>
/// <p>By default, an index is <i>local</i>, meaning that it contains information about resources in only the same Region as the index. However, you can promote the index of one Region in the account by calling <code>UpdateIndexType</code> to convert it into an aggregator index. The aggregator index receives a replicated copy of the index information from all other Regions where Resource Explorer is turned on. This allows search operations in that Region to return results from all Regions in the account.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Index {
    /// <p>The Amazon Web Services Region in which the index exists.</p>
    #[doc(hidden)]
    pub region: std::option::Option<std::string::String>,
    /// <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon resource name (ARN)</a> of the index.</p>
    #[doc(hidden)]
    pub arn: std::option::Option<std::string::String>,
    /// <p>The type of index. It can be one of the following values:</p>
    /// <ul>
    /// <li> <p> <b>LOCAL</b> – The index contains information about resources from only the same Amazon Web Services Region.</p> </li>
    /// <li> <p> <b>AGGREGATOR</b> – Resource Explorer replicates copies of the indexed information about resources in all other Amazon Web Services Regions to the aggregator index. This lets search results in the Region with the aggregator index to include resources from all Regions in the account where Resource Explorer is turned on.</p> </li>
    /// </ul>
    #[doc(hidden)]
    pub r#type: std::option::Option<crate::model::IndexType>,
}
impl Index {
    /// <p>The Amazon Web Services Region in which the index exists.</p>
    pub fn region(&self) -> std::option::Option<&str> {
        self.region.as_deref()
    }
    /// <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon resource name (ARN)</a> of the index.</p>
    pub fn arn(&self) -> std::option::Option<&str> {
        self.arn.as_deref()
    }
    /// <p>The type of index. It can be one of the following values:</p>
    /// <ul>
    /// <li> <p> <b>LOCAL</b> – The index contains information about resources from only the same Amazon Web Services Region.</p> </li>
    /// <li> <p> <b>AGGREGATOR</b> – Resource Explorer replicates copies of the indexed information about resources in all other Amazon Web Services Regions to the aggregator index. This lets search results in the Region with the aggregator index to include resources from all Regions in the account where Resource Explorer is turned on.</p> </li>
    /// </ul>
    pub fn r#type(&self) -> std::option::Option<&crate::model::IndexType> {
        self.r#type.as_ref()
    }
}
/// See [`Index`](crate::model::Index).
pub mod index {

    /// A builder for [`Index`](crate::model::Index).
    #[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) region: std::option::Option<std::string::String>,
        pub(crate) arn: std::option::Option<std::string::String>,
        pub(crate) r#type: std::option::Option<crate::model::IndexType>,
    }
    impl Builder {
        /// <p>The Amazon Web Services Region in which the index exists.</p>
        pub fn region(mut self, input: impl Into<std::string::String>) -> Self {
            self.region = Some(input.into());
            self
        }
        /// <p>The Amazon Web Services Region in which the index exists.</p>
        pub fn set_region(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.region = input;
            self
        }
        /// <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon resource name (ARN)</a> of the index.</p>
        pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
            self.arn = Some(input.into());
            self
        }
        /// <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon resource name (ARN)</a> of the index.</p>
        pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.arn = input;
            self
        }
        /// <p>The type of index. It can be one of the following values:</p>
        /// <ul>
        /// <li> <p> <b>LOCAL</b> – The index contains information about resources from only the same Amazon Web Services Region.</p> </li>
        /// <li> <p> <b>AGGREGATOR</b> – Resource Explorer replicates copies of the indexed information about resources in all other Amazon Web Services Regions to the aggregator index. This lets search results in the Region with the aggregator index to include resources from all Regions in the account where Resource Explorer is turned on.</p> </li>
        /// </ul>
        pub fn r#type(mut self, input: crate::model::IndexType) -> Self {
            self.r#type = Some(input);
            self
        }
        /// <p>The type of index. It can be one of the following values:</p>
        /// <ul>
        /// <li> <p> <b>LOCAL</b> – The index contains information about resources from only the same Amazon Web Services Region.</p> </li>
        /// <li> <p> <b>AGGREGATOR</b> – Resource Explorer replicates copies of the indexed information about resources in all other Amazon Web Services Regions to the aggregator index. This lets search results in the Region with the aggregator index to include resources from all Regions in the account where Resource Explorer is turned on.</p> </li>
        /// </ul>
        pub fn set_type(mut self, input: std::option::Option<crate::model::IndexType>) -> Self {
            self.r#type = input;
            self
        }
        /// Consumes the builder and constructs a [`Index`](crate::model::Index).
        pub fn build(self) -> crate::model::Index {
            crate::model::Index {
                region: self.region,
                arn: self.arn,
                r#type: self.r#type,
            }
        }
    }
}
impl Index {
    /// Creates a new builder-style object to manufacture [`Index`](crate::model::Index).
    pub fn builder() -> crate::model::index::Builder {
        crate::model::index::Builder::default()
    }
}

/// When writing a match expression against `IndexType`, it is important to ensure
/// your code is forward-compatible. That is, if a match arm handles a case for a
/// feature that is supported by the service but has not been represented as an enum
/// variant in a current version of SDK, your code should continue to work when you
/// upgrade SDK to a future version in which the enum does include a variant for that
/// feature.
///
/// Here is an example of how you can make a match expression forward-compatible:
///
/// ```text
/// # let indextype = unimplemented!();
/// match indextype {
///     IndexType::Aggregator => { /* ... */ },
///     IndexType::Local => { /* ... */ },
///     other @ _ if other.as_str() == "NewFeature" => { /* handles a case for `NewFeature` */ },
///     _ => { /* ... */ },
/// }
/// ```
/// The above code demonstrates that when `indextype` represents
/// `NewFeature`, the execution path will lead to the second last match arm,
/// even though the enum does not contain a variant `IndexType::NewFeature`
/// in the current version of SDK. The reason is that the variable `other`,
/// created by the `@` operator, is bound to
/// `IndexType::Unknown(UnknownVariantValue("NewFeature".to_owned()))`
/// and calling `as_str` on it yields `"NewFeature"`.
/// This match expression is forward-compatible when executed with a newer
/// version of SDK where the variant `IndexType::NewFeature` is defined.
/// Specifically, when `indextype` represents `NewFeature`,
/// the execution path will hit the second last match arm as before by virtue of
/// calling `as_str` on `IndexType::NewFeature` also yielding `"NewFeature"`.
///
/// Explicitly matching on the `Unknown` variant should
/// be avoided for two reasons:
/// - The inner data `UnknownVariantValue` is opaque, and no further information can be extracted.
/// - It might inadvertently shadow other intended match arms.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(
    std::clone::Clone,
    std::cmp::Eq,
    std::cmp::Ord,
    std::cmp::PartialEq,
    std::cmp::PartialOrd,
    std::fmt::Debug,
    std::hash::Hash,
)]
pub enum IndexType {
    /// aggregator index
    Aggregator,
    /// local index
    Local,
    /// `Unknown` contains new variants that have been added since this code was generated.
    Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for IndexType {
    fn from(s: &str) -> Self {
        match s {
            "AGGREGATOR" => IndexType::Aggregator,
            "LOCAL" => IndexType::Local,
            other => IndexType::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
        }
    }
}
impl std::str::FromStr for IndexType {
    type Err = std::convert::Infallible;

    fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
        Ok(IndexType::from(s))
    }
}
impl IndexType {
    /// Returns the `&str` value of the enum member.
    pub fn as_str(&self) -> &str {
        match self {
            IndexType::Aggregator => "AGGREGATOR",
            IndexType::Local => "LOCAL",
            IndexType::Unknown(value) => value.as_str(),
        }
    }
    /// Returns all the `&str` values of the enum members.
    pub const fn values() -> &'static [&'static str] {
        &["AGGREGATOR", "LOCAL"]
    }
}
impl AsRef<str> for IndexType {
    fn as_ref(&self) -> &str {
        self.as_str()
    }
}

/// When writing a match expression against `IndexState`, it is important to ensure
/// your code is forward-compatible. That is, if a match arm handles a case for a
/// feature that is supported by the service but has not been represented as an enum
/// variant in a current version of SDK, your code should continue to work when you
/// upgrade SDK to a future version in which the enum does include a variant for that
/// feature.
///
/// Here is an example of how you can make a match expression forward-compatible:
///
/// ```text
/// # let indexstate = unimplemented!();
/// match indexstate {
///     IndexState::Active => { /* ... */ },
///     IndexState::Creating => { /* ... */ },
///     IndexState::Deleted => { /* ... */ },
///     IndexState::Deleting => { /* ... */ },
///     IndexState::Updating => { /* ... */ },
///     other @ _ if other.as_str() == "NewFeature" => { /* handles a case for `NewFeature` */ },
///     _ => { /* ... */ },
/// }
/// ```
/// The above code demonstrates that when `indexstate` represents
/// `NewFeature`, the execution path will lead to the second last match arm,
/// even though the enum does not contain a variant `IndexState::NewFeature`
/// in the current version of SDK. The reason is that the variable `other`,
/// created by the `@` operator, is bound to
/// `IndexState::Unknown(UnknownVariantValue("NewFeature".to_owned()))`
/// and calling `as_str` on it yields `"NewFeature"`.
/// This match expression is forward-compatible when executed with a newer
/// version of SDK where the variant `IndexState::NewFeature` is defined.
/// Specifically, when `indexstate` represents `NewFeature`,
/// the execution path will hit the second last match arm as before by virtue of
/// calling `as_str` on `IndexState::NewFeature` also yielding `"NewFeature"`.
///
/// Explicitly matching on the `Unknown` variant should
/// be avoided for two reasons:
/// - The inner data `UnknownVariantValue` is opaque, and no further information can be extracted.
/// - It might inadvertently shadow other intended match arms.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(
    std::clone::Clone,
    std::cmp::Eq,
    std::cmp::Ord,
    std::cmp::PartialEq,
    std::cmp::PartialOrd,
    std::fmt::Debug,
    std::hash::Hash,
)]
pub enum IndexState {
    /// Index is active.
    Active,
    /// Resource Explorer is creating the index.
    Creating,
    /// Resource Explorer successfully deleted the index.
    Deleted,
    /// Resource Explorer is deleting the index.
    Deleting,
    /// Resource Explorer is switching the index type between local and aggregator.
    Updating,
    /// `Unknown` contains new variants that have been added since this code was generated.
    Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for IndexState {
    fn from(s: &str) -> Self {
        match s {
            "ACTIVE" => IndexState::Active,
            "CREATING" => IndexState::Creating,
            "DELETED" => IndexState::Deleted,
            "DELETING" => IndexState::Deleting,
            "UPDATING" => IndexState::Updating,
            other => IndexState::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
        }
    }
}
impl std::str::FromStr for IndexState {
    type Err = std::convert::Infallible;

    fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
        Ok(IndexState::from(s))
    }
}
impl IndexState {
    /// Returns the `&str` value of the enum member.
    pub fn as_str(&self) -> &str {
        match self {
            IndexState::Active => "ACTIVE",
            IndexState::Creating => "CREATING",
            IndexState::Deleted => "DELETED",
            IndexState::Deleting => "DELETING",
            IndexState::Updating => "UPDATING",
            IndexState::Unknown(value) => value.as_str(),
        }
    }
    /// Returns all the `&str` values of the enum members.
    pub const fn values() -> &'static [&'static str] {
        &["ACTIVE", "CREATING", "DELETED", "DELETING", "UPDATING"]
    }
}
impl AsRef<str> for IndexState {
    fn as_ref(&self) -> &str {
        self.as_str()
    }
}

/// <p>Information about the number of results that match the query. At this time, Amazon Web Services Resource Explorer doesn't count more than 1,000 matches for any query. This structure provides information about whether the query exceeded this limit.</p>
/// <p>This field is included in every page when you paginate the results.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ResourceCount {
    /// <p>The number of resources that match the search query. This value can't exceed 1,000. If there are more than 1,000 resources that match the query, then only 1,000 are counted and the <code>Complete</code> field is set to false. We recommend that you refine your query to return a smaller number of results.</p>
    #[doc(hidden)]
    pub total_resources: std::option::Option<i64>,
    /// <p>Indicates whether the <code>TotalResources</code> value represents an exhaustive count of search results.</p>
    /// <ul>
    /// <li> <p>If <code>True</code>, it indicates that the search was exhaustive. Every resource that matches the query was counted.</p> </li>
    /// <li> <p>If <code>False</code>, then the search reached the limit of 1,000 matching results, and stopped counting.</p> </li>
    /// </ul>
    #[doc(hidden)]
    pub complete: std::option::Option<bool>,
}
impl ResourceCount {
    /// <p>The number of resources that match the search query. This value can't exceed 1,000. If there are more than 1,000 resources that match the query, then only 1,000 are counted and the <code>Complete</code> field is set to false. We recommend that you refine your query to return a smaller number of results.</p>
    pub fn total_resources(&self) -> std::option::Option<i64> {
        self.total_resources
    }
    /// <p>Indicates whether the <code>TotalResources</code> value represents an exhaustive count of search results.</p>
    /// <ul>
    /// <li> <p>If <code>True</code>, it indicates that the search was exhaustive. Every resource that matches the query was counted.</p> </li>
    /// <li> <p>If <code>False</code>, then the search reached the limit of 1,000 matching results, and stopped counting.</p> </li>
    /// </ul>
    pub fn complete(&self) -> std::option::Option<bool> {
        self.complete
    }
}
/// See [`ResourceCount`](crate::model::ResourceCount).
pub mod resource_count {

    /// A builder for [`ResourceCount`](crate::model::ResourceCount).
    #[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) total_resources: std::option::Option<i64>,
        pub(crate) complete: std::option::Option<bool>,
    }
    impl Builder {
        /// <p>The number of resources that match the search query. This value can't exceed 1,000. If there are more than 1,000 resources that match the query, then only 1,000 are counted and the <code>Complete</code> field is set to false. We recommend that you refine your query to return a smaller number of results.</p>
        pub fn total_resources(mut self, input: i64) -> Self {
            self.total_resources = Some(input);
            self
        }
        /// <p>The number of resources that match the search query. This value can't exceed 1,000. If there are more than 1,000 resources that match the query, then only 1,000 are counted and the <code>Complete</code> field is set to false. We recommend that you refine your query to return a smaller number of results.</p>
        pub fn set_total_resources(mut self, input: std::option::Option<i64>) -> Self {
            self.total_resources = input;
            self
        }
        /// <p>Indicates whether the <code>TotalResources</code> value represents an exhaustive count of search results.</p>
        /// <ul>
        /// <li> <p>If <code>True</code>, it indicates that the search was exhaustive. Every resource that matches the query was counted.</p> </li>
        /// <li> <p>If <code>False</code>, then the search reached the limit of 1,000 matching results, and stopped counting.</p> </li>
        /// </ul>
        pub fn complete(mut self, input: bool) -> Self {
            self.complete = Some(input);
            self
        }
        /// <p>Indicates whether the <code>TotalResources</code> value represents an exhaustive count of search results.</p>
        /// <ul>
        /// <li> <p>If <code>True</code>, it indicates that the search was exhaustive. Every resource that matches the query was counted.</p> </li>
        /// <li> <p>If <code>False</code>, then the search reached the limit of 1,000 matching results, and stopped counting.</p> </li>
        /// </ul>
        pub fn set_complete(mut self, input: std::option::Option<bool>) -> Self {
            self.complete = input;
            self
        }
        /// Consumes the builder and constructs a [`ResourceCount`](crate::model::ResourceCount).
        pub fn build(self) -> crate::model::ResourceCount {
            crate::model::ResourceCount {
                total_resources: self.total_resources,
                complete: self.complete,
            }
        }
    }
}
impl ResourceCount {
    /// Creates a new builder-style object to manufacture [`ResourceCount`](crate::model::ResourceCount).
    pub fn builder() -> crate::model::resource_count::Builder {
        crate::model::resource_count::Builder::default()
    }
}

/// <p>A resource in Amazon Web Services that Amazon Web Services Resource Explorer has discovered, and for which it has stored information in the index of the Amazon Web Services Region that contains the resource.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Resource {
    /// <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon resource name (ARN)</a> of the resource.</p>
    #[doc(hidden)]
    pub arn: std::option::Option<std::string::String>,
    /// <p>The Amazon Web Services account that owns the resource.</p>
    #[doc(hidden)]
    pub owning_account_id: std::option::Option<std::string::String>,
    /// <p>The Amazon Web Services Region in which the resource was created and exists.</p>
    #[doc(hidden)]
    pub region: std::option::Option<std::string::String>,
    /// <p>The type of the resource.</p>
    #[doc(hidden)]
    pub resource_type: std::option::Option<std::string::String>,
    /// <p>The Amazon Web Service that owns the resource and is responsible for creating and updating it.</p>
    #[doc(hidden)]
    pub service: std::option::Option<std::string::String>,
    /// <p>The date and time that Resource Explorer last queried this resource and updated the index with the latest information about the resource.</p>
    #[doc(hidden)]
    pub last_reported_at: std::option::Option<aws_smithy_types::DateTime>,
    /// <p>A structure with additional type-specific details about the resource. These properties can be added by turning on integration between Resource Explorer and other Amazon Web Services services.</p>
    #[doc(hidden)]
    pub properties: std::option::Option<std::vec::Vec<crate::model::ResourceProperty>>,
}
impl Resource {
    /// <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon resource name (ARN)</a> of the resource.</p>
    pub fn arn(&self) -> std::option::Option<&str> {
        self.arn.as_deref()
    }
    /// <p>The Amazon Web Services account that owns the resource.</p>
    pub fn owning_account_id(&self) -> std::option::Option<&str> {
        self.owning_account_id.as_deref()
    }
    /// <p>The Amazon Web Services Region in which the resource was created and exists.</p>
    pub fn region(&self) -> std::option::Option<&str> {
        self.region.as_deref()
    }
    /// <p>The type of the resource.</p>
    pub fn resource_type(&self) -> std::option::Option<&str> {
        self.resource_type.as_deref()
    }
    /// <p>The Amazon Web Service that owns the resource and is responsible for creating and updating it.</p>
    pub fn service(&self) -> std::option::Option<&str> {
        self.service.as_deref()
    }
    /// <p>The date and time that Resource Explorer last queried this resource and updated the index with the latest information about the resource.</p>
    pub fn last_reported_at(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
        self.last_reported_at.as_ref()
    }
    /// <p>A structure with additional type-specific details about the resource. These properties can be added by turning on integration between Resource Explorer and other Amazon Web Services services.</p>
    pub fn properties(&self) -> std::option::Option<&[crate::model::ResourceProperty]> {
        self.properties.as_deref()
    }
}
/// See [`Resource`](crate::model::Resource).
pub mod resource {

    /// A builder for [`Resource`](crate::model::Resource).
    #[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) arn: std::option::Option<std::string::String>,
        pub(crate) owning_account_id: std::option::Option<std::string::String>,
        pub(crate) region: std::option::Option<std::string::String>,
        pub(crate) resource_type: std::option::Option<std::string::String>,
        pub(crate) service: std::option::Option<std::string::String>,
        pub(crate) last_reported_at: std::option::Option<aws_smithy_types::DateTime>,
        pub(crate) properties: std::option::Option<std::vec::Vec<crate::model::ResourceProperty>>,
    }
    impl Builder {
        /// <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon resource name (ARN)</a> of the resource.</p>
        pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
            self.arn = Some(input.into());
            self
        }
        /// <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon resource name (ARN)</a> of the resource.</p>
        pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.arn = input;
            self
        }
        /// <p>The Amazon Web Services account that owns the resource.</p>
        pub fn owning_account_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.owning_account_id = Some(input.into());
            self
        }
        /// <p>The Amazon Web Services account that owns the resource.</p>
        pub fn set_owning_account_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.owning_account_id = input;
            self
        }
        /// <p>The Amazon Web Services Region in which the resource was created and exists.</p>
        pub fn region(mut self, input: impl Into<std::string::String>) -> Self {
            self.region = Some(input.into());
            self
        }
        /// <p>The Amazon Web Services Region in which the resource was created and exists.</p>
        pub fn set_region(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.region = input;
            self
        }
        /// <p>The type of the resource.</p>
        pub fn resource_type(mut self, input: impl Into<std::string::String>) -> Self {
            self.resource_type = Some(input.into());
            self
        }
        /// <p>The type of the resource.</p>
        pub fn set_resource_type(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.resource_type = input;
            self
        }
        /// <p>The Amazon Web Service that owns the resource and is responsible for creating and updating it.</p>
        pub fn service(mut self, input: impl Into<std::string::String>) -> Self {
            self.service = Some(input.into());
            self
        }
        /// <p>The Amazon Web Service that owns the resource and is responsible for creating and updating it.</p>
        pub fn set_service(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.service = input;
            self
        }
        /// <p>The date and time that Resource Explorer last queried this resource and updated the index with the latest information about the resource.</p>
        pub fn last_reported_at(mut self, input: aws_smithy_types::DateTime) -> Self {
            self.last_reported_at = Some(input);
            self
        }
        /// <p>The date and time that Resource Explorer last queried this resource and updated the index with the latest information about the resource.</p>
        pub fn set_last_reported_at(
            mut self,
            input: std::option::Option<aws_smithy_types::DateTime>,
        ) -> Self {
            self.last_reported_at = input;
            self
        }
        /// Appends an item to `properties`.
        ///
        /// To override the contents of this collection use [`set_properties`](Self::set_properties).
        ///
        /// <p>A structure with additional type-specific details about the resource. These properties can be added by turning on integration between Resource Explorer and other Amazon Web Services services.</p>
        pub fn properties(mut self, input: crate::model::ResourceProperty) -> Self {
            let mut v = self.properties.unwrap_or_default();
            v.push(input);
            self.properties = Some(v);
            self
        }
        /// <p>A structure with additional type-specific details about the resource. These properties can be added by turning on integration between Resource Explorer and other Amazon Web Services services.</p>
        pub fn set_properties(
            mut self,
            input: std::option::Option<std::vec::Vec<crate::model::ResourceProperty>>,
        ) -> Self {
            self.properties = input;
            self
        }
        /// Consumes the builder and constructs a [`Resource`](crate::model::Resource).
        pub fn build(self) -> crate::model::Resource {
            crate::model::Resource {
                arn: self.arn,
                owning_account_id: self.owning_account_id,
                region: self.region,
                resource_type: self.resource_type,
                service: self.service,
                last_reported_at: self.last_reported_at,
                properties: self.properties,
            }
        }
    }
}
impl Resource {
    /// Creates a new builder-style object to manufacture [`Resource`](crate::model::Resource).
    pub fn builder() -> crate::model::resource::Builder {
        crate::model::resource::Builder::default()
    }
}

/// <p>A structure that describes a property of a resource.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ResourceProperty {
    /// <p>The name of this property of the resource.</p>
    #[doc(hidden)]
    pub name: std::option::Option<std::string::String>,
    /// <p>The date and time that the information about this resource property was last updated.</p>
    #[doc(hidden)]
    pub last_reported_at: std::option::Option<aws_smithy_types::DateTime>,
    /// <p>Details about this property. The content of this field is a JSON object that varies based on the resource type.</p>
    #[doc(hidden)]
    pub data: std::option::Option<aws_smithy_types::Document>,
}
impl ResourceProperty {
    /// <p>The name of this property of the resource.</p>
    pub fn name(&self) -> std::option::Option<&str> {
        self.name.as_deref()
    }
    /// <p>The date and time that the information about this resource property was last updated.</p>
    pub fn last_reported_at(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
        self.last_reported_at.as_ref()
    }
    /// <p>Details about this property. The content of this field is a JSON object that varies based on the resource type.</p>
    pub fn data(&self) -> std::option::Option<&aws_smithy_types::Document> {
        self.data.as_ref()
    }
}
/// See [`ResourceProperty`](crate::model::ResourceProperty).
pub mod resource_property {

    /// A builder for [`ResourceProperty`](crate::model::ResourceProperty).
    #[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) name: std::option::Option<std::string::String>,
        pub(crate) last_reported_at: std::option::Option<aws_smithy_types::DateTime>,
        pub(crate) data: std::option::Option<aws_smithy_types::Document>,
    }
    impl Builder {
        /// <p>The name of this property of the resource.</p>
        pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
            self.name = Some(input.into());
            self
        }
        /// <p>The name of this property of the resource.</p>
        pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.name = input;
            self
        }
        /// <p>The date and time that the information about this resource property was last updated.</p>
        pub fn last_reported_at(mut self, input: aws_smithy_types::DateTime) -> Self {
            self.last_reported_at = Some(input);
            self
        }
        /// <p>The date and time that the information about this resource property was last updated.</p>
        pub fn set_last_reported_at(
            mut self,
            input: std::option::Option<aws_smithy_types::DateTime>,
        ) -> Self {
            self.last_reported_at = input;
            self
        }
        /// <p>Details about this property. The content of this field is a JSON object that varies based on the resource type.</p>
        pub fn data(mut self, input: aws_smithy_types::Document) -> Self {
            self.data = Some(input);
            self
        }
        /// <p>Details about this property. The content of this field is a JSON object that varies based on the resource type.</p>
        pub fn set_data(mut self, input: std::option::Option<aws_smithy_types::Document>) -> Self {
            self.data = input;
            self
        }
        /// Consumes the builder and constructs a [`ResourceProperty`](crate::model::ResourceProperty).
        pub fn build(self) -> crate::model::ResourceProperty {
            crate::model::ResourceProperty {
                name: self.name,
                last_reported_at: self.last_reported_at,
                data: self.data,
            }
        }
    }
}
impl ResourceProperty {
    /// Creates a new builder-style object to manufacture [`ResourceProperty`](crate::model::ResourceProperty).
    pub fn builder() -> crate::model::resource_property::Builder {
        crate::model::resource_property::Builder::default()
    }
}

/// <p>A structure that describes a resource type supported by Amazon Web Services Resource Explorer.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct SupportedResourceType {
    /// <p>The Amazon Web Service that is associated with the resource type. This is the primary service that lets you create and interact with resources of this type.</p>
    #[doc(hidden)]
    pub service: std::option::Option<std::string::String>,
    /// <p>The unique identifier of the resource type.</p>
    #[doc(hidden)]
    pub resource_type: std::option::Option<std::string::String>,
}
impl SupportedResourceType {
    /// <p>The Amazon Web Service that is associated with the resource type. This is the primary service that lets you create and interact with resources of this type.</p>
    pub fn service(&self) -> std::option::Option<&str> {
        self.service.as_deref()
    }
    /// <p>The unique identifier of the resource type.</p>
    pub fn resource_type(&self) -> std::option::Option<&str> {
        self.resource_type.as_deref()
    }
}
/// See [`SupportedResourceType`](crate::model::SupportedResourceType).
pub mod supported_resource_type {

    /// A builder for [`SupportedResourceType`](crate::model::SupportedResourceType).
    #[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) service: std::option::Option<std::string::String>,
        pub(crate) resource_type: std::option::Option<std::string::String>,
    }
    impl Builder {
        /// <p>The Amazon Web Service that is associated with the resource type. This is the primary service that lets you create and interact with resources of this type.</p>
        pub fn service(mut self, input: impl Into<std::string::String>) -> Self {
            self.service = Some(input.into());
            self
        }
        /// <p>The Amazon Web Service that is associated with the resource type. This is the primary service that lets you create and interact with resources of this type.</p>
        pub fn set_service(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.service = input;
            self
        }
        /// <p>The unique identifier of the resource type.</p>
        pub fn resource_type(mut self, input: impl Into<std::string::String>) -> Self {
            self.resource_type = Some(input.into());
            self
        }
        /// <p>The unique identifier of the resource type.</p>
        pub fn set_resource_type(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.resource_type = input;
            self
        }
        /// Consumes the builder and constructs a [`SupportedResourceType`](crate::model::SupportedResourceType).
        pub fn build(self) -> crate::model::SupportedResourceType {
            crate::model::SupportedResourceType {
                service: self.service,
                resource_type: self.resource_type,
            }
        }
    }
}
impl SupportedResourceType {
    /// Creates a new builder-style object to manufacture [`SupportedResourceType`](crate::model::SupportedResourceType).
    pub fn builder() -> crate::model::supported_resource_type::Builder {
        crate::model::supported_resource_type::Builder::default()
    }
}

/// <p>A collection of error messages for any views that Amazon Web Services Resource Explorer couldn't retrieve details.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct BatchGetViewError {
    /// <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon resource name (ARN)</a> of the view for which Resource Explorer failed to retrieve details.</p>
    #[doc(hidden)]
    pub view_arn: std::option::Option<std::string::String>,
    /// <p>The description of the error for the specified view.</p>
    #[doc(hidden)]
    pub error_message: std::option::Option<std::string::String>,
}
impl BatchGetViewError {
    /// <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon resource name (ARN)</a> of the view for which Resource Explorer failed to retrieve details.</p>
    pub fn view_arn(&self) -> std::option::Option<&str> {
        self.view_arn.as_deref()
    }
    /// <p>The description of the error for the specified view.</p>
    pub fn error_message(&self) -> std::option::Option<&str> {
        self.error_message.as_deref()
    }
}
/// See [`BatchGetViewError`](crate::model::BatchGetViewError).
pub mod batch_get_view_error {

    /// A builder for [`BatchGetViewError`](crate::model::BatchGetViewError).
    #[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) view_arn: std::option::Option<std::string::String>,
        pub(crate) error_message: std::option::Option<std::string::String>,
    }
    impl Builder {
        /// <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon resource name (ARN)</a> of the view for which Resource Explorer failed to retrieve details.</p>
        pub fn view_arn(mut self, input: impl Into<std::string::String>) -> Self {
            self.view_arn = Some(input.into());
            self
        }
        /// <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon resource name (ARN)</a> of the view for which Resource Explorer failed to retrieve details.</p>
        pub fn set_view_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.view_arn = input;
            self
        }
        /// <p>The description of the error for the specified view.</p>
        pub fn error_message(mut self, input: impl Into<std::string::String>) -> Self {
            self.error_message = Some(input.into());
            self
        }
        /// <p>The description of the error for the specified view.</p>
        pub fn set_error_message(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.error_message = input;
            self
        }
        /// Consumes the builder and constructs a [`BatchGetViewError`](crate::model::BatchGetViewError).
        pub fn build(self) -> crate::model::BatchGetViewError {
            crate::model::BatchGetViewError {
                view_arn: self.view_arn,
                error_message: self.error_message,
            }
        }
    }
}
impl BatchGetViewError {
    /// Creates a new builder-style object to manufacture [`BatchGetViewError`](crate::model::BatchGetViewError).
    pub fn builder() -> crate::model::batch_get_view_error::Builder {
        crate::model::batch_get_view_error::Builder::default()
    }
}