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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>An object defining the template for a placement.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct PlacementTemplate {
    /// <p>The default attributes (key/value pairs) to be applied to all placements using this
    /// template.</p>
    pub default_attributes:
        std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
    /// <p>An object specifying the <a>DeviceTemplate</a> for all placements using this
    /// (<a>PlacementTemplate</a>) template.</p>
    pub device_templates: std::option::Option<
        std::collections::HashMap<std::string::String, crate::model::DeviceTemplate>,
    >,
}
impl PlacementTemplate {
    /// <p>The default attributes (key/value pairs) to be applied to all placements using this
    /// template.</p>
    pub fn default_attributes(
        &self,
    ) -> std::option::Option<&std::collections::HashMap<std::string::String, std::string::String>>
    {
        self.default_attributes.as_ref()
    }
    /// <p>An object specifying the <a>DeviceTemplate</a> for all placements using this
    /// (<a>PlacementTemplate</a>) template.</p>
    pub fn device_templates(
        &self,
    ) -> std::option::Option<
        &std::collections::HashMap<std::string::String, crate::model::DeviceTemplate>,
    > {
        self.device_templates.as_ref()
    }
}
impl std::fmt::Debug for PlacementTemplate {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("PlacementTemplate");
        formatter.field("default_attributes", &self.default_attributes);
        formatter.field("device_templates", &self.device_templates);
        formatter.finish()
    }
}
/// See [`PlacementTemplate`](crate::model::PlacementTemplate)
pub mod placement_template {
    /// A builder for [`PlacementTemplate`](crate::model::PlacementTemplate)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) default_attributes: std::option::Option<
            std::collections::HashMap<std::string::String, std::string::String>,
        >,
        pub(crate) device_templates: std::option::Option<
            std::collections::HashMap<std::string::String, crate::model::DeviceTemplate>,
        >,
    }
    impl Builder {
        /// Adds a key-value pair to `default_attributes`.
        ///
        /// To override the contents of this collection use [`set_default_attributes`](Self::set_default_attributes).
        ///
        /// <p>The default attributes (key/value pairs) to be applied to all placements using this
        /// template.</p>
        pub fn default_attributes(
            mut self,
            k: impl Into<std::string::String>,
            v: impl Into<std::string::String>,
        ) -> Self {
            let mut hash_map = self.default_attributes.unwrap_or_default();
            hash_map.insert(k.into(), v.into());
            self.default_attributes = Some(hash_map);
            self
        }
        /// <p>The default attributes (key/value pairs) to be applied to all placements using this
        /// template.</p>
        pub fn set_default_attributes(
            mut self,
            input: std::option::Option<
                std::collections::HashMap<std::string::String, std::string::String>,
            >,
        ) -> Self {
            self.default_attributes = input;
            self
        }
        /// Adds a key-value pair to `device_templates`.
        ///
        /// To override the contents of this collection use [`set_device_templates`](Self::set_device_templates).
        ///
        /// <p>An object specifying the <a>DeviceTemplate</a> for all placements using this
        /// (<a>PlacementTemplate</a>) template.</p>
        pub fn device_templates(
            mut self,
            k: impl Into<std::string::String>,
            v: impl Into<crate::model::DeviceTemplate>,
        ) -> Self {
            let mut hash_map = self.device_templates.unwrap_or_default();
            hash_map.insert(k.into(), v.into());
            self.device_templates = Some(hash_map);
            self
        }
        /// <p>An object specifying the <a>DeviceTemplate</a> for all placements using this
        /// (<a>PlacementTemplate</a>) template.</p>
        pub fn set_device_templates(
            mut self,
            input: std::option::Option<
                std::collections::HashMap<std::string::String, crate::model::DeviceTemplate>,
            >,
        ) -> Self {
            self.device_templates = input;
            self
        }
        /// Consumes the builder and constructs a [`PlacementTemplate`](crate::model::PlacementTemplate)
        pub fn build(self) -> crate::model::PlacementTemplate {
            crate::model::PlacementTemplate {
                default_attributes: self.default_attributes,
                device_templates: self.device_templates,
            }
        }
    }
}
impl PlacementTemplate {
    /// Creates a new builder-style object to manufacture [`PlacementTemplate`](crate::model::PlacementTemplate)
    pub fn builder() -> crate::model::placement_template::Builder {
        crate::model::placement_template::Builder::default()
    }
}

/// <p>An object representing a device for a placement template (see <a>PlacementTemplate</a>).</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DeviceTemplate {
    /// <p>The device type, which currently must be <code>"button"</code>.</p>
    pub device_type: std::option::Option<std::string::String>,
    /// <p>An optional Lambda function to invoke instead of the default Lambda function provided by
    /// the placement template.</p>
    pub callback_overrides:
        std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
}
impl DeviceTemplate {
    /// <p>The device type, which currently must be <code>"button"</code>.</p>
    pub fn device_type(&self) -> std::option::Option<&str> {
        self.device_type.as_deref()
    }
    /// <p>An optional Lambda function to invoke instead of the default Lambda function provided by
    /// the placement template.</p>
    pub fn callback_overrides(
        &self,
    ) -> std::option::Option<&std::collections::HashMap<std::string::String, std::string::String>>
    {
        self.callback_overrides.as_ref()
    }
}
impl std::fmt::Debug for DeviceTemplate {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("DeviceTemplate");
        formatter.field("device_type", &self.device_type);
        formatter.field("callback_overrides", &self.callback_overrides);
        formatter.finish()
    }
}
/// See [`DeviceTemplate`](crate::model::DeviceTemplate)
pub mod device_template {
    /// A builder for [`DeviceTemplate`](crate::model::DeviceTemplate)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) device_type: std::option::Option<std::string::String>,
        pub(crate) callback_overrides: std::option::Option<
            std::collections::HashMap<std::string::String, std::string::String>,
        >,
    }
    impl Builder {
        /// <p>The device type, which currently must be <code>"button"</code>.</p>
        pub fn device_type(mut self, input: impl Into<std::string::String>) -> Self {
            self.device_type = Some(input.into());
            self
        }
        /// <p>The device type, which currently must be <code>"button"</code>.</p>
        pub fn set_device_type(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.device_type = input;
            self
        }
        /// Adds a key-value pair to `callback_overrides`.
        ///
        /// To override the contents of this collection use [`set_callback_overrides`](Self::set_callback_overrides).
        ///
        /// <p>An optional Lambda function to invoke instead of the default Lambda function provided by
        /// the placement template.</p>
        pub fn callback_overrides(
            mut self,
            k: impl Into<std::string::String>,
            v: impl Into<std::string::String>,
        ) -> Self {
            let mut hash_map = self.callback_overrides.unwrap_or_default();
            hash_map.insert(k.into(), v.into());
            self.callback_overrides = Some(hash_map);
            self
        }
        /// <p>An optional Lambda function to invoke instead of the default Lambda function provided by
        /// the placement template.</p>
        pub fn set_callback_overrides(
            mut self,
            input: std::option::Option<
                std::collections::HashMap<std::string::String, std::string::String>,
            >,
        ) -> Self {
            self.callback_overrides = input;
            self
        }
        /// Consumes the builder and constructs a [`DeviceTemplate`](crate::model::DeviceTemplate)
        pub fn build(self) -> crate::model::DeviceTemplate {
            crate::model::DeviceTemplate {
                device_type: self.device_type,
                callback_overrides: self.callback_overrides,
            }
        }
    }
}
impl DeviceTemplate {
    /// Creates a new builder-style object to manufacture [`DeviceTemplate`](crate::model::DeviceTemplate)
    pub fn builder() -> crate::model::device_template::Builder {
        crate::model::device_template::Builder::default()
    }
}

/// <p>An object providing summary information for a particular project for an associated AWS
/// account and region.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ProjectSummary {
    /// <p>The ARN of the project.</p>
    pub arn: std::option::Option<std::string::String>,
    /// <p>The name of the project being summarized.</p>
    pub project_name: std::option::Option<std::string::String>,
    /// <p>The date when the project was originally created, in UNIX epoch time format.</p>
    pub created_date: std::option::Option<aws_smithy_types::Instant>,
    /// <p>The date when the project was last updated, in UNIX epoch time format. If the project was
    /// not updated, then <code>createdDate</code> and <code>updatedDate</code> are the same.</p>
    pub updated_date: std::option::Option<aws_smithy_types::Instant>,
    /// <p>The tags (metadata key/value pairs) associated with the project.</p>
    pub tags:
        std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
}
impl ProjectSummary {
    /// <p>The ARN of the project.</p>
    pub fn arn(&self) -> std::option::Option<&str> {
        self.arn.as_deref()
    }
    /// <p>The name of the project being summarized.</p>
    pub fn project_name(&self) -> std::option::Option<&str> {
        self.project_name.as_deref()
    }
    /// <p>The date when the project was originally created, in UNIX epoch time format.</p>
    pub fn created_date(&self) -> std::option::Option<&aws_smithy_types::Instant> {
        self.created_date.as_ref()
    }
    /// <p>The date when the project was last updated, in UNIX epoch time format. If the project was
    /// not updated, then <code>createdDate</code> and <code>updatedDate</code> are the same.</p>
    pub fn updated_date(&self) -> std::option::Option<&aws_smithy_types::Instant> {
        self.updated_date.as_ref()
    }
    /// <p>The tags (metadata key/value pairs) associated with the project.</p>
    pub fn tags(
        &self,
    ) -> std::option::Option<&std::collections::HashMap<std::string::String, std::string::String>>
    {
        self.tags.as_ref()
    }
}
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("arn", &self.arn);
        formatter.field("project_name", &self.project_name);
        formatter.field("created_date", &self.created_date);
        formatter.field("updated_date", &self.updated_date);
        formatter.field("tags", &self.tags);
        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) arn: std::option::Option<std::string::String>,
        pub(crate) project_name: std::option::Option<std::string::String>,
        pub(crate) created_date: std::option::Option<aws_smithy_types::Instant>,
        pub(crate) updated_date: std::option::Option<aws_smithy_types::Instant>,
        pub(crate) tags: std::option::Option<
            std::collections::HashMap<std::string::String, std::string::String>,
        >,
    }
    impl Builder {
        /// <p>The ARN of the project.</p>
        pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
            self.arn = Some(input.into());
            self
        }
        /// <p>The ARN of the project.</p>
        pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.arn = input;
            self
        }
        /// <p>The name of the project being summarized.</p>
        pub fn project_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.project_name = Some(input.into());
            self
        }
        /// <p>The name of the project being summarized.</p>
        pub fn set_project_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.project_name = input;
            self
        }
        /// <p>The date when the project was originally created, in UNIX epoch time format.</p>
        pub fn created_date(mut self, input: aws_smithy_types::Instant) -> Self {
            self.created_date = Some(input);
            self
        }
        /// <p>The date when the project was originally created, in UNIX epoch time format.</p>
        pub fn set_created_date(
            mut self,
            input: std::option::Option<aws_smithy_types::Instant>,
        ) -> Self {
            self.created_date = input;
            self
        }
        /// <p>The date when the project was last updated, in UNIX epoch time format. If the project was
        /// not updated, then <code>createdDate</code> and <code>updatedDate</code> are the same.</p>
        pub fn updated_date(mut self, input: aws_smithy_types::Instant) -> Self {
            self.updated_date = Some(input);
            self
        }
        /// <p>The date when the project was last updated, in UNIX epoch time format. If the project was
        /// not updated, then <code>createdDate</code> and <code>updatedDate</code> are the same.</p>
        pub fn set_updated_date(
            mut self,
            input: std::option::Option<aws_smithy_types::Instant>,
        ) -> Self {
            self.updated_date = input;
            self
        }
        /// Adds a key-value pair to `tags`.
        ///
        /// To override the contents of this collection use [`set_tags`](Self::set_tags).
        ///
        /// <p>The tags (metadata key/value pairs) associated with the project.</p>
        pub fn tags(
            mut self,
            k: impl Into<std::string::String>,
            v: impl Into<std::string::String>,
        ) -> Self {
            let mut hash_map = self.tags.unwrap_or_default();
            hash_map.insert(k.into(), v.into());
            self.tags = Some(hash_map);
            self
        }
        /// <p>The tags (metadata key/value pairs) associated with the project.</p>
        pub fn set_tags(
            mut self,
            input: std::option::Option<
                std::collections::HashMap<std::string::String, std::string::String>,
            >,
        ) -> Self {
            self.tags = input;
            self
        }
        /// Consumes the builder and constructs a [`ProjectSummary`](crate::model::ProjectSummary)
        pub fn build(self) -> crate::model::ProjectSummary {
            crate::model::ProjectSummary {
                arn: self.arn,
                project_name: self.project_name,
                created_date: self.created_date,
                updated_date: self.updated_date,
                tags: self.tags,
            }
        }
    }
}
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>An object providing summary information for a particular placement.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct PlacementSummary {
    /// <p>The name of the project containing the placement.</p>
    pub project_name: std::option::Option<std::string::String>,
    /// <p>The name of the placement being summarized.</p>
    pub placement_name: std::option::Option<std::string::String>,
    /// <p>The date when the placement was originally created, in UNIX epoch time format.</p>
    pub created_date: std::option::Option<aws_smithy_types::Instant>,
    /// <p>The date when the placement was last updated, in UNIX epoch time format. If the placement
    /// was not updated, then <code>createdDate</code> and <code>updatedDate</code> are the
    /// same.</p>
    pub updated_date: std::option::Option<aws_smithy_types::Instant>,
}
impl PlacementSummary {
    /// <p>The name of the project containing the placement.</p>
    pub fn project_name(&self) -> std::option::Option<&str> {
        self.project_name.as_deref()
    }
    /// <p>The name of the placement being summarized.</p>
    pub fn placement_name(&self) -> std::option::Option<&str> {
        self.placement_name.as_deref()
    }
    /// <p>The date when the placement was originally created, in UNIX epoch time format.</p>
    pub fn created_date(&self) -> std::option::Option<&aws_smithy_types::Instant> {
        self.created_date.as_ref()
    }
    /// <p>The date when the placement was last updated, in UNIX epoch time format. If the placement
    /// was not updated, then <code>createdDate</code> and <code>updatedDate</code> are the
    /// same.</p>
    pub fn updated_date(&self) -> std::option::Option<&aws_smithy_types::Instant> {
        self.updated_date.as_ref()
    }
}
impl std::fmt::Debug for PlacementSummary {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("PlacementSummary");
        formatter.field("project_name", &self.project_name);
        formatter.field("placement_name", &self.placement_name);
        formatter.field("created_date", &self.created_date);
        formatter.field("updated_date", &self.updated_date);
        formatter.finish()
    }
}
/// See [`PlacementSummary`](crate::model::PlacementSummary)
pub mod placement_summary {
    /// A builder for [`PlacementSummary`](crate::model::PlacementSummary)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) project_name: std::option::Option<std::string::String>,
        pub(crate) placement_name: std::option::Option<std::string::String>,
        pub(crate) created_date: std::option::Option<aws_smithy_types::Instant>,
        pub(crate) updated_date: std::option::Option<aws_smithy_types::Instant>,
    }
    impl Builder {
        /// <p>The name of the project containing the placement.</p>
        pub fn project_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.project_name = Some(input.into());
            self
        }
        /// <p>The name of the project containing the placement.</p>
        pub fn set_project_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.project_name = input;
            self
        }
        /// <p>The name of the placement being summarized.</p>
        pub fn placement_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.placement_name = Some(input.into());
            self
        }
        /// <p>The name of the placement being summarized.</p>
        pub fn set_placement_name(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.placement_name = input;
            self
        }
        /// <p>The date when the placement was originally created, in UNIX epoch time format.</p>
        pub fn created_date(mut self, input: aws_smithy_types::Instant) -> Self {
            self.created_date = Some(input);
            self
        }
        /// <p>The date when the placement was originally created, in UNIX epoch time format.</p>
        pub fn set_created_date(
            mut self,
            input: std::option::Option<aws_smithy_types::Instant>,
        ) -> Self {
            self.created_date = input;
            self
        }
        /// <p>The date when the placement was last updated, in UNIX epoch time format. If the placement
        /// was not updated, then <code>createdDate</code> and <code>updatedDate</code> are the
        /// same.</p>
        pub fn updated_date(mut self, input: aws_smithy_types::Instant) -> Self {
            self.updated_date = Some(input);
            self
        }
        /// <p>The date when the placement was last updated, in UNIX epoch time format. If the placement
        /// was not updated, then <code>createdDate</code> and <code>updatedDate</code> are the
        /// same.</p>
        pub fn set_updated_date(
            mut self,
            input: std::option::Option<aws_smithy_types::Instant>,
        ) -> Self {
            self.updated_date = input;
            self
        }
        /// Consumes the builder and constructs a [`PlacementSummary`](crate::model::PlacementSummary)
        pub fn build(self) -> crate::model::PlacementSummary {
            crate::model::PlacementSummary {
                project_name: self.project_name,
                placement_name: self.placement_name,
                created_date: self.created_date,
                updated_date: self.updated_date,
            }
        }
    }
}
impl PlacementSummary {
    /// Creates a new builder-style object to manufacture [`PlacementSummary`](crate::model::PlacementSummary)
    pub fn builder() -> crate::model::placement_summary::Builder {
        crate::model::placement_summary::Builder::default()
    }
}

/// <p>An object providing detailed information for a particular project associated with an AWS
/// account and region.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ProjectDescription {
    /// <p>The ARN of the project.</p>
    pub arn: std::option::Option<std::string::String>,
    /// <p>The name of the project for which to obtain information from.</p>
    pub project_name: std::option::Option<std::string::String>,
    /// <p>The description of the project.</p>
    pub description: std::option::Option<std::string::String>,
    /// <p>The date when the project was originally created, in UNIX epoch time format.</p>
    pub created_date: std::option::Option<aws_smithy_types::Instant>,
    /// <p>The date when the project was last updated, in UNIX epoch time format. If the project was
    /// not updated, then <code>createdDate</code> and <code>updatedDate</code> are the same.</p>
    pub updated_date: std::option::Option<aws_smithy_types::Instant>,
    /// <p>An object describing the project's placement specifications.</p>
    pub placement_template: std::option::Option<crate::model::PlacementTemplate>,
    /// <p>The tags (metadata key/value pairs) associated with the project.</p>
    pub tags:
        std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
}
impl ProjectDescription {
    /// <p>The ARN of the project.</p>
    pub fn arn(&self) -> std::option::Option<&str> {
        self.arn.as_deref()
    }
    /// <p>The name of the project for which to obtain information from.</p>
    pub fn project_name(&self) -> std::option::Option<&str> {
        self.project_name.as_deref()
    }
    /// <p>The description of the project.</p>
    pub fn description(&self) -> std::option::Option<&str> {
        self.description.as_deref()
    }
    /// <p>The date when the project was originally created, in UNIX epoch time format.</p>
    pub fn created_date(&self) -> std::option::Option<&aws_smithy_types::Instant> {
        self.created_date.as_ref()
    }
    /// <p>The date when the project was last updated, in UNIX epoch time format. If the project was
    /// not updated, then <code>createdDate</code> and <code>updatedDate</code> are the same.</p>
    pub fn updated_date(&self) -> std::option::Option<&aws_smithy_types::Instant> {
        self.updated_date.as_ref()
    }
    /// <p>An object describing the project's placement specifications.</p>
    pub fn placement_template(&self) -> std::option::Option<&crate::model::PlacementTemplate> {
        self.placement_template.as_ref()
    }
    /// <p>The tags (metadata key/value pairs) associated with the project.</p>
    pub fn tags(
        &self,
    ) -> std::option::Option<&std::collections::HashMap<std::string::String, std::string::String>>
    {
        self.tags.as_ref()
    }
}
impl std::fmt::Debug for ProjectDescription {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("ProjectDescription");
        formatter.field("arn", &self.arn);
        formatter.field("project_name", &self.project_name);
        formatter.field("description", &self.description);
        formatter.field("created_date", &self.created_date);
        formatter.field("updated_date", &self.updated_date);
        formatter.field("placement_template", &self.placement_template);
        formatter.field("tags", &self.tags);
        formatter.finish()
    }
}
/// See [`ProjectDescription`](crate::model::ProjectDescription)
pub mod project_description {
    /// A builder for [`ProjectDescription`](crate::model::ProjectDescription)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) arn: std::option::Option<std::string::String>,
        pub(crate) project_name: std::option::Option<std::string::String>,
        pub(crate) description: std::option::Option<std::string::String>,
        pub(crate) created_date: std::option::Option<aws_smithy_types::Instant>,
        pub(crate) updated_date: std::option::Option<aws_smithy_types::Instant>,
        pub(crate) placement_template: std::option::Option<crate::model::PlacementTemplate>,
        pub(crate) tags: std::option::Option<
            std::collections::HashMap<std::string::String, std::string::String>,
        >,
    }
    impl Builder {
        /// <p>The ARN of the project.</p>
        pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
            self.arn = Some(input.into());
            self
        }
        /// <p>The ARN of the project.</p>
        pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.arn = input;
            self
        }
        /// <p>The name of the project for which to obtain information from.</p>
        pub fn project_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.project_name = Some(input.into());
            self
        }
        /// <p>The name of the project for which to obtain information from.</p>
        pub fn set_project_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.project_name = input;
            self
        }
        /// <p>The description of the project.</p>
        pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
            self.description = Some(input.into());
            self
        }
        /// <p>The description of the project.</p>
        pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.description = input;
            self
        }
        /// <p>The date when the project was originally created, in UNIX epoch time format.</p>
        pub fn created_date(mut self, input: aws_smithy_types::Instant) -> Self {
            self.created_date = Some(input);
            self
        }
        /// <p>The date when the project was originally created, in UNIX epoch time format.</p>
        pub fn set_created_date(
            mut self,
            input: std::option::Option<aws_smithy_types::Instant>,
        ) -> Self {
            self.created_date = input;
            self
        }
        /// <p>The date when the project was last updated, in UNIX epoch time format. If the project was
        /// not updated, then <code>createdDate</code> and <code>updatedDate</code> are the same.</p>
        pub fn updated_date(mut self, input: aws_smithy_types::Instant) -> Self {
            self.updated_date = Some(input);
            self
        }
        /// <p>The date when the project was last updated, in UNIX epoch time format. If the project was
        /// not updated, then <code>createdDate</code> and <code>updatedDate</code> are the same.</p>
        pub fn set_updated_date(
            mut self,
            input: std::option::Option<aws_smithy_types::Instant>,
        ) -> Self {
            self.updated_date = input;
            self
        }
        /// <p>An object describing the project's placement specifications.</p>
        pub fn placement_template(mut self, input: crate::model::PlacementTemplate) -> Self {
            self.placement_template = Some(input);
            self
        }
        /// <p>An object describing the project's placement specifications.</p>
        pub fn set_placement_template(
            mut self,
            input: std::option::Option<crate::model::PlacementTemplate>,
        ) -> Self {
            self.placement_template = input;
            self
        }
        /// Adds a key-value pair to `tags`.
        ///
        /// To override the contents of this collection use [`set_tags`](Self::set_tags).
        ///
        /// <p>The tags (metadata key/value pairs) associated with the project.</p>
        pub fn tags(
            mut self,
            k: impl Into<std::string::String>,
            v: impl Into<std::string::String>,
        ) -> Self {
            let mut hash_map = self.tags.unwrap_or_default();
            hash_map.insert(k.into(), v.into());
            self.tags = Some(hash_map);
            self
        }
        /// <p>The tags (metadata key/value pairs) associated with the project.</p>
        pub fn set_tags(
            mut self,
            input: std::option::Option<
                std::collections::HashMap<std::string::String, std::string::String>,
            >,
        ) -> Self {
            self.tags = input;
            self
        }
        /// Consumes the builder and constructs a [`ProjectDescription`](crate::model::ProjectDescription)
        pub fn build(self) -> crate::model::ProjectDescription {
            crate::model::ProjectDescription {
                arn: self.arn,
                project_name: self.project_name,
                description: self.description,
                created_date: self.created_date,
                updated_date: self.updated_date,
                placement_template: self.placement_template,
                tags: self.tags,
            }
        }
    }
}
impl ProjectDescription {
    /// Creates a new builder-style object to manufacture [`ProjectDescription`](crate::model::ProjectDescription)
    pub fn builder() -> crate::model::project_description::Builder {
        crate::model::project_description::Builder::default()
    }
}

/// <p>An object describing a project's placement.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct PlacementDescription {
    /// <p>The name of the project containing the placement.</p>
    pub project_name: std::option::Option<std::string::String>,
    /// <p>The name of the placement.</p>
    pub placement_name: std::option::Option<std::string::String>,
    /// <p>The user-defined attributes associated with the placement.</p>
    pub attributes:
        std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
    /// <p>The date when the placement was initially created, in UNIX epoch time format.</p>
    pub created_date: std::option::Option<aws_smithy_types::Instant>,
    /// <p>The date when the placement was last updated, in UNIX epoch time format. If the placement
    /// was not updated, then <code>createdDate</code> and <code>updatedDate</code> are the
    /// same.</p>
    pub updated_date: std::option::Option<aws_smithy_types::Instant>,
}
impl PlacementDescription {
    /// <p>The name of the project containing the placement.</p>
    pub fn project_name(&self) -> std::option::Option<&str> {
        self.project_name.as_deref()
    }
    /// <p>The name of the placement.</p>
    pub fn placement_name(&self) -> std::option::Option<&str> {
        self.placement_name.as_deref()
    }
    /// <p>The user-defined attributes associated with the placement.</p>
    pub fn attributes(
        &self,
    ) -> std::option::Option<&std::collections::HashMap<std::string::String, std::string::String>>
    {
        self.attributes.as_ref()
    }
    /// <p>The date when the placement was initially created, in UNIX epoch time format.</p>
    pub fn created_date(&self) -> std::option::Option<&aws_smithy_types::Instant> {
        self.created_date.as_ref()
    }
    /// <p>The date when the placement was last updated, in UNIX epoch time format. If the placement
    /// was not updated, then <code>createdDate</code> and <code>updatedDate</code> are the
    /// same.</p>
    pub fn updated_date(&self) -> std::option::Option<&aws_smithy_types::Instant> {
        self.updated_date.as_ref()
    }
}
impl std::fmt::Debug for PlacementDescription {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("PlacementDescription");
        formatter.field("project_name", &self.project_name);
        formatter.field("placement_name", &self.placement_name);
        formatter.field("attributes", &self.attributes);
        formatter.field("created_date", &self.created_date);
        formatter.field("updated_date", &self.updated_date);
        formatter.finish()
    }
}
/// See [`PlacementDescription`](crate::model::PlacementDescription)
pub mod placement_description {
    /// A builder for [`PlacementDescription`](crate::model::PlacementDescription)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) project_name: std::option::Option<std::string::String>,
        pub(crate) placement_name: std::option::Option<std::string::String>,
        pub(crate) attributes: std::option::Option<
            std::collections::HashMap<std::string::String, std::string::String>,
        >,
        pub(crate) created_date: std::option::Option<aws_smithy_types::Instant>,
        pub(crate) updated_date: std::option::Option<aws_smithy_types::Instant>,
    }
    impl Builder {
        /// <p>The name of the project containing the placement.</p>
        pub fn project_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.project_name = Some(input.into());
            self
        }
        /// <p>The name of the project containing the placement.</p>
        pub fn set_project_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.project_name = input;
            self
        }
        /// <p>The name of the placement.</p>
        pub fn placement_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.placement_name = Some(input.into());
            self
        }
        /// <p>The name of the placement.</p>
        pub fn set_placement_name(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.placement_name = input;
            self
        }
        /// Adds a key-value pair to `attributes`.
        ///
        /// To override the contents of this collection use [`set_attributes`](Self::set_attributes).
        ///
        /// <p>The user-defined attributes associated with the placement.</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>The user-defined attributes associated with the placement.</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
        }
        /// <p>The date when the placement was initially created, in UNIX epoch time format.</p>
        pub fn created_date(mut self, input: aws_smithy_types::Instant) -> Self {
            self.created_date = Some(input);
            self
        }
        /// <p>The date when the placement was initially created, in UNIX epoch time format.</p>
        pub fn set_created_date(
            mut self,
            input: std::option::Option<aws_smithy_types::Instant>,
        ) -> Self {
            self.created_date = input;
            self
        }
        /// <p>The date when the placement was last updated, in UNIX epoch time format. If the placement
        /// was not updated, then <code>createdDate</code> and <code>updatedDate</code> are the
        /// same.</p>
        pub fn updated_date(mut self, input: aws_smithy_types::Instant) -> Self {
            self.updated_date = Some(input);
            self
        }
        /// <p>The date when the placement was last updated, in UNIX epoch time format. If the placement
        /// was not updated, then <code>createdDate</code> and <code>updatedDate</code> are the
        /// same.</p>
        pub fn set_updated_date(
            mut self,
            input: std::option::Option<aws_smithy_types::Instant>,
        ) -> Self {
            self.updated_date = input;
            self
        }
        /// Consumes the builder and constructs a [`PlacementDescription`](crate::model::PlacementDescription)
        pub fn build(self) -> crate::model::PlacementDescription {
            crate::model::PlacementDescription {
                project_name: self.project_name,
                placement_name: self.placement_name,
                attributes: self.attributes,
                created_date: self.created_date,
                updated_date: self.updated_date,
            }
        }
    }
}
impl PlacementDescription {
    /// Creates a new builder-style object to manufacture [`PlacementDescription`](crate::model::PlacementDescription)
    pub fn builder() -> crate::model::placement_description::Builder {
        crate::model::placement_description::Builder::default()
    }
}