1 + | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + |
|
3 + | /// <p>Information about the state of a patch on a particular managed node as it relates to the patch baseline used to patch the node.</p>
|
4 + | #[non_exhaustive]
|
5 + | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
6 + | pub struct PatchComplianceData {
|
7 + | /// <p>The title of the patch.</p>
|
8 + | pub title: ::std::string::String,
|
9 + | /// <p>The operating system-specific ID of the patch.</p>
|
10 + | pub kb_id: ::std::string::String,
|
11 + | /// <p>The classification of the patch, such as <code>SecurityUpdates</code>, <code>Updates</code>, and <code>CriticalUpdates</code>.</p>
|
12 + | pub classification: ::std::string::String,
|
13 + | /// <p>The severity of the patch such as <code>Critical</code>, <code>Important</code>, and <code>Moderate</code>.</p>
|
14 + | pub severity: ::std::string::String,
|
15 + | /// <p>The state of the patch on the managed node, such as INSTALLED or FAILED.</p>
|
16 + | /// <p>For descriptions of each patch state, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/compliance-about.html#compliance-monitor-patch">About patch compliance</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
|
17 + | pub state: crate::types::PatchComplianceDataState,
|
18 + | /// <p>The date/time the patch was installed on the managed node. Not all operating systems provide this level of information.</p>
|
19 + | pub installed_time: ::aws_smithy_types::DateTime,
|
20 + | /// <p>The IDs of one or more Common Vulnerabilities and Exposure (CVE) issues that are resolved by the patch.</p><note>
|
21 + | /// <p>Currently, CVE ID values are reported only for patches with a status of <code>Missing</code> or <code>Failed</code>.</p>
|
22 + | /// </note>
|
23 + | pub cve_ids: ::std::option::Option<::std::string::String>,
|
24 + | }
|
25 + | impl PatchComplianceData {
|
26 + | /// <p>The title of the patch.</p>
|
27 + | pub fn title(&self) -> &str {
|
28 + | use std::ops::Deref;
|
29 + | self.title.deref()
|
30 + | }
|
31 + | /// <p>The operating system-specific ID of the patch.</p>
|
32 + | pub fn kb_id(&self) -> &str {
|
33 + | use std::ops::Deref;
|
34 + | self.kb_id.deref()
|
35 + | }
|
36 + | /// <p>The classification of the patch, such as <code>SecurityUpdates</code>, <code>Updates</code>, and <code>CriticalUpdates</code>.</p>
|
37 + | pub fn classification(&self) -> &str {
|
38 + | use std::ops::Deref;
|
39 + | self.classification.deref()
|
40 + | }
|
41 + | /// <p>The severity of the patch such as <code>Critical</code>, <code>Important</code>, and <code>Moderate</code>.</p>
|
42 + | pub fn severity(&self) -> &str {
|
43 + | use std::ops::Deref;
|
44 + | self.severity.deref()
|
45 + | }
|
46 + | /// <p>The state of the patch on the managed node, such as INSTALLED or FAILED.</p>
|
47 + | /// <p>For descriptions of each patch state, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/compliance-about.html#compliance-monitor-patch">About patch compliance</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
|
48 + | pub fn state(&self) -> &crate::types::PatchComplianceDataState {
|
49 + | &self.state
|
50 + | }
|
51 + | /// <p>The date/time the patch was installed on the managed node. Not all operating systems provide this level of information.</p>
|
52 + | pub fn installed_time(&self) -> &::aws_smithy_types::DateTime {
|
53 + | &self.installed_time
|
54 + | }
|
55 + | /// <p>The IDs of one or more Common Vulnerabilities and Exposure (CVE) issues that are resolved by the patch.</p><note>
|
56 + | /// <p>Currently, CVE ID values are reported only for patches with a status of <code>Missing</code> or <code>Failed</code>.</p>
|
57 + | /// </note>
|
58 + | pub fn cve_ids(&self) -> ::std::option::Option<&str> {
|
59 + | self.cve_ids.as_deref()
|
60 + | }
|
61 + | }
|
62 + | static PATCHCOMPLIANCEDATA_MEMBER_TITLE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
63 + | ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#PatchComplianceData$Title", "com.amazonaws.ssm", "PatchComplianceData"),
|
64 + | ::aws_smithy_schema::ShapeType::String,
|
65 + | "Title",
|
66 + | 0,
|
67 + | );
|
68 + | static PATCHCOMPLIANCEDATA_MEMBER_KB_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
69 + | ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#PatchComplianceData$KBId", "com.amazonaws.ssm", "PatchComplianceData"),
|
70 + | ::aws_smithy_schema::ShapeType::String,
|
71 + | "KBId",
|
72 + | 1,
|
73 + | );
|
74 + | static PATCHCOMPLIANCEDATA_MEMBER_CLASSIFICATION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
75 + | ::aws_smithy_schema::ShapeId::from_parts(
|
76 + | "com.amazonaws.ssm#PatchComplianceData$Classification",
|
77 + | "com.amazonaws.ssm",
|
78 + | "PatchComplianceData",
|
79 + | ),
|
80 + | ::aws_smithy_schema::ShapeType::String,
|
81 + | "Classification",
|
82 + | 2,
|
83 + | );
|
84 + | static PATCHCOMPLIANCEDATA_MEMBER_SEVERITY: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
85 + | ::aws_smithy_schema::ShapeId::from_parts(
|
86 + | "com.amazonaws.ssm#PatchComplianceData$Severity",
|
87 + | "com.amazonaws.ssm",
|
88 + | "PatchComplianceData",
|
89 + | ),
|
90 + | ::aws_smithy_schema::ShapeType::String,
|
91 + | "Severity",
|
92 + | 3,
|
93 + | );
|
94 + | static PATCHCOMPLIANCEDATA_MEMBER_STATE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
95 + | ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#PatchComplianceData$State", "com.amazonaws.ssm", "PatchComplianceData"),
|
96 + | ::aws_smithy_schema::ShapeType::String,
|
97 + | "State",
|
98 + | 4,
|
99 + | );
|
100 + | static PATCHCOMPLIANCEDATA_MEMBER_INSTALLED_TIME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
101 + | ::aws_smithy_schema::ShapeId::from_parts(
|
102 + | "com.amazonaws.ssm#PatchComplianceData$InstalledTime",
|
103 + | "com.amazonaws.ssm",
|
104 + | "PatchComplianceData",
|
105 + | ),
|
106 + | ::aws_smithy_schema::ShapeType::Timestamp,
|
107 + | "InstalledTime",
|
108 + | 5,
|
109 + | );
|
110 + | static PATCHCOMPLIANCEDATA_MEMBER_CVE_IDS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
111 + | ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#PatchComplianceData$CVEIds", "com.amazonaws.ssm", "PatchComplianceData"),
|
112 + | ::aws_smithy_schema::ShapeType::String,
|
113 + | "CVEIds",
|
114 + | 6,
|
115 + | );
|
116 + | static PATCHCOMPLIANCEDATA_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
|
117 + | ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#PatchComplianceData", "com.amazonaws.ssm", "PatchComplianceData"),
|
118 + | ::aws_smithy_schema::ShapeType::Structure,
|
119 + | &[
|
120 + | &PATCHCOMPLIANCEDATA_MEMBER_TITLE,
|
121 + | &PATCHCOMPLIANCEDATA_MEMBER_KB_ID,
|
122 + | &PATCHCOMPLIANCEDATA_MEMBER_CLASSIFICATION,
|
123 + | &PATCHCOMPLIANCEDATA_MEMBER_SEVERITY,
|
124 + | &PATCHCOMPLIANCEDATA_MEMBER_STATE,
|
125 + | &PATCHCOMPLIANCEDATA_MEMBER_INSTALLED_TIME,
|
126 + | &PATCHCOMPLIANCEDATA_MEMBER_CVE_IDS,
|
127 + | ],
|
128 + | );
|
129 + | impl PatchComplianceData {
|
130 + | /// The schema for this shape.
|
131 + | pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &PATCHCOMPLIANCEDATA_SCHEMA;
|
132 + | }
|
133 + | impl ::aws_smithy_schema::serde::SerializableStruct for PatchComplianceData {
|
134 + | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
135 + | fn serialize_members(
|
136 + | &self,
|
137 + | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
138 + | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
139 + | {
|
140 + | let val = &self.title;
|
141 + | ser.write_string(&PATCHCOMPLIANCEDATA_MEMBER_TITLE, val)?;
|
142 + | }
|
143 + | {
|
144 + | let val = &self.kb_id;
|
145 + | ser.write_string(&PATCHCOMPLIANCEDATA_MEMBER_KB_ID, val)?;
|
146 + | }
|
147 + | {
|
148 + | let val = &self.classification;
|
149 + | ser.write_string(&PATCHCOMPLIANCEDATA_MEMBER_CLASSIFICATION, val)?;
|
150 + | }
|
151 + | {
|
152 + | let val = &self.severity;
|
153 + | ser.write_string(&PATCHCOMPLIANCEDATA_MEMBER_SEVERITY, val)?;
|
154 + | }
|
155 + | {
|
156 + | let val = &self.state;
|
157 + | ser.write_string(&PATCHCOMPLIANCEDATA_MEMBER_STATE, val.as_str())?;
|
158 + | }
|
159 + | {
|
160 + | let val = &self.installed_time;
|
161 + | ser.write_timestamp(&PATCHCOMPLIANCEDATA_MEMBER_INSTALLED_TIME, val)?;
|
162 + | }
|
163 + | if let Some(ref val) = self.cve_ids {
|
164 + | ser.write_string(&PATCHCOMPLIANCEDATA_MEMBER_CVE_IDS, val)?;
|
165 + | }
|
166 + | Ok(())
|
167 + | }
|
168 + | }
|
169 + | impl PatchComplianceData {
|
170 + | /// Deserializes this structure from a [`ShapeDeserializer`].
|
171 + | pub fn deserialize(
|
172 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
173 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
174 + | #[allow(unused_variables, unused_mut)]
|
175 + | let mut builder = Self::builder();
|
176 + | #[allow(
|
177 + | unused_variables,
|
178 + | unreachable_code,
|
179 + | clippy::single_match,
|
180 + | clippy::match_single_binding,
|
181 + | clippy::diverging_sub_expression
|
182 + | )]
|
183 + | deserializer.read_struct(&PATCHCOMPLIANCEDATA_SCHEMA, &mut |member, deser| {
|
184 + | match member.member_index() {
|
185 + | Some(0) => {
|
186 + | builder.title = Some(deser.read_string(member)?);
|
187 + | }
|
188 + | Some(1) => {
|
189 + | builder.kb_id = Some(deser.read_string(member)?);
|
190 + | }
|
191 + | Some(2) => {
|
192 + | builder.classification = Some(deser.read_string(member)?);
|
193 + | }
|
194 + | Some(3) => {
|
195 + | builder.severity = Some(deser.read_string(member)?);
|
196 + | }
|
197 + | Some(4) => {
|
198 + | builder.state = Some(crate::types::PatchComplianceDataState::from(deser.read_string(member)?.as_str()));
|
199 + | }
|
200 + | Some(5) => {
|
201 + | builder.installed_time = Some(deser.read_timestamp(member)?);
|
202 + | }
|
203 + | Some(6) => {
|
204 + | if deser.is_null() {
|
205 + | deser.read_null()?;
|
206 + | } else {
|
207 + | builder.cve_ids = Some(deser.read_string(member)?);
|
208 + | }
|
209 + | }
|
210 + | _ => {}
|
211 + | }
|
212 + | Ok(())
|
213 + | })?;
|
214 + | builder.title = builder.title.or(Some(String::new()));
|
215 + | builder.kb_id = builder.kb_id.or(Some(String::new()));
|
216 + | builder.classification = builder.classification.or(Some(String::new()));
|
217 + | builder.severity = builder.severity.or(Some(String::new()));
|
218 + | builder.installed_time = builder.installed_time.or(Some(::aws_smithy_types::DateTime::from_secs(0)));
|
219 + | builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::custom(e.to_string()))
|
220 + | }
|
221 + | }
|
222 + | impl PatchComplianceData {
|
223 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
224 + | pub fn deserialize_with_response(
|
225 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
226 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
227 + | _status: u16,
|
228 + | _body: &[u8],
|
229 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
230 + | Self::deserialize(deserializer)
|
231 + | }
|
232 + | }
|
233 + | impl PatchComplianceData {
|
234 + | /// Creates a new builder-style object to manufacture [`PatchComplianceData`](crate::types::PatchComplianceData).
|
235 + | pub fn builder() -> crate::types::builders::PatchComplianceDataBuilder {
|
236 + | crate::types::builders::PatchComplianceDataBuilder::default()
|
237 + | }
|
238 + | }
|
239 + |
|
240 + | /// A builder for [`PatchComplianceData`](crate::types::PatchComplianceData).
|
241 + | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
242 + | #[non_exhaustive]
|
243 + | pub struct PatchComplianceDataBuilder {
|
244 + | pub(crate) title: ::std::option::Option<::std::string::String>,
|
245 + | pub(crate) kb_id: ::std::option::Option<::std::string::String>,
|
246 + | pub(crate) classification: ::std::option::Option<::std::string::String>,
|
247 + | pub(crate) severity: ::std::option::Option<::std::string::String>,
|
248 + | pub(crate) state: ::std::option::Option<crate::types::PatchComplianceDataState>,
|
249 + | pub(crate) installed_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
250 + | pub(crate) cve_ids: ::std::option::Option<::std::string::String>,
|
251 + | }
|
252 + | impl PatchComplianceDataBuilder {
|
253 + | /// <p>The title of the patch.</p>
|
254 + | /// This field is required.
|
255 + | pub fn title(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
256 + | self.title = ::std::option::Option::Some(input.into());
|
257 + | self
|
258 + | }
|
259 + | /// <p>The title of the patch.</p>
|
260 + | pub fn set_title(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
261 + | self.title = input;
|
262 + | self
|
263 + | }
|
264 + | /// <p>The title of the patch.</p>
|
265 + | pub fn get_title(&self) -> &::std::option::Option<::std::string::String> {
|
266 + | &self.title
|
267 + | }
|
268 + | /// <p>The operating system-specific ID of the patch.</p>
|
269 + | /// This field is required.
|
270 + | pub fn kb_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
271 + | self.kb_id = ::std::option::Option::Some(input.into());
|
272 + | self
|
273 + | }
|
274 + | /// <p>The operating system-specific ID of the patch.</p>
|
275 + | pub fn set_kb_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
276 + | self.kb_id = input;
|
277 + | self
|
278 + | }
|
279 + | /// <p>The operating system-specific ID of the patch.</p>
|
280 + | pub fn get_kb_id(&self) -> &::std::option::Option<::std::string::String> {
|
281 + | &self.kb_id
|
282 + | }
|
283 + | /// <p>The classification of the patch, such as <code>SecurityUpdates</code>, <code>Updates</code>, and <code>CriticalUpdates</code>.</p>
|
284 + | /// This field is required.
|
285 + | pub fn classification(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
286 + | self.classification = ::std::option::Option::Some(input.into());
|
287 + | self
|
288 + | }
|
289 + | /// <p>The classification of the patch, such as <code>SecurityUpdates</code>, <code>Updates</code>, and <code>CriticalUpdates</code>.</p>
|
290 + | pub fn set_classification(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
291 + | self.classification = input;
|
292 + | self
|
293 + | }
|
294 + | /// <p>The classification of the patch, such as <code>SecurityUpdates</code>, <code>Updates</code>, and <code>CriticalUpdates</code>.</p>
|
295 + | pub fn get_classification(&self) -> &::std::option::Option<::std::string::String> {
|
296 + | &self.classification
|
297 + | }
|
298 + | /// <p>The severity of the patch such as <code>Critical</code>, <code>Important</code>, and <code>Moderate</code>.</p>
|
299 + | /// This field is required.
|
300 + | pub fn severity(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
301 + | self.severity = ::std::option::Option::Some(input.into());
|
302 + | self
|
303 + | }
|
304 + | /// <p>The severity of the patch such as <code>Critical</code>, <code>Important</code>, and <code>Moderate</code>.</p>
|
305 + | pub fn set_severity(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
306 + | self.severity = input;
|
307 + | self
|
308 + | }
|
309 + | /// <p>The severity of the patch such as <code>Critical</code>, <code>Important</code>, and <code>Moderate</code>.</p>
|
310 + | pub fn get_severity(&self) -> &::std::option::Option<::std::string::String> {
|
311 + | &self.severity
|
312 + | }
|
313 + | /// <p>The state of the patch on the managed node, such as INSTALLED or FAILED.</p>
|
314 + | /// <p>For descriptions of each patch state, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/compliance-about.html#compliance-monitor-patch">About patch compliance</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
|
315 + | /// This field is required.
|
316 + | pub fn state(mut self, input: crate::types::PatchComplianceDataState) -> Self {
|
317 + | self.state = ::std::option::Option::Some(input);
|
318 + | self
|
319 + | }
|
320 + | /// <p>The state of the patch on the managed node, such as INSTALLED or FAILED.</p>
|
321 + | /// <p>For descriptions of each patch state, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/compliance-about.html#compliance-monitor-patch">About patch compliance</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
|
322 + | pub fn set_state(mut self, input: ::std::option::Option<crate::types::PatchComplianceDataState>) -> Self {
|
323 + | self.state = input;
|
324 + | self
|
325 + | }
|
326 + | /// <p>The state of the patch on the managed node, such as INSTALLED or FAILED.</p>
|
327 + | /// <p>For descriptions of each patch state, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/compliance-about.html#compliance-monitor-patch">About patch compliance</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
|
328 + | pub fn get_state(&self) -> &::std::option::Option<crate::types::PatchComplianceDataState> {
|
329 + | &self.state
|
330 + | }
|
331 + | /// <p>The date/time the patch was installed on the managed node. Not all operating systems provide this level of information.</p>
|
332 + | /// This field is required.
|
333 + | pub fn installed_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
334 + | self.installed_time = ::std::option::Option::Some(input);
|
335 + | self
|
336 + | }
|
337 + | /// <p>The date/time the patch was installed on the managed node. Not all operating systems provide this level of information.</p>
|
338 + | pub fn set_installed_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
|
339 + | self.installed_time = input;
|
340 + | self
|
341 + | }
|
342 + | /// <p>The date/time the patch was installed on the managed node. Not all operating systems provide this level of information.</p>
|
343 + | pub fn get_installed_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
|
344 + | &self.installed_time
|
345 + | }
|
346 + | /// <p>The IDs of one or more Common Vulnerabilities and Exposure (CVE) issues that are resolved by the patch.</p><note>
|
347 + | /// <p>Currently, CVE ID values are reported only for patches with a status of <code>Missing</code> or <code>Failed</code>.</p>
|
348 + | /// </note>
|
349 + | pub fn cve_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
350 + | self.cve_ids = ::std::option::Option::Some(input.into());
|
351 + | self
|
352 + | }
|
353 + | /// <p>The IDs of one or more Common Vulnerabilities and Exposure (CVE) issues that are resolved by the patch.</p><note>
|
354 + | /// <p>Currently, CVE ID values are reported only for patches with a status of <code>Missing</code> or <code>Failed</code>.</p>
|
355 + | /// </note>
|
356 + | pub fn set_cve_ids(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
357 + | self.cve_ids = input;
|
358 + | self
|
359 + | }
|
360 + | /// <p>The IDs of one or more Common Vulnerabilities and Exposure (CVE) issues that are resolved by the patch.</p><note>
|
361 + | /// <p>Currently, CVE ID values are reported only for patches with a status of <code>Missing</code> or <code>Failed</code>.</p>
|
362 + | /// </note>
|
363 + | pub fn get_cve_ids(&self) -> &::std::option::Option<::std::string::String> {
|
364 + | &self.cve_ids
|
365 + | }
|
366 + | /// Consumes the builder and constructs a [`PatchComplianceData`](crate::types::PatchComplianceData).
|
367 + | /// This method will fail if any of the following fields are not set:
|
368 + | /// - [`title`](crate::types::builders::PatchComplianceDataBuilder::title)
|
369 + | /// - [`kb_id`](crate::types::builders::PatchComplianceDataBuilder::kb_id)
|
370 + | /// - [`classification`](crate::types::builders::PatchComplianceDataBuilder::classification)
|
371 + | /// - [`severity`](crate::types::builders::PatchComplianceDataBuilder::severity)
|
372 + | /// - [`state`](crate::types::builders::PatchComplianceDataBuilder::state)
|
373 + | /// - [`installed_time`](crate::types::builders::PatchComplianceDataBuilder::installed_time)
|
374 + | pub fn build(self) -> ::std::result::Result<crate::types::PatchComplianceData, ::aws_smithy_types::error::operation::BuildError> {
|
375 + | ::std::result::Result::Ok(crate::types::PatchComplianceData {
|
376 + | title: self.title.ok_or_else(|| {
|
377 + | ::aws_smithy_types::error::operation::BuildError::missing_field(
|
378 + | "title",
|
379 + | "title was not specified but it is required when building PatchComplianceData",
|
380 + | )
|
381 + | })?,
|
382 + | kb_id: self.kb_id.ok_or_else(|| {
|
383 + | ::aws_smithy_types::error::operation::BuildError::missing_field(
|
384 + | "kb_id",
|
385 + | "kb_id was not specified but it is required when building PatchComplianceData",
|
386 + | )
|
387 + | })?,
|
388 + | classification: self.classification.ok_or_else(|| {
|
389 + | ::aws_smithy_types::error::operation::BuildError::missing_field(
|
390 + | "classification",
|
391 + | "classification was not specified but it is required when building PatchComplianceData",
|
392 + | )
|
393 + | })?,
|
394 + | severity: self.severity.ok_or_else(|| {
|
395 + | ::aws_smithy_types::error::operation::BuildError::missing_field(
|
396 + | "severity",
|
397 + | "severity was not specified but it is required when building PatchComplianceData",
|
398 + | )
|
399 + | })?,
|
400 + | state: self.state.ok_or_else(|| {
|
401 + | ::aws_smithy_types::error::operation::BuildError::missing_field(
|
402 + | "state",
|
403 + | "state was not specified but it is required when building PatchComplianceData",
|
404 + | )
|
405 + | })?,
|
406 + | installed_time: self.installed_time.ok_or_else(|| {
|
407 + | ::aws_smithy_types::error::operation::BuildError::missing_field(
|
408 + | "installed_time",
|
409 + | "installed_time was not specified but it is required when building PatchComplianceData",
|
410 + | )
|
411 + | })?,
|
412 + | cve_ids: self.cve_ids,
|
413 + | })
|
414 + | }
|
415 + | }
|