aws_sdk_ec2/protocol_serde/
shape_verified_access_endpoint.rs1#[allow(clippy::needless_question_mark)]
3pub fn de_verified_access_endpoint(
4 decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
5) -> ::std::result::Result<crate::types::VerifiedAccessEndpoint, ::aws_smithy_xml::decode::XmlDecodeError> {
6 #[allow(unused_mut)]
7 let mut builder = crate::types::VerifiedAccessEndpoint::builder();
8 while let Some(mut tag) = decoder.next_tag() {
9 match tag.start_el() {
10 s if s.matches("verifiedAccessInstanceId") => {
11 let var_1 =
12 Some(
13 Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
14 ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
15 .into()
16 )
17 ?
18 )
19 ;
20 builder = builder.set_verified_access_instance_id(var_1);
21 }
22 ,
23 s if s.matches("verifiedAccessGroupId") => {
24 let var_2 =
25 Some(
26 Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
27 ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
28 .into()
29 )
30 ?
31 )
32 ;
33 builder = builder.set_verified_access_group_id(var_2);
34 }
35 ,
36 s if s.matches("verifiedAccessEndpointId") => {
37 let var_3 =
38 Some(
39 Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
40 ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
41 .into()
42 )
43 ?
44 )
45 ;
46 builder = builder.set_verified_access_endpoint_id(var_3);
47 }
48 ,
49 s if s.matches("applicationDomain") => {
50 let var_4 =
51 Some(
52 Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
53 ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
54 .into()
55 )
56 ?
57 )
58 ;
59 builder = builder.set_application_domain(var_4);
60 }
61 ,
62 s if s.matches("endpointType") => {
63 let var_5 =
64 Some(
65 Result::<crate::types::VerifiedAccessEndpointType, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
66 crate::types::VerifiedAccessEndpointType::from(
67 ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
68 )
69 )
70 ?
71 )
72 ;
73 builder = builder.set_endpoint_type(var_5);
74 }
75 ,
76 s if s.matches("attachmentType") => {
77 let var_6 =
78 Some(
79 Result::<crate::types::VerifiedAccessEndpointAttachmentType, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
80 crate::types::VerifiedAccessEndpointAttachmentType::from(
81 ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
82 )
83 )
84 ?
85 )
86 ;
87 builder = builder.set_attachment_type(var_6);
88 }
89 ,
90 s if s.matches("domainCertificateArn") => {
91 let var_7 =
92 Some(
93 Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
94 ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
95 .into()
96 )
97 ?
98 )
99 ;
100 builder = builder.set_domain_certificate_arn(var_7);
101 }
102 ,
103 s if s.matches("endpointDomain") => {
104 let var_8 =
105 Some(
106 Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
107 ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
108 .into()
109 )
110 ?
111 )
112 ;
113 builder = builder.set_endpoint_domain(var_8);
114 }
115 ,
116 s if s.matches("deviceValidationDomain") => {
117 let var_9 =
118 Some(
119 Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
120 ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
121 .into()
122 )
123 ?
124 )
125 ;
126 builder = builder.set_device_validation_domain(var_9);
127 }
128 ,
129 s if s.matches("securityGroupIdSet") => {
130 let var_10 =
131 Some(
132 crate::protocol_serde::shape_security_group_id_list::de_security_group_id_list(&mut tag)
133 ?
134 )
135 ;
136 builder = builder.set_security_group_ids(var_10);
137 }
138 ,
139 s if s.matches("loadBalancerOptions") => {
140 let var_11 =
141 Some(
142 crate::protocol_serde::shape_verified_access_endpoint_load_balancer_options::de_verified_access_endpoint_load_balancer_options(&mut tag)
143 ?
144 )
145 ;
146 builder = builder.set_load_balancer_options(var_11);
147 }
148 ,
149 s if s.matches("networkInterfaceOptions") => {
150 let var_12 =
151 Some(
152 crate::protocol_serde::shape_verified_access_endpoint_eni_options::de_verified_access_endpoint_eni_options(&mut tag)
153 ?
154 )
155 ;
156 builder = builder.set_network_interface_options(var_12);
157 }
158 ,
159 s if s.matches("status") => {
160 let var_13 =
161 Some(
162 crate::protocol_serde::shape_verified_access_endpoint_status::de_verified_access_endpoint_status(&mut tag)
163 ?
164 )
165 ;
166 builder = builder.set_status(var_13);
167 }
168 ,
169 s if s.matches("description") => {
170 let var_14 =
171 Some(
172 Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
173 ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
174 .into()
175 )
176 ?
177 )
178 ;
179 builder = builder.set_description(var_14);
180 }
181 ,
182 s if s.matches("creationTime") => {
183 let var_15 =
184 Some(
185 Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
186 ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
187 .into()
188 )
189 ?
190 )
191 ;
192 builder = builder.set_creation_time(var_15);
193 }
194 ,
195 s if s.matches("lastUpdatedTime") => {
196 let var_16 =
197 Some(
198 Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
199 ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
200 .into()
201 )
202 ?
203 )
204 ;
205 builder = builder.set_last_updated_time(var_16);
206 }
207 ,
208 s if s.matches("deletionTime") => {
209 let var_17 =
210 Some(
211 Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
212 ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
213 .into()
214 )
215 ?
216 )
217 ;
218 builder = builder.set_deletion_time(var_17);
219 }
220 ,
221 s if s.matches("tagSet") => {
222 let var_18 =
223 Some(
224 crate::protocol_serde::shape_tag_list::de_tag_list(&mut tag)
225 ?
226 )
227 ;
228 builder = builder.set_tags(var_18);
229 }
230 ,
231 s if s.matches("sseSpecification") => {
232 let var_19 =
233 Some(
234 crate::protocol_serde::shape_verified_access_sse_specification_response::de_verified_access_sse_specification_response(&mut tag)
235 ?
236 )
237 ;
238 builder = builder.set_sse_specification(var_19);
239 }
240 ,
241 s if s.matches("rdsOptions") => {
242 let var_20 =
243 Some(
244 crate::protocol_serde::shape_verified_access_endpoint_rds_options::de_verified_access_endpoint_rds_options(&mut tag)
245 ?
246 )
247 ;
248 builder = builder.set_rds_options(var_20);
249 }
250 ,
251 s if s.matches("cidrOptions") => {
252 let var_21 =
253 Some(
254 crate::protocol_serde::shape_verified_access_endpoint_cidr_options::de_verified_access_endpoint_cidr_options(&mut tag)
255 ?
256 )
257 ;
258 builder = builder.set_cidr_options(var_21);
259 }
260 ,
261 _ => {}
262 }
263 }
264 Ok(builder.build())
265}