119 119 | "com.amazonaws.ec2.synthetic",
|
120 120 | "ReplaceRouteInput",
|
121 121 | );
|
122 122 | static REPLACEROUTEINPUT_MEMBER_DESTINATION_PREFIX_LIST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
123 123 | ::aws_smithy_schema::ShapeId::from_static(
|
124 124 | "com.amazonaws.ec2.synthetic#ReplaceRouteInput$DestinationPrefixListId",
|
125 125 | "com.amazonaws.ec2.synthetic",
|
126 126 | "ReplaceRouteInput",
|
127 127 | ),
|
128 128 | ::aws_smithy_schema::ShapeType::String,
|
129 - | "destination_prefix_list_id",
|
129 + | "DestinationPrefixListId",
|
130 130 | 0,
|
131 131 | );
|
132 132 | static REPLACEROUTEINPUT_MEMBER_VPC_ENDPOINT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
133 133 | ::aws_smithy_schema::ShapeId::from_static(
|
134 134 | "com.amazonaws.ec2.synthetic#ReplaceRouteInput$VpcEndpointId",
|
135 135 | "com.amazonaws.ec2.synthetic",
|
136 136 | "ReplaceRouteInput",
|
137 137 | ),
|
138 138 | ::aws_smithy_schema::ShapeType::String,
|
139 - | "vpc_endpoint_id",
|
139 + | "VpcEndpointId",
|
140 140 | 1,
|
141 141 | );
|
142 142 | static REPLACEROUTEINPUT_MEMBER_LOCAL_TARGET: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
143 143 | ::aws_smithy_schema::ShapeId::from_static(
|
144 144 | "com.amazonaws.ec2.synthetic#ReplaceRouteInput$LocalTarget",
|
145 145 | "com.amazonaws.ec2.synthetic",
|
146 146 | "ReplaceRouteInput",
|
147 147 | ),
|
148 148 | ::aws_smithy_schema::ShapeType::Boolean,
|
149 - | "local_target",
|
149 + | "LocalTarget",
|
150 150 | 2,
|
151 151 | );
|
152 152 | static REPLACEROUTEINPUT_MEMBER_TRANSIT_GATEWAY_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
153 153 | ::aws_smithy_schema::ShapeId::from_static(
|
154 154 | "com.amazonaws.ec2.synthetic#ReplaceRouteInput$TransitGatewayId",
|
155 155 | "com.amazonaws.ec2.synthetic",
|
156 156 | "ReplaceRouteInput",
|
157 157 | ),
|
158 158 | ::aws_smithy_schema::ShapeType::String,
|
159 - | "transit_gateway_id",
|
159 + | "TransitGatewayId",
|
160 160 | 3,
|
161 161 | );
|
162 162 | static REPLACEROUTEINPUT_MEMBER_LOCAL_GATEWAY_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
163 163 | ::aws_smithy_schema::ShapeId::from_static(
|
164 164 | "com.amazonaws.ec2.synthetic#ReplaceRouteInput$LocalGatewayId",
|
165 165 | "com.amazonaws.ec2.synthetic",
|
166 166 | "ReplaceRouteInput",
|
167 167 | ),
|
168 168 | ::aws_smithy_schema::ShapeType::String,
|
169 - | "local_gateway_id",
|
169 + | "LocalGatewayId",
|
170 170 | 4,
|
171 171 | );
|
172 172 | static REPLACEROUTEINPUT_MEMBER_CARRIER_GATEWAY_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
173 173 | ::aws_smithy_schema::ShapeId::from_static(
|
174 174 | "com.amazonaws.ec2.synthetic#ReplaceRouteInput$CarrierGatewayId",
|
175 175 | "com.amazonaws.ec2.synthetic",
|
176 176 | "ReplaceRouteInput",
|
177 177 | ),
|
178 178 | ::aws_smithy_schema::ShapeType::String,
|
179 - | "carrier_gateway_id",
|
179 + | "CarrierGatewayId",
|
180 180 | 5,
|
181 181 | );
|
182 182 | static REPLACEROUTEINPUT_MEMBER_CORE_NETWORK_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
183 183 | ::aws_smithy_schema::ShapeId::from_static(
|
184 184 | "com.amazonaws.ec2.synthetic#ReplaceRouteInput$CoreNetworkArn",
|
185 185 | "com.amazonaws.ec2.synthetic",
|
186 186 | "ReplaceRouteInput",
|
187 187 | ),
|
188 188 | ::aws_smithy_schema::ShapeType::String,
|
189 - | "core_network_arn",
|
189 + | "CoreNetworkArn",
|
190 190 | 6,
|
191 191 | );
|
192 192 | static REPLACEROUTEINPUT_MEMBER_ODB_NETWORK_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
193 193 | ::aws_smithy_schema::ShapeId::from_static(
|
194 194 | "com.amazonaws.ec2.synthetic#ReplaceRouteInput$OdbNetworkArn",
|
195 195 | "com.amazonaws.ec2.synthetic",
|
196 196 | "ReplaceRouteInput",
|
197 197 | ),
|
198 198 | ::aws_smithy_schema::ShapeType::String,
|
199 - | "odb_network_arn",
|
199 + | "OdbNetworkArn",
|
200 200 | 7,
|
201 201 | );
|
202 202 | static REPLACEROUTEINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
203 203 | ::aws_smithy_schema::ShapeId::from_static(
|
204 204 | "com.amazonaws.ec2.synthetic#ReplaceRouteInput$DryRun",
|
205 205 | "com.amazonaws.ec2.synthetic",
|
206 206 | "ReplaceRouteInput",
|
207 207 | ),
|
208 208 | ::aws_smithy_schema::ShapeType::Boolean,
|
209 - | "dry_run",
|
209 + | "DryRun",
|
210 210 | 8,
|
211 211 | )
|
212 212 | .with_xml_name("dryRun");
|
213 213 | static REPLACEROUTEINPUT_MEMBER_ROUTE_TABLE_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
214 214 | ::aws_smithy_schema::ShapeId::from_static(
|
215 215 | "com.amazonaws.ec2.synthetic#ReplaceRouteInput$RouteTableId",
|
216 216 | "com.amazonaws.ec2.synthetic",
|
217 217 | "ReplaceRouteInput",
|
218 218 | ),
|
219 219 | ::aws_smithy_schema::ShapeType::String,
|
220 - | "route_table_id",
|
220 + | "RouteTableId",
|
221 221 | 9,
|
222 222 | )
|
223 223 | .with_xml_name("routeTableId");
|
224 224 | static REPLACEROUTEINPUT_MEMBER_DESTINATION_CIDR_BLOCK: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
225 225 | ::aws_smithy_schema::ShapeId::from_static(
|
226 226 | "com.amazonaws.ec2.synthetic#ReplaceRouteInput$DestinationCidrBlock",
|
227 227 | "com.amazonaws.ec2.synthetic",
|
228 228 | "ReplaceRouteInput",
|
229 229 | ),
|
230 230 | ::aws_smithy_schema::ShapeType::String,
|
231 - | "destination_cidr_block",
|
231 + | "DestinationCidrBlock",
|
232 232 | 10,
|
233 233 | )
|
234 234 | .with_xml_name("destinationCidrBlock");
|
235 235 | static REPLACEROUTEINPUT_MEMBER_GATEWAY_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
236 236 | ::aws_smithy_schema::ShapeId::from_static(
|
237 237 | "com.amazonaws.ec2.synthetic#ReplaceRouteInput$GatewayId",
|
238 238 | "com.amazonaws.ec2.synthetic",
|
239 239 | "ReplaceRouteInput",
|
240 240 | ),
|
241 241 | ::aws_smithy_schema::ShapeType::String,
|
242 - | "gateway_id",
|
242 + | "GatewayId",
|
243 243 | 11,
|
244 244 | )
|
245 245 | .with_xml_name("gatewayId");
|
246 246 | static REPLACEROUTEINPUT_MEMBER_DESTINATION_IPV6_CIDR_BLOCK: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
247 247 | ::aws_smithy_schema::ShapeId::from_static(
|
248 248 | "com.amazonaws.ec2.synthetic#ReplaceRouteInput$DestinationIpv6CidrBlock",
|
249 249 | "com.amazonaws.ec2.synthetic",
|
250 250 | "ReplaceRouteInput",
|
251 251 | ),
|
252 252 | ::aws_smithy_schema::ShapeType::String,
|
253 - | "destination_ipv6_cidr_block",
|
253 + | "DestinationIpv6CidrBlock",
|
254 254 | 12,
|
255 255 | )
|
256 256 | .with_xml_name("destinationIpv6CidrBlock");
|
257 257 | static REPLACEROUTEINPUT_MEMBER_EGRESS_ONLY_INTERNET_GATEWAY_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
258 258 | ::aws_smithy_schema::ShapeId::from_static(
|
259 259 | "com.amazonaws.ec2.synthetic#ReplaceRouteInput$EgressOnlyInternetGatewayId",
|
260 260 | "com.amazonaws.ec2.synthetic",
|
261 261 | "ReplaceRouteInput",
|
262 262 | ),
|
263 263 | ::aws_smithy_schema::ShapeType::String,
|
264 - | "egress_only_internet_gateway_id",
|
264 + | "EgressOnlyInternetGatewayId",
|
265 265 | 13,
|
266 266 | )
|
267 267 | .with_xml_name("egressOnlyInternetGatewayId");
|
268 268 | static REPLACEROUTEINPUT_MEMBER_INSTANCE_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
269 269 | ::aws_smithy_schema::ShapeId::from_static(
|
270 270 | "com.amazonaws.ec2.synthetic#ReplaceRouteInput$InstanceId",
|
271 271 | "com.amazonaws.ec2.synthetic",
|
272 272 | "ReplaceRouteInput",
|
273 273 | ),
|
274 274 | ::aws_smithy_schema::ShapeType::String,
|
275 - | "instance_id",
|
275 + | "InstanceId",
|
276 276 | 14,
|
277 277 | )
|
278 278 | .with_xml_name("instanceId");
|
279 279 | static REPLACEROUTEINPUT_MEMBER_NETWORK_INTERFACE_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
280 280 | ::aws_smithy_schema::ShapeId::from_static(
|
281 281 | "com.amazonaws.ec2.synthetic#ReplaceRouteInput$NetworkInterfaceId",
|
282 282 | "com.amazonaws.ec2.synthetic",
|
283 283 | "ReplaceRouteInput",
|
284 284 | ),
|
285 285 | ::aws_smithy_schema::ShapeType::String,
|
286 - | "network_interface_id",
|
286 + | "NetworkInterfaceId",
|
287 287 | 15,
|
288 288 | )
|
289 289 | .with_xml_name("networkInterfaceId");
|
290 290 | static REPLACEROUTEINPUT_MEMBER_VPC_PEERING_CONNECTION_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
291 291 | ::aws_smithy_schema::ShapeId::from_static(
|
292 292 | "com.amazonaws.ec2.synthetic#ReplaceRouteInput$VpcPeeringConnectionId",
|
293 293 | "com.amazonaws.ec2.synthetic",
|
294 294 | "ReplaceRouteInput",
|
295 295 | ),
|
296 296 | ::aws_smithy_schema::ShapeType::String,
|
297 - | "vpc_peering_connection_id",
|
297 + | "VpcPeeringConnectionId",
|
298 298 | 16,
|
299 299 | )
|
300 300 | .with_xml_name("vpcPeeringConnectionId");
|
301 301 | static REPLACEROUTEINPUT_MEMBER_NAT_GATEWAY_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
302 302 | ::aws_smithy_schema::ShapeId::from_static(
|
303 303 | "com.amazonaws.ec2.synthetic#ReplaceRouteInput$NatGatewayId",
|
304 304 | "com.amazonaws.ec2.synthetic",
|
305 305 | "ReplaceRouteInput",
|
306 306 | ),
|
307 307 | ::aws_smithy_schema::ShapeType::String,
|
308 - | "nat_gateway_id",
|
308 + | "NatGatewayId",
|
309 309 | 17,
|
310 310 | )
|
311 311 | .with_xml_name("natGatewayId");
|
312 312 | static REPLACEROUTEINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
313 313 | REPLACEROUTEINPUT_SCHEMA_ID,
|
314 314 | ::aws_smithy_schema::ShapeType::Structure,
|
315 315 | &[
|
316 316 | &REPLACEROUTEINPUT_MEMBER_DESTINATION_PREFIX_LIST_ID,
|
317 317 | &REPLACEROUTEINPUT_MEMBER_VPC_ENDPOINT_ID,
|
318 318 | &REPLACEROUTEINPUT_MEMBER_LOCAL_TARGET,
|
395 395 | ser.write_string(&REPLACEROUTEINPUT_MEMBER_VPC_PEERING_CONNECTION_ID, val)?;
|
396 396 | }
|
397 397 | if let Some(ref val) = self.nat_gateway_id {
|
398 398 | ser.write_string(&REPLACEROUTEINPUT_MEMBER_NAT_GATEWAY_ID, val)?;
|
399 399 | }
|
400 400 | Ok(())
|
401 401 | }
|
402 402 | }
|
403 403 | impl ReplaceRouteInput {
|
404 404 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
405 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
406 - | deserializer: &mut D,
|
405 + | pub fn deserialize(
|
406 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
407 407 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
408 408 | #[allow(unused_variables, unused_mut)]
|
409 409 | let mut builder = Self::builder();
|
410 410 | #[allow(
|
411 411 | unused_variables,
|
412 412 | unreachable_code,
|
413 413 | clippy::single_match,
|
414 414 | clippy::match_single_binding,
|
415 415 | clippy::diverging_sub_expression
|
416 416 | )]
|
417 - | deserializer.read_struct(&REPLACEROUTEINPUT_SCHEMA, (), |_, member, deser| {
|
417 + | deserializer.read_struct(&REPLACEROUTEINPUT_SCHEMA, &mut |member, deser| {
|
418 418 | match member.member_index() {
|
419 419 | Some(0) => {
|
420 420 | builder.destination_prefix_list_id = Some(deser.read_string(member)?);
|
421 421 | }
|
422 422 | Some(1) => {
|
423 423 | builder.vpc_endpoint_id = Some(deser.read_string(member)?);
|
424 424 | }
|
425 425 | Some(2) => {
|
426 426 | builder.local_target = Some(deser.read_boolean(member)?);
|
427 427 | }
|
428 428 | Some(3) => {
|
429 429 | builder.transit_gateway_id = Some(deser.read_string(member)?);
|
430 430 | }
|
431 431 | Some(4) => {
|
432 432 | builder.local_gateway_id = Some(deser.read_string(member)?);
|
433 433 | }
|
434 434 | Some(5) => {
|
435 435 | builder.carrier_gateway_id = Some(deser.read_string(member)?);
|
436 436 | }
|
437 437 | Some(6) => {
|
438 438 | builder.core_network_arn = Some(deser.read_string(member)?);
|
439 439 | }
|
440 440 | Some(7) => {
|
441 441 | builder.odb_network_arn = Some(deser.read_string(member)?);
|
442 442 | }
|
443 443 | Some(8) => {
|
444 444 | builder.dry_run = Some(deser.read_boolean(member)?);
|
445 445 | }
|
446 446 | Some(9) => {
|
447 447 | builder.route_table_id = Some(deser.read_string(member)?);
|
448 448 | }
|
449 449 | Some(10) => {
|
450 450 | builder.destination_cidr_block = Some(deser.read_string(member)?);
|
451 451 | }
|
452 452 | Some(11) => {
|
453 453 | builder.gateway_id = Some(deser.read_string(member)?);
|
454 454 | }
|
455 455 | Some(12) => {
|
456 456 | builder.destination_ipv6_cidr_block = Some(deser.read_string(member)?);
|
457 457 | }
|
458 458 | Some(13) => {
|
459 459 | builder.egress_only_internet_gateway_id = Some(deser.read_string(member)?);
|
460 460 | }
|
461 461 | Some(14) => {
|
462 462 | builder.instance_id = Some(deser.read_string(member)?);
|
463 463 | }
|
464 464 | Some(15) => {
|
465 465 | builder.network_interface_id = Some(deser.read_string(member)?);
|
466 466 | }
|
467 467 | Some(16) => {
|
468 468 | builder.vpc_peering_connection_id = Some(deser.read_string(member)?);
|
469 469 | }
|
470 470 | Some(17) => {
|
471 471 | builder.nat_gateway_id = Some(deser.read_string(member)?);
|
472 472 | }
|
473 473 | _ => {}
|
474 474 | }
|
475 475 | Ok(())
|
476 476 | })?;
|
477 + | builder.route_table_id = builder.route_table_id.or(Some(String::new()));
|
477 478 | builder
|
478 479 | .build()
|
479 480 | .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
|
480 481 | }
|
481 482 | }
|
483 + | impl ReplaceRouteInput {
|
484 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
485 + | pub fn deserialize_with_response(
|
486 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
487 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
488 + | _status: u16,
|
489 + | _body: &[u8],
|
490 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
491 + | Self::deserialize(deserializer)
|
492 + | }
|
493 + | }
|
482 494 | impl ReplaceRouteInput {
|
483 495 | /// Creates a new builder-style object to manufacture [`ReplaceRouteInput`](crate::operation::replace_route::ReplaceRouteInput).
|
484 496 | pub fn builder() -> crate::operation::replace_route::builders::ReplaceRouteInputBuilder {
|
485 497 | crate::operation::replace_route::builders::ReplaceRouteInputBuilder::default()
|
486 498 | }
|
487 499 | }
|
488 500 |
|
489 501 | /// A builder for [`ReplaceRouteInput`](crate::operation::replace_route::ReplaceRouteInput).
|
490 502 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
491 503 | #[non_exhaustive]
|