1 + | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + | #[allow(missing_docs)] // documentation missing in model
|
3 + | #[non_exhaustive]
|
4 + | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5 + | pub struct GetPatchBaselineOutput {
|
6 + | /// <p>The ID of the retrieved patch baseline.</p>
|
7 + | pub baseline_id: ::std::option::Option<::std::string::String>,
|
8 + | /// <p>The name of the patch baseline.</p>
|
9 + | pub name: ::std::option::Option<::std::string::String>,
|
10 + | /// <p>Returns the operating system specified for the patch baseline.</p>
|
11 + | pub operating_system: ::std::option::Option<crate::types::OperatingSystem>,
|
12 + | /// <p>A set of global filters used to exclude patches from the baseline.</p>
|
13 + | pub global_filters: ::std::option::Option<crate::types::PatchFilterGroup>,
|
14 + | /// <p>A set of rules used to include patches in the baseline.</p>
|
15 + | pub approval_rules: ::std::option::Option<crate::types::PatchRuleGroup>,
|
16 + | /// <p>A list of explicitly approved patches for the baseline.</p>
|
17 + | pub approved_patches: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
18 + | /// <p>Returns the specified compliance severity level for approved patches in the patch baseline.</p>
|
19 + | pub approved_patches_compliance_level: ::std::option::Option<crate::types::PatchComplianceLevel>,
|
20 + | /// <p>Indicates whether the list of approved patches includes non-security updates that should be applied to the managed nodes. The default value is <code>false</code>. Applies to Linux managed nodes only.</p>
|
21 + | pub approved_patches_enable_non_security: ::std::option::Option<bool>,
|
22 + | /// <p>A list of explicitly rejected patches for the baseline.</p>
|
23 + | pub rejected_patches: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
24 + | /// <p>The action specified to take on patches included in the <code>RejectedPatches</code> list. A patch can be allowed only if it is a dependency of another package, or blocked entirely along with packages that include it as a dependency.</p>
|
25 + | pub rejected_patches_action: ::std::option::Option<crate::types::PatchAction>,
|
26 + | /// <p>Patch groups included in the patch baseline.</p>
|
27 + | pub patch_groups: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
28 + | /// <p>The date the patch baseline was created.</p>
|
29 + | pub created_date: ::std::option::Option<::aws_smithy_types::DateTime>,
|
30 + | /// <p>The date the patch baseline was last modified.</p>
|
31 + | pub modified_date: ::std::option::Option<::aws_smithy_types::DateTime>,
|
32 + | /// <p>A description of the patch baseline.</p>
|
33 + | pub description: ::std::option::Option<::std::string::String>,
|
34 + | /// <p>Information about the patches to use to update the managed nodes, including target operating systems and source repositories. Applies to Linux managed nodes only.</p>
|
35 + | pub sources: ::std::option::Option<::std::vec::Vec<crate::types::PatchSource>>,
|
36 + | /// <p>Indicates the compliance status of managed nodes for which security-related patches are available but were not approved. This preference is specified when the <code>CreatePatchBaseline</code> or <code>UpdatePatchBaseline</code> commands are run.</p>
|
37 + | /// <p>Applies to Windows Server managed nodes only.</p>
|
38 + | pub available_security_updates_compliance_status: ::std::option::Option<crate::types::PatchComplianceStatus>,
|
39 + | _request_id: Option<String>,
|
40 + | }
|
41 + | impl GetPatchBaselineOutput {
|
42 + | /// <p>The ID of the retrieved patch baseline.</p>
|
43 + | pub fn baseline_id(&self) -> ::std::option::Option<&str> {
|
44 + | self.baseline_id.as_deref()
|
45 + | }
|
46 + | /// <p>The name of the patch baseline.</p>
|
47 + | pub fn name(&self) -> ::std::option::Option<&str> {
|
48 + | self.name.as_deref()
|
49 + | }
|
50 + | /// <p>Returns the operating system specified for the patch baseline.</p>
|
51 + | pub fn operating_system(&self) -> ::std::option::Option<&crate::types::OperatingSystem> {
|
52 + | self.operating_system.as_ref()
|
53 + | }
|
54 + | /// <p>A set of global filters used to exclude patches from the baseline.</p>
|
55 + | pub fn global_filters(&self) -> ::std::option::Option<&crate::types::PatchFilterGroup> {
|
56 + | self.global_filters.as_ref()
|
57 + | }
|
58 + | /// <p>A set of rules used to include patches in the baseline.</p>
|
59 + | pub fn approval_rules(&self) -> ::std::option::Option<&crate::types::PatchRuleGroup> {
|
60 + | self.approval_rules.as_ref()
|
61 + | }
|
62 + | /// <p>A list of explicitly approved patches for the baseline.</p>
|
63 + | ///
|
64 + | /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.approved_patches.is_none()`.
|
65 + | pub fn approved_patches(&self) -> &[::std::string::String] {
|
66 + | self.approved_patches.as_deref().unwrap_or_default()
|
67 + | }
|
68 + | /// <p>Returns the specified compliance severity level for approved patches in the patch baseline.</p>
|
69 + | pub fn approved_patches_compliance_level(&self) -> ::std::option::Option<&crate::types::PatchComplianceLevel> {
|
70 + | self.approved_patches_compliance_level.as_ref()
|
71 + | }
|
72 + | /// <p>Indicates whether the list of approved patches includes non-security updates that should be applied to the managed nodes. The default value is <code>false</code>. Applies to Linux managed nodes only.</p>
|
73 + | pub fn approved_patches_enable_non_security(&self) -> ::std::option::Option<bool> {
|
74 + | self.approved_patches_enable_non_security
|
75 + | }
|
76 + | /// <p>A list of explicitly rejected patches for the baseline.</p>
|
77 + | ///
|
78 + | /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.rejected_patches.is_none()`.
|
79 + | pub fn rejected_patches(&self) -> &[::std::string::String] {
|
80 + | self.rejected_patches.as_deref().unwrap_or_default()
|
81 + | }
|
82 + | /// <p>The action specified to take on patches included in the <code>RejectedPatches</code> list. A patch can be allowed only if it is a dependency of another package, or blocked entirely along with packages that include it as a dependency.</p>
|
83 + | pub fn rejected_patches_action(&self) -> ::std::option::Option<&crate::types::PatchAction> {
|
84 + | self.rejected_patches_action.as_ref()
|
85 + | }
|
86 + | /// <p>Patch groups included in the patch baseline.</p>
|
87 + | ///
|
88 + | /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.patch_groups.is_none()`.
|
89 + | pub fn patch_groups(&self) -> &[::std::string::String] {
|
90 + | self.patch_groups.as_deref().unwrap_or_default()
|
91 + | }
|
92 + | /// <p>The date the patch baseline was created.</p>
|
93 + | pub fn created_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
94 + | self.created_date.as_ref()
|
95 + | }
|
96 + | /// <p>The date the patch baseline was last modified.</p>
|
97 + | pub fn modified_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
98 + | self.modified_date.as_ref()
|
99 + | }
|
100 + | /// <p>A description of the patch baseline.</p>
|
101 + | pub fn description(&self) -> ::std::option::Option<&str> {
|
102 + | self.description.as_deref()
|
103 + | }
|
104 + | /// <p>Information about the patches to use to update the managed nodes, including target operating systems and source repositories. Applies to Linux managed nodes only.</p>
|
105 + | ///
|
106 + | /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.sources.is_none()`.
|
107 + | pub fn sources(&self) -> &[crate::types::PatchSource] {
|
108 + | self.sources.as_deref().unwrap_or_default()
|
109 + | }
|
110 + | /// <p>Indicates the compliance status of managed nodes for which security-related patches are available but were not approved. This preference is specified when the <code>CreatePatchBaseline</code> or <code>UpdatePatchBaseline</code> commands are run.</p>
|
111 + | /// <p>Applies to Windows Server managed nodes only.</p>
|
112 + | pub fn available_security_updates_compliance_status(&self) -> ::std::option::Option<&crate::types::PatchComplianceStatus> {
|
113 + | self.available_security_updates_compliance_status.as_ref()
|
114 + | }
|
115 + | }
|
116 + | static GETPATCHBASELINEOUTPUT_MEMBER_BASELINE_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
117 + | ::aws_smithy_schema::ShapeId::from_parts(
|
118 + | "com.amazonaws.ssm.synthetic#GetPatchBaselineOutput$BaselineId",
|
119 + | "com.amazonaws.ssm.synthetic",
|
120 + | "GetPatchBaselineOutput",
|
121 + | ),
|
122 + | ::aws_smithy_schema::ShapeType::String,
|
123 + | "BaselineId",
|
124 + | 0,
|
125 + | );
|
126 + | static GETPATCHBASELINEOUTPUT_MEMBER_NAME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
127 + | ::aws_smithy_schema::ShapeId::from_parts(
|
128 + | "com.amazonaws.ssm.synthetic#GetPatchBaselineOutput$Name",
|
129 + | "com.amazonaws.ssm.synthetic",
|
130 + | "GetPatchBaselineOutput",
|
131 + | ),
|
132 + | ::aws_smithy_schema::ShapeType::String,
|
133 + | "Name",
|
134 + | 1,
|
135 + | );
|
136 + | static GETPATCHBASELINEOUTPUT_MEMBER_OPERATING_SYSTEM: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
137 + | ::aws_smithy_schema::ShapeId::from_parts(
|
138 + | "com.amazonaws.ssm.synthetic#GetPatchBaselineOutput$OperatingSystem",
|
139 + | "com.amazonaws.ssm.synthetic",
|
140 + | "GetPatchBaselineOutput",
|
141 + | ),
|
142 + | ::aws_smithy_schema::ShapeType::String,
|
143 + | "OperatingSystem",
|
144 + | 2,
|
145 + | );
|
146 + | static GETPATCHBASELINEOUTPUT_MEMBER_GLOBAL_FILTERS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
147 + | ::aws_smithy_schema::ShapeId::from_parts(
|
148 + | "com.amazonaws.ssm.synthetic#GetPatchBaselineOutput$GlobalFilters",
|
149 + | "com.amazonaws.ssm.synthetic",
|
150 + | "GetPatchBaselineOutput",
|
151 + | ),
|
152 + | ::aws_smithy_schema::ShapeType::Structure,
|
153 + | "GlobalFilters",
|
154 + | 3,
|
155 + | );
|
156 + | static GETPATCHBASELINEOUTPUT_MEMBER_APPROVAL_RULES: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
157 + | ::aws_smithy_schema::ShapeId::from_parts(
|
158 + | "com.amazonaws.ssm.synthetic#GetPatchBaselineOutput$ApprovalRules",
|
159 + | "com.amazonaws.ssm.synthetic",
|
160 + | "GetPatchBaselineOutput",
|
161 + | ),
|
162 + | ::aws_smithy_schema::ShapeType::Structure,
|
163 + | "ApprovalRules",
|
164 + | 4,
|
165 + | );
|
166 + | static GETPATCHBASELINEOUTPUT_MEMBER_APPROVED_PATCHES_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
167 + | ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#PatchIdList$member", "com.amazonaws.ssm", "PatchIdList"),
|
168 + | ::aws_smithy_schema::ShapeType::String,
|
169 + | "member",
|
170 + | 0,
|
171 + | );
|
172 + | static GETPATCHBASELINEOUTPUT_MEMBER_APPROVED_PATCHES: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
173 + | ::aws_smithy_schema::ShapeId::from_parts(
|
174 + | "com.amazonaws.ssm.synthetic#GetPatchBaselineOutput$ApprovedPatches",
|
175 + | "com.amazonaws.ssm.synthetic",
|
176 + | "GetPatchBaselineOutput",
|
177 + | ),
|
178 + | ::aws_smithy_schema::ShapeType::List,
|
179 + | "ApprovedPatches",
|
180 + | 5,
|
181 + | )
|
182 + | .with_list_member(&GETPATCHBASELINEOUTPUT_MEMBER_APPROVED_PATCHES_MEMBER);
|
183 + | static GETPATCHBASELINEOUTPUT_MEMBER_APPROVED_PATCHES_COMPLIANCE_LEVEL: ::aws_smithy_schema::Schema<'static> =
|
184 + | ::aws_smithy_schema::Schema::new_member(
|
185 + | ::aws_smithy_schema::ShapeId::from_parts(
|
186 + | "com.amazonaws.ssm.synthetic#GetPatchBaselineOutput$ApprovedPatchesComplianceLevel",
|
187 + | "com.amazonaws.ssm.synthetic",
|
188 + | "GetPatchBaselineOutput",
|
189 + | ),
|
190 + | ::aws_smithy_schema::ShapeType::String,
|
191 + | "ApprovedPatchesComplianceLevel",
|
192 + | 6,
|
193 + | );
|
194 + | static GETPATCHBASELINEOUTPUT_MEMBER_APPROVED_PATCHES_ENABLE_NON_SECURITY: ::aws_smithy_schema::Schema<'static> =
|
195 + | ::aws_smithy_schema::Schema::new_member(
|
196 + | ::aws_smithy_schema::ShapeId::from_parts(
|
197 + | "com.amazonaws.ssm.synthetic#GetPatchBaselineOutput$ApprovedPatchesEnableNonSecurity",
|
198 + | "com.amazonaws.ssm.synthetic",
|
199 + | "GetPatchBaselineOutput",
|
200 + | ),
|
201 + | ::aws_smithy_schema::ShapeType::Boolean,
|
202 + | "ApprovedPatchesEnableNonSecurity",
|
203 + | 7,
|
204 + | );
|
205 + | static GETPATCHBASELINEOUTPUT_MEMBER_REJECTED_PATCHES_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
206 + | ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#PatchIdList$member", "com.amazonaws.ssm", "PatchIdList"),
|
207 + | ::aws_smithy_schema::ShapeType::String,
|
208 + | "member",
|
209 + | 0,
|
210 + | );
|
211 + | static GETPATCHBASELINEOUTPUT_MEMBER_REJECTED_PATCHES: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
212 + | ::aws_smithy_schema::ShapeId::from_parts(
|
213 + | "com.amazonaws.ssm.synthetic#GetPatchBaselineOutput$RejectedPatches",
|
214 + | "com.amazonaws.ssm.synthetic",
|
215 + | "GetPatchBaselineOutput",
|
216 + | ),
|
217 + | ::aws_smithy_schema::ShapeType::List,
|
218 + | "RejectedPatches",
|
219 + | 8,
|
220 + | )
|
221 + | .with_list_member(&GETPATCHBASELINEOUTPUT_MEMBER_REJECTED_PATCHES_MEMBER);
|
222 + | static GETPATCHBASELINEOUTPUT_MEMBER_REJECTED_PATCHES_ACTION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
223 + | ::aws_smithy_schema::ShapeId::from_parts(
|
224 + | "com.amazonaws.ssm.synthetic#GetPatchBaselineOutput$RejectedPatchesAction",
|
225 + | "com.amazonaws.ssm.synthetic",
|
226 + | "GetPatchBaselineOutput",
|
227 + | ),
|
228 + | ::aws_smithy_schema::ShapeType::String,
|
229 + | "RejectedPatchesAction",
|
230 + | 9,
|
231 + | );
|
232 + | static GETPATCHBASELINEOUTPUT_MEMBER_PATCH_GROUPS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
233 + | ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#PatchGroupList$member", "com.amazonaws.ssm", "PatchGroupList"),
|
234 + | ::aws_smithy_schema::ShapeType::String,
|
235 + | "member",
|
236 + | 0,
|
237 + | );
|
238 + | static GETPATCHBASELINEOUTPUT_MEMBER_PATCH_GROUPS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
239 + | ::aws_smithy_schema::ShapeId::from_parts(
|
240 + | "com.amazonaws.ssm.synthetic#GetPatchBaselineOutput$PatchGroups",
|
241 + | "com.amazonaws.ssm.synthetic",
|
242 + | "GetPatchBaselineOutput",
|
243 + | ),
|
244 + | ::aws_smithy_schema::ShapeType::List,
|
245 + | "PatchGroups",
|
246 + | 10,
|
247 + | )
|
248 + | .with_list_member(&GETPATCHBASELINEOUTPUT_MEMBER_PATCH_GROUPS_MEMBER);
|
249 + | static GETPATCHBASELINEOUTPUT_MEMBER_CREATED_DATE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
250 + | ::aws_smithy_schema::ShapeId::from_parts(
|
251 + | "com.amazonaws.ssm.synthetic#GetPatchBaselineOutput$CreatedDate",
|
252 + | "com.amazonaws.ssm.synthetic",
|
253 + | "GetPatchBaselineOutput",
|
254 + | ),
|
255 + | ::aws_smithy_schema::ShapeType::Timestamp,
|
256 + | "CreatedDate",
|
257 + | 11,
|
258 + | );
|
259 + | static GETPATCHBASELINEOUTPUT_MEMBER_MODIFIED_DATE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
260 + | ::aws_smithy_schema::ShapeId::from_parts(
|
261 + | "com.amazonaws.ssm.synthetic#GetPatchBaselineOutput$ModifiedDate",
|
262 + | "com.amazonaws.ssm.synthetic",
|
263 + | "GetPatchBaselineOutput",
|
264 + | ),
|
265 + | ::aws_smithy_schema::ShapeType::Timestamp,
|
266 + | "ModifiedDate",
|
267 + | 12,
|
268 + | );
|
269 + | static GETPATCHBASELINEOUTPUT_MEMBER_DESCRIPTION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
270 + | ::aws_smithy_schema::ShapeId::from_parts(
|
271 + | "com.amazonaws.ssm.synthetic#GetPatchBaselineOutput$Description",
|
272 + | "com.amazonaws.ssm.synthetic",
|
273 + | "GetPatchBaselineOutput",
|
274 + | ),
|
275 + | ::aws_smithy_schema::ShapeType::String,
|
276 + | "Description",
|
277 + | 13,
|
278 + | );
|
279 + | static GETPATCHBASELINEOUTPUT_MEMBER_SOURCES_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
280 + | ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#PatchSourceList$member", "com.amazonaws.ssm", "PatchSourceList"),
|
281 + | ::aws_smithy_schema::ShapeType::Structure,
|
282 + | "member",
|
283 + | 0,
|
284 + | );
|
285 + | static GETPATCHBASELINEOUTPUT_MEMBER_SOURCES: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
286 + | ::aws_smithy_schema::ShapeId::from_parts(
|
287 + | "com.amazonaws.ssm.synthetic#GetPatchBaselineOutput$Sources",
|
288 + | "com.amazonaws.ssm.synthetic",
|
289 + | "GetPatchBaselineOutput",
|
290 + | ),
|
291 + | ::aws_smithy_schema::ShapeType::List,
|
292 + | "Sources",
|
293 + | 14,
|
294 + | )
|
295 + | .with_list_member(&GETPATCHBASELINEOUTPUT_MEMBER_SOURCES_MEMBER);
|
296 + | static GETPATCHBASELINEOUTPUT_MEMBER_AVAILABLE_SECURITY_UPDATES_COMPLIANCE_STATUS: ::aws_smithy_schema::Schema<'static> =
|
297 + | ::aws_smithy_schema::Schema::new_member(
|
298 + | ::aws_smithy_schema::ShapeId::from_parts(
|
299 + | "com.amazonaws.ssm.synthetic#GetPatchBaselineOutput$AvailableSecurityUpdatesComplianceStatus",
|
300 + | "com.amazonaws.ssm.synthetic",
|
301 + | "GetPatchBaselineOutput",
|
302 + | ),
|
303 + | ::aws_smithy_schema::ShapeType::String,
|
304 + | "AvailableSecurityUpdatesComplianceStatus",
|
305 + | 15,
|
306 + | );
|
307 + | static GETPATCHBASELINEOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
308 + | ::aws_smithy_schema::ShapeId::from_parts("synthetic#request_id", "synthetic", "request_id"),
|
309 + | ::aws_smithy_schema::ShapeType::String,
|
310 + | "request_id",
|
311 + | 16,
|
312 + | )
|
313 + | .with_http_header("x-amzn-requestid");
|
314 + | static GETPATCHBASELINEOUTPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
|
315 + | ::aws_smithy_schema::ShapeId::from_parts(
|
316 + | "com.amazonaws.ssm.synthetic#GetPatchBaselineOutput",
|
317 + | "com.amazonaws.ssm.synthetic",
|
318 + | "GetPatchBaselineOutput",
|
319 + | ),
|
320 + | ::aws_smithy_schema::ShapeType::Structure,
|
321 + | &[
|
322 + | &GETPATCHBASELINEOUTPUT_MEMBER_BASELINE_ID,
|
323 + | &GETPATCHBASELINEOUTPUT_MEMBER_NAME,
|
324 + | &GETPATCHBASELINEOUTPUT_MEMBER_OPERATING_SYSTEM,
|
325 + | &GETPATCHBASELINEOUTPUT_MEMBER_GLOBAL_FILTERS,
|
326 + | &GETPATCHBASELINEOUTPUT_MEMBER_APPROVAL_RULES,
|
327 + | &GETPATCHBASELINEOUTPUT_MEMBER_APPROVED_PATCHES,
|
328 + | &GETPATCHBASELINEOUTPUT_MEMBER_APPROVED_PATCHES_COMPLIANCE_LEVEL,
|
329 + | &GETPATCHBASELINEOUTPUT_MEMBER_APPROVED_PATCHES_ENABLE_NON_SECURITY,
|
330 + | &GETPATCHBASELINEOUTPUT_MEMBER_REJECTED_PATCHES,
|
331 + | &GETPATCHBASELINEOUTPUT_MEMBER_REJECTED_PATCHES_ACTION,
|
332 + | &GETPATCHBASELINEOUTPUT_MEMBER_PATCH_GROUPS,
|
333 + | &GETPATCHBASELINEOUTPUT_MEMBER_CREATED_DATE,
|
334 + | &GETPATCHBASELINEOUTPUT_MEMBER_MODIFIED_DATE,
|
335 + | &GETPATCHBASELINEOUTPUT_MEMBER_DESCRIPTION,
|
336 + | &GETPATCHBASELINEOUTPUT_MEMBER_SOURCES,
|
337 + | &GETPATCHBASELINEOUTPUT_MEMBER_AVAILABLE_SECURITY_UPDATES_COMPLIANCE_STATUS,
|
338 + | &GETPATCHBASELINEOUTPUT_MEMBER__REQUEST_ID,
|
339 + | ],
|
340 + | )
|
341 + | .with_original_name("GetPatchBaselineResult");
|
342 + | impl GetPatchBaselineOutput {
|
343 + | /// The schema for this shape.
|
344 + | pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &GETPATCHBASELINEOUTPUT_SCHEMA;
|
345 + | }
|
346 + | impl ::aws_smithy_schema::serde::SerializableStruct for GetPatchBaselineOutput {
|
347 + | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
348 + | fn serialize_members(
|
349 + | &self,
|
350 + | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
351 + | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
352 + | if let Some(ref val) = self.baseline_id {
|
353 + | ser.write_string(&GETPATCHBASELINEOUTPUT_MEMBER_BASELINE_ID, val)?;
|
354 + | }
|
355 + | if let Some(ref val) = self.name {
|
356 + | ser.write_string(&GETPATCHBASELINEOUTPUT_MEMBER_NAME, val)?;
|
357 + | }
|
358 + | if let Some(ref val) = self.operating_system {
|
359 + | ser.write_string(&GETPATCHBASELINEOUTPUT_MEMBER_OPERATING_SYSTEM, val.as_str())?;
|
360 + | }
|
361 + | if let Some(ref val) = self.global_filters {
|
362 + | ser.write_struct(&GETPATCHBASELINEOUTPUT_MEMBER_GLOBAL_FILTERS, val)?;
|
363 + | }
|
364 + | if let Some(ref val) = self.approval_rules {
|
365 + | ser.write_struct(&GETPATCHBASELINEOUTPUT_MEMBER_APPROVAL_RULES, val)?;
|
366 + | }
|
367 + | if let Some(ref val) = self.approved_patches {
|
368 + | ser.write_list(
|
369 + | &GETPATCHBASELINEOUTPUT_MEMBER_APPROVED_PATCHES,
|
370 + | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
371 + | for item in val {
|
372 + | ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
|
373 + | }
|
374 + | Ok(())
|
375 + | },
|
376 + | )?;
|
377 + | }
|
378 + | if let Some(ref val) = self.approved_patches_compliance_level {
|
379 + | ser.write_string(&GETPATCHBASELINEOUTPUT_MEMBER_APPROVED_PATCHES_COMPLIANCE_LEVEL, val.as_str())?;
|
380 + | }
|
381 + | if let Some(ref val) = self.approved_patches_enable_non_security {
|
382 + | ser.write_boolean(&GETPATCHBASELINEOUTPUT_MEMBER_APPROVED_PATCHES_ENABLE_NON_SECURITY, *val)?;
|
383 + | }
|
384 + | if let Some(ref val) = self.rejected_patches {
|
385 + | ser.write_list(
|
386 + | &GETPATCHBASELINEOUTPUT_MEMBER_REJECTED_PATCHES,
|
387 + | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
388 + | for item in val {
|
389 + | ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
|
390 + | }
|
391 + | Ok(())
|
392 + | },
|
393 + | )?;
|
394 + | }
|
395 + | if let Some(ref val) = self.rejected_patches_action {
|
396 + | ser.write_string(&GETPATCHBASELINEOUTPUT_MEMBER_REJECTED_PATCHES_ACTION, val.as_str())?;
|
397 + | }
|
398 + | if let Some(ref val) = self.patch_groups {
|
399 + | ser.write_list(
|
400 + | &GETPATCHBASELINEOUTPUT_MEMBER_PATCH_GROUPS,
|
401 + | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
402 + | for item in val {
|
403 + | ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
|
404 + | }
|
405 + | Ok(())
|
406 + | },
|
407 + | )?;
|
408 + | }
|
409 + | if let Some(ref val) = self.created_date {
|
410 + | ser.write_timestamp(&GETPATCHBASELINEOUTPUT_MEMBER_CREATED_DATE, val)?;
|
411 + | }
|
412 + | if let Some(ref val) = self.modified_date {
|
413 + | ser.write_timestamp(&GETPATCHBASELINEOUTPUT_MEMBER_MODIFIED_DATE, val)?;
|
414 + | }
|
415 + | if let Some(ref val) = self.description {
|
416 + | ser.write_string(&GETPATCHBASELINEOUTPUT_MEMBER_DESCRIPTION, val)?;
|
417 + | }
|
418 + | if let Some(ref val) = self.sources {
|
419 + | ser.write_list(
|
420 + | &GETPATCHBASELINEOUTPUT_MEMBER_SOURCES,
|
421 + | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
422 + | for item in val {
|
423 + | ser.write_struct(crate::types::PatchSource::SCHEMA, item)?;
|
424 + | }
|
425 + | Ok(())
|
426 + | },
|
427 + | )?;
|
428 + | }
|
429 + | if let Some(ref val) = self.available_security_updates_compliance_status {
|
430 + | ser.write_string(&GETPATCHBASELINEOUTPUT_MEMBER_AVAILABLE_SECURITY_UPDATES_COMPLIANCE_STATUS, val.as_str())?;
|
431 + | }
|
432 + | Ok(())
|
433 + | }
|
434 + | }
|
435 + | impl GetPatchBaselineOutput {
|
436 + | /// Deserializes this structure from a [`ShapeDeserializer`].
|
437 + | pub fn deserialize(
|
438 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
439 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
440 + | #[allow(unused_variables, unused_mut)]
|
441 + | let mut builder = Self::builder();
|
442 + | #[allow(
|
443 + | unused_variables,
|
444 + | unreachable_code,
|
445 + | clippy::single_match,
|
446 + | clippy::match_single_binding,
|
447 + | clippy::diverging_sub_expression
|
448 + | )]
|
449 + | deserializer.read_struct(&GETPATCHBASELINEOUTPUT_SCHEMA, &mut |member, deser| {
|
450 + | match member.member_index() {
|
451 + | Some(0) => {
|
452 + | if deser.is_null() {
|
453 + | deser.read_null()?;
|
454 + | } else {
|
455 + | builder.baseline_id = Some(deser.read_string(member)?);
|
456 + | }
|
457 + | }
|
458 + | Some(1) => {
|
459 + | if deser.is_null() {
|
460 + | deser.read_null()?;
|
461 + | } else {
|
462 + | builder.name = Some(deser.read_string(member)?);
|
463 + | }
|
464 + | }
|
465 + | Some(2) => {
|
466 + | if deser.is_null() {
|
467 + | deser.read_null()?;
|
468 + | } else {
|
469 + | builder.operating_system = Some(crate::types::OperatingSystem::from(deser.read_string(member)?.as_str()));
|
470 + | }
|
471 + | }
|
472 + | Some(3) => {
|
473 + | if deser.is_null() {
|
474 + | deser.read_null()?;
|
475 + | } else {
|
476 + | builder.global_filters = Some(crate::types::PatchFilterGroup::deserialize(deser)?);
|
477 + | }
|
478 + | }
|
479 + | Some(4) => {
|
480 + | if deser.is_null() {
|
481 + | deser.read_null()?;
|
482 + | } else {
|
483 + | builder.approval_rules = Some(crate::types::PatchRuleGroup::deserialize(deser)?);
|
484 + | }
|
485 + | }
|
486 + | Some(5) => {
|
487 + | if deser.is_null() {
|
488 + | deser.read_null()?;
|
489 + | } else {
|
490 + | builder.approved_patches = Some(deser.read_string_list(member)?);
|
491 + | }
|
492 + | }
|
493 + | Some(6) => {
|
494 + | if deser.is_null() {
|
495 + | deser.read_null()?;
|
496 + | } else {
|
497 + | builder.approved_patches_compliance_level =
|
498 + | Some(crate::types::PatchComplianceLevel::from(deser.read_string(member)?.as_str()));
|
499 + | }
|
500 + | }
|
501 + | Some(7) => {
|
502 + | if deser.is_null() {
|
503 + | deser.read_null()?;
|
504 + | } else {
|
505 + | builder.approved_patches_enable_non_security = Some(deser.read_boolean(member)?);
|
506 + | }
|
507 + | }
|
508 + | Some(8) => {
|
509 + | if deser.is_null() {
|
510 + | deser.read_null()?;
|
511 + | } else {
|
512 + | builder.rejected_patches = Some(deser.read_string_list(member)?);
|
513 + | }
|
514 + | }
|
515 + | Some(9) => {
|
516 + | if deser.is_null() {
|
517 + | deser.read_null()?;
|
518 + | } else {
|
519 + | builder.rejected_patches_action = Some(crate::types::PatchAction::from(deser.read_string(member)?.as_str()));
|
520 + | }
|
521 + | }
|
522 + | Some(10) => {
|
523 + | if deser.is_null() {
|
524 + | deser.read_null()?;
|
525 + | } else {
|
526 + | builder.patch_groups = Some(deser.read_string_list(member)?);
|
527 + | }
|
528 + | }
|
529 + | Some(11) => {
|
530 + | if deser.is_null() {
|
531 + | deser.read_null()?;
|
532 + | } else {
|
533 + | builder.created_date = Some(deser.read_timestamp(member)?);
|
534 + | }
|
535 + | }
|
536 + | Some(12) => {
|
537 + | if deser.is_null() {
|
538 + | deser.read_null()?;
|
539 + | } else {
|
540 + | builder.modified_date = Some(deser.read_timestamp(member)?);
|
541 + | }
|
542 + | }
|
543 + | Some(13) => {
|
544 + | if deser.is_null() {
|
545 + | deser.read_null()?;
|
546 + | } else {
|
547 + | builder.description = Some(deser.read_string(member)?);
|
548 + | }
|
549 + | }
|
550 + | Some(14) => {
|
551 + | if deser.is_null() {
|
552 + | deser.read_null()?;
|
553 + | } else {
|
554 + | builder.sources = Some({
|
555 + | let mut container = Vec::new();
|
556 + | deser.read_list(member, &mut |deser| {
|
557 + | container.push(crate::types::PatchSource::deserialize(deser)?);
|
558 + | Ok(())
|
559 + | })?;
|
560 + | container
|
561 + | });
|
562 + | }
|
563 + | }
|
564 + | Some(15) => {
|
565 + | if deser.is_null() {
|
566 + | deser.read_null()?;
|
567 + | } else {
|
568 + | builder.available_security_updates_compliance_status =
|
569 + | Some(crate::types::PatchComplianceStatus::from(deser.read_string(member)?.as_str()));
|
570 + | }
|
571 + | }
|
572 + | Some(16) => {
|
573 + | builder._request_id = Some(deser.read_string(member)?);
|
574 + | }
|
575 + | _ => {}
|
576 + | }
|
577 + | Ok(())
|
578 + | })?;
|
579 + | Ok(builder.build())
|
580 + | }
|
581 + | }
|
582 + | impl GetPatchBaselineOutput {
|
583 + | /// Deserializes this structure from a body deserializer and HTTP response headers.
|
584 + | /// Header-bound members are read directly from headers, avoiding runtime
|
585 + | /// member iteration overhead. Body members are read via the deserializer.
|
586 + | pub fn deserialize_with_response(
|
587 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
588 + | headers: &::aws_smithy_runtime_api::http::Headers,
|
589 + | _status: u16,
|
590 + | _body: &[u8],
|
591 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
592 + | #[allow(unused_variables, unused_mut)]
|
593 + | let mut builder = Self::builder();
|
594 + | if let Some(val) = headers.get("x-amzn-requestid") {
|
595 + | builder._request_id = Some(val.to_string());
|
596 + | }
|
597 + |
|
598 + | #[allow(
|
599 + | unused_variables,
|
600 + | unreachable_code,
|
601 + | clippy::single_match,
|
602 + | clippy::match_single_binding,
|
603 + | clippy::diverging_sub_expression
|
604 + | )]
|
605 + | deserializer.read_struct(&GETPATCHBASELINEOUTPUT_SCHEMA, &mut |member, deser| {
|
606 + | match member.member_index() {
|
607 + | Some(0) => {
|
608 + | builder.baseline_id = Some(deser.read_string(member)?);
|
609 + | }
|
610 + | Some(1) => {
|
611 + | builder.name = Some(deser.read_string(member)?);
|
612 + | }
|
613 + | Some(2) => {
|
614 + | builder.operating_system = Some(crate::types::OperatingSystem::from(deser.read_string(member)?.as_str()));
|
615 + | }
|
616 + | Some(3) => {
|
617 + | builder.global_filters = Some(crate::types::PatchFilterGroup::deserialize(deser)?);
|
618 + | }
|
619 + | Some(4) => {
|
620 + | builder.approval_rules = Some(crate::types::PatchRuleGroup::deserialize(deser)?);
|
621 + | }
|
622 + | Some(5) => {
|
623 + | builder.approved_patches = Some(deser.read_string_list(member)?);
|
624 + | }
|
625 + | Some(6) => {
|
626 + | builder.approved_patches_compliance_level = Some(crate::types::PatchComplianceLevel::from(deser.read_string(member)?.as_str()));
|
627 + | }
|
628 + | Some(7) => {
|
629 + | builder.approved_patches_enable_non_security = Some(deser.read_boolean(member)?);
|
630 + | }
|
631 + | Some(8) => {
|
632 + | builder.rejected_patches = Some(deser.read_string_list(member)?);
|
633 + | }
|
634 + | Some(9) => {
|
635 + | builder.rejected_patches_action = Some(crate::types::PatchAction::from(deser.read_string(member)?.as_str()));
|
636 + | }
|
637 + | Some(10) => {
|
638 + | builder.patch_groups = Some(deser.read_string_list(member)?);
|
639 + | }
|
640 + | Some(11) => {
|
641 + | builder.created_date = Some(deser.read_timestamp(member)?);
|
642 + | }
|
643 + | Some(12) => {
|
644 + | builder.modified_date = Some(deser.read_timestamp(member)?);
|
645 + | }
|
646 + | Some(13) => {
|
647 + | builder.description = Some(deser.read_string(member)?);
|
648 + | }
|
649 + | Some(14) => {
|
650 + | builder.sources = Some({
|
651 + | let mut container = Vec::new();
|
652 + | deser.read_list(member, &mut |deser| {
|
653 + | container.push(crate::types::PatchSource::deserialize(deser)?);
|
654 + | Ok(())
|
655 + | })?;
|
656 + | container
|
657 + | });
|
658 + | }
|
659 + | Some(15) => {
|
660 + | builder.available_security_updates_compliance_status =
|
661 + | Some(crate::types::PatchComplianceStatus::from(deser.read_string(member)?.as_str()));
|
662 + | }
|
663 + | _ => {}
|
664 + | }
|
665 + | Ok(())
|
666 + | })?;
|
667 + | Ok(builder.build())
|
668 + | }
|
669 + | }
|
670 + | impl ::aws_types::request_id::RequestId for GetPatchBaselineOutput {
|
671 + | fn request_id(&self) -> Option<&str> {
|
672 + | self._request_id.as_deref()
|
673 + | }
|
674 + | }
|
675 + | impl GetPatchBaselineOutput {
|
676 + | pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
|
677 + | self._request_id = request_id;
|
678 + | self
|
679 + | }
|
680 + | }
|
681 + | impl GetPatchBaselineOutput {
|
682 + | /// Creates a new builder-style object to manufacture [`GetPatchBaselineOutput`](crate::operation::get_patch_baseline::GetPatchBaselineOutput).
|
683 + | pub fn builder() -> crate::operation::get_patch_baseline::builders::GetPatchBaselineOutputBuilder {
|
684 + | crate::operation::get_patch_baseline::builders::GetPatchBaselineOutputBuilder::default()
|
685 + | }
|
686 + | }
|
687 + |
|
688 + | /// A builder for [`GetPatchBaselineOutput`](crate::operation::get_patch_baseline::GetPatchBaselineOutput).
|
689 + | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
690 + | #[non_exhaustive]
|
691 + | pub struct GetPatchBaselineOutputBuilder {
|
692 + | pub(crate) baseline_id: ::std::option::Option<::std::string::String>,
|
693 + | pub(crate) name: ::std::option::Option<::std::string::String>,
|
694 + | pub(crate) operating_system: ::std::option::Option<crate::types::OperatingSystem>,
|
695 + | pub(crate) global_filters: ::std::option::Option<crate::types::PatchFilterGroup>,
|
696 + | pub(crate) approval_rules: ::std::option::Option<crate::types::PatchRuleGroup>,
|
697 + | pub(crate) approved_patches: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
698 + | pub(crate) approved_patches_compliance_level: ::std::option::Option<crate::types::PatchComplianceLevel>,
|
699 + | pub(crate) approved_patches_enable_non_security: ::std::option::Option<bool>,
|
700 + | pub(crate) rejected_patches: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
701 + | pub(crate) rejected_patches_action: ::std::option::Option<crate::types::PatchAction>,
|
702 + | pub(crate) patch_groups: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
703 + | pub(crate) created_date: ::std::option::Option<::aws_smithy_types::DateTime>,
|
704 + | pub(crate) modified_date: ::std::option::Option<::aws_smithy_types::DateTime>,
|
705 + | pub(crate) description: ::std::option::Option<::std::string::String>,
|
706 + | pub(crate) sources: ::std::option::Option<::std::vec::Vec<crate::types::PatchSource>>,
|
707 + | pub(crate) available_security_updates_compliance_status: ::std::option::Option<crate::types::PatchComplianceStatus>,
|
708 + | _request_id: Option<String>,
|
709 + | }
|
710 + | impl GetPatchBaselineOutputBuilder {
|
711 + | /// <p>The ID of the retrieved patch baseline.</p>
|
712 + | pub fn baseline_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
713 + | self.baseline_id = ::std::option::Option::Some(input.into());
|
714 + | self
|
715 + | }
|
716 + | /// <p>The ID of the retrieved patch baseline.</p>
|
717 + | pub fn set_baseline_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
718 + | self.baseline_id = input;
|
719 + | self
|
720 + | }
|
721 + | /// <p>The ID of the retrieved patch baseline.</p>
|
722 + | pub fn get_baseline_id(&self) -> &::std::option::Option<::std::string::String> {
|
723 + | &self.baseline_id
|
724 + | }
|
725 + | /// <p>The name of the patch baseline.</p>
|
726 + | pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
727 + | self.name = ::std::option::Option::Some(input.into());
|
728 + | self
|
729 + | }
|
730 + | /// <p>The name of the patch baseline.</p>
|
731 + | pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
732 + | self.name = input;
|
733 + | self
|
734 + | }
|
735 + | /// <p>The name of the patch baseline.</p>
|
736 + | pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
|
737 + | &self.name
|
738 + | }
|
739 + | /// <p>Returns the operating system specified for the patch baseline.</p>
|
740 + | pub fn operating_system(mut self, input: crate::types::OperatingSystem) -> Self {
|
741 + | self.operating_system = ::std::option::Option::Some(input);
|
742 + | self
|
743 + | }
|
744 + | /// <p>Returns the operating system specified for the patch baseline.</p>
|
745 + | pub fn set_operating_system(mut self, input: ::std::option::Option<crate::types::OperatingSystem>) -> Self {
|
746 + | self.operating_system = input;
|
747 + | self
|
748 + | }
|
749 + | /// <p>Returns the operating system specified for the patch baseline.</p>
|
750 + | pub fn get_operating_system(&self) -> &::std::option::Option<crate::types::OperatingSystem> {
|
751 + | &self.operating_system
|
752 + | }
|
753 + | /// <p>A set of global filters used to exclude patches from the baseline.</p>
|
754 + | pub fn global_filters(mut self, input: crate::types::PatchFilterGroup) -> Self {
|
755 + | self.global_filters = ::std::option::Option::Some(input);
|
756 + | self
|
757 + | }
|
758 + | /// <p>A set of global filters used to exclude patches from the baseline.</p>
|
759 + | pub fn set_global_filters(mut self, input: ::std::option::Option<crate::types::PatchFilterGroup>) -> Self {
|
760 + | self.global_filters = input;
|
761 + | self
|
762 + | }
|
763 + | /// <p>A set of global filters used to exclude patches from the baseline.</p>
|
764 + | pub fn get_global_filters(&self) -> &::std::option::Option<crate::types::PatchFilterGroup> {
|
765 + | &self.global_filters
|
766 + | }
|
767 + | /// <p>A set of rules used to include patches in the baseline.</p>
|
768 + | pub fn approval_rules(mut self, input: crate::types::PatchRuleGroup) -> Self {
|
769 + | self.approval_rules = ::std::option::Option::Some(input);
|
770 + | self
|
771 + | }
|
772 + | /// <p>A set of rules used to include patches in the baseline.</p>
|
773 + | pub fn set_approval_rules(mut self, input: ::std::option::Option<crate::types::PatchRuleGroup>) -> Self {
|
774 + | self.approval_rules = input;
|
775 + | self
|
776 + | }
|
777 + | /// <p>A set of rules used to include patches in the baseline.</p>
|
778 + | pub fn get_approval_rules(&self) -> &::std::option::Option<crate::types::PatchRuleGroup> {
|
779 + | &self.approval_rules
|
780 + | }
|
781 + | /// Appends an item to `approved_patches`.
|
782 + | ///
|
783 + | /// To override the contents of this collection use [`set_approved_patches`](Self::set_approved_patches).
|
784 + | ///
|
785 + | /// <p>A list of explicitly approved patches for the baseline.</p>
|
786 + | pub fn approved_patches(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
787 + | let mut v = self.approved_patches.unwrap_or_default();
|
788 + | v.push(input.into());
|
789 + | self.approved_patches = ::std::option::Option::Some(v);
|
790 + | self
|
791 + | }
|
792 + | /// <p>A list of explicitly approved patches for the baseline.</p>
|
793 + | pub fn set_approved_patches(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
|
794 + | self.approved_patches = input;
|
795 + | self
|
796 + | }
|
797 + | /// <p>A list of explicitly approved patches for the baseline.</p>
|
798 + | pub fn get_approved_patches(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
|
799 + | &self.approved_patches
|
800 + | }
|
801 + | /// <p>Returns the specified compliance severity level for approved patches in the patch baseline.</p>
|
802 + | pub fn approved_patches_compliance_level(mut self, input: crate::types::PatchComplianceLevel) -> Self {
|
803 + | self.approved_patches_compliance_level = ::std::option::Option::Some(input);
|
804 + | self
|
805 + | }
|
806 + | /// <p>Returns the specified compliance severity level for approved patches in the patch baseline.</p>
|
807 + | pub fn set_approved_patches_compliance_level(mut self, input: ::std::option::Option<crate::types::PatchComplianceLevel>) -> Self {
|
808 + | self.approved_patches_compliance_level = input;
|
809 + | self
|
810 + | }
|
811 + | /// <p>Returns the specified compliance severity level for approved patches in the patch baseline.</p>
|
812 + | pub fn get_approved_patches_compliance_level(&self) -> &::std::option::Option<crate::types::PatchComplianceLevel> {
|
813 + | &self.approved_patches_compliance_level
|
814 + | }
|
815 + | /// <p>Indicates whether the list of approved patches includes non-security updates that should be applied to the managed nodes. The default value is <code>false</code>. Applies to Linux managed nodes only.</p>
|
816 + | pub fn approved_patches_enable_non_security(mut self, input: bool) -> Self {
|
817 + | self.approved_patches_enable_non_security = ::std::option::Option::Some(input);
|
818 + | self
|
819 + | }
|
820 + | /// <p>Indicates whether the list of approved patches includes non-security updates that should be applied to the managed nodes. The default value is <code>false</code>. Applies to Linux managed nodes only.</p>
|
821 + | pub fn set_approved_patches_enable_non_security(mut self, input: ::std::option::Option<bool>) -> Self {
|
822 + | self.approved_patches_enable_non_security = input;
|
823 + | self
|
824 + | }
|
825 + | /// <p>Indicates whether the list of approved patches includes non-security updates that should be applied to the managed nodes. The default value is <code>false</code>. Applies to Linux managed nodes only.</p>
|
826 + | pub fn get_approved_patches_enable_non_security(&self) -> &::std::option::Option<bool> {
|
827 + | &self.approved_patches_enable_non_security
|
828 + | }
|
829 + | /// Appends an item to `rejected_patches`.
|
830 + | ///
|
831 + | /// To override the contents of this collection use [`set_rejected_patches`](Self::set_rejected_patches).
|
832 + | ///
|
833 + | /// <p>A list of explicitly rejected patches for the baseline.</p>
|
834 + | pub fn rejected_patches(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
835 + | let mut v = self.rejected_patches.unwrap_or_default();
|
836 + | v.push(input.into());
|
837 + | self.rejected_patches = ::std::option::Option::Some(v);
|
838 + | self
|
839 + | }
|
840 + | /// <p>A list of explicitly rejected patches for the baseline.</p>
|
841 + | pub fn set_rejected_patches(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
|
842 + | self.rejected_patches = input;
|
843 + | self
|
844 + | }
|
845 + | /// <p>A list of explicitly rejected patches for the baseline.</p>
|
846 + | pub fn get_rejected_patches(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
|
847 + | &self.rejected_patches
|
848 + | }
|
849 + | /// <p>The action specified to take on patches included in the <code>RejectedPatches</code> list. A patch can be allowed only if it is a dependency of another package, or blocked entirely along with packages that include it as a dependency.</p>
|
850 + | pub fn rejected_patches_action(mut self, input: crate::types::PatchAction) -> Self {
|
851 + | self.rejected_patches_action = ::std::option::Option::Some(input);
|
852 + | self
|
853 + | }
|
854 + | /// <p>The action specified to take on patches included in the <code>RejectedPatches</code> list. A patch can be allowed only if it is a dependency of another package, or blocked entirely along with packages that include it as a dependency.</p>
|
855 + | pub fn set_rejected_patches_action(mut self, input: ::std::option::Option<crate::types::PatchAction>) -> Self {
|
856 + | self.rejected_patches_action = input;
|
857 + | self
|
858 + | }
|
859 + | /// <p>The action specified to take on patches included in the <code>RejectedPatches</code> list. A patch can be allowed only if it is a dependency of another package, or blocked entirely along with packages that include it as a dependency.</p>
|
860 + | pub fn get_rejected_patches_action(&self) -> &::std::option::Option<crate::types::PatchAction> {
|
861 + | &self.rejected_patches_action
|
862 + | }
|
863 + | /// Appends an item to `patch_groups`.
|
864 + | ///
|
865 + | /// To override the contents of this collection use [`set_patch_groups`](Self::set_patch_groups).
|
866 + | ///
|
867 + | /// <p>Patch groups included in the patch baseline.</p>
|
868 + | pub fn patch_groups(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
869 + | let mut v = self.patch_groups.unwrap_or_default();
|
870 + | v.push(input.into());
|
871 + | self.patch_groups = ::std::option::Option::Some(v);
|
872 + | self
|
873 + | }
|
874 + | /// <p>Patch groups included in the patch baseline.</p>
|
875 + | pub fn set_patch_groups(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
|
876 + | self.patch_groups = input;
|
877 + | self
|
878 + | }
|
879 + | /// <p>Patch groups included in the patch baseline.</p>
|
880 + | pub fn get_patch_groups(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
|
881 + | &self.patch_groups
|
882 + | }
|
883 + | /// <p>The date the patch baseline was created.</p>
|
884 + | pub fn created_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
885 + | self.created_date = ::std::option::Option::Some(input);
|
886 + | self
|
887 + | }
|
888 + | /// <p>The date the patch baseline was created.</p>
|
889 + | pub fn set_created_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
|
890 + | self.created_date = input;
|
891 + | self
|
892 + | }
|
893 + | /// <p>The date the patch baseline was created.</p>
|
894 + | pub fn get_created_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
|
895 + | &self.created_date
|
896 + | }
|
897 + | /// <p>The date the patch baseline was last modified.</p>
|
898 + | pub fn modified_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
899 + | self.modified_date = ::std::option::Option::Some(input);
|
900 + | self
|
901 + | }
|
902 + | /// <p>The date the patch baseline was last modified.</p>
|
903 + | pub fn set_modified_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
|
904 + | self.modified_date = input;
|
905 + | self
|
906 + | }
|
907 + | /// <p>The date the patch baseline was last modified.</p>
|
908 + | pub fn get_modified_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
|
909 + | &self.modified_date
|
910 + | }
|
911 + | /// <p>A description of the patch baseline.</p>
|
912 + | pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
913 + | self.description = ::std::option::Option::Some(input.into());
|
914 + | self
|
915 + | }
|
916 + | /// <p>A description of the patch baseline.</p>
|
917 + | pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
918 + | self.description = input;
|
919 + | self
|
920 + | }
|
921 + | /// <p>A description of the patch baseline.</p>
|
922 + | pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
|
923 + | &self.description
|
924 + | }
|
925 + | /// Appends an item to `sources`.
|
926 + | ///
|
927 + | /// To override the contents of this collection use [`set_sources`](Self::set_sources).
|
928 + | ///
|
929 + | /// <p>Information about the patches to use to update the managed nodes, including target operating systems and source repositories. Applies to Linux managed nodes only.</p>
|
930 + | pub fn sources(mut self, input: crate::types::PatchSource) -> Self {
|
931 + | let mut v = self.sources.unwrap_or_default();
|
932 + | v.push(input);
|
933 + | self.sources = ::std::option::Option::Some(v);
|
934 + | self
|
935 + | }
|
936 + | /// <p>Information about the patches to use to update the managed nodes, including target operating systems and source repositories. Applies to Linux managed nodes only.</p>
|
937 + | pub fn set_sources(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::PatchSource>>) -> Self {
|
938 + | self.sources = input;
|
939 + | self
|
940 + | }
|
941 + | /// <p>Information about the patches to use to update the managed nodes, including target operating systems and source repositories. Applies to Linux managed nodes only.</p>
|
942 + | pub fn get_sources(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::PatchSource>> {
|
943 + | &self.sources
|
944 + | }
|
945 + | /// <p>Indicates the compliance status of managed nodes for which security-related patches are available but were not approved. This preference is specified when the <code>CreatePatchBaseline</code> or <code>UpdatePatchBaseline</code> commands are run.</p>
|
946 + | /// <p>Applies to Windows Server managed nodes only.</p>
|
947 + | pub fn available_security_updates_compliance_status(mut self, input: crate::types::PatchComplianceStatus) -> Self {
|
948 + | self.available_security_updates_compliance_status = ::std::option::Option::Some(input);
|
949 + | self
|
950 + | }
|
951 + | /// <p>Indicates the compliance status of managed nodes for which security-related patches are available but were not approved. This preference is specified when the <code>CreatePatchBaseline</code> or <code>UpdatePatchBaseline</code> commands are run.</p>
|
952 + | /// <p>Applies to Windows Server managed nodes only.</p>
|
953 + | pub fn set_available_security_updates_compliance_status(mut self, input: ::std::option::Option<crate::types::PatchComplianceStatus>) -> Self {
|
954 + | self.available_security_updates_compliance_status = input;
|
955 + | self
|
956 + | }
|
957 + | /// <p>Indicates the compliance status of managed nodes for which security-related patches are available but were not approved. This preference is specified when the <code>CreatePatchBaseline</code> or <code>UpdatePatchBaseline</code> commands are run.</p>
|
958 + | /// <p>Applies to Windows Server managed nodes only.</p>
|
959 + | pub fn get_available_security_updates_compliance_status(&self) -> &::std::option::Option<crate::types::PatchComplianceStatus> {
|
960 + | &self.available_security_updates_compliance_status
|
961 + | }
|
962 + | pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
|
963 + | self._request_id = Some(request_id.into());
|
964 + | self
|
965 + | }
|
966 + |
|
967 + | pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
|
968 + | self._request_id = request_id;
|
969 + | self
|
970 + | }
|
971 + | /// Consumes the builder and constructs a [`GetPatchBaselineOutput`](crate::operation::get_patch_baseline::GetPatchBaselineOutput).
|
972 + | pub fn build(self) -> crate::operation::get_patch_baseline::GetPatchBaselineOutput {
|
973 + | crate::operation::get_patch_baseline::GetPatchBaselineOutput {
|
974 + | baseline_id: self.baseline_id,
|
975 + | name: self.name,
|
976 + | operating_system: self.operating_system,
|
977 + | global_filters: self.global_filters,
|
978 + | approval_rules: self.approval_rules,
|
979 + | approved_patches: self.approved_patches,
|
980 + | approved_patches_compliance_level: self.approved_patches_compliance_level,
|
981 + | approved_patches_enable_non_security: self.approved_patches_enable_non_security,
|
982 + | rejected_patches: self.rejected_patches,
|
983 + | rejected_patches_action: self.rejected_patches_action,
|
984 + | patch_groups: self.patch_groups,
|
985 + | created_date: self.created_date,
|
986 + | modified_date: self.modified_date,
|
987 + | description: self.description,
|
988 + | sources: self.sources,
|
989 + | available_security_updates_compliance_status: self.available_security_updates_compliance_status,
|
990 + | _request_id: self._request_id,
|
991 + | }
|
992 + | }
|
993 + | }
|