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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p> Detailed information about an AWS Mobile Hub project. </p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ProjectDetails {
    /// <p> Name of the project. </p>
    pub name: std::option::Option<std::string::String>,
    /// <p> Unique project identifier. </p>
    pub project_id: std::option::Option<std::string::String>,
    /// <p> Default region to use for AWS resource creation in the AWS Mobile Hub project. </p>
    pub region: std::option::Option<std::string::String>,
    /// <p> Synchronization state for a project. </p>
    pub state: std::option::Option<crate::model::ProjectState>,
    /// <p> Date the project was created. </p>
    pub created_date: std::option::Option<aws_smithy_types::DateTime>,
    /// <p> Date of the last modification of the project. </p>
    pub last_updated_date: std::option::Option<aws_smithy_types::DateTime>,
    /// <p> Website URL for this project in the AWS Mobile Hub console. </p>
    pub console_url: std::option::Option<std::string::String>,
    /// <p> List of AWS resources associated with a project. </p>
    pub resources: std::option::Option<std::vec::Vec<crate::model::Resource>>,
}
impl ProjectDetails {
    /// <p> Name of the project. </p>
    pub fn name(&self) -> std::option::Option<&str> {
        self.name.as_deref()
    }
    /// <p> Unique project identifier. </p>
    pub fn project_id(&self) -> std::option::Option<&str> {
        self.project_id.as_deref()
    }
    /// <p> Default region to use for AWS resource creation in the AWS Mobile Hub project. </p>
    pub fn region(&self) -> std::option::Option<&str> {
        self.region.as_deref()
    }
    /// <p> Synchronization state for a project. </p>
    pub fn state(&self) -> std::option::Option<&crate::model::ProjectState> {
        self.state.as_ref()
    }
    /// <p> Date the project was created. </p>
    pub fn created_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
        self.created_date.as_ref()
    }
    /// <p> Date of the last modification of the project. </p>
    pub fn last_updated_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
        self.last_updated_date.as_ref()
    }
    /// <p> Website URL for this project in the AWS Mobile Hub console. </p>
    pub fn console_url(&self) -> std::option::Option<&str> {
        self.console_url.as_deref()
    }
    /// <p> List of AWS resources associated with a project. </p>
    pub fn resources(&self) -> std::option::Option<&[crate::model::Resource]> {
        self.resources.as_deref()
    }
}
impl std::fmt::Debug for ProjectDetails {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("ProjectDetails");
        formatter.field("name", &self.name);
        formatter.field("project_id", &self.project_id);
        formatter.field("region", &self.region);
        formatter.field("state", &self.state);
        formatter.field("created_date", &self.created_date);
        formatter.field("last_updated_date", &self.last_updated_date);
        formatter.field("console_url", &self.console_url);
        formatter.field("resources", &self.resources);
        formatter.finish()
    }
}
/// See [`ProjectDetails`](crate::model::ProjectDetails)
pub mod project_details {
    /// A builder for [`ProjectDetails`](crate::model::ProjectDetails)
    #[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) project_id: std::option::Option<std::string::String>,
        pub(crate) region: std::option::Option<std::string::String>,
        pub(crate) state: std::option::Option<crate::model::ProjectState>,
        pub(crate) created_date: std::option::Option<aws_smithy_types::DateTime>,
        pub(crate) last_updated_date: std::option::Option<aws_smithy_types::DateTime>,
        pub(crate) console_url: std::option::Option<std::string::String>,
        pub(crate) resources: std::option::Option<std::vec::Vec<crate::model::Resource>>,
    }
    impl Builder {
        /// <p> Name of the project. </p>
        pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
            self.name = Some(input.into());
            self
        }
        /// <p> Name of the project. </p>
        pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.name = input;
            self
        }
        /// <p> Unique project identifier. </p>
        pub fn project_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.project_id = Some(input.into());
            self
        }
        /// <p> Unique project identifier. </p>
        pub fn set_project_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.project_id = input;
            self
        }
        /// <p> Default region to use for AWS resource creation in the AWS Mobile Hub project. </p>
        pub fn region(mut self, input: impl Into<std::string::String>) -> Self {
            self.region = Some(input.into());
            self
        }
        /// <p> Default region to use for AWS resource creation in the AWS Mobile Hub project. </p>
        pub fn set_region(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.region = input;
            self
        }
        /// <p> Synchronization state for a project. </p>
        pub fn state(mut self, input: crate::model::ProjectState) -> Self {
            self.state = Some(input);
            self
        }
        /// <p> Synchronization state for a project. </p>
        pub fn set_state(mut self, input: std::option::Option<crate::model::ProjectState>) -> Self {
            self.state = input;
            self
        }
        /// <p> Date the project was created. </p>
        pub fn created_date(mut self, input: aws_smithy_types::DateTime) -> Self {
            self.created_date = Some(input);
            self
        }
        /// <p> Date the project was created. </p>
        pub fn set_created_date(
            mut self,
            input: std::option::Option<aws_smithy_types::DateTime>,
        ) -> Self {
            self.created_date = input;
            self
        }
        /// <p> Date of the last modification of the project. </p>
        pub fn last_updated_date(mut self, input: aws_smithy_types::DateTime) -> Self {
            self.last_updated_date = Some(input);
            self
        }
        /// <p> Date of the last modification of the project. </p>
        pub fn set_last_updated_date(
            mut self,
            input: std::option::Option<aws_smithy_types::DateTime>,
        ) -> Self {
            self.last_updated_date = input;
            self
        }
        /// <p> Website URL for this project in the AWS Mobile Hub console. </p>
        pub fn console_url(mut self, input: impl Into<std::string::String>) -> Self {
            self.console_url = Some(input.into());
            self
        }
        /// <p> Website URL for this project in the AWS Mobile Hub console. </p>
        pub fn set_console_url(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.console_url = input;
            self
        }
        /// Appends an item to `resources`.
        ///
        /// To override the contents of this collection use [`set_resources`](Self::set_resources).
        ///
        /// <p> List of AWS resources associated with a project. </p>
        pub fn resources(mut self, input: crate::model::Resource) -> Self {
            let mut v = self.resources.unwrap_or_default();
            v.push(input);
            self.resources = Some(v);
            self
        }
        /// <p> List of AWS resources associated with a project. </p>
        pub fn set_resources(
            mut self,
            input: std::option::Option<std::vec::Vec<crate::model::Resource>>,
        ) -> Self {
            self.resources = input;
            self
        }
        /// Consumes the builder and constructs a [`ProjectDetails`](crate::model::ProjectDetails)
        pub fn build(self) -> crate::model::ProjectDetails {
            crate::model::ProjectDetails {
                name: self.name,
                project_id: self.project_id,
                region: self.region,
                state: self.state,
                created_date: self.created_date,
                last_updated_date: self.last_updated_date,
                console_url: self.console_url,
                resources: self.resources,
            }
        }
    }
}
impl ProjectDetails {
    /// Creates a new builder-style object to manufacture [`ProjectDetails`](crate::model::ProjectDetails)
    pub fn builder() -> crate::model::project_details::Builder {
        crate::model::project_details::Builder::default()
    }
}

/// <p> Information about an instance of an AWS resource associated with a project. </p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct Resource {
    /// <p> Simplified name for type of AWS resource (e.g., bucket is an Amazon S3 bucket). </p>
    pub r#type: std::option::Option<std::string::String>,
    /// <p> Name of the AWS resource (e.g., for an Amazon S3 bucket this is the name of the bucket). </p>
    pub name: std::option::Option<std::string::String>,
    /// <p> AWS resource name which uniquely identifies the resource in AWS systems. </p>
    pub arn: std::option::Option<std::string::String>,
    /// <p> Identifies which feature in AWS Mobile Hub is associated with this AWS resource. </p>
    pub feature: std::option::Option<std::string::String>,
    /// <p> Key-value attribute pairs. </p>
    pub attributes:
        std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
}
impl Resource {
    /// <p> Simplified name for type of AWS resource (e.g., bucket is an Amazon S3 bucket). </p>
    pub fn r#type(&self) -> std::option::Option<&str> {
        self.r#type.as_deref()
    }
    /// <p> Name of the AWS resource (e.g., for an Amazon S3 bucket this is the name of the bucket). </p>
    pub fn name(&self) -> std::option::Option<&str> {
        self.name.as_deref()
    }
    /// <p> AWS resource name which uniquely identifies the resource in AWS systems. </p>
    pub fn arn(&self) -> std::option::Option<&str> {
        self.arn.as_deref()
    }
    /// <p> Identifies which feature in AWS Mobile Hub is associated with this AWS resource. </p>
    pub fn feature(&self) -> std::option::Option<&str> {
        self.feature.as_deref()
    }
    /// <p> Key-value attribute pairs. </p>
    pub fn attributes(
        &self,
    ) -> std::option::Option<&std::collections::HashMap<std::string::String, std::string::String>>
    {
        self.attributes.as_ref()
    }
}
impl std::fmt::Debug for Resource {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("Resource");
        formatter.field("r#type", &self.r#type);
        formatter.field("name", &self.name);
        formatter.field("arn", &self.arn);
        formatter.field("feature", &self.feature);
        formatter.field("attributes", &self.attributes);
        formatter.finish()
    }
}
/// See [`Resource`](crate::model::Resource)
pub mod resource {
    /// A builder for [`Resource`](crate::model::Resource)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) r#type: std::option::Option<std::string::String>,
        pub(crate) name: std::option::Option<std::string::String>,
        pub(crate) arn: std::option::Option<std::string::String>,
        pub(crate) feature: std::option::Option<std::string::String>,
        pub(crate) attributes: std::option::Option<
            std::collections::HashMap<std::string::String, std::string::String>,
        >,
    }
    impl Builder {
        /// <p> Simplified name for type of AWS resource (e.g., bucket is an Amazon S3 bucket). </p>
        pub fn r#type(mut self, input: impl Into<std::string::String>) -> Self {
            self.r#type = Some(input.into());
            self
        }
        /// <p> Simplified name for type of AWS resource (e.g., bucket is an Amazon S3 bucket). </p>
        pub fn set_type(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.r#type = input;
            self
        }
        /// <p> Name of the AWS resource (e.g., for an Amazon S3 bucket this is the name of the bucket). </p>
        pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
            self.name = Some(input.into());
            self
        }
        /// <p> Name of the AWS resource (e.g., for an Amazon S3 bucket this is the name of the bucket). </p>
        pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.name = input;
            self
        }
        /// <p> AWS resource name which uniquely identifies the resource in AWS systems. </p>
        pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
            self.arn = Some(input.into());
            self
        }
        /// <p> AWS resource name which uniquely identifies the resource in AWS systems. </p>
        pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.arn = input;
            self
        }
        /// <p> Identifies which feature in AWS Mobile Hub is associated with this AWS resource. </p>
        pub fn feature(mut self, input: impl Into<std::string::String>) -> Self {
            self.feature = Some(input.into());
            self
        }
        /// <p> Identifies which feature in AWS Mobile Hub is associated with this AWS resource. </p>
        pub fn set_feature(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.feature = input;
            self
        }
        /// Adds a key-value pair to `attributes`.
        ///
        /// To override the contents of this collection use [`set_attributes`](Self::set_attributes).
        ///
        /// <p> Key-value attribute pairs. </p>
        pub fn attributes(
            mut self,
            k: impl Into<std::string::String>,
            v: impl Into<std::string::String>,
        ) -> Self {
            let mut hash_map = self.attributes.unwrap_or_default();
            hash_map.insert(k.into(), v.into());
            self.attributes = Some(hash_map);
            self
        }
        /// <p> Key-value attribute pairs. </p>
        pub fn set_attributes(
            mut self,
            input: std::option::Option<
                std::collections::HashMap<std::string::String, std::string::String>,
            >,
        ) -> Self {
            self.attributes = input;
            self
        }
        /// Consumes the builder and constructs a [`Resource`](crate::model::Resource)
        pub fn build(self) -> crate::model::Resource {
            crate::model::Resource {
                r#type: self.r#type,
                name: self.name,
                arn: self.arn,
                feature: self.feature,
                attributes: self.attributes,
            }
        }
    }
}
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>
/// Synchronization state for a project.
/// </p>
#[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 ProjectState {
    #[allow(missing_docs)] // documentation missing in model
    Importing,
    #[allow(missing_docs)] // documentation missing in model
    Normal,
    #[allow(missing_docs)] // documentation missing in model
    Syncing,
    /// Unknown contains new variants that have been added since this code was generated.
    Unknown(String),
}
impl std::convert::From<&str> for ProjectState {
    fn from(s: &str) -> Self {
        match s {
            "IMPORTING" => ProjectState::Importing,
            "NORMAL" => ProjectState::Normal,
            "SYNCING" => ProjectState::Syncing,
            other => ProjectState::Unknown(other.to_owned()),
        }
    }
}
impl std::str::FromStr for ProjectState {
    type Err = std::convert::Infallible;

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

/// <p> Summary information about an AWS Mobile Hub project. </p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ProjectSummary {
    /// <p> Name of the project. </p>
    pub name: std::option::Option<std::string::String>,
    /// <p> Unique project identifier. </p>
    pub project_id: std::option::Option<std::string::String>,
}
impl ProjectSummary {
    /// <p> Name of the project. </p>
    pub fn name(&self) -> std::option::Option<&str> {
        self.name.as_deref()
    }
    /// <p> Unique project identifier. </p>
    pub fn project_id(&self) -> std::option::Option<&str> {
        self.project_id.as_deref()
    }
}
impl std::fmt::Debug for ProjectSummary {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("ProjectSummary");
        formatter.field("name", &self.name);
        formatter.field("project_id", &self.project_id);
        formatter.finish()
    }
}
/// See [`ProjectSummary`](crate::model::ProjectSummary)
pub mod project_summary {
    /// A builder for [`ProjectSummary`](crate::model::ProjectSummary)
    #[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) project_id: std::option::Option<std::string::String>,
    }
    impl Builder {
        /// <p> Name of the project. </p>
        pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
            self.name = Some(input.into());
            self
        }
        /// <p> Name of the project. </p>
        pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.name = input;
            self
        }
        /// <p> Unique project identifier. </p>
        pub fn project_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.project_id = Some(input.into());
            self
        }
        /// <p> Unique project identifier. </p>
        pub fn set_project_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.project_id = input;
            self
        }
        /// Consumes the builder and constructs a [`ProjectSummary`](crate::model::ProjectSummary)
        pub fn build(self) -> crate::model::ProjectSummary {
            crate::model::ProjectSummary {
                name: self.name,
                project_id: self.project_id,
            }
        }
    }
}
impl ProjectSummary {
    /// Creates a new builder-style object to manufacture [`ProjectSummary`](crate::model::ProjectSummary)
    pub fn builder() -> crate::model::project_summary::Builder {
        crate::model::project_summary::Builder::default()
    }
}

/// <p> The details of the bundle. </p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct BundleDetails {
    /// <p> Unique bundle identifier. </p>
    pub bundle_id: std::option::Option<std::string::String>,
    /// <p> Title of the download bundle. </p>
    pub title: std::option::Option<std::string::String>,
    /// <p> Version of the download bundle. </p>
    pub version: std::option::Option<std::string::String>,
    /// <p> Description of the download bundle. </p>
    pub description: std::option::Option<std::string::String>,
    /// <p> Icon for the download bundle. </p>
    pub icon_url: std::option::Option<std::string::String>,
    /// <p> Developer desktop or mobile app or website platforms. </p>
    pub available_platforms: std::option::Option<std::vec::Vec<crate::model::Platform>>,
}
impl BundleDetails {
    /// <p> Unique bundle identifier. </p>
    pub fn bundle_id(&self) -> std::option::Option<&str> {
        self.bundle_id.as_deref()
    }
    /// <p> Title of the download bundle. </p>
    pub fn title(&self) -> std::option::Option<&str> {
        self.title.as_deref()
    }
    /// <p> Version of the download bundle. </p>
    pub fn version(&self) -> std::option::Option<&str> {
        self.version.as_deref()
    }
    /// <p> Description of the download bundle. </p>
    pub fn description(&self) -> std::option::Option<&str> {
        self.description.as_deref()
    }
    /// <p> Icon for the download bundle. </p>
    pub fn icon_url(&self) -> std::option::Option<&str> {
        self.icon_url.as_deref()
    }
    /// <p> Developer desktop or mobile app or website platforms. </p>
    pub fn available_platforms(&self) -> std::option::Option<&[crate::model::Platform]> {
        self.available_platforms.as_deref()
    }
}
impl std::fmt::Debug for BundleDetails {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("BundleDetails");
        formatter.field("bundle_id", &self.bundle_id);
        formatter.field("title", &self.title);
        formatter.field("version", &self.version);
        formatter.field("description", &self.description);
        formatter.field("icon_url", &self.icon_url);
        formatter.field("available_platforms", &self.available_platforms);
        formatter.finish()
    }
}
/// See [`BundleDetails`](crate::model::BundleDetails)
pub mod bundle_details {
    /// A builder for [`BundleDetails`](crate::model::BundleDetails)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) bundle_id: std::option::Option<std::string::String>,
        pub(crate) title: std::option::Option<std::string::String>,
        pub(crate) version: std::option::Option<std::string::String>,
        pub(crate) description: std::option::Option<std::string::String>,
        pub(crate) icon_url: std::option::Option<std::string::String>,
        pub(crate) available_platforms: std::option::Option<std::vec::Vec<crate::model::Platform>>,
    }
    impl Builder {
        /// <p> Unique bundle identifier. </p>
        pub fn bundle_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.bundle_id = Some(input.into());
            self
        }
        /// <p> Unique bundle identifier. </p>
        pub fn set_bundle_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.bundle_id = input;
            self
        }
        /// <p> Title of the download bundle. </p>
        pub fn title(mut self, input: impl Into<std::string::String>) -> Self {
            self.title = Some(input.into());
            self
        }
        /// <p> Title of the download bundle. </p>
        pub fn set_title(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.title = input;
            self
        }
        /// <p> Version of the download bundle. </p>
        pub fn version(mut self, input: impl Into<std::string::String>) -> Self {
            self.version = Some(input.into());
            self
        }
        /// <p> Version of the download bundle. </p>
        pub fn set_version(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.version = input;
            self
        }
        /// <p> Description of the download bundle. </p>
        pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
            self.description = Some(input.into());
            self
        }
        /// <p> Description of the download bundle. </p>
        pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.description = input;
            self
        }
        /// <p> Icon for the download bundle. </p>
        pub fn icon_url(mut self, input: impl Into<std::string::String>) -> Self {
            self.icon_url = Some(input.into());
            self
        }
        /// <p> Icon for the download bundle. </p>
        pub fn set_icon_url(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.icon_url = input;
            self
        }
        /// Appends an item to `available_platforms`.
        ///
        /// To override the contents of this collection use [`set_available_platforms`](Self::set_available_platforms).
        ///
        /// <p> Developer desktop or mobile app or website platforms. </p>
        pub fn available_platforms(mut self, input: crate::model::Platform) -> Self {
            let mut v = self.available_platforms.unwrap_or_default();
            v.push(input);
            self.available_platforms = Some(v);
            self
        }
        /// <p> Developer desktop or mobile app or website platforms. </p>
        pub fn set_available_platforms(
            mut self,
            input: std::option::Option<std::vec::Vec<crate::model::Platform>>,
        ) -> Self {
            self.available_platforms = input;
            self
        }
        /// Consumes the builder and constructs a [`BundleDetails`](crate::model::BundleDetails)
        pub fn build(self) -> crate::model::BundleDetails {
            crate::model::BundleDetails {
                bundle_id: self.bundle_id,
                title: self.title,
                version: self.version,
                description: self.description,
                icon_url: self.icon_url,
                available_platforms: self.available_platforms,
            }
        }
    }
}
impl BundleDetails {
    /// Creates a new builder-style object to manufacture [`BundleDetails`](crate::model::BundleDetails)
    pub fn builder() -> crate::model::bundle_details::Builder {
        crate::model::bundle_details::Builder::default()
    }
}

/// <p>
/// Developer desktop or target mobile app or website platform.
/// </p>
#[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
    Android,
    #[allow(missing_docs)] // documentation missing in model
    Javascript,
    #[allow(missing_docs)] // documentation missing in model
    Linux,
    #[allow(missing_docs)] // documentation missing in model
    Objc,
    #[allow(missing_docs)] // documentation missing in model
    Osx,
    #[allow(missing_docs)] // documentation missing in model
    Swift,
    #[allow(missing_docs)] // documentation missing in model
    Windows,
    /// 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 {
            "ANDROID" => Platform::Android,
            "JAVASCRIPT" => Platform::Javascript,
            "LINUX" => Platform::Linux,
            "OBJC" => Platform::Objc,
            "OSX" => Platform::Osx,
            "SWIFT" => Platform::Swift,
            "WINDOWS" => Platform::Windows,
            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::Android => "ANDROID",
            Platform::Javascript => "JAVASCRIPT",
            Platform::Linux => "LINUX",
            Platform::Objc => "OBJC",
            Platform::Osx => "OSX",
            Platform::Swift => "SWIFT",
            Platform::Windows => "WINDOWS",
            Platform::Unknown(s) => s.as_ref(),
        }
    }
    /// Returns all the `&str` values of the enum members.
    pub fn values() -> &'static [&'static str] {
        &[
            "ANDROID",
            "JAVASCRIPT",
            "LINUX",
            "OBJC",
            "OSX",
            "SWIFT",
            "WINDOWS",
        ]
    }
}
impl AsRef<str> for Platform {
    fn as_ref(&self) -> &str {
        self.as_str()
    }
}