aws_sdk_elasticloadbalancingv2/protocol_serde/
shape_ssl_policy.rs1#[allow(clippy::needless_question_mark)]
3pub fn de_ssl_policy(
4 decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
5) -> ::std::result::Result<crate::types::SslPolicy, ::aws_smithy_xml::decode::XmlDecodeError> {
6 #[allow(unused_mut)]
7 let mut builder = crate::types::SslPolicy::builder();
8 while let Some(mut tag) = decoder.next_tag() {
9 match tag.start_el() {
10 s if s.matches("SslProtocols") => {
11 let var_1 =
12 Some(
13 crate::protocol_serde::shape_ssl_protocols::de_ssl_protocols(&mut tag)
14 ?
15 )
16 ;
17 builder = builder.set_ssl_protocols(var_1);
18 }
19 ,
20 s if s.matches("Ciphers") => {
21 let var_2 =
22 Some(
23 crate::protocol_serde::shape_ciphers::de_ciphers(&mut tag)
24 ?
25 )
26 ;
27 builder = builder.set_ciphers(var_2);
28 }
29 ,
30 s if s.matches("Name") => {
31 let var_3 =
32 Some(
33 Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
34 ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
35 .into()
36 )
37 ?
38 )
39 ;
40 builder = builder.set_name(var_3);
41 }
42 ,
43 s if s.matches("SupportedLoadBalancerTypes") => {
44 let var_4 =
45 Some(
46 crate::protocol_serde::shape_list_of_string::de_list_of_string(&mut tag)
47 ?
48 )
49 ;
50 builder = builder.set_supported_load_balancer_types(var_4);
51 }
52 ,
53 _ => {}
54 }
55 }
56 Ok(builder.build())
57}