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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// The basic data structure of a dataset.
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct Record {
    /// The key for the record.
    pub key: std::option::Option<std::string::String>,
    /// The value for the record.
    pub value: std::option::Option<std::string::String>,
    /// The server sync count for this record.
    pub sync_count: std::option::Option<i64>,
    /// The date on which the record was last modified.
    pub last_modified_date: std::option::Option<aws_smithy_types::DateTime>,
    /// The user/device that made the last change to this record.
    pub last_modified_by: std::option::Option<std::string::String>,
    /// The last modified date of the client device.
    pub device_last_modified_date: std::option::Option<aws_smithy_types::DateTime>,
}
impl Record {
    /// The key for the record.
    pub fn key(&self) -> std::option::Option<&str> {
        self.key.as_deref()
    }
    /// The value for the record.
    pub fn value(&self) -> std::option::Option<&str> {
        self.value.as_deref()
    }
    /// The server sync count for this record.
    pub fn sync_count(&self) -> std::option::Option<i64> {
        self.sync_count
    }
    /// The date on which the record was last modified.
    pub fn last_modified_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
        self.last_modified_date.as_ref()
    }
    /// The user/device that made the last change to this record.
    pub fn last_modified_by(&self) -> std::option::Option<&str> {
        self.last_modified_by.as_deref()
    }
    /// The last modified date of the client device.
    pub fn device_last_modified_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
        self.device_last_modified_date.as_ref()
    }
}
impl std::fmt::Debug for Record {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("Record");
        formatter.field("key", &self.key);
        formatter.field("value", &self.value);
        formatter.field("sync_count", &self.sync_count);
        formatter.field("last_modified_date", &self.last_modified_date);
        formatter.field("last_modified_by", &self.last_modified_by);
        formatter.field("device_last_modified_date", &self.device_last_modified_date);
        formatter.finish()
    }
}
/// See [`Record`](crate::model::Record)
pub mod record {

    /// A builder for [`Record`](crate::model::Record)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) key: std::option::Option<std::string::String>,
        pub(crate) value: std::option::Option<std::string::String>,
        pub(crate) sync_count: std::option::Option<i64>,
        pub(crate) last_modified_date: std::option::Option<aws_smithy_types::DateTime>,
        pub(crate) last_modified_by: std::option::Option<std::string::String>,
        pub(crate) device_last_modified_date: std::option::Option<aws_smithy_types::DateTime>,
    }
    impl Builder {
        /// The key for the record.
        pub fn key(mut self, input: impl Into<std::string::String>) -> Self {
            self.key = Some(input.into());
            self
        }
        /// The key for the record.
        pub fn set_key(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.key = input;
            self
        }
        /// The value for the record.
        pub fn value(mut self, input: impl Into<std::string::String>) -> Self {
            self.value = Some(input.into());
            self
        }
        /// The value for the record.
        pub fn set_value(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.value = input;
            self
        }
        /// The server sync count for this record.
        pub fn sync_count(mut self, input: i64) -> Self {
            self.sync_count = Some(input);
            self
        }
        /// The server sync count for this record.
        pub fn set_sync_count(mut self, input: std::option::Option<i64>) -> Self {
            self.sync_count = input;
            self
        }
        /// The date on which the record was last modified.
        pub fn last_modified_date(mut self, input: aws_smithy_types::DateTime) -> Self {
            self.last_modified_date = Some(input);
            self
        }
        /// The date on which the record was last modified.
        pub fn set_last_modified_date(
            mut self,
            input: std::option::Option<aws_smithy_types::DateTime>,
        ) -> Self {
            self.last_modified_date = input;
            self
        }
        /// The user/device that made the last change to this record.
        pub fn last_modified_by(mut self, input: impl Into<std::string::String>) -> Self {
            self.last_modified_by = Some(input.into());
            self
        }
        /// The user/device that made the last change to this record.
        pub fn set_last_modified_by(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.last_modified_by = input;
            self
        }
        /// The last modified date of the client device.
        pub fn device_last_modified_date(mut self, input: aws_smithy_types::DateTime) -> Self {
            self.device_last_modified_date = Some(input);
            self
        }
        /// The last modified date of the client device.
        pub fn set_device_last_modified_date(
            mut self,
            input: std::option::Option<aws_smithy_types::DateTime>,
        ) -> Self {
            self.device_last_modified_date = input;
            self
        }
        /// Consumes the builder and constructs a [`Record`](crate::model::Record)
        pub fn build(self) -> crate::model::Record {
            crate::model::Record {
                key: self.key,
                value: self.value,
                sync_count: self.sync_count,
                last_modified_date: self.last_modified_date,
                last_modified_by: self.last_modified_by,
                device_last_modified_date: self.device_last_modified_date,
            }
        }
    }
}
impl Record {
    /// Creates a new builder-style object to manufacture [`Record`](crate::model::Record)
    pub fn builder() -> crate::model::record::Builder {
        crate::model::record::Builder::default()
    }
}

/// An update operation for a record.
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct RecordPatch {
    /// An operation, either replace or remove.
    pub op: std::option::Option<crate::model::Operation>,
    /// The key associated with the record patch.
    pub key: std::option::Option<std::string::String>,
    /// The value associated with the record patch.
    pub value: std::option::Option<std::string::String>,
    /// Last known server sync count for this record. Set to 0 if unknown.
    pub sync_count: std::option::Option<i64>,
    /// The last modified date of the client device.
    pub device_last_modified_date: std::option::Option<aws_smithy_types::DateTime>,
}
impl RecordPatch {
    /// An operation, either replace or remove.
    pub fn op(&self) -> std::option::Option<&crate::model::Operation> {
        self.op.as_ref()
    }
    /// The key associated with the record patch.
    pub fn key(&self) -> std::option::Option<&str> {
        self.key.as_deref()
    }
    /// The value associated with the record patch.
    pub fn value(&self) -> std::option::Option<&str> {
        self.value.as_deref()
    }
    /// Last known server sync count for this record. Set to 0 if unknown.
    pub fn sync_count(&self) -> std::option::Option<i64> {
        self.sync_count
    }
    /// The last modified date of the client device.
    pub fn device_last_modified_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
        self.device_last_modified_date.as_ref()
    }
}
impl std::fmt::Debug for RecordPatch {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("RecordPatch");
        formatter.field("op", &self.op);
        formatter.field("key", &self.key);
        formatter.field("value", &self.value);
        formatter.field("sync_count", &self.sync_count);
        formatter.field("device_last_modified_date", &self.device_last_modified_date);
        formatter.finish()
    }
}
/// See [`RecordPatch`](crate::model::RecordPatch)
pub mod record_patch {

    /// A builder for [`RecordPatch`](crate::model::RecordPatch)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) op: std::option::Option<crate::model::Operation>,
        pub(crate) key: std::option::Option<std::string::String>,
        pub(crate) value: std::option::Option<std::string::String>,
        pub(crate) sync_count: std::option::Option<i64>,
        pub(crate) device_last_modified_date: std::option::Option<aws_smithy_types::DateTime>,
    }
    impl Builder {
        /// An operation, either replace or remove.
        pub fn op(mut self, input: crate::model::Operation) -> Self {
            self.op = Some(input);
            self
        }
        /// An operation, either replace or remove.
        pub fn set_op(mut self, input: std::option::Option<crate::model::Operation>) -> Self {
            self.op = input;
            self
        }
        /// The key associated with the record patch.
        pub fn key(mut self, input: impl Into<std::string::String>) -> Self {
            self.key = Some(input.into());
            self
        }
        /// The key associated with the record patch.
        pub fn set_key(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.key = input;
            self
        }
        /// The value associated with the record patch.
        pub fn value(mut self, input: impl Into<std::string::String>) -> Self {
            self.value = Some(input.into());
            self
        }
        /// The value associated with the record patch.
        pub fn set_value(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.value = input;
            self
        }
        /// Last known server sync count for this record. Set to 0 if unknown.
        pub fn sync_count(mut self, input: i64) -> Self {
            self.sync_count = Some(input);
            self
        }
        /// Last known server sync count for this record. Set to 0 if unknown.
        pub fn set_sync_count(mut self, input: std::option::Option<i64>) -> Self {
            self.sync_count = input;
            self
        }
        /// The last modified date of the client device.
        pub fn device_last_modified_date(mut self, input: aws_smithy_types::DateTime) -> Self {
            self.device_last_modified_date = Some(input);
            self
        }
        /// The last modified date of the client device.
        pub fn set_device_last_modified_date(
            mut self,
            input: std::option::Option<aws_smithy_types::DateTime>,
        ) -> Self {
            self.device_last_modified_date = input;
            self
        }
        /// Consumes the builder and constructs a [`RecordPatch`](crate::model::RecordPatch)
        pub fn build(self) -> crate::model::RecordPatch {
            crate::model::RecordPatch {
                op: self.op,
                key: self.key,
                value: self.value,
                sync_count: self.sync_count,
                device_last_modified_date: self.device_last_modified_date,
            }
        }
    }
}
impl RecordPatch {
    /// Creates a new builder-style object to manufacture [`RecordPatch`](crate::model::RecordPatch)
    pub fn builder() -> crate::model::record_patch::Builder {
        crate::model::record_patch::Builder::default()
    }
}

#[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 Operation {
    #[allow(missing_docs)] // documentation missing in model
    Remove,
    #[allow(missing_docs)] // documentation missing in model
    Replace,
    /// Unknown contains new variants that have been added since this code was generated.
    Unknown(String),
}
impl std::convert::From<&str> for Operation {
    fn from(s: &str) -> Self {
        match s {
            "remove" => Operation::Remove,
            "replace" => Operation::Replace,
            other => Operation::Unknown(other.to_owned()),
        }
    }
}
impl std::str::FromStr for Operation {
    type Err = std::convert::Infallible;

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

/// Configuration options for configure Cognito streams.
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct CognitoStreams {
    /// The name of the Cognito stream to receive updates. This stream must be in the developers account and in the same region as the identity pool.
    pub stream_name: std::option::Option<std::string::String>,
    /// The ARN of the role Amazon Cognito can assume in order to publish to the stream. This role must grant access to Amazon Cognito (cognito-sync) to invoke PutRecord on your Cognito stream.
    pub role_arn: std::option::Option<std::string::String>,
    /// Status of the Cognito streams. Valid values are:
    /// <p>ENABLED - Streaming of updates to identity pool is enabled.</p>
    /// <p>DISABLED - Streaming of updates to identity pool is disabled. Bulk publish will also fail if StreamingStatus is DISABLED.</p>
    pub streaming_status: std::option::Option<crate::model::StreamingStatus>,
}
impl CognitoStreams {
    /// The name of the Cognito stream to receive updates. This stream must be in the developers account and in the same region as the identity pool.
    pub fn stream_name(&self) -> std::option::Option<&str> {
        self.stream_name.as_deref()
    }
    /// The ARN of the role Amazon Cognito can assume in order to publish to the stream. This role must grant access to Amazon Cognito (cognito-sync) to invoke PutRecord on your Cognito stream.
    pub fn role_arn(&self) -> std::option::Option<&str> {
        self.role_arn.as_deref()
    }
    /// Status of the Cognito streams. Valid values are:
    /// <p>ENABLED - Streaming of updates to identity pool is enabled.</p>
    /// <p>DISABLED - Streaming of updates to identity pool is disabled. Bulk publish will also fail if StreamingStatus is DISABLED.</p>
    pub fn streaming_status(&self) -> std::option::Option<&crate::model::StreamingStatus> {
        self.streaming_status.as_ref()
    }
}
impl std::fmt::Debug for CognitoStreams {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("CognitoStreams");
        formatter.field("stream_name", &self.stream_name);
        formatter.field("role_arn", &self.role_arn);
        formatter.field("streaming_status", &self.streaming_status);
        formatter.finish()
    }
}
/// See [`CognitoStreams`](crate::model::CognitoStreams)
pub mod cognito_streams {

    /// A builder for [`CognitoStreams`](crate::model::CognitoStreams)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) stream_name: std::option::Option<std::string::String>,
        pub(crate) role_arn: std::option::Option<std::string::String>,
        pub(crate) streaming_status: std::option::Option<crate::model::StreamingStatus>,
    }
    impl Builder {
        /// The name of the Cognito stream to receive updates. This stream must be in the developers account and in the same region as the identity pool.
        pub fn stream_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.stream_name = Some(input.into());
            self
        }
        /// The name of the Cognito stream to receive updates. This stream must be in the developers account and in the same region as the identity pool.
        pub fn set_stream_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.stream_name = input;
            self
        }
        /// The ARN of the role Amazon Cognito can assume in order to publish to the stream. This role must grant access to Amazon Cognito (cognito-sync) to invoke PutRecord on your Cognito stream.
        pub fn role_arn(mut self, input: impl Into<std::string::String>) -> Self {
            self.role_arn = Some(input.into());
            self
        }
        /// The ARN of the role Amazon Cognito can assume in order to publish to the stream. This role must grant access to Amazon Cognito (cognito-sync) to invoke PutRecord on your Cognito stream.
        pub fn set_role_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.role_arn = input;
            self
        }
        /// Status of the Cognito streams. Valid values are:
        /// <p>ENABLED - Streaming of updates to identity pool is enabled.</p>
        /// <p>DISABLED - Streaming of updates to identity pool is disabled. Bulk publish will also fail if StreamingStatus is DISABLED.</p>
        pub fn streaming_status(mut self, input: crate::model::StreamingStatus) -> Self {
            self.streaming_status = Some(input);
            self
        }
        /// Status of the Cognito streams. Valid values are:
        /// <p>ENABLED - Streaming of updates to identity pool is enabled.</p>
        /// <p>DISABLED - Streaming of updates to identity pool is disabled. Bulk publish will also fail if StreamingStatus is DISABLED.</p>
        pub fn set_streaming_status(
            mut self,
            input: std::option::Option<crate::model::StreamingStatus>,
        ) -> Self {
            self.streaming_status = input;
            self
        }
        /// Consumes the builder and constructs a [`CognitoStreams`](crate::model::CognitoStreams)
        pub fn build(self) -> crate::model::CognitoStreams {
            crate::model::CognitoStreams {
                stream_name: self.stream_name,
                role_arn: self.role_arn,
                streaming_status: self.streaming_status,
            }
        }
    }
}
impl CognitoStreams {
    /// Creates a new builder-style object to manufacture [`CognitoStreams`](crate::model::CognitoStreams)
    pub fn builder() -> crate::model::cognito_streams::Builder {
        crate::model::cognito_streams::Builder::default()
    }
}

#[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 StreamingStatus {
    #[allow(missing_docs)] // documentation missing in model
    Disabled,
    #[allow(missing_docs)] // documentation missing in model
    Enabled,
    /// Unknown contains new variants that have been added since this code was generated.
    Unknown(String),
}
impl std::convert::From<&str> for StreamingStatus {
    fn from(s: &str) -> Self {
        match s {
            "DISABLED" => StreamingStatus::Disabled,
            "ENABLED" => StreamingStatus::Enabled,
            other => StreamingStatus::Unknown(other.to_owned()),
        }
    }
}
impl std::str::FromStr for StreamingStatus {
    type Err = std::convert::Infallible;

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

/// <p>Configuration options to be applied to the identity pool.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct PushSync {
    /// <p>List of SNS platform application ARNs that could be used by clients.</p>
    pub application_arns: std::option::Option<std::vec::Vec<std::string::String>>,
    /// <p>A role configured to allow Cognito to call SNS on behalf of the developer.</p>
    pub role_arn: std::option::Option<std::string::String>,
}
impl PushSync {
    /// <p>List of SNS platform application ARNs that could be used by clients.</p>
    pub fn application_arns(&self) -> std::option::Option<&[std::string::String]> {
        self.application_arns.as_deref()
    }
    /// <p>A role configured to allow Cognito to call SNS on behalf of the developer.</p>
    pub fn role_arn(&self) -> std::option::Option<&str> {
        self.role_arn.as_deref()
    }
}
impl std::fmt::Debug for PushSync {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("PushSync");
        formatter.field("application_arns", &self.application_arns);
        formatter.field("role_arn", &self.role_arn);
        formatter.finish()
    }
}
/// See [`PushSync`](crate::model::PushSync)
pub mod push_sync {

    /// A builder for [`PushSync`](crate::model::PushSync)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) application_arns: std::option::Option<std::vec::Vec<std::string::String>>,
        pub(crate) role_arn: std::option::Option<std::string::String>,
    }
    impl Builder {
        /// Appends an item to `application_arns`.
        ///
        /// To override the contents of this collection use [`set_application_arns`](Self::set_application_arns).
        ///
        /// <p>List of SNS platform application ARNs that could be used by clients.</p>
        pub fn application_arns(mut self, input: impl Into<std::string::String>) -> Self {
            let mut v = self.application_arns.unwrap_or_default();
            v.push(input.into());
            self.application_arns = Some(v);
            self
        }
        /// <p>List of SNS platform application ARNs that could be used by clients.</p>
        pub fn set_application_arns(
            mut self,
            input: std::option::Option<std::vec::Vec<std::string::String>>,
        ) -> Self {
            self.application_arns = input;
            self
        }
        /// <p>A role configured to allow Cognito to call SNS on behalf of the developer.</p>
        pub fn role_arn(mut self, input: impl Into<std::string::String>) -> Self {
            self.role_arn = Some(input.into());
            self
        }
        /// <p>A role configured to allow Cognito to call SNS on behalf of the developer.</p>
        pub fn set_role_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.role_arn = input;
            self
        }
        /// Consumes the builder and constructs a [`PushSync`](crate::model::PushSync)
        pub fn build(self) -> crate::model::PushSync {
            crate::model::PushSync {
                application_arns: self.application_arns,
                role_arn: self.role_arn,
            }
        }
    }
}
impl PushSync {
    /// Creates a new builder-style object to manufacture [`PushSync`](crate::model::PushSync)
    pub fn builder() -> crate::model::push_sync::Builder {
        crate::model::push_sync::Builder::default()
    }
}

#[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 Platform {
    #[allow(missing_docs)] // documentation missing in model
    Adm,
    #[allow(missing_docs)] // documentation missing in model
    Apns,
    #[allow(missing_docs)] // documentation missing in model
    ApnsSandbox,
    #[allow(missing_docs)] // documentation missing in model
    Gcm,
    /// Unknown contains new variants that have been added since this code was generated.
    Unknown(String),
}
impl std::convert::From<&str> for Platform {
    fn from(s: &str) -> Self {
        match s {
            "ADM" => Platform::Adm,
            "APNS" => Platform::Apns,
            "APNS_SANDBOX" => Platform::ApnsSandbox,
            "GCM" => Platform::Gcm,
            other => Platform::Unknown(other.to_owned()),
        }
    }
}
impl std::str::FromStr for Platform {
    type Err = std::convert::Infallible;

    fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
        Ok(Platform::from(s))
    }
}
impl Platform {
    /// Returns the `&str` value of the enum member.
    pub fn as_str(&self) -> &str {
        match self {
            Platform::Adm => "ADM",
            Platform::Apns => "APNS",
            Platform::ApnsSandbox => "APNS_SANDBOX",
            Platform::Gcm => "GCM",
            Platform::Unknown(s) => s.as_ref(),
        }
    }
    /// Returns all the `&str` values of the enum members.
    pub fn values() -> &'static [&'static str] {
        &["ADM", "APNS", "APNS_SANDBOX", "GCM"]
    }
}
impl AsRef<str> for Platform {
    fn as_ref(&self) -> &str {
        self.as_str()
    }
}

/// Usage information for the identity pool.
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct IdentityPoolUsage {
    /// A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.
    pub identity_pool_id: std::option::Option<std::string::String>,
    /// Number of sync sessions for the identity pool.
    pub sync_sessions_count: std::option::Option<i64>,
    /// Data storage information for the identity pool.
    pub data_storage: std::option::Option<i64>,
    /// Date on which the identity pool was last modified.
    pub last_modified_date: std::option::Option<aws_smithy_types::DateTime>,
}
impl IdentityPoolUsage {
    /// A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.
    pub fn identity_pool_id(&self) -> std::option::Option<&str> {
        self.identity_pool_id.as_deref()
    }
    /// Number of sync sessions for the identity pool.
    pub fn sync_sessions_count(&self) -> std::option::Option<i64> {
        self.sync_sessions_count
    }
    /// Data storage information for the identity pool.
    pub fn data_storage(&self) -> std::option::Option<i64> {
        self.data_storage
    }
    /// Date on which the identity pool was last modified.
    pub fn last_modified_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
        self.last_modified_date.as_ref()
    }
}
impl std::fmt::Debug for IdentityPoolUsage {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("IdentityPoolUsage");
        formatter.field("identity_pool_id", &self.identity_pool_id);
        formatter.field("sync_sessions_count", &self.sync_sessions_count);
        formatter.field("data_storage", &self.data_storage);
        formatter.field("last_modified_date", &self.last_modified_date);
        formatter.finish()
    }
}
/// See [`IdentityPoolUsage`](crate::model::IdentityPoolUsage)
pub mod identity_pool_usage {

    /// A builder for [`IdentityPoolUsage`](crate::model::IdentityPoolUsage)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) identity_pool_id: std::option::Option<std::string::String>,
        pub(crate) sync_sessions_count: std::option::Option<i64>,
        pub(crate) data_storage: std::option::Option<i64>,
        pub(crate) last_modified_date: std::option::Option<aws_smithy_types::DateTime>,
    }
    impl Builder {
        /// A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.
        pub fn identity_pool_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.identity_pool_id = Some(input.into());
            self
        }
        /// A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.
        pub fn set_identity_pool_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.identity_pool_id = input;
            self
        }
        /// Number of sync sessions for the identity pool.
        pub fn sync_sessions_count(mut self, input: i64) -> Self {
            self.sync_sessions_count = Some(input);
            self
        }
        /// Number of sync sessions for the identity pool.
        pub fn set_sync_sessions_count(mut self, input: std::option::Option<i64>) -> Self {
            self.sync_sessions_count = input;
            self
        }
        /// Data storage information for the identity pool.
        pub fn data_storage(mut self, input: i64) -> Self {
            self.data_storage = Some(input);
            self
        }
        /// Data storage information for the identity pool.
        pub fn set_data_storage(mut self, input: std::option::Option<i64>) -> Self {
            self.data_storage = input;
            self
        }
        /// Date on which the identity pool was last modified.
        pub fn last_modified_date(mut self, input: aws_smithy_types::DateTime) -> Self {
            self.last_modified_date = Some(input);
            self
        }
        /// Date on which the identity pool was last modified.
        pub fn set_last_modified_date(
            mut self,
            input: std::option::Option<aws_smithy_types::DateTime>,
        ) -> Self {
            self.last_modified_date = input;
            self
        }
        /// Consumes the builder and constructs a [`IdentityPoolUsage`](crate::model::IdentityPoolUsage)
        pub fn build(self) -> crate::model::IdentityPoolUsage {
            crate::model::IdentityPoolUsage {
                identity_pool_id: self.identity_pool_id,
                sync_sessions_count: self.sync_sessions_count,
                data_storage: self.data_storage,
                last_modified_date: self.last_modified_date,
            }
        }
    }
}
impl IdentityPoolUsage {
    /// Creates a new builder-style object to manufacture [`IdentityPoolUsage`](crate::model::IdentityPoolUsage)
    pub fn builder() -> crate::model::identity_pool_usage::Builder {
        crate::model::identity_pool_usage::Builder::default()
    }
}

/// A collection of data for an identity pool. An identity pool can have multiple datasets. A dataset is per identity and can be general or associated with a particular entity in an application (like a saved game). Datasets are automatically created if they don't exist. Data is synced by dataset, and a dataset can hold up to 1MB of key-value pairs.
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct Dataset {
    /// A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.
    pub identity_id: std::option::Option<std::string::String>,
    /// A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (dash), and '.' (dot).
    pub dataset_name: std::option::Option<std::string::String>,
    /// Date on which the dataset was created.
    pub creation_date: std::option::Option<aws_smithy_types::DateTime>,
    /// Date when the dataset was last modified.
    pub last_modified_date: std::option::Option<aws_smithy_types::DateTime>,
    /// The device that made the last change to this dataset.
    pub last_modified_by: std::option::Option<std::string::String>,
    /// Total size in bytes of the records in this dataset.
    pub data_storage: std::option::Option<i64>,
    /// Number of records in this dataset.
    pub num_records: std::option::Option<i64>,
}
impl Dataset {
    /// A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.
    pub fn identity_id(&self) -> std::option::Option<&str> {
        self.identity_id.as_deref()
    }
    /// A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (dash), and '.' (dot).
    pub fn dataset_name(&self) -> std::option::Option<&str> {
        self.dataset_name.as_deref()
    }
    /// Date on which the dataset was created.
    pub fn creation_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
        self.creation_date.as_ref()
    }
    /// Date when the dataset was last modified.
    pub fn last_modified_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
        self.last_modified_date.as_ref()
    }
    /// The device that made the last change to this dataset.
    pub fn last_modified_by(&self) -> std::option::Option<&str> {
        self.last_modified_by.as_deref()
    }
    /// Total size in bytes of the records in this dataset.
    pub fn data_storage(&self) -> std::option::Option<i64> {
        self.data_storage
    }
    /// Number of records in this dataset.
    pub fn num_records(&self) -> std::option::Option<i64> {
        self.num_records
    }
}
impl std::fmt::Debug for Dataset {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("Dataset");
        formatter.field("identity_id", &self.identity_id);
        formatter.field("dataset_name", &self.dataset_name);
        formatter.field("creation_date", &self.creation_date);
        formatter.field("last_modified_date", &self.last_modified_date);
        formatter.field("last_modified_by", &self.last_modified_by);
        formatter.field("data_storage", &self.data_storage);
        formatter.field("num_records", &self.num_records);
        formatter.finish()
    }
}
/// See [`Dataset`](crate::model::Dataset)
pub mod dataset {

    /// A builder for [`Dataset`](crate::model::Dataset)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) identity_id: std::option::Option<std::string::String>,
        pub(crate) dataset_name: std::option::Option<std::string::String>,
        pub(crate) creation_date: std::option::Option<aws_smithy_types::DateTime>,
        pub(crate) last_modified_date: std::option::Option<aws_smithy_types::DateTime>,
        pub(crate) last_modified_by: std::option::Option<std::string::String>,
        pub(crate) data_storage: std::option::Option<i64>,
        pub(crate) num_records: std::option::Option<i64>,
    }
    impl Builder {
        /// A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.
        pub fn identity_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.identity_id = Some(input.into());
            self
        }
        /// A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.
        pub fn set_identity_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.identity_id = input;
            self
        }
        /// A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (dash), and '.' (dot).
        pub fn dataset_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.dataset_name = Some(input.into());
            self
        }
        /// A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (dash), and '.' (dot).
        pub fn set_dataset_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.dataset_name = input;
            self
        }
        /// Date on which the dataset was created.
        pub fn creation_date(mut self, input: aws_smithy_types::DateTime) -> Self {
            self.creation_date = Some(input);
            self
        }
        /// Date on which the dataset was created.
        pub fn set_creation_date(
            mut self,
            input: std::option::Option<aws_smithy_types::DateTime>,
        ) -> Self {
            self.creation_date = input;
            self
        }
        /// Date when the dataset was last modified.
        pub fn last_modified_date(mut self, input: aws_smithy_types::DateTime) -> Self {
            self.last_modified_date = Some(input);
            self
        }
        /// Date when the dataset was last modified.
        pub fn set_last_modified_date(
            mut self,
            input: std::option::Option<aws_smithy_types::DateTime>,
        ) -> Self {
            self.last_modified_date = input;
            self
        }
        /// The device that made the last change to this dataset.
        pub fn last_modified_by(mut self, input: impl Into<std::string::String>) -> Self {
            self.last_modified_by = Some(input.into());
            self
        }
        /// The device that made the last change to this dataset.
        pub fn set_last_modified_by(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.last_modified_by = input;
            self
        }
        /// Total size in bytes of the records in this dataset.
        pub fn data_storage(mut self, input: i64) -> Self {
            self.data_storage = Some(input);
            self
        }
        /// Total size in bytes of the records in this dataset.
        pub fn set_data_storage(mut self, input: std::option::Option<i64>) -> Self {
            self.data_storage = input;
            self
        }
        /// Number of records in this dataset.
        pub fn num_records(mut self, input: i64) -> Self {
            self.num_records = Some(input);
            self
        }
        /// Number of records in this dataset.
        pub fn set_num_records(mut self, input: std::option::Option<i64>) -> Self {
            self.num_records = input;
            self
        }
        /// Consumes the builder and constructs a [`Dataset`](crate::model::Dataset)
        pub fn build(self) -> crate::model::Dataset {
            crate::model::Dataset {
                identity_id: self.identity_id,
                dataset_name: self.dataset_name,
                creation_date: self.creation_date,
                last_modified_date: self.last_modified_date,
                last_modified_by: self.last_modified_by,
                data_storage: self.data_storage,
                num_records: self.num_records,
            }
        }
    }
}
impl Dataset {
    /// Creates a new builder-style object to manufacture [`Dataset`](crate::model::Dataset)
    pub fn builder() -> crate::model::dataset::Builder {
        crate::model::dataset::Builder::default()
    }
}

#[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 BulkPublishStatus {
    #[allow(missing_docs)] // documentation missing in model
    Failed,
    #[allow(missing_docs)] // documentation missing in model
    InProgress,
    #[allow(missing_docs)] // documentation missing in model
    NotStarted,
    #[allow(missing_docs)] // documentation missing in model
    Succeeded,
    /// Unknown contains new variants that have been added since this code was generated.
    Unknown(String),
}
impl std::convert::From<&str> for BulkPublishStatus {
    fn from(s: &str) -> Self {
        match s {
            "FAILED" => BulkPublishStatus::Failed,
            "IN_PROGRESS" => BulkPublishStatus::InProgress,
            "NOT_STARTED" => BulkPublishStatus::NotStarted,
            "SUCCEEDED" => BulkPublishStatus::Succeeded,
            other => BulkPublishStatus::Unknown(other.to_owned()),
        }
    }
}
impl std::str::FromStr for BulkPublishStatus {
    type Err = std::convert::Infallible;

    fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
        Ok(BulkPublishStatus::from(s))
    }
}
impl BulkPublishStatus {
    /// Returns the `&str` value of the enum member.
    pub fn as_str(&self) -> &str {
        match self {
            BulkPublishStatus::Failed => "FAILED",
            BulkPublishStatus::InProgress => "IN_PROGRESS",
            BulkPublishStatus::NotStarted => "NOT_STARTED",
            BulkPublishStatus::Succeeded => "SUCCEEDED",
            BulkPublishStatus::Unknown(s) => s.as_ref(),
        }
    }
    /// Returns all the `&str` values of the enum members.
    pub fn values() -> &'static [&'static str] {
        &["FAILED", "IN_PROGRESS", "NOT_STARTED", "SUCCEEDED"]
    }
}
impl AsRef<str> for BulkPublishStatus {
    fn as_ref(&self) -> &str {
        self.as_str()
    }
}

/// Usage information for the identity.
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct IdentityUsage {
    /// A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.
    pub identity_id: std::option::Option<std::string::String>,
    /// A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.
    pub identity_pool_id: std::option::Option<std::string::String>,
    /// Date on which the identity was last modified.
    pub last_modified_date: std::option::Option<aws_smithy_types::DateTime>,
    /// Number of datasets for the identity.
    pub dataset_count: i32,
    /// Total data storage for this identity.
    pub data_storage: std::option::Option<i64>,
}
impl IdentityUsage {
    /// A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.
    pub fn identity_id(&self) -> std::option::Option<&str> {
        self.identity_id.as_deref()
    }
    /// A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.
    pub fn identity_pool_id(&self) -> std::option::Option<&str> {
        self.identity_pool_id.as_deref()
    }
    /// Date on which the identity was last modified.
    pub fn last_modified_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
        self.last_modified_date.as_ref()
    }
    /// Number of datasets for the identity.
    pub fn dataset_count(&self) -> i32 {
        self.dataset_count
    }
    /// Total data storage for this identity.
    pub fn data_storage(&self) -> std::option::Option<i64> {
        self.data_storage
    }
}
impl std::fmt::Debug for IdentityUsage {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("IdentityUsage");
        formatter.field("identity_id", &self.identity_id);
        formatter.field("identity_pool_id", &self.identity_pool_id);
        formatter.field("last_modified_date", &self.last_modified_date);
        formatter.field("dataset_count", &self.dataset_count);
        formatter.field("data_storage", &self.data_storage);
        formatter.finish()
    }
}
/// See [`IdentityUsage`](crate::model::IdentityUsage)
pub mod identity_usage {

    /// A builder for [`IdentityUsage`](crate::model::IdentityUsage)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) identity_id: std::option::Option<std::string::String>,
        pub(crate) identity_pool_id: std::option::Option<std::string::String>,
        pub(crate) last_modified_date: std::option::Option<aws_smithy_types::DateTime>,
        pub(crate) dataset_count: std::option::Option<i32>,
        pub(crate) data_storage: std::option::Option<i64>,
    }
    impl Builder {
        /// A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.
        pub fn identity_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.identity_id = Some(input.into());
            self
        }
        /// A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.
        pub fn set_identity_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.identity_id = input;
            self
        }
        /// A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.
        pub fn identity_pool_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.identity_pool_id = Some(input.into());
            self
        }
        /// A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.
        pub fn set_identity_pool_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.identity_pool_id = input;
            self
        }
        /// Date on which the identity was last modified.
        pub fn last_modified_date(mut self, input: aws_smithy_types::DateTime) -> Self {
            self.last_modified_date = Some(input);
            self
        }
        /// Date on which the identity was last modified.
        pub fn set_last_modified_date(
            mut self,
            input: std::option::Option<aws_smithy_types::DateTime>,
        ) -> Self {
            self.last_modified_date = input;
            self
        }
        /// Number of datasets for the identity.
        pub fn dataset_count(mut self, input: i32) -> Self {
            self.dataset_count = Some(input);
            self
        }
        /// Number of datasets for the identity.
        pub fn set_dataset_count(mut self, input: std::option::Option<i32>) -> Self {
            self.dataset_count = input;
            self
        }
        /// Total data storage for this identity.
        pub fn data_storage(mut self, input: i64) -> Self {
            self.data_storage = Some(input);
            self
        }
        /// Total data storage for this identity.
        pub fn set_data_storage(mut self, input: std::option::Option<i64>) -> Self {
            self.data_storage = input;
            self
        }
        /// Consumes the builder and constructs a [`IdentityUsage`](crate::model::IdentityUsage)
        pub fn build(self) -> crate::model::IdentityUsage {
            crate::model::IdentityUsage {
                identity_id: self.identity_id,
                identity_pool_id: self.identity_pool_id,
                last_modified_date: self.last_modified_date,
                dataset_count: self.dataset_count.unwrap_or_default(),
                data_storage: self.data_storage,
            }
        }
    }
}
impl IdentityUsage {
    /// Creates a new builder-style object to manufacture [`IdentityUsage`](crate::model::IdentityUsage)
    pub fn builder() -> crate::model::identity_usage::Builder {
        crate::model::identity_usage::Builder::default()
    }
}