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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>Represents an FinSpace environment.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct Environment {
    /// <p>The name of the FinSpace environment.</p>
    pub name: std::option::Option<std::string::String>,
    /// <p>The identifier of the FinSpace environment.</p>
    pub environment_id: std::option::Option<std::string::String>,
    /// <p>The ID of the AWS account in which the FinSpace environment is created.</p>
    pub aws_account_id: std::option::Option<std::string::String>,
    /// <p>The current status of creation of the FinSpace environment.</p>
    pub status: std::option::Option<crate::model::EnvironmentStatus>,
    /// <p>The sign-in url for the web application of your FinSpace environment.</p>
    pub environment_url: std::option::Option<std::string::String>,
    /// <p>The description of the FinSpace environment.</p>
    pub description: std::option::Option<std::string::String>,
    /// <p>The Amazon Resource Name (ARN) of your FinSpace environment.</p>
    pub environment_arn: std::option::Option<std::string::String>,
    /// <p>The url of the integrated FinSpace notebook environment in your web application.</p>
    pub sage_maker_studio_domain_url: std::option::Option<std::string::String>,
    /// <p>The KMS key id used to encrypt in the FinSpace environment.</p>
    pub kms_key_id: std::option::Option<std::string::String>,
    /// <p>The AWS account ID of the dedicated service account associated with your FinSpace environment.</p>
    pub dedicated_service_account_id: std::option::Option<std::string::String>,
    /// <p>The authentication mode for the environment.</p>
    pub federation_mode: std::option::Option<crate::model::FederationMode>,
    /// <p>Configuration information when authentication mode is FEDERATED.</p>
    pub federation_parameters: std::option::Option<crate::model::FederationParameters>,
}
impl Environment {
    /// <p>The name of the FinSpace environment.</p>
    pub fn name(&self) -> std::option::Option<&str> {
        self.name.as_deref()
    }
    /// <p>The identifier of the FinSpace environment.</p>
    pub fn environment_id(&self) -> std::option::Option<&str> {
        self.environment_id.as_deref()
    }
    /// <p>The ID of the AWS account in which the FinSpace environment is created.</p>
    pub fn aws_account_id(&self) -> std::option::Option<&str> {
        self.aws_account_id.as_deref()
    }
    /// <p>The current status of creation of the FinSpace environment.</p>
    pub fn status(&self) -> std::option::Option<&crate::model::EnvironmentStatus> {
        self.status.as_ref()
    }
    /// <p>The sign-in url for the web application of your FinSpace environment.</p>
    pub fn environment_url(&self) -> std::option::Option<&str> {
        self.environment_url.as_deref()
    }
    /// <p>The description of the FinSpace environment.</p>
    pub fn description(&self) -> std::option::Option<&str> {
        self.description.as_deref()
    }
    /// <p>The Amazon Resource Name (ARN) of your FinSpace environment.</p>
    pub fn environment_arn(&self) -> std::option::Option<&str> {
        self.environment_arn.as_deref()
    }
    /// <p>The url of the integrated FinSpace notebook environment in your web application.</p>
    pub fn sage_maker_studio_domain_url(&self) -> std::option::Option<&str> {
        self.sage_maker_studio_domain_url.as_deref()
    }
    /// <p>The KMS key id used to encrypt in the FinSpace environment.</p>
    pub fn kms_key_id(&self) -> std::option::Option<&str> {
        self.kms_key_id.as_deref()
    }
    /// <p>The AWS account ID of the dedicated service account associated with your FinSpace environment.</p>
    pub fn dedicated_service_account_id(&self) -> std::option::Option<&str> {
        self.dedicated_service_account_id.as_deref()
    }
    /// <p>The authentication mode for the environment.</p>
    pub fn federation_mode(&self) -> std::option::Option<&crate::model::FederationMode> {
        self.federation_mode.as_ref()
    }
    /// <p>Configuration information when authentication mode is FEDERATED.</p>
    pub fn federation_parameters(
        &self,
    ) -> std::option::Option<&crate::model::FederationParameters> {
        self.federation_parameters.as_ref()
    }
}
impl std::fmt::Debug for Environment {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("Environment");
        formatter.field("name", &self.name);
        formatter.field("environment_id", &self.environment_id);
        formatter.field("aws_account_id", &self.aws_account_id);
        formatter.field("status", &self.status);
        formatter.field("environment_url", &self.environment_url);
        formatter.field("description", &self.description);
        formatter.field("environment_arn", &self.environment_arn);
        formatter.field(
            "sage_maker_studio_domain_url",
            &self.sage_maker_studio_domain_url,
        );
        formatter.field("kms_key_id", &self.kms_key_id);
        formatter.field(
            "dedicated_service_account_id",
            &self.dedicated_service_account_id,
        );
        formatter.field("federation_mode", &self.federation_mode);
        formatter.field("federation_parameters", &self.federation_parameters);
        formatter.finish()
    }
}
/// See [`Environment`](crate::model::Environment)
pub mod environment {
    /// A builder for [`Environment`](crate::model::Environment)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) name: std::option::Option<std::string::String>,
        pub(crate) environment_id: std::option::Option<std::string::String>,
        pub(crate) aws_account_id: std::option::Option<std::string::String>,
        pub(crate) status: std::option::Option<crate::model::EnvironmentStatus>,
        pub(crate) environment_url: std::option::Option<std::string::String>,
        pub(crate) description: std::option::Option<std::string::String>,
        pub(crate) environment_arn: std::option::Option<std::string::String>,
        pub(crate) sage_maker_studio_domain_url: std::option::Option<std::string::String>,
        pub(crate) kms_key_id: std::option::Option<std::string::String>,
        pub(crate) dedicated_service_account_id: std::option::Option<std::string::String>,
        pub(crate) federation_mode: std::option::Option<crate::model::FederationMode>,
        pub(crate) federation_parameters: std::option::Option<crate::model::FederationParameters>,
    }
    impl Builder {
        /// <p>The name of the FinSpace environment.</p>
        pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
            self.name = Some(input.into());
            self
        }
        /// <p>The name of the FinSpace environment.</p>
        pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.name = input;
            self
        }
        /// <p>The identifier of the FinSpace environment.</p>
        pub fn environment_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.environment_id = Some(input.into());
            self
        }
        /// <p>The identifier of the FinSpace environment.</p>
        pub fn set_environment_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.environment_id = input;
            self
        }
        /// <p>The ID of the AWS account in which the FinSpace environment is created.</p>
        pub fn aws_account_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.aws_account_id = Some(input.into());
            self
        }
        /// <p>The ID of the AWS account in which the FinSpace environment is created.</p>
        pub fn set_aws_account_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.aws_account_id = input;
            self
        }
        /// <p>The current status of creation of the FinSpace environment.</p>
        pub fn status(mut self, input: crate::model::EnvironmentStatus) -> Self {
            self.status = Some(input);
            self
        }
        /// <p>The current status of creation of the FinSpace environment.</p>
        pub fn set_status(
            mut self,
            input: std::option::Option<crate::model::EnvironmentStatus>,
        ) -> Self {
            self.status = input;
            self
        }
        /// <p>The sign-in url for the web application of your FinSpace environment.</p>
        pub fn environment_url(mut self, input: impl Into<std::string::String>) -> Self {
            self.environment_url = Some(input.into());
            self
        }
        /// <p>The sign-in url for the web application of your FinSpace environment.</p>
        pub fn set_environment_url(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.environment_url = input;
            self
        }
        /// <p>The description of the FinSpace environment.</p>
        pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
            self.description = Some(input.into());
            self
        }
        /// <p>The description of the FinSpace environment.</p>
        pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.description = input;
            self
        }
        /// <p>The Amazon Resource Name (ARN) of your FinSpace environment.</p>
        pub fn environment_arn(mut self, input: impl Into<std::string::String>) -> Self {
            self.environment_arn = Some(input.into());
            self
        }
        /// <p>The Amazon Resource Name (ARN) of your FinSpace environment.</p>
        pub fn set_environment_arn(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.environment_arn = input;
            self
        }
        /// <p>The url of the integrated FinSpace notebook environment in your web application.</p>
        pub fn sage_maker_studio_domain_url(
            mut self,
            input: impl Into<std::string::String>,
        ) -> Self {
            self.sage_maker_studio_domain_url = Some(input.into());
            self
        }
        /// <p>The url of the integrated FinSpace notebook environment in your web application.</p>
        pub fn set_sage_maker_studio_domain_url(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.sage_maker_studio_domain_url = input;
            self
        }
        /// <p>The KMS key id used to encrypt in the FinSpace environment.</p>
        pub fn kms_key_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.kms_key_id = Some(input.into());
            self
        }
        /// <p>The KMS key id used to encrypt in the FinSpace environment.</p>
        pub fn set_kms_key_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.kms_key_id = input;
            self
        }
        /// <p>The AWS account ID of the dedicated service account associated with your FinSpace environment.</p>
        pub fn dedicated_service_account_id(
            mut self,
            input: impl Into<std::string::String>,
        ) -> Self {
            self.dedicated_service_account_id = Some(input.into());
            self
        }
        /// <p>The AWS account ID of the dedicated service account associated with your FinSpace environment.</p>
        pub fn set_dedicated_service_account_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.dedicated_service_account_id = input;
            self
        }
        /// <p>The authentication mode for the environment.</p>
        pub fn federation_mode(mut self, input: crate::model::FederationMode) -> Self {
            self.federation_mode = Some(input);
            self
        }
        /// <p>The authentication mode for the environment.</p>
        pub fn set_federation_mode(
            mut self,
            input: std::option::Option<crate::model::FederationMode>,
        ) -> Self {
            self.federation_mode = input;
            self
        }
        /// <p>Configuration information when authentication mode is FEDERATED.</p>
        pub fn federation_parameters(mut self, input: crate::model::FederationParameters) -> Self {
            self.federation_parameters = Some(input);
            self
        }
        /// <p>Configuration information when authentication mode is FEDERATED.</p>
        pub fn set_federation_parameters(
            mut self,
            input: std::option::Option<crate::model::FederationParameters>,
        ) -> Self {
            self.federation_parameters = input;
            self
        }
        /// Consumes the builder and constructs a [`Environment`](crate::model::Environment)
        pub fn build(self) -> crate::model::Environment {
            crate::model::Environment {
                name: self.name,
                environment_id: self.environment_id,
                aws_account_id: self.aws_account_id,
                status: self.status,
                environment_url: self.environment_url,
                description: self.description,
                environment_arn: self.environment_arn,
                sage_maker_studio_domain_url: self.sage_maker_studio_domain_url,
                kms_key_id: self.kms_key_id,
                dedicated_service_account_id: self.dedicated_service_account_id,
                federation_mode: self.federation_mode,
                federation_parameters: self.federation_parameters,
            }
        }
    }
}
impl Environment {
    /// Creates a new builder-style object to manufacture [`Environment`](crate::model::Environment)
    pub fn builder() -> crate::model::environment::Builder {
        crate::model::environment::Builder::default()
    }
}

/// <p>Configuration information when authentication mode is FEDERATED.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct FederationParameters {
    /// <p>SAML 2.0 Metadata document from identity provider (IdP).</p>
    pub saml_metadata_document: std::option::Option<std::string::String>,
    /// <p>Provide the metadata URL from your SAML 2.0 compliant identity provider (IdP).</p>
    pub saml_metadata_url: std::option::Option<std::string::String>,
    /// <p>The redirect or sign-in URL that should be entered into the SAML 2.0 compliant identity provider configuration (IdP).</p>
    pub application_call_back_url: std::option::Option<std::string::String>,
    /// <p>The Uniform Resource Name (URN). Also referred as Service Provider URN or Audience URI or Service Provider Entity ID.</p>
    pub federation_urn: std::option::Option<std::string::String>,
    /// <p>Name of the identity provider (IdP).</p>
    pub federation_provider_name: std::option::Option<std::string::String>,
    /// <p>SAML attribute name and value. The name must always be <code>Email</code> and the value should be set to the attribute definition in which user email is set. For example, name would be <code>Email</code> and value <code>http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress</code>. Please check your SAML 2.0 compliant identity provider (IdP) documentation for details.</p>
    pub attribute_map:
        std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
}
impl FederationParameters {
    /// <p>SAML 2.0 Metadata document from identity provider (IdP).</p>
    pub fn saml_metadata_document(&self) -> std::option::Option<&str> {
        self.saml_metadata_document.as_deref()
    }
    /// <p>Provide the metadata URL from your SAML 2.0 compliant identity provider (IdP).</p>
    pub fn saml_metadata_url(&self) -> std::option::Option<&str> {
        self.saml_metadata_url.as_deref()
    }
    /// <p>The redirect or sign-in URL that should be entered into the SAML 2.0 compliant identity provider configuration (IdP).</p>
    pub fn application_call_back_url(&self) -> std::option::Option<&str> {
        self.application_call_back_url.as_deref()
    }
    /// <p>The Uniform Resource Name (URN). Also referred as Service Provider URN or Audience URI or Service Provider Entity ID.</p>
    pub fn federation_urn(&self) -> std::option::Option<&str> {
        self.federation_urn.as_deref()
    }
    /// <p>Name of the identity provider (IdP).</p>
    pub fn federation_provider_name(&self) -> std::option::Option<&str> {
        self.federation_provider_name.as_deref()
    }
    /// <p>SAML attribute name and value. The name must always be <code>Email</code> and the value should be set to the attribute definition in which user email is set. For example, name would be <code>Email</code> and value <code>http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress</code>. Please check your SAML 2.0 compliant identity provider (IdP) documentation for details.</p>
    pub fn attribute_map(
        &self,
    ) -> std::option::Option<&std::collections::HashMap<std::string::String, std::string::String>>
    {
        self.attribute_map.as_ref()
    }
}
impl std::fmt::Debug for FederationParameters {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("FederationParameters");
        formatter.field("saml_metadata_document", &self.saml_metadata_document);
        formatter.field("saml_metadata_url", &self.saml_metadata_url);
        formatter.field("application_call_back_url", &self.application_call_back_url);
        formatter.field("federation_urn", &self.federation_urn);
        formatter.field("federation_provider_name", &self.federation_provider_name);
        formatter.field("attribute_map", &self.attribute_map);
        formatter.finish()
    }
}
/// See [`FederationParameters`](crate::model::FederationParameters)
pub mod federation_parameters {
    /// A builder for [`FederationParameters`](crate::model::FederationParameters)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) saml_metadata_document: std::option::Option<std::string::String>,
        pub(crate) saml_metadata_url: std::option::Option<std::string::String>,
        pub(crate) application_call_back_url: std::option::Option<std::string::String>,
        pub(crate) federation_urn: std::option::Option<std::string::String>,
        pub(crate) federation_provider_name: std::option::Option<std::string::String>,
        pub(crate) attribute_map: std::option::Option<
            std::collections::HashMap<std::string::String, std::string::String>,
        >,
    }
    impl Builder {
        /// <p>SAML 2.0 Metadata document from identity provider (IdP).</p>
        pub fn saml_metadata_document(mut self, input: impl Into<std::string::String>) -> Self {
            self.saml_metadata_document = Some(input.into());
            self
        }
        /// <p>SAML 2.0 Metadata document from identity provider (IdP).</p>
        pub fn set_saml_metadata_document(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.saml_metadata_document = input;
            self
        }
        /// <p>Provide the metadata URL from your SAML 2.0 compliant identity provider (IdP).</p>
        pub fn saml_metadata_url(mut self, input: impl Into<std::string::String>) -> Self {
            self.saml_metadata_url = Some(input.into());
            self
        }
        /// <p>Provide the metadata URL from your SAML 2.0 compliant identity provider (IdP).</p>
        pub fn set_saml_metadata_url(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.saml_metadata_url = input;
            self
        }
        /// <p>The redirect or sign-in URL that should be entered into the SAML 2.0 compliant identity provider configuration (IdP).</p>
        pub fn application_call_back_url(mut self, input: impl Into<std::string::String>) -> Self {
            self.application_call_back_url = Some(input.into());
            self
        }
        /// <p>The redirect or sign-in URL that should be entered into the SAML 2.0 compliant identity provider configuration (IdP).</p>
        pub fn set_application_call_back_url(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.application_call_back_url = input;
            self
        }
        /// <p>The Uniform Resource Name (URN). Also referred as Service Provider URN or Audience URI or Service Provider Entity ID.</p>
        pub fn federation_urn(mut self, input: impl Into<std::string::String>) -> Self {
            self.federation_urn = Some(input.into());
            self
        }
        /// <p>The Uniform Resource Name (URN). Also referred as Service Provider URN or Audience URI or Service Provider Entity ID.</p>
        pub fn set_federation_urn(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.federation_urn = input;
            self
        }
        /// <p>Name of the identity provider (IdP).</p>
        pub fn federation_provider_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.federation_provider_name = Some(input.into());
            self
        }
        /// <p>Name of the identity provider (IdP).</p>
        pub fn set_federation_provider_name(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.federation_provider_name = input;
            self
        }
        /// Adds a key-value pair to `attribute_map`.
        ///
        /// To override the contents of this collection use [`set_attribute_map`](Self::set_attribute_map).
        ///
        /// <p>SAML attribute name and value. The name must always be <code>Email</code> and the value should be set to the attribute definition in which user email is set. For example, name would be <code>Email</code> and value <code>http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress</code>. Please check your SAML 2.0 compliant identity provider (IdP) documentation for details.</p>
        pub fn attribute_map(
            mut self,
            k: impl Into<std::string::String>,
            v: impl Into<std::string::String>,
        ) -> Self {
            let mut hash_map = self.attribute_map.unwrap_or_default();
            hash_map.insert(k.into(), v.into());
            self.attribute_map = Some(hash_map);
            self
        }
        /// <p>SAML attribute name and value. The name must always be <code>Email</code> and the value should be set to the attribute definition in which user email is set. For example, name would be <code>Email</code> and value <code>http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress</code>. Please check your SAML 2.0 compliant identity provider (IdP) documentation for details.</p>
        pub fn set_attribute_map(
            mut self,
            input: std::option::Option<
                std::collections::HashMap<std::string::String, std::string::String>,
            >,
        ) -> Self {
            self.attribute_map = input;
            self
        }
        /// Consumes the builder and constructs a [`FederationParameters`](crate::model::FederationParameters)
        pub fn build(self) -> crate::model::FederationParameters {
            crate::model::FederationParameters {
                saml_metadata_document: self.saml_metadata_document,
                saml_metadata_url: self.saml_metadata_url,
                application_call_back_url: self.application_call_back_url,
                federation_urn: self.federation_urn,
                federation_provider_name: self.federation_provider_name,
                attribute_map: self.attribute_map,
            }
        }
    }
}
impl FederationParameters {
    /// Creates a new builder-style object to manufacture [`FederationParameters`](crate::model::FederationParameters)
    pub fn builder() -> crate::model::federation_parameters::Builder {
        crate::model::federation_parameters::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 FederationMode {
    #[allow(missing_docs)] // documentation missing in model
    Federated,
    #[allow(missing_docs)] // documentation missing in model
    Local,
    /// Unknown contains new variants that have been added since this code was generated.
    Unknown(String),
}
impl std::convert::From<&str> for FederationMode {
    fn from(s: &str) -> Self {
        match s {
            "FEDERATED" => FederationMode::Federated,
            "LOCAL" => FederationMode::Local,
            other => FederationMode::Unknown(other.to_owned()),
        }
    }
}
impl std::str::FromStr for FederationMode {
    type Err = std::convert::Infallible;

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

#[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 EnvironmentStatus {
    #[allow(missing_docs)] // documentation missing in model
    Created,
    #[allow(missing_docs)] // documentation missing in model
    CreateRequested,
    #[allow(missing_docs)] // documentation missing in model
    Creating,
    #[allow(missing_docs)] // documentation missing in model
    Deleted,
    #[allow(missing_docs)] // documentation missing in model
    DeleteRequested,
    #[allow(missing_docs)] // documentation missing in model
    Deleting,
    #[allow(missing_docs)] // documentation missing in model
    FailedCreation,
    #[allow(missing_docs)] // documentation missing in model
    FailedDeletion,
    #[allow(missing_docs)] // documentation missing in model
    RetryDeletion,
    #[allow(missing_docs)] // documentation missing in model
    Suspended,
    /// Unknown contains new variants that have been added since this code was generated.
    Unknown(String),
}
impl std::convert::From<&str> for EnvironmentStatus {
    fn from(s: &str) -> Self {
        match s {
            "CREATED" => EnvironmentStatus::Created,
            "CREATE_REQUESTED" => EnvironmentStatus::CreateRequested,
            "CREATING" => EnvironmentStatus::Creating,
            "DELETED" => EnvironmentStatus::Deleted,
            "DELETE_REQUESTED" => EnvironmentStatus::DeleteRequested,
            "DELETING" => EnvironmentStatus::Deleting,
            "FAILED_CREATION" => EnvironmentStatus::FailedCreation,
            "FAILED_DELETION" => EnvironmentStatus::FailedDeletion,
            "RETRY_DELETION" => EnvironmentStatus::RetryDeletion,
            "SUSPENDED" => EnvironmentStatus::Suspended,
            other => EnvironmentStatus::Unknown(other.to_owned()),
        }
    }
}
impl std::str::FromStr for EnvironmentStatus {
    type Err = std::convert::Infallible;

    fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
        Ok(EnvironmentStatus::from(s))
    }
}
impl EnvironmentStatus {
    /// Returns the `&str` value of the enum member.
    pub fn as_str(&self) -> &str {
        match self {
            EnvironmentStatus::Created => "CREATED",
            EnvironmentStatus::CreateRequested => "CREATE_REQUESTED",
            EnvironmentStatus::Creating => "CREATING",
            EnvironmentStatus::Deleted => "DELETED",
            EnvironmentStatus::DeleteRequested => "DELETE_REQUESTED",
            EnvironmentStatus::Deleting => "DELETING",
            EnvironmentStatus::FailedCreation => "FAILED_CREATION",
            EnvironmentStatus::FailedDeletion => "FAILED_DELETION",
            EnvironmentStatus::RetryDeletion => "RETRY_DELETION",
            EnvironmentStatus::Suspended => "SUSPENDED",
            EnvironmentStatus::Unknown(s) => s.as_ref(),
        }
    }
    /// Returns all the `&str` values of the enum members.
    pub fn values() -> &'static [&'static str] {
        &[
            "CREATED",
            "CREATE_REQUESTED",
            "CREATING",
            "DELETED",
            "DELETE_REQUESTED",
            "DELETING",
            "FAILED_CREATION",
            "FAILED_DELETION",
            "RETRY_DELETION",
            "SUSPENDED",
        ]
    }
}
impl AsRef<str> for EnvironmentStatus {
    fn as_ref(&self) -> &str {
        self.as_str()
    }
}

/// <p>Configuration information for the superuser.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SuperuserParameters {
    /// <p>The email address of the superuser.</p>
    pub email_address: std::option::Option<std::string::String>,
    /// <p>The first name of the superuser.</p>
    pub first_name: std::option::Option<std::string::String>,
    /// <p>The last name of the superuser.</p>
    pub last_name: std::option::Option<std::string::String>,
}
impl SuperuserParameters {
    /// <p>The email address of the superuser.</p>
    pub fn email_address(&self) -> std::option::Option<&str> {
        self.email_address.as_deref()
    }
    /// <p>The first name of the superuser.</p>
    pub fn first_name(&self) -> std::option::Option<&str> {
        self.first_name.as_deref()
    }
    /// <p>The last name of the superuser.</p>
    pub fn last_name(&self) -> std::option::Option<&str> {
        self.last_name.as_deref()
    }
}
impl std::fmt::Debug for SuperuserParameters {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("SuperuserParameters");
        formatter.field("email_address", &"*** Sensitive Data Redacted ***");
        formatter.field("first_name", &self.first_name);
        formatter.field("last_name", &self.last_name);
        formatter.finish()
    }
}
/// See [`SuperuserParameters`](crate::model::SuperuserParameters)
pub mod superuser_parameters {
    /// A builder for [`SuperuserParameters`](crate::model::SuperuserParameters)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) email_address: std::option::Option<std::string::String>,
        pub(crate) first_name: std::option::Option<std::string::String>,
        pub(crate) last_name: std::option::Option<std::string::String>,
    }
    impl Builder {
        /// <p>The email address of the superuser.</p>
        pub fn email_address(mut self, input: impl Into<std::string::String>) -> Self {
            self.email_address = Some(input.into());
            self
        }
        /// <p>The email address of the superuser.</p>
        pub fn set_email_address(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.email_address = input;
            self
        }
        /// <p>The first name of the superuser.</p>
        pub fn first_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.first_name = Some(input.into());
            self
        }
        /// <p>The first name of the superuser.</p>
        pub fn set_first_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.first_name = input;
            self
        }
        /// <p>The last name of the superuser.</p>
        pub fn last_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.last_name = Some(input.into());
            self
        }
        /// <p>The last name of the superuser.</p>
        pub fn set_last_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.last_name = input;
            self
        }
        /// Consumes the builder and constructs a [`SuperuserParameters`](crate::model::SuperuserParameters)
        pub fn build(self) -> crate::model::SuperuserParameters {
            crate::model::SuperuserParameters {
                email_address: self.email_address,
                first_name: self.first_name,
                last_name: self.last_name,
            }
        }
    }
}
impl SuperuserParameters {
    /// Creates a new builder-style object to manufacture [`SuperuserParameters`](crate::model::SuperuserParameters)
    pub fn builder() -> crate::model::superuser_parameters::Builder {
        crate::model::superuser_parameters::Builder::default()
    }
}