aws-sdk-ssm 1.112.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
// 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()
    }
}
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,
        }
    }
}