105 105 | "com.amazonaws.ec2.synthetic",
|
106 106 | "ModifyVpcEndpointServiceConfigurationInput",
|
107 107 | );
|
108 108 | static MODIFYVPCENDPOINTSERVICECONFIGURATIONINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
109 109 | ::aws_smithy_schema::ShapeId::from_static(
|
110 110 | "com.amazonaws.ec2.synthetic#ModifyVpcEndpointServiceConfigurationInput$DryRun",
|
111 111 | "com.amazonaws.ec2.synthetic",
|
112 112 | "ModifyVpcEndpointServiceConfigurationInput",
|
113 113 | ),
|
114 114 | ::aws_smithy_schema::ShapeType::Boolean,
|
115 - | "dry_run",
|
115 + | "DryRun",
|
116 116 | 0,
|
117 117 | );
|
118 118 | static MODIFYVPCENDPOINTSERVICECONFIGURATIONINPUT_MEMBER_SERVICE_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
119 119 | ::aws_smithy_schema::ShapeId::from_static(
|
120 120 | "com.amazonaws.ec2.synthetic#ModifyVpcEndpointServiceConfigurationInput$ServiceId",
|
121 121 | "com.amazonaws.ec2.synthetic",
|
122 122 | "ModifyVpcEndpointServiceConfigurationInput",
|
123 123 | ),
|
124 124 | ::aws_smithy_schema::ShapeType::String,
|
125 - | "service_id",
|
125 + | "ServiceId",
|
126 126 | 1,
|
127 127 | );
|
128 128 | static MODIFYVPCENDPOINTSERVICECONFIGURATIONINPUT_MEMBER_PRIVATE_DNS_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
129 129 | ::aws_smithy_schema::ShapeId::from_static(
|
130 130 | "com.amazonaws.ec2.synthetic#ModifyVpcEndpointServiceConfigurationInput$PrivateDnsName",
|
131 131 | "com.amazonaws.ec2.synthetic",
|
132 132 | "ModifyVpcEndpointServiceConfigurationInput",
|
133 133 | ),
|
134 134 | ::aws_smithy_schema::ShapeType::String,
|
135 - | "private_dns_name",
|
135 + | "PrivateDnsName",
|
136 136 | 2,
|
137 137 | );
|
138 138 | static MODIFYVPCENDPOINTSERVICECONFIGURATIONINPUT_MEMBER_REMOVE_PRIVATE_DNS_NAME: ::aws_smithy_schema::Schema =
|
139 139 | ::aws_smithy_schema::Schema::new_member(
|
140 140 | ::aws_smithy_schema::ShapeId::from_static(
|
141 141 | "com.amazonaws.ec2.synthetic#ModifyVpcEndpointServiceConfigurationInput$RemovePrivateDnsName",
|
142 142 | "com.amazonaws.ec2.synthetic",
|
143 143 | "ModifyVpcEndpointServiceConfigurationInput",
|
144 144 | ),
|
145 145 | ::aws_smithy_schema::ShapeType::Boolean,
|
146 - | "remove_private_dns_name",
|
146 + | "RemovePrivateDnsName",
|
147 147 | 3,
|
148 148 | );
|
149 149 | static MODIFYVPCENDPOINTSERVICECONFIGURATIONINPUT_MEMBER_ACCEPTANCE_REQUIRED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
150 150 | ::aws_smithy_schema::ShapeId::from_static(
|
151 151 | "com.amazonaws.ec2.synthetic#ModifyVpcEndpointServiceConfigurationInput$AcceptanceRequired",
|
152 152 | "com.amazonaws.ec2.synthetic",
|
153 153 | "ModifyVpcEndpointServiceConfigurationInput",
|
154 154 | ),
|
155 155 | ::aws_smithy_schema::ShapeType::Boolean,
|
156 - | "acceptance_required",
|
156 + | "AcceptanceRequired",
|
157 157 | 4,
|
158 158 | );
|
159 159 | static MODIFYVPCENDPOINTSERVICECONFIGURATIONINPUT_MEMBER_ADD_NETWORK_LOAD_BALANCER_ARNS: ::aws_smithy_schema::Schema =
|
160 160 | ::aws_smithy_schema::Schema::new_member(
|
161 161 | ::aws_smithy_schema::ShapeId::from_static(
|
162 162 | "com.amazonaws.ec2.synthetic#ModifyVpcEndpointServiceConfigurationInput$AddNetworkLoadBalancerArns",
|
163 163 | "com.amazonaws.ec2.synthetic",
|
164 164 | "ModifyVpcEndpointServiceConfigurationInput",
|
165 165 | ),
|
166 166 | ::aws_smithy_schema::ShapeType::List,
|
167 - | "add_network_load_balancer_arns",
|
167 + | "AddNetworkLoadBalancerArns",
|
168 168 | 5,
|
169 169 | )
|
170 170 | .with_xml_name("AddNetworkLoadBalancerArn");
|
171 171 | static MODIFYVPCENDPOINTSERVICECONFIGURATIONINPUT_MEMBER_REMOVE_NETWORK_LOAD_BALANCER_ARNS: ::aws_smithy_schema::Schema =
|
172 172 | ::aws_smithy_schema::Schema::new_member(
|
173 173 | ::aws_smithy_schema::ShapeId::from_static(
|
174 174 | "com.amazonaws.ec2.synthetic#ModifyVpcEndpointServiceConfigurationInput$RemoveNetworkLoadBalancerArns",
|
175 175 | "com.amazonaws.ec2.synthetic",
|
176 176 | "ModifyVpcEndpointServiceConfigurationInput",
|
177 177 | ),
|
178 178 | ::aws_smithy_schema::ShapeType::List,
|
179 - | "remove_network_load_balancer_arns",
|
179 + | "RemoveNetworkLoadBalancerArns",
|
180 180 | 6,
|
181 181 | )
|
182 182 | .with_xml_name("RemoveNetworkLoadBalancerArn");
|
183 183 | static MODIFYVPCENDPOINTSERVICECONFIGURATIONINPUT_MEMBER_ADD_GATEWAY_LOAD_BALANCER_ARNS: ::aws_smithy_schema::Schema =
|
184 184 | ::aws_smithy_schema::Schema::new_member(
|
185 185 | ::aws_smithy_schema::ShapeId::from_static(
|
186 186 | "com.amazonaws.ec2.synthetic#ModifyVpcEndpointServiceConfigurationInput$AddGatewayLoadBalancerArns",
|
187 187 | "com.amazonaws.ec2.synthetic",
|
188 188 | "ModifyVpcEndpointServiceConfigurationInput",
|
189 189 | ),
|
190 190 | ::aws_smithy_schema::ShapeType::List,
|
191 - | "add_gateway_load_balancer_arns",
|
191 + | "AddGatewayLoadBalancerArns",
|
192 192 | 7,
|
193 193 | )
|
194 194 | .with_xml_name("AddGatewayLoadBalancerArn");
|
195 195 | static MODIFYVPCENDPOINTSERVICECONFIGURATIONINPUT_MEMBER_REMOVE_GATEWAY_LOAD_BALANCER_ARNS: ::aws_smithy_schema::Schema =
|
196 196 | ::aws_smithy_schema::Schema::new_member(
|
197 197 | ::aws_smithy_schema::ShapeId::from_static(
|
198 198 | "com.amazonaws.ec2.synthetic#ModifyVpcEndpointServiceConfigurationInput$RemoveGatewayLoadBalancerArns",
|
199 199 | "com.amazonaws.ec2.synthetic",
|
200 200 | "ModifyVpcEndpointServiceConfigurationInput",
|
201 201 | ),
|
202 202 | ::aws_smithy_schema::ShapeType::List,
|
203 - | "remove_gateway_load_balancer_arns",
|
203 + | "RemoveGatewayLoadBalancerArns",
|
204 204 | 8,
|
205 205 | )
|
206 206 | .with_xml_name("RemoveGatewayLoadBalancerArn");
|
207 207 | static MODIFYVPCENDPOINTSERVICECONFIGURATIONINPUT_MEMBER_ADD_SUPPORTED_IP_ADDRESS_TYPES: ::aws_smithy_schema::Schema =
|
208 208 | ::aws_smithy_schema::Schema::new_member(
|
209 209 | ::aws_smithy_schema::ShapeId::from_static(
|
210 210 | "com.amazonaws.ec2.synthetic#ModifyVpcEndpointServiceConfigurationInput$AddSupportedIpAddressTypes",
|
211 211 | "com.amazonaws.ec2.synthetic",
|
212 212 | "ModifyVpcEndpointServiceConfigurationInput",
|
213 213 | ),
|
214 214 | ::aws_smithy_schema::ShapeType::List,
|
215 - | "add_supported_ip_address_types",
|
215 + | "AddSupportedIpAddressTypes",
|
216 216 | 9,
|
217 217 | )
|
218 218 | .with_xml_name("AddSupportedIpAddressType");
|
219 219 | static MODIFYVPCENDPOINTSERVICECONFIGURATIONINPUT_MEMBER_REMOVE_SUPPORTED_IP_ADDRESS_TYPES: ::aws_smithy_schema::Schema =
|
220 220 | ::aws_smithy_schema::Schema::new_member(
|
221 221 | ::aws_smithy_schema::ShapeId::from_static(
|
222 222 | "com.amazonaws.ec2.synthetic#ModifyVpcEndpointServiceConfigurationInput$RemoveSupportedIpAddressTypes",
|
223 223 | "com.amazonaws.ec2.synthetic",
|
224 224 | "ModifyVpcEndpointServiceConfigurationInput",
|
225 225 | ),
|
226 226 | ::aws_smithy_schema::ShapeType::List,
|
227 - | "remove_supported_ip_address_types",
|
227 + | "RemoveSupportedIpAddressTypes",
|
228 228 | 10,
|
229 229 | )
|
230 230 | .with_xml_name("RemoveSupportedIpAddressType");
|
231 231 | static MODIFYVPCENDPOINTSERVICECONFIGURATIONINPUT_MEMBER_ADD_SUPPORTED_REGIONS: ::aws_smithy_schema::Schema =
|
232 232 | ::aws_smithy_schema::Schema::new_member(
|
233 233 | ::aws_smithy_schema::ShapeId::from_static(
|
234 234 | "com.amazonaws.ec2.synthetic#ModifyVpcEndpointServiceConfigurationInput$AddSupportedRegions",
|
235 235 | "com.amazonaws.ec2.synthetic",
|
236 236 | "ModifyVpcEndpointServiceConfigurationInput",
|
237 237 | ),
|
238 238 | ::aws_smithy_schema::ShapeType::List,
|
239 - | "add_supported_regions",
|
239 + | "AddSupportedRegions",
|
240 240 | 11,
|
241 241 | )
|
242 242 | .with_xml_name("AddSupportedRegion");
|
243 243 | static MODIFYVPCENDPOINTSERVICECONFIGURATIONINPUT_MEMBER_REMOVE_SUPPORTED_REGIONS: ::aws_smithy_schema::Schema =
|
244 244 | ::aws_smithy_schema::Schema::new_member(
|
245 245 | ::aws_smithy_schema::ShapeId::from_static(
|
246 246 | "com.amazonaws.ec2.synthetic#ModifyVpcEndpointServiceConfigurationInput$RemoveSupportedRegions",
|
247 247 | "com.amazonaws.ec2.synthetic",
|
248 248 | "ModifyVpcEndpointServiceConfigurationInput",
|
249 249 | ),
|
250 250 | ::aws_smithy_schema::ShapeType::List,
|
251 - | "remove_supported_regions",
|
251 + | "RemoveSupportedRegions",
|
252 252 | 12,
|
253 253 | )
|
254 254 | .with_xml_name("RemoveSupportedRegion");
|
255 255 | static MODIFYVPCENDPOINTSERVICECONFIGURATIONINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
256 256 | MODIFYVPCENDPOINTSERVICECONFIGURATIONINPUT_SCHEMA_ID,
|
257 257 | ::aws_smithy_schema::ShapeType::Structure,
|
258 258 | &[
|
259 259 | &MODIFYVPCENDPOINTSERVICECONFIGURATIONINPUT_MEMBER_DRY_RUN,
|
260 260 | &MODIFYVPCENDPOINTSERVICECONFIGURATIONINPUT_MEMBER_SERVICE_ID,
|
261 261 | &MODIFYVPCENDPOINTSERVICECONFIGURATIONINPUT_MEMBER_PRIVATE_DNS_NAME,
|
382 382 | }
|
383 383 | Ok(())
|
384 384 | },
|
385 385 | )?;
|
386 386 | }
|
387 387 | Ok(())
|
388 388 | }
|
389 389 | }
|
390 390 | impl ModifyVpcEndpointServiceConfigurationInput {
|
391 391 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
392 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
393 - | deserializer: &mut D,
|
392 + | pub fn deserialize(
|
393 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
394 394 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
395 395 | #[allow(unused_variables, unused_mut)]
|
396 396 | let mut builder = Self::builder();
|
397 397 | #[allow(
|
398 398 | unused_variables,
|
399 399 | unreachable_code,
|
400 400 | clippy::single_match,
|
401 401 | clippy::match_single_binding,
|
402 402 | clippy::diverging_sub_expression
|
403 403 | )]
|
404 - | deserializer.read_struct(&MODIFYVPCENDPOINTSERVICECONFIGURATIONINPUT_SCHEMA, (), |_, member, deser| {
|
404 + | deserializer.read_struct(&MODIFYVPCENDPOINTSERVICECONFIGURATIONINPUT_SCHEMA, &mut |member, deser| {
|
405 405 | match member.member_index() {
|
406 406 | Some(0) => {
|
407 407 | builder.dry_run = Some(deser.read_boolean(member)?);
|
408 408 | }
|
409 409 | Some(1) => {
|
410 410 | builder.service_id = Some(deser.read_string(member)?);
|
411 411 | }
|
412 412 | Some(2) => {
|
413 413 | builder.private_dns_name = Some(deser.read_string(member)?);
|
414 414 | }
|
415 415 | Some(3) => {
|
416 416 | builder.remove_private_dns_name = Some(deser.read_boolean(member)?);
|
417 417 | }
|
418 418 | Some(4) => {
|
419 419 | builder.acceptance_required = Some(deser.read_boolean(member)?);
|
420 420 | }
|
421 421 | Some(5) => {
|
422 - | builder.add_network_load_balancer_arns = Some({
|
423 - | let container = if let Some(cap) = deser.container_size() {
|
424 - | Vec::with_capacity(cap)
|
425 - | } else {
|
426 - | Vec::new()
|
427 - | };
|
428 - | deser.read_list(member, container, |mut list, deser| {
|
429 - | list.push(deser.read_string(member)?);
|
430 - | Ok(list)
|
431 - | })?
|
432 - | });
|
422 + | builder.add_network_load_balancer_arns = Some(deser.read_string_list(member)?);
|
433 423 | }
|
434 424 | Some(6) => {
|
435 - | builder.remove_network_load_balancer_arns = Some({
|
436 - | let container = if let Some(cap) = deser.container_size() {
|
437 - | Vec::with_capacity(cap)
|
438 - | } else {
|
439 - | Vec::new()
|
440 - | };
|
441 - | deser.read_list(member, container, |mut list, deser| {
|
442 - | list.push(deser.read_string(member)?);
|
443 - | Ok(list)
|
444 - | })?
|
445 - | });
|
425 + | builder.remove_network_load_balancer_arns = Some(deser.read_string_list(member)?);
|
446 426 | }
|
447 427 | Some(7) => {
|
448 - | builder.add_gateway_load_balancer_arns = Some({
|
449 - | let container = if let Some(cap) = deser.container_size() {
|
450 - | Vec::with_capacity(cap)
|
451 - | } else {
|
452 - | Vec::new()
|
453 - | };
|
454 - | deser.read_list(member, container, |mut list, deser| {
|
455 - | list.push(deser.read_string(member)?);
|
456 - | Ok(list)
|
457 - | })?
|
458 - | });
|
428 + | builder.add_gateway_load_balancer_arns = Some(deser.read_string_list(member)?);
|
459 429 | }
|
460 430 | Some(8) => {
|
461 - | builder.remove_gateway_load_balancer_arns = Some({
|
462 - | let container = if let Some(cap) = deser.container_size() {
|
463 - | Vec::with_capacity(cap)
|
464 - | } else {
|
465 - | Vec::new()
|
466 - | };
|
467 - | deser.read_list(member, container, |mut list, deser| {
|
468 - | list.push(deser.read_string(member)?);
|
469 - | Ok(list)
|
470 - | })?
|
471 - | });
|
431 + | builder.remove_gateway_load_balancer_arns = Some(deser.read_string_list(member)?);
|
472 432 | }
|
473 433 | Some(9) => {
|
474 - | builder.add_supported_ip_address_types = Some({
|
475 - | let container = if let Some(cap) = deser.container_size() {
|
476 - | Vec::with_capacity(cap)
|
477 - | } else {
|
478 - | Vec::new()
|
479 - | };
|
480 - | deser.read_list(member, container, |mut list, deser| {
|
481 - | list.push(deser.read_string(member)?);
|
482 - | Ok(list)
|
483 - | })?
|
484 - | });
|
434 + | builder.add_supported_ip_address_types = Some(deser.read_string_list(member)?);
|
485 435 | }
|
486 436 | Some(10) => {
|
487 - | builder.remove_supported_ip_address_types = Some({
|
488 - | let container = if let Some(cap) = deser.container_size() {
|
489 - | Vec::with_capacity(cap)
|
490 - | } else {
|
491 - | Vec::new()
|
492 - | };
|
493 - | deser.read_list(member, container, |mut list, deser| {
|
494 - | list.push(deser.read_string(member)?);
|
495 - | Ok(list)
|
496 - | })?
|
497 - | });
|
437 + | builder.remove_supported_ip_address_types = Some(deser.read_string_list(member)?);
|
498 438 | }
|
499 439 | Some(11) => {
|
500 - | builder.add_supported_regions = Some({
|
501 - | let container = if let Some(cap) = deser.container_size() {
|
502 - | Vec::with_capacity(cap)
|
503 - | } else {
|
504 - | Vec::new()
|
505 - | };
|
506 - | deser.read_list(member, container, |mut list, deser| {
|
507 - | list.push(deser.read_string(member)?);
|
508 - | Ok(list)
|
509 - | })?
|
510 - | });
|
440 + | builder.add_supported_regions = Some(deser.read_string_list(member)?);
|
511 441 | }
|
512 442 | Some(12) => {
|
513 - | builder.remove_supported_regions = Some({
|
514 - | let container = if let Some(cap) = deser.container_size() {
|
515 - | Vec::with_capacity(cap)
|
516 - | } else {
|
517 - | Vec::new()
|
518 - | };
|
519 - | deser.read_list(member, container, |mut list, deser| {
|
520 - | list.push(deser.read_string(member)?);
|
521 - | Ok(list)
|
522 - | })?
|
523 - | });
|
443 + | builder.remove_supported_regions = Some(deser.read_string_list(member)?);
|
524 444 | }
|
525 445 | _ => {}
|
526 446 | }
|
527 447 | Ok(())
|
528 448 | })?;
|
449 + | builder.service_id = builder.service_id.or(Some(String::new()));
|
529 450 | builder
|
530 451 | .build()
|
531 452 | .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
|
532 453 | }
|
533 454 | }
|
455 + | impl ModifyVpcEndpointServiceConfigurationInput {
|
456 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
457 + | pub fn deserialize_with_response(
|
458 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
459 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
460 + | _status: u16,
|
461 + | _body: &[u8],
|
462 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
463 + | Self::deserialize(deserializer)
|
464 + | }
|
465 + | }
|
534 466 | impl ModifyVpcEndpointServiceConfigurationInput {
|
535 467 | /// Creates a new builder-style object to manufacture [`ModifyVpcEndpointServiceConfigurationInput`](crate::operation::modify_vpc_endpoint_service_configuration::ModifyVpcEndpointServiceConfigurationInput).
|
536 468 | pub fn builder() -> crate::operation::modify_vpc_endpoint_service_configuration::builders::ModifyVpcEndpointServiceConfigurationInputBuilder {
|
537 469 | crate::operation::modify_vpc_endpoint_service_configuration::builders::ModifyVpcEndpointServiceConfigurationInputBuilder::default()
|
538 470 | }
|
539 471 | }
|
540 472 |
|
541 473 | /// A builder for [`ModifyVpcEndpointServiceConfigurationInput`](crate::operation::modify_vpc_endpoint_service_configuration::ModifyVpcEndpointServiceConfigurationInput).
|
542 474 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
543 475 | #[non_exhaustive]
|