aws-sdk-ssm 1.131.0

AWS SDK for Amazon Simple Systems Manager (SSM)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Represents metadata about a patch.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Patch {
    /// <p>The ID of the patch. Applies to Windows patches only.</p><note>
    /// <p>This ID isn't the same as the Microsoft Knowledge Base ID.</p>
    /// </note>
    pub id: ::std::option::Option<::std::string::String>,
    /// <p>The date the patch was released.</p>
    pub release_date: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The title of the patch.</p>
    pub title: ::std::option::Option<::std::string::String>,
    /// <p>The description of the patch.</p>
    pub description: ::std::option::Option<::std::string::String>,
    /// <p>The URL where more information can be obtained about the patch.</p>
    pub content_url: ::std::option::Option<::std::string::String>,
    /// <p>The name of the vendor providing the patch.</p>
    pub vendor: ::std::option::Option<::std::string::String>,
    /// <p>The product family the patch is applicable for. For example, <code>Windows</code> or <code>Amazon Linux 2</code>.</p>
    pub product_family: ::std::option::Option<::std::string::String>,
    /// <p>The specific product the patch is applicable for. For example, <code>WindowsServer2016</code> or <code>AmazonLinux2018.03</code>.</p>
    pub product: ::std::option::Option<::std::string::String>,
    /// <p>The classification of the patch. For example, <code>SecurityUpdates</code>, <code>Updates</code>, or <code>CriticalUpdates</code>.</p>
    pub classification: ::std::option::Option<::std::string::String>,
    /// <p>The severity of the patch, such as <code>Critical</code>, <code>Important</code>, or <code>Moderate</code>. Applies to Windows patches only.</p>
    pub msrc_severity: ::std::option::Option<::std::string::String>,
    /// <p>The Microsoft Knowledge Base ID of the patch. Applies to Windows patches only.</p>
    pub kb_number: ::std::option::Option<::std::string::String>,
    /// <p>The ID of the Microsoft Security Response Center (MSRC) bulletin the patch is related to. For example, <code>MS14-045</code>. Applies to Windows patches only.</p>
    pub msrc_number: ::std::option::Option<::std::string::String>,
    /// <p>The language of the patch if it's language-specific.</p>
    pub language: ::std::option::Option<::std::string::String>,
    /// <p>The Advisory ID of the patch. For example, <code>RHSA-2020:3779</code>. Applies to Linux-based managed nodes only.</p>
    pub advisory_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    /// <p>The Bugzilla ID of the patch. For example, <code>1600646</code>. Applies to Linux-based managed nodes only.</p>
    pub bugzilla_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    /// <p>The Common Vulnerabilities and Exposures (CVE) ID of the patch. For example, <code>CVE-2011-3192</code>. Applies to Linux-based managed nodes only.</p>
    pub cve_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    /// <p>The name of the patch. Applies to Linux-based managed nodes only.</p>
    pub name: ::std::option::Option<::std::string::String>,
    /// <p>The epoch of the patch. For example in <code>pkg-example-EE-20180914-2.2.amzn1.noarch</code>, the epoch value is <code>20180914-2</code>. Applies to Linux-based managed nodes only.</p>
    pub epoch: i32,
    /// <p>The version number of the patch. For example, in <code>example-pkg-1.710.10-2.7.abcd.x86_64</code>, the version number is indicated by <code>-1</code>. Applies to Linux-based managed nodes only.</p>
    pub version: ::std::option::Option<::std::string::String>,
    /// <p>The particular release of a patch. For example, in <code>pkg-example-EE-20180914-2.2.amzn1.noarch</code>, the release is <code>2.amaz1</code>. Applies to Linux-based managed nodes only.</p>
    pub release: ::std::option::Option<::std::string::String>,
    /// <p>The architecture of the patch. For example, in <code>example-pkg-0.710.10-2.7.abcd.x86_64</code>, the architecture is indicated by <code>x86_64</code>. Applies to Linux-based managed nodes only.</p>
    pub arch: ::std::option::Option<::std::string::String>,
    /// <p>The severity level of the patch. For example, <code>CRITICAL</code> or <code>MODERATE</code>.</p>
    pub severity: ::std::option::Option<::std::string::String>,
    /// <p>The source patch repository for the operating system and version, such as <code>trusty-security</code> for Ubuntu Server 14.04 LTE and <code>focal-security</code> for Ubuntu Server 20.04 LTE. Applies to Linux-based managed nodes only.</p>
    pub repository: ::std::option::Option<::std::string::String>,
}
impl Patch {
    /// <p>The ID of the patch. Applies to Windows patches only.</p><note>
    /// <p>This ID isn't the same as the Microsoft Knowledge Base ID.</p>
    /// </note>
    pub fn id(&self) -> ::std::option::Option<&str> {
        self.id.as_deref()
    }
    /// <p>The date the patch was released.</p>
    pub fn release_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.release_date.as_ref()
    }
    /// <p>The title of the patch.</p>
    pub fn title(&self) -> ::std::option::Option<&str> {
        self.title.as_deref()
    }
    /// <p>The description of the patch.</p>
    pub fn description(&self) -> ::std::option::Option<&str> {
        self.description.as_deref()
    }
    /// <p>The URL where more information can be obtained about the patch.</p>
    pub fn content_url(&self) -> ::std::option::Option<&str> {
        self.content_url.as_deref()
    }
    /// <p>The name of the vendor providing the patch.</p>
    pub fn vendor(&self) -> ::std::option::Option<&str> {
        self.vendor.as_deref()
    }
    /// <p>The product family the patch is applicable for. For example, <code>Windows</code> or <code>Amazon Linux 2</code>.</p>
    pub fn product_family(&self) -> ::std::option::Option<&str> {
        self.product_family.as_deref()
    }
    /// <p>The specific product the patch is applicable for. For example, <code>WindowsServer2016</code> or <code>AmazonLinux2018.03</code>.</p>
    pub fn product(&self) -> ::std::option::Option<&str> {
        self.product.as_deref()
    }
    /// <p>The classification of the patch. For example, <code>SecurityUpdates</code>, <code>Updates</code>, or <code>CriticalUpdates</code>.</p>
    pub fn classification(&self) -> ::std::option::Option<&str> {
        self.classification.as_deref()
    }
    /// <p>The severity of the patch, such as <code>Critical</code>, <code>Important</code>, or <code>Moderate</code>. Applies to Windows patches only.</p>
    pub fn msrc_severity(&self) -> ::std::option::Option<&str> {
        self.msrc_severity.as_deref()
    }
    /// <p>The Microsoft Knowledge Base ID of the patch. Applies to Windows patches only.</p>
    pub fn kb_number(&self) -> ::std::option::Option<&str> {
        self.kb_number.as_deref()
    }
    /// <p>The ID of the Microsoft Security Response Center (MSRC) bulletin the patch is related to. For example, <code>MS14-045</code>. Applies to Windows patches only.</p>
    pub fn msrc_number(&self) -> ::std::option::Option<&str> {
        self.msrc_number.as_deref()
    }
    /// <p>The language of the patch if it's language-specific.</p>
    pub fn language(&self) -> ::std::option::Option<&str> {
        self.language.as_deref()
    }
    /// <p>The Advisory ID of the patch. For example, <code>RHSA-2020:3779</code>. Applies to Linux-based managed nodes only.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.advisory_ids.is_none()`.
    pub fn advisory_ids(&self) -> &[::std::string::String] {
        self.advisory_ids.as_deref().unwrap_or_default()
    }
    /// <p>The Bugzilla ID of the patch. For example, <code>1600646</code>. Applies to Linux-based managed nodes only.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.bugzilla_ids.is_none()`.
    pub fn bugzilla_ids(&self) -> &[::std::string::String] {
        self.bugzilla_ids.as_deref().unwrap_or_default()
    }
    /// <p>The Common Vulnerabilities and Exposures (CVE) ID of the patch. For example, <code>CVE-2011-3192</code>. Applies to Linux-based managed nodes only.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.cve_ids.is_none()`.
    pub fn cve_ids(&self) -> &[::std::string::String] {
        self.cve_ids.as_deref().unwrap_or_default()
    }
    /// <p>The name of the patch. Applies to Linux-based managed nodes only.</p>
    pub fn name(&self) -> ::std::option::Option<&str> {
        self.name.as_deref()
    }
    /// <p>The epoch of the patch. For example in <code>pkg-example-EE-20180914-2.2.amzn1.noarch</code>, the epoch value is <code>20180914-2</code>. Applies to Linux-based managed nodes only.</p>
    pub fn epoch(&self) -> i32 {
        self.epoch
    }
    /// <p>The version number of the patch. For example, in <code>example-pkg-1.710.10-2.7.abcd.x86_64</code>, the version number is indicated by <code>-1</code>. Applies to Linux-based managed nodes only.</p>
    pub fn version(&self) -> ::std::option::Option<&str> {
        self.version.as_deref()
    }
    /// <p>The particular release of a patch. For example, in <code>pkg-example-EE-20180914-2.2.amzn1.noarch</code>, the release is <code>2.amaz1</code>. Applies to Linux-based managed nodes only.</p>
    pub fn release(&self) -> ::std::option::Option<&str> {
        self.release.as_deref()
    }
    /// <p>The architecture of the patch. For example, in <code>example-pkg-0.710.10-2.7.abcd.x86_64</code>, the architecture is indicated by <code>x86_64</code>. Applies to Linux-based managed nodes only.</p>
    pub fn arch(&self) -> ::std::option::Option<&str> {
        self.arch.as_deref()
    }
    /// <p>The severity level of the patch. For example, <code>CRITICAL</code> or <code>MODERATE</code>.</p>
    pub fn severity(&self) -> ::std::option::Option<&str> {
        self.severity.as_deref()
    }
    /// <p>The source patch repository for the operating system and version, such as <code>trusty-security</code> for Ubuntu Server 14.04 LTE and <code>focal-security</code> for Ubuntu Server 20.04 LTE. Applies to Linux-based managed nodes only.</p>
    pub fn repository(&self) -> ::std::option::Option<&str> {
        self.repository.as_deref()
    }
}
static PATCH_MEMBER_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$Id", "com.amazonaws.ssm", "Patch"),
    ::aws_smithy_schema::ShapeType::String,
    "Id",
    0,
);
static PATCH_MEMBER_RELEASE_DATE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$ReleaseDate", "com.amazonaws.ssm", "Patch"),
    ::aws_smithy_schema::ShapeType::Timestamp,
    "ReleaseDate",
    1,
);
static PATCH_MEMBER_TITLE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$Title", "com.amazonaws.ssm", "Patch"),
    ::aws_smithy_schema::ShapeType::String,
    "Title",
    2,
);
static PATCH_MEMBER_DESCRIPTION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$Description", "com.amazonaws.ssm", "Patch"),
    ::aws_smithy_schema::ShapeType::String,
    "Description",
    3,
);
static PATCH_MEMBER_CONTENT_URL: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$ContentUrl", "com.amazonaws.ssm", "Patch"),
    ::aws_smithy_schema::ShapeType::String,
    "ContentUrl",
    4,
);
static PATCH_MEMBER_VENDOR: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$Vendor", "com.amazonaws.ssm", "Patch"),
    ::aws_smithy_schema::ShapeType::String,
    "Vendor",
    5,
);
static PATCH_MEMBER_PRODUCT_FAMILY: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$ProductFamily", "com.amazonaws.ssm", "Patch"),
    ::aws_smithy_schema::ShapeType::String,
    "ProductFamily",
    6,
);
static PATCH_MEMBER_PRODUCT: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$Product", "com.amazonaws.ssm", "Patch"),
    ::aws_smithy_schema::ShapeType::String,
    "Product",
    7,
);
static PATCH_MEMBER_CLASSIFICATION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$Classification", "com.amazonaws.ssm", "Patch"),
    ::aws_smithy_schema::ShapeType::String,
    "Classification",
    8,
);
static PATCH_MEMBER_MSRC_SEVERITY: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$MsrcSeverity", "com.amazonaws.ssm", "Patch"),
    ::aws_smithy_schema::ShapeType::String,
    "MsrcSeverity",
    9,
);
static PATCH_MEMBER_KB_NUMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$KbNumber", "com.amazonaws.ssm", "Patch"),
    ::aws_smithy_schema::ShapeType::String,
    "KbNumber",
    10,
);
static PATCH_MEMBER_MSRC_NUMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$MsrcNumber", "com.amazonaws.ssm", "Patch"),
    ::aws_smithy_schema::ShapeType::String,
    "MsrcNumber",
    11,
);
static PATCH_MEMBER_LANGUAGE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$Language", "com.amazonaws.ssm", "Patch"),
    ::aws_smithy_schema::ShapeType::String,
    "Language",
    12,
);
static PATCH_MEMBER_ADVISORY_IDS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#PatchAdvisoryIdList$member", "com.amazonaws.ssm", "PatchAdvisoryIdList"),
    ::aws_smithy_schema::ShapeType::String,
    "member",
    0,
);
static PATCH_MEMBER_ADVISORY_IDS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$AdvisoryIds", "com.amazonaws.ssm", "Patch"),
    ::aws_smithy_schema::ShapeType::List,
    "AdvisoryIds",
    13,
)
.with_list_member(&PATCH_MEMBER_ADVISORY_IDS_MEMBER);
static PATCH_MEMBER_BUGZILLA_IDS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#PatchBugzillaIdList$member", "com.amazonaws.ssm", "PatchBugzillaIdList"),
    ::aws_smithy_schema::ShapeType::String,
    "member",
    0,
);
static PATCH_MEMBER_BUGZILLA_IDS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$BugzillaIds", "com.amazonaws.ssm", "Patch"),
    ::aws_smithy_schema::ShapeType::List,
    "BugzillaIds",
    14,
)
.with_list_member(&PATCH_MEMBER_BUGZILLA_IDS_MEMBER);
static PATCH_MEMBER_CVE_IDS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#PatchCVEIdList$member", "com.amazonaws.ssm", "PatchCVEIdList"),
    ::aws_smithy_schema::ShapeType::String,
    "member",
    0,
);
static PATCH_MEMBER_CVE_IDS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$CVEIds", "com.amazonaws.ssm", "Patch"),
    ::aws_smithy_schema::ShapeType::List,
    "CVEIds",
    15,
)
.with_list_member(&PATCH_MEMBER_CVE_IDS_MEMBER);
static PATCH_MEMBER_NAME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$Name", "com.amazonaws.ssm", "Patch"),
    ::aws_smithy_schema::ShapeType::String,
    "Name",
    16,
);
static PATCH_MEMBER_EPOCH: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$Epoch", "com.amazonaws.ssm", "Patch"),
    ::aws_smithy_schema::ShapeType::Integer,
    "Epoch",
    17,
);
static PATCH_MEMBER_VERSION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$Version", "com.amazonaws.ssm", "Patch"),
    ::aws_smithy_schema::ShapeType::String,
    "Version",
    18,
);
static PATCH_MEMBER_RELEASE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$Release", "com.amazonaws.ssm", "Patch"),
    ::aws_smithy_schema::ShapeType::String,
    "Release",
    19,
);
static PATCH_MEMBER_ARCH: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$Arch", "com.amazonaws.ssm", "Patch"),
    ::aws_smithy_schema::ShapeType::String,
    "Arch",
    20,
);
static PATCH_MEMBER_SEVERITY: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$Severity", "com.amazonaws.ssm", "Patch"),
    ::aws_smithy_schema::ShapeType::String,
    "Severity",
    21,
);
static PATCH_MEMBER_REPOSITORY: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch$Repository", "com.amazonaws.ssm", "Patch"),
    ::aws_smithy_schema::ShapeType::String,
    "Repository",
    22,
);
static PATCH_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Patch", "com.amazonaws.ssm", "Patch"),
    ::aws_smithy_schema::ShapeType::Structure,
    &[
        &PATCH_MEMBER_ID,
        &PATCH_MEMBER_RELEASE_DATE,
        &PATCH_MEMBER_TITLE,
        &PATCH_MEMBER_DESCRIPTION,
        &PATCH_MEMBER_CONTENT_URL,
        &PATCH_MEMBER_VENDOR,
        &PATCH_MEMBER_PRODUCT_FAMILY,
        &PATCH_MEMBER_PRODUCT,
        &PATCH_MEMBER_CLASSIFICATION,
        &PATCH_MEMBER_MSRC_SEVERITY,
        &PATCH_MEMBER_KB_NUMBER,
        &PATCH_MEMBER_MSRC_NUMBER,
        &PATCH_MEMBER_LANGUAGE,
        &PATCH_MEMBER_ADVISORY_IDS,
        &PATCH_MEMBER_BUGZILLA_IDS,
        &PATCH_MEMBER_CVE_IDS,
        &PATCH_MEMBER_NAME,
        &PATCH_MEMBER_EPOCH,
        &PATCH_MEMBER_VERSION,
        &PATCH_MEMBER_RELEASE,
        &PATCH_MEMBER_ARCH,
        &PATCH_MEMBER_SEVERITY,
        &PATCH_MEMBER_REPOSITORY,
    ],
);
impl Patch {
    /// The schema for this shape.
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &PATCH_SCHEMA;
}
impl ::aws_smithy_schema::serde::SerializableStruct for Patch {
    fn schema(&self) -> &::aws_smithy_schema::Schema<'_> {
        Self::SCHEMA
    }

    #[allow(unused_variables, clippy::diverging_sub_expression)]
    fn serialize_members(
        &self,
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
        if let Some(ref val) = self.id {
            ser.write_string(&PATCH_MEMBER_ID, val)?;
        }
        if let Some(ref val) = self.release_date {
            ser.write_timestamp(&PATCH_MEMBER_RELEASE_DATE, val)?;
        }
        if let Some(ref val) = self.title {
            ser.write_string(&PATCH_MEMBER_TITLE, val)?;
        }
        if let Some(ref val) = self.description {
            ser.write_string(&PATCH_MEMBER_DESCRIPTION, val)?;
        }
        if let Some(ref val) = self.content_url {
            ser.write_string(&PATCH_MEMBER_CONTENT_URL, val)?;
        }
        if let Some(ref val) = self.vendor {
            ser.write_string(&PATCH_MEMBER_VENDOR, val)?;
        }
        if let Some(ref val) = self.product_family {
            ser.write_string(&PATCH_MEMBER_PRODUCT_FAMILY, val)?;
        }
        if let Some(ref val) = self.product {
            ser.write_string(&PATCH_MEMBER_PRODUCT, val)?;
        }
        if let Some(ref val) = self.classification {
            ser.write_string(&PATCH_MEMBER_CLASSIFICATION, val)?;
        }
        if let Some(ref val) = self.msrc_severity {
            ser.write_string(&PATCH_MEMBER_MSRC_SEVERITY, val)?;
        }
        if let Some(ref val) = self.kb_number {
            ser.write_string(&PATCH_MEMBER_KB_NUMBER, val)?;
        }
        if let Some(ref val) = self.msrc_number {
            ser.write_string(&PATCH_MEMBER_MSRC_NUMBER, val)?;
        }
        if let Some(ref val) = self.language {
            ser.write_string(&PATCH_MEMBER_LANGUAGE, val)?;
        }
        if let Some(ref val) = self.advisory_ids {
            ser.write_list(
                &PATCH_MEMBER_ADVISORY_IDS,
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
                    for item in val {
                        ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
                    }
                    Ok(())
                },
            )?;
        }
        if let Some(ref val) = self.bugzilla_ids {
            ser.write_list(
                &PATCH_MEMBER_BUGZILLA_IDS,
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
                    for item in val {
                        ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
                    }
                    Ok(())
                },
            )?;
        }
        if let Some(ref val) = self.cve_ids {
            ser.write_list(&PATCH_MEMBER_CVE_IDS, &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
                for item in val {
                    ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
                }
                Ok(())
            })?;
        }
        if let Some(ref val) = self.name {
            ser.write_string(&PATCH_MEMBER_NAME, val)?;
        }
        {
            let val = &self.epoch;
            ser.write_integer(&PATCH_MEMBER_EPOCH, *val)?;
        }
        if let Some(ref val) = self.version {
            ser.write_string(&PATCH_MEMBER_VERSION, val)?;
        }
        if let Some(ref val) = self.release {
            ser.write_string(&PATCH_MEMBER_RELEASE, val)?;
        }
        if let Some(ref val) = self.arch {
            ser.write_string(&PATCH_MEMBER_ARCH, val)?;
        }
        if let Some(ref val) = self.severity {
            ser.write_string(&PATCH_MEMBER_SEVERITY, val)?;
        }
        if let Some(ref val) = self.repository {
            ser.write_string(&PATCH_MEMBER_REPOSITORY, val)?;
        }
        Ok(())
    }
}
impl crate::types::builders::PatchBuilder {
    #[allow(
        unused_variables,
        unreachable_code,
        clippy::single_match,
        clippy::match_single_binding,
        clippy::diverging_sub_expression
    )]
    pub(crate) fn deserialize_members(
        &mut self,
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
        deserializer.read_struct(&PATCH_SCHEMA, &mut |member, deser| {
            match member.member_index() {
                Some(0) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.id = Some(deser.read_string(member)?);
                    }
                }
                Some(1) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.release_date = Some(deser.read_timestamp(member)?);
                    }
                }
                Some(2) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.title = Some(deser.read_string(member)?);
                    }
                }
                Some(3) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.description = Some(deser.read_string(member)?);
                    }
                }
                Some(4) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.content_url = Some(deser.read_string(member)?);
                    }
                }
                Some(5) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.vendor = Some(deser.read_string(member)?);
                    }
                }
                Some(6) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.product_family = Some(deser.read_string(member)?);
                    }
                }
                Some(7) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.product = Some(deser.read_string(member)?);
                    }
                }
                Some(8) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.classification = Some(deser.read_string(member)?);
                    }
                }
                Some(9) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.msrc_severity = Some(deser.read_string(member)?);
                    }
                }
                Some(10) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.kb_number = Some(deser.read_string(member)?);
                    }
                }
                Some(11) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.msrc_number = Some(deser.read_string(member)?);
                    }
                }
                Some(12) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.language = Some(deser.read_string(member)?);
                    }
                }
                Some(13) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.advisory_ids = Some(deser.read_string_list(member)?);
                    }
                }
                Some(14) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.bugzilla_ids = Some(deser.read_string_list(member)?);
                    }
                }
                Some(15) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.cve_ids = Some(deser.read_string_list(member)?);
                    }
                }
                Some(16) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.name = Some(deser.read_string(member)?);
                    }
                }
                Some(17) => {
                    self.epoch = Some(deser.read_integer(member)?);
                }
                Some(18) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.version = Some(deser.read_string(member)?);
                    }
                }
                Some(19) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.release = Some(deser.read_string(member)?);
                    }
                }
                Some(20) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.arch = Some(deser.read_string(member)?);
                    }
                }
                Some(21) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.severity = Some(deser.read_string(member)?);
                    }
                }
                Some(22) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.repository = Some(deser.read_string(member)?);
                    }
                }
                _ => {}
            }
            Ok(())
        })
    }
}

impl Patch {
    /// Deserializes this structure from a [`ShapeDeserializer`].
    pub fn deserialize(
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
        let mut builder = Self::builder();
        builder.deserialize_members(deserializer)?;
        Ok(builder.build())
    }
}
impl Patch {
    /// Creates a new builder-style object to manufacture [`Patch`](crate::types::Patch).
    pub fn builder() -> crate::types::builders::PatchBuilder {
        crate::types::builders::PatchBuilder::default()
    }
}

/// A builder for [`Patch`](crate::types::Patch).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct PatchBuilder {
    pub(crate) id: ::std::option::Option<::std::string::String>,
    pub(crate) release_date: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) title: ::std::option::Option<::std::string::String>,
    pub(crate) description: ::std::option::Option<::std::string::String>,
    pub(crate) content_url: ::std::option::Option<::std::string::String>,
    pub(crate) vendor: ::std::option::Option<::std::string::String>,
    pub(crate) product_family: ::std::option::Option<::std::string::String>,
    pub(crate) product: ::std::option::Option<::std::string::String>,
    pub(crate) classification: ::std::option::Option<::std::string::String>,
    pub(crate) msrc_severity: ::std::option::Option<::std::string::String>,
    pub(crate) kb_number: ::std::option::Option<::std::string::String>,
    pub(crate) msrc_number: ::std::option::Option<::std::string::String>,
    pub(crate) language: ::std::option::Option<::std::string::String>,
    pub(crate) advisory_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    pub(crate) bugzilla_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    pub(crate) cve_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    pub(crate) name: ::std::option::Option<::std::string::String>,
    pub(crate) epoch: ::std::option::Option<i32>,
    pub(crate) version: ::std::option::Option<::std::string::String>,
    pub(crate) release: ::std::option::Option<::std::string::String>,
    pub(crate) arch: ::std::option::Option<::std::string::String>,
    pub(crate) severity: ::std::option::Option<::std::string::String>,
    pub(crate) repository: ::std::option::Option<::std::string::String>,
}
impl PatchBuilder {
    /// <p>The ID of the patch. Applies to Windows patches only.</p><note>
    /// <p>This ID isn't the same as the Microsoft Knowledge Base ID.</p>
    /// </note>
    pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the patch. Applies to Windows patches only.</p><note>
    /// <p>This ID isn't the same as the Microsoft Knowledge Base ID.</p>
    /// </note>
    pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.id = input;
        self
    }
    /// <p>The ID of the patch. Applies to Windows patches only.</p><note>
    /// <p>This ID isn't the same as the Microsoft Knowledge Base ID.</p>
    /// </note>
    pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.id
    }
    /// <p>The date the patch was released.</p>
    pub fn release_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.release_date = ::std::option::Option::Some(input);
        self
    }
    /// <p>The date the patch was released.</p>
    pub fn set_release_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.release_date = input;
        self
    }
    /// <p>The date the patch was released.</p>
    pub fn get_release_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.release_date
    }
    /// <p>The title of the patch.</p>
    pub fn title(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.title = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The title of the patch.</p>
    pub fn set_title(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.title = input;
        self
    }
    /// <p>The title of the patch.</p>
    pub fn get_title(&self) -> &::std::option::Option<::std::string::String> {
        &self.title
    }
    /// <p>The description of the patch.</p>
    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.description = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The description of the patch.</p>
    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.description = input;
        self
    }
    /// <p>The description of the patch.</p>
    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
        &self.description
    }
    /// <p>The URL where more information can be obtained about the patch.</p>
    pub fn content_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.content_url = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The URL where more information can be obtained about the patch.</p>
    pub fn set_content_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.content_url = input;
        self
    }
    /// <p>The URL where more information can be obtained about the patch.</p>
    pub fn get_content_url(&self) -> &::std::option::Option<::std::string::String> {
        &self.content_url
    }
    /// <p>The name of the vendor providing the patch.</p>
    pub fn vendor(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.vendor = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the vendor providing the patch.</p>
    pub fn set_vendor(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.vendor = input;
        self
    }
    /// <p>The name of the vendor providing the patch.</p>
    pub fn get_vendor(&self) -> &::std::option::Option<::std::string::String> {
        &self.vendor
    }
    /// <p>The product family the patch is applicable for. For example, <code>Windows</code> or <code>Amazon Linux 2</code>.</p>
    pub fn product_family(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.product_family = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The product family the patch is applicable for. For example, <code>Windows</code> or <code>Amazon Linux 2</code>.</p>
    pub fn set_product_family(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.product_family = input;
        self
    }
    /// <p>The product family the patch is applicable for. For example, <code>Windows</code> or <code>Amazon Linux 2</code>.</p>
    pub fn get_product_family(&self) -> &::std::option::Option<::std::string::String> {
        &self.product_family
    }
    /// <p>The specific product the patch is applicable for. For example, <code>WindowsServer2016</code> or <code>AmazonLinux2018.03</code>.</p>
    pub fn product(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.product = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The specific product the patch is applicable for. For example, <code>WindowsServer2016</code> or <code>AmazonLinux2018.03</code>.</p>
    pub fn set_product(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.product = input;
        self
    }
    /// <p>The specific product the patch is applicable for. For example, <code>WindowsServer2016</code> or <code>AmazonLinux2018.03</code>.</p>
    pub fn get_product(&self) -> &::std::option::Option<::std::string::String> {
        &self.product
    }
    /// <p>The classification of the patch. For example, <code>SecurityUpdates</code>, <code>Updates</code>, or <code>CriticalUpdates</code>.</p>
    pub fn classification(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.classification = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The classification of the patch. For example, <code>SecurityUpdates</code>, <code>Updates</code>, or <code>CriticalUpdates</code>.</p>
    pub fn set_classification(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.classification = input;
        self
    }
    /// <p>The classification of the patch. For example, <code>SecurityUpdates</code>, <code>Updates</code>, or <code>CriticalUpdates</code>.</p>
    pub fn get_classification(&self) -> &::std::option::Option<::std::string::String> {
        &self.classification
    }
    /// <p>The severity of the patch, such as <code>Critical</code>, <code>Important</code>, or <code>Moderate</code>. Applies to Windows patches only.</p>
    pub fn msrc_severity(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.msrc_severity = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The severity of the patch, such as <code>Critical</code>, <code>Important</code>, or <code>Moderate</code>. Applies to Windows patches only.</p>
    pub fn set_msrc_severity(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.msrc_severity = input;
        self
    }
    /// <p>The severity of the patch, such as <code>Critical</code>, <code>Important</code>, or <code>Moderate</code>. Applies to Windows patches only.</p>
    pub fn get_msrc_severity(&self) -> &::std::option::Option<::std::string::String> {
        &self.msrc_severity
    }
    /// <p>The Microsoft Knowledge Base ID of the patch. Applies to Windows patches only.</p>
    pub fn kb_number(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.kb_number = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Microsoft Knowledge Base ID of the patch. Applies to Windows patches only.</p>
    pub fn set_kb_number(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.kb_number = input;
        self
    }
    /// <p>The Microsoft Knowledge Base ID of the patch. Applies to Windows patches only.</p>
    pub fn get_kb_number(&self) -> &::std::option::Option<::std::string::String> {
        &self.kb_number
    }
    /// <p>The ID of the Microsoft Security Response Center (MSRC) bulletin the patch is related to. For example, <code>MS14-045</code>. Applies to Windows patches only.</p>
    pub fn msrc_number(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.msrc_number = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the Microsoft Security Response Center (MSRC) bulletin the patch is related to. For example, <code>MS14-045</code>. Applies to Windows patches only.</p>
    pub fn set_msrc_number(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.msrc_number = input;
        self
    }
    /// <p>The ID of the Microsoft Security Response Center (MSRC) bulletin the patch is related to. For example, <code>MS14-045</code>. Applies to Windows patches only.</p>
    pub fn get_msrc_number(&self) -> &::std::option::Option<::std::string::String> {
        &self.msrc_number
    }
    /// <p>The language of the patch if it's language-specific.</p>
    pub fn language(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.language = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The language of the patch if it's language-specific.</p>
    pub fn set_language(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.language = input;
        self
    }
    /// <p>The language of the patch if it's language-specific.</p>
    pub fn get_language(&self) -> &::std::option::Option<::std::string::String> {
        &self.language
    }
    /// Appends an item to `advisory_ids`.
    ///
    /// To override the contents of this collection use [`set_advisory_ids`](Self::set_advisory_ids).
    ///
    /// <p>The Advisory ID of the patch. For example, <code>RHSA-2020:3779</code>. Applies to Linux-based managed nodes only.</p>
    pub fn advisory_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.advisory_ids.unwrap_or_default();
        v.push(input.into());
        self.advisory_ids = ::std::option::Option::Some(v);
        self
    }
    /// <p>The Advisory ID of the patch. For example, <code>RHSA-2020:3779</code>. Applies to Linux-based managed nodes only.</p>
    pub fn set_advisory_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.advisory_ids = input;
        self
    }
    /// <p>The Advisory ID of the patch. For example, <code>RHSA-2020:3779</code>. Applies to Linux-based managed nodes only.</p>
    pub fn get_advisory_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.advisory_ids
    }
    /// Appends an item to `bugzilla_ids`.
    ///
    /// To override the contents of this collection use [`set_bugzilla_ids`](Self::set_bugzilla_ids).
    ///
    /// <p>The Bugzilla ID of the patch. For example, <code>1600646</code>. Applies to Linux-based managed nodes only.</p>
    pub fn bugzilla_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.bugzilla_ids.unwrap_or_default();
        v.push(input.into());
        self.bugzilla_ids = ::std::option::Option::Some(v);
        self
    }
    /// <p>The Bugzilla ID of the patch. For example, <code>1600646</code>. Applies to Linux-based managed nodes only.</p>
    pub fn set_bugzilla_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.bugzilla_ids = input;
        self
    }
    /// <p>The Bugzilla ID of the patch. For example, <code>1600646</code>. Applies to Linux-based managed nodes only.</p>
    pub fn get_bugzilla_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.bugzilla_ids
    }
    /// Appends an item to `cve_ids`.
    ///
    /// To override the contents of this collection use [`set_cve_ids`](Self::set_cve_ids).
    ///
    /// <p>The Common Vulnerabilities and Exposures (CVE) ID of the patch. For example, <code>CVE-2011-3192</code>. Applies to Linux-based managed nodes only.</p>
    pub fn cve_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.cve_ids.unwrap_or_default();
        v.push(input.into());
        self.cve_ids = ::std::option::Option::Some(v);
        self
    }
    /// <p>The Common Vulnerabilities and Exposures (CVE) ID of the patch. For example, <code>CVE-2011-3192</code>. Applies to Linux-based managed nodes only.</p>
    pub fn set_cve_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.cve_ids = input;
        self
    }
    /// <p>The Common Vulnerabilities and Exposures (CVE) ID of the patch. For example, <code>CVE-2011-3192</code>. Applies to Linux-based managed nodes only.</p>
    pub fn get_cve_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.cve_ids
    }
    /// <p>The name of the patch. Applies to Linux-based managed nodes only.</p>
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the patch. Applies to Linux-based managed nodes only.</p>
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.name = input;
        self
    }
    /// <p>The name of the patch. Applies to Linux-based managed nodes only.</p>
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.name
    }
    /// <p>The epoch of the patch. For example in <code>pkg-example-EE-20180914-2.2.amzn1.noarch</code>, the epoch value is <code>20180914-2</code>. Applies to Linux-based managed nodes only.</p>
    pub fn epoch(mut self, input: i32) -> Self {
        self.epoch = ::std::option::Option::Some(input);
        self
    }
    /// <p>The epoch of the patch. For example in <code>pkg-example-EE-20180914-2.2.amzn1.noarch</code>, the epoch value is <code>20180914-2</code>. Applies to Linux-based managed nodes only.</p>
    pub fn set_epoch(mut self, input: ::std::option::Option<i32>) -> Self {
        self.epoch = input;
        self
    }
    /// <p>The epoch of the patch. For example in <code>pkg-example-EE-20180914-2.2.amzn1.noarch</code>, the epoch value is <code>20180914-2</code>. Applies to Linux-based managed nodes only.</p>
    pub fn get_epoch(&self) -> &::std::option::Option<i32> {
        &self.epoch
    }
    /// <p>The version number of the patch. For example, in <code>example-pkg-1.710.10-2.7.abcd.x86_64</code>, the version number is indicated by <code>-1</code>. Applies to Linux-based managed nodes only.</p>
    pub fn version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.version = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The version number of the patch. For example, in <code>example-pkg-1.710.10-2.7.abcd.x86_64</code>, the version number is indicated by <code>-1</code>. Applies to Linux-based managed nodes only.</p>
    pub fn set_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.version = input;
        self
    }
    /// <p>The version number of the patch. For example, in <code>example-pkg-1.710.10-2.7.abcd.x86_64</code>, the version number is indicated by <code>-1</code>. Applies to Linux-based managed nodes only.</p>
    pub fn get_version(&self) -> &::std::option::Option<::std::string::String> {
        &self.version
    }
    /// <p>The particular release of a patch. For example, in <code>pkg-example-EE-20180914-2.2.amzn1.noarch</code>, the release is <code>2.amaz1</code>. Applies to Linux-based managed nodes only.</p>
    pub fn release(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.release = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The particular release of a patch. For example, in <code>pkg-example-EE-20180914-2.2.amzn1.noarch</code>, the release is <code>2.amaz1</code>. Applies to Linux-based managed nodes only.</p>
    pub fn set_release(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.release = input;
        self
    }
    /// <p>The particular release of a patch. For example, in <code>pkg-example-EE-20180914-2.2.amzn1.noarch</code>, the release is <code>2.amaz1</code>. Applies to Linux-based managed nodes only.</p>
    pub fn get_release(&self) -> &::std::option::Option<::std::string::String> {
        &self.release
    }
    /// <p>The architecture of the patch. For example, in <code>example-pkg-0.710.10-2.7.abcd.x86_64</code>, the architecture is indicated by <code>x86_64</code>. Applies to Linux-based managed nodes only.</p>
    pub fn arch(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.arch = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The architecture of the patch. For example, in <code>example-pkg-0.710.10-2.7.abcd.x86_64</code>, the architecture is indicated by <code>x86_64</code>. Applies to Linux-based managed nodes only.</p>
    pub fn set_arch(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.arch = input;
        self
    }
    /// <p>The architecture of the patch. For example, in <code>example-pkg-0.710.10-2.7.abcd.x86_64</code>, the architecture is indicated by <code>x86_64</code>. Applies to Linux-based managed nodes only.</p>
    pub fn get_arch(&self) -> &::std::option::Option<::std::string::String> {
        &self.arch
    }
    /// <p>The severity level of the patch. For example, <code>CRITICAL</code> or <code>MODERATE</code>.</p>
    pub fn severity(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.severity = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The severity level of the patch. For example, <code>CRITICAL</code> or <code>MODERATE</code>.</p>
    pub fn set_severity(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.severity = input;
        self
    }
    /// <p>The severity level of the patch. For example, <code>CRITICAL</code> or <code>MODERATE</code>.</p>
    pub fn get_severity(&self) -> &::std::option::Option<::std::string::String> {
        &self.severity
    }
    /// <p>The source patch repository for the operating system and version, such as <code>trusty-security</code> for Ubuntu Server 14.04 LTE and <code>focal-security</code> for Ubuntu Server 20.04 LTE. Applies to Linux-based managed nodes only.</p>
    pub fn repository(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.repository = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The source patch repository for the operating system and version, such as <code>trusty-security</code> for Ubuntu Server 14.04 LTE and <code>focal-security</code> for Ubuntu Server 20.04 LTE. Applies to Linux-based managed nodes only.</p>
    pub fn set_repository(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.repository = input;
        self
    }
    /// <p>The source patch repository for the operating system and version, such as <code>trusty-security</code> for Ubuntu Server 14.04 LTE and <code>focal-security</code> for Ubuntu Server 20.04 LTE. Applies to Linux-based managed nodes only.</p>
    pub fn get_repository(&self) -> &::std::option::Option<::std::string::String> {
        &self.repository
    }
    /// Consumes the builder and constructs a [`Patch`](crate::types::Patch).
    pub fn build(self) -> crate::types::Patch {
        crate::types::Patch {
            id: self.id,
            release_date: self.release_date,
            title: self.title,
            description: self.description,
            content_url: self.content_url,
            vendor: self.vendor,
            product_family: self.product_family,
            product: self.product,
            classification: self.classification,
            msrc_severity: self.msrc_severity,
            kb_number: self.kb_number,
            msrc_number: self.msrc_number,
            language: self.language,
            advisory_ids: self.advisory_ids,
            bugzilla_ids: self.bugzilla_ids,
            cve_ids: self.cve_ids,
            name: self.name,
            epoch: self.epoch.unwrap_or_default(),
            version: self.version,
            release: self.release,
            arch: self.arch,
            severity: self.severity,
            repository: self.repository,
        }
    }
}