-
Notifications
You must be signed in to change notification settings - Fork 242
/
shape_pending_cloudwatch_logs_exports.rs
34 lines (34 loc) · 1.45 KB
/
shape_pending_cloudwatch_logs_exports.rs
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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(clippy::needless_question_mark)]
pub fn de_pending_cloudwatch_logs_exports(
decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::types::PendingCloudwatchLogsExports, ::aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::types::PendingCloudwatchLogsExports::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("LogTypesToEnable") /* LogTypesToEnable com.amazonaws.neptune#PendingCloudwatchLogsExports$LogTypesToEnable */ => {
let var_1 =
Some(
crate::protocol_serde::shape_log_type_list::de_log_type_list(&mut tag)
?
)
;
builder = builder.set_log_types_to_enable(var_1);
}
,
s if s.matches("LogTypesToDisable") /* LogTypesToDisable com.amazonaws.neptune#PendingCloudwatchLogsExports$LogTypesToDisable */ => {
let var_2 =
Some(
crate::protocol_serde::shape_log_type_list::de_log_type_list(&mut tag)
?
)
;
builder = builder.set_log_types_to_disable(var_2);
}
,
_ => {}
}
}
Ok(builder.build())
}