172 172 | "com.amazonaws.ec2.synthetic",
|
173 173 | "DescribeReservedInstancesOfferingsInput",
|
174 174 | );
|
175 175 | static DESCRIBERESERVEDINSTANCESOFFERINGSINPUT_MEMBER_AVAILABILITY_ZONE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
176 176 | ::aws_smithy_schema::ShapeId::from_static(
|
177 177 | "com.amazonaws.ec2.synthetic#DescribeReservedInstancesOfferingsInput$AvailabilityZone",
|
178 178 | "com.amazonaws.ec2.synthetic",
|
179 179 | "DescribeReservedInstancesOfferingsInput",
|
180 180 | ),
|
181 181 | ::aws_smithy_schema::ShapeType::String,
|
182 - | "availability_zone",
|
182 + | "AvailabilityZone",
|
183 183 | 0,
|
184 184 | );
|
185 185 | static DESCRIBERESERVEDINSTANCESOFFERINGSINPUT_MEMBER_INCLUDE_MARKETPLACE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
186 186 | ::aws_smithy_schema::ShapeId::from_static(
|
187 187 | "com.amazonaws.ec2.synthetic#DescribeReservedInstancesOfferingsInput$IncludeMarketplace",
|
188 188 | "com.amazonaws.ec2.synthetic",
|
189 189 | "DescribeReservedInstancesOfferingsInput",
|
190 190 | ),
|
191 191 | ::aws_smithy_schema::ShapeType::Boolean,
|
192 - | "include_marketplace",
|
192 + | "IncludeMarketplace",
|
193 193 | 1,
|
194 194 | );
|
195 195 | static DESCRIBERESERVEDINSTANCESOFFERINGSINPUT_MEMBER_INSTANCE_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
196 196 | ::aws_smithy_schema::ShapeId::from_static(
|
197 197 | "com.amazonaws.ec2.synthetic#DescribeReservedInstancesOfferingsInput$InstanceType",
|
198 198 | "com.amazonaws.ec2.synthetic",
|
199 199 | "DescribeReservedInstancesOfferingsInput",
|
200 200 | ),
|
201 201 | ::aws_smithy_schema::ShapeType::String,
|
202 - | "instance_type",
|
202 + | "InstanceType",
|
203 203 | 2,
|
204 204 | );
|
205 205 | static DESCRIBERESERVEDINSTANCESOFFERINGSINPUT_MEMBER_MAX_DURATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
206 206 | ::aws_smithy_schema::ShapeId::from_static(
|
207 207 | "com.amazonaws.ec2.synthetic#DescribeReservedInstancesOfferingsInput$MaxDuration",
|
208 208 | "com.amazonaws.ec2.synthetic",
|
209 209 | "DescribeReservedInstancesOfferingsInput",
|
210 210 | ),
|
211 211 | ::aws_smithy_schema::ShapeType::Long,
|
212 - | "max_duration",
|
212 + | "MaxDuration",
|
213 213 | 3,
|
214 214 | );
|
215 215 | static DESCRIBERESERVEDINSTANCESOFFERINGSINPUT_MEMBER_MAX_INSTANCE_COUNT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
216 216 | ::aws_smithy_schema::ShapeId::from_static(
|
217 217 | "com.amazonaws.ec2.synthetic#DescribeReservedInstancesOfferingsInput$MaxInstanceCount",
|
218 218 | "com.amazonaws.ec2.synthetic",
|
219 219 | "DescribeReservedInstancesOfferingsInput",
|
220 220 | ),
|
221 221 | ::aws_smithy_schema::ShapeType::Integer,
|
222 - | "max_instance_count",
|
222 + | "MaxInstanceCount",
|
223 223 | 4,
|
224 224 | );
|
225 225 | static DESCRIBERESERVEDINSTANCESOFFERINGSINPUT_MEMBER_MIN_DURATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
226 226 | ::aws_smithy_schema::ShapeId::from_static(
|
227 227 | "com.amazonaws.ec2.synthetic#DescribeReservedInstancesOfferingsInput$MinDuration",
|
228 228 | "com.amazonaws.ec2.synthetic",
|
229 229 | "DescribeReservedInstancesOfferingsInput",
|
230 230 | ),
|
231 231 | ::aws_smithy_schema::ShapeType::Long,
|
232 - | "min_duration",
|
232 + | "MinDuration",
|
233 233 | 5,
|
234 234 | );
|
235 235 | static DESCRIBERESERVEDINSTANCESOFFERINGSINPUT_MEMBER_OFFERING_CLASS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
236 236 | ::aws_smithy_schema::ShapeId::from_static(
|
237 237 | "com.amazonaws.ec2.synthetic#DescribeReservedInstancesOfferingsInput$OfferingClass",
|
238 238 | "com.amazonaws.ec2.synthetic",
|
239 239 | "DescribeReservedInstancesOfferingsInput",
|
240 240 | ),
|
241 241 | ::aws_smithy_schema::ShapeType::String,
|
242 - | "offering_class",
|
242 + | "OfferingClass",
|
243 243 | 6,
|
244 244 | );
|
245 245 | static DESCRIBERESERVEDINSTANCESOFFERINGSINPUT_MEMBER_PRODUCT_DESCRIPTION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
246 246 | ::aws_smithy_schema::ShapeId::from_static(
|
247 247 | "com.amazonaws.ec2.synthetic#DescribeReservedInstancesOfferingsInput$ProductDescription",
|
248 248 | "com.amazonaws.ec2.synthetic",
|
249 249 | "DescribeReservedInstancesOfferingsInput",
|
250 250 | ),
|
251 251 | ::aws_smithy_schema::ShapeType::String,
|
252 - | "product_description",
|
252 + | "ProductDescription",
|
253 253 | 7,
|
254 254 | );
|
255 255 | static DESCRIBERESERVEDINSTANCESOFFERINGSINPUT_MEMBER_RESERVED_INSTANCES_OFFERING_IDS: ::aws_smithy_schema::Schema =
|
256 256 | ::aws_smithy_schema::Schema::new_member(
|
257 257 | ::aws_smithy_schema::ShapeId::from_static(
|
258 258 | "com.amazonaws.ec2.synthetic#DescribeReservedInstancesOfferingsInput$ReservedInstancesOfferingIds",
|
259 259 | "com.amazonaws.ec2.synthetic",
|
260 260 | "DescribeReservedInstancesOfferingsInput",
|
261 261 | ),
|
262 262 | ::aws_smithy_schema::ShapeType::List,
|
263 - | "reserved_instances_offering_ids",
|
263 + | "ReservedInstancesOfferingIds",
|
264 264 | 8,
|
265 265 | )
|
266 266 | .with_xml_name("ReservedInstancesOfferingId");
|
267 267 | static DESCRIBERESERVEDINSTANCESOFFERINGSINPUT_MEMBER_AVAILABILITY_ZONE_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
268 268 | ::aws_smithy_schema::ShapeId::from_static(
|
269 269 | "com.amazonaws.ec2.synthetic#DescribeReservedInstancesOfferingsInput$AvailabilityZoneId",
|
270 270 | "com.amazonaws.ec2.synthetic",
|
271 271 | "DescribeReservedInstancesOfferingsInput",
|
272 272 | ),
|
273 273 | ::aws_smithy_schema::ShapeType::String,
|
274 - | "availability_zone_id",
|
274 + | "AvailabilityZoneId",
|
275 275 | 9,
|
276 276 | );
|
277 277 | static DESCRIBERESERVEDINSTANCESOFFERINGSINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
278 278 | ::aws_smithy_schema::ShapeId::from_static(
|
279 279 | "com.amazonaws.ec2.synthetic#DescribeReservedInstancesOfferingsInput$DryRun",
|
280 280 | "com.amazonaws.ec2.synthetic",
|
281 281 | "DescribeReservedInstancesOfferingsInput",
|
282 282 | ),
|
283 283 | ::aws_smithy_schema::ShapeType::Boolean,
|
284 - | "dry_run",
|
284 + | "DryRun",
|
285 285 | 10,
|
286 286 | )
|
287 287 | .with_xml_name("dryRun");
|
288 288 | static DESCRIBERESERVEDINSTANCESOFFERINGSINPUT_MEMBER_FILTERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
289 289 | ::aws_smithy_schema::ShapeId::from_static(
|
290 290 | "com.amazonaws.ec2.synthetic#DescribeReservedInstancesOfferingsInput$Filters",
|
291 291 | "com.amazonaws.ec2.synthetic",
|
292 292 | "DescribeReservedInstancesOfferingsInput",
|
293 293 | ),
|
294 294 | ::aws_smithy_schema::ShapeType::List,
|
295 - | "filters",
|
295 + | "Filters",
|
296 296 | 11,
|
297 297 | )
|
298 298 | .with_xml_name("Filter");
|
299 299 | static DESCRIBERESERVEDINSTANCESOFFERINGSINPUT_MEMBER_INSTANCE_TENANCY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
300 300 | ::aws_smithy_schema::ShapeId::from_static(
|
301 301 | "com.amazonaws.ec2.synthetic#DescribeReservedInstancesOfferingsInput$InstanceTenancy",
|
302 302 | "com.amazonaws.ec2.synthetic",
|
303 303 | "DescribeReservedInstancesOfferingsInput",
|
304 304 | ),
|
305 305 | ::aws_smithy_schema::ShapeType::String,
|
306 - | "instance_tenancy",
|
306 + | "InstanceTenancy",
|
307 307 | 12,
|
308 308 | )
|
309 309 | .with_xml_name("instanceTenancy");
|
310 310 | static DESCRIBERESERVEDINSTANCESOFFERINGSINPUT_MEMBER_OFFERING_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
311 311 | ::aws_smithy_schema::ShapeId::from_static(
|
312 312 | "com.amazonaws.ec2.synthetic#DescribeReservedInstancesOfferingsInput$OfferingType",
|
313 313 | "com.amazonaws.ec2.synthetic",
|
314 314 | "DescribeReservedInstancesOfferingsInput",
|
315 315 | ),
|
316 316 | ::aws_smithy_schema::ShapeType::String,
|
317 - | "offering_type",
|
317 + | "OfferingType",
|
318 318 | 13,
|
319 319 | )
|
320 320 | .with_xml_name("offeringType");
|
321 321 | static DESCRIBERESERVEDINSTANCESOFFERINGSINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
322 322 | ::aws_smithy_schema::ShapeId::from_static(
|
323 323 | "com.amazonaws.ec2.synthetic#DescribeReservedInstancesOfferingsInput$NextToken",
|
324 324 | "com.amazonaws.ec2.synthetic",
|
325 325 | "DescribeReservedInstancesOfferingsInput",
|
326 326 | ),
|
327 327 | ::aws_smithy_schema::ShapeType::String,
|
328 - | "next_token",
|
328 + | "NextToken",
|
329 329 | 14,
|
330 330 | )
|
331 331 | .with_xml_name("nextToken");
|
332 332 | static DESCRIBERESERVEDINSTANCESOFFERINGSINPUT_MEMBER_MAX_RESULTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
333 333 | ::aws_smithy_schema::ShapeId::from_static(
|
334 334 | "com.amazonaws.ec2.synthetic#DescribeReservedInstancesOfferingsInput$MaxResults",
|
335 335 | "com.amazonaws.ec2.synthetic",
|
336 336 | "DescribeReservedInstancesOfferingsInput",
|
337 337 | ),
|
338 338 | ::aws_smithy_schema::ShapeType::Integer,
|
339 - | "max_results",
|
339 + | "MaxResults",
|
340 340 | 15,
|
341 341 | )
|
342 342 | .with_xml_name("maxResults");
|
343 343 | static DESCRIBERESERVEDINSTANCESOFFERINGSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
344 344 | DESCRIBERESERVEDINSTANCESOFFERINGSINPUT_SCHEMA_ID,
|
345 345 | ::aws_smithy_schema::ShapeType::Structure,
|
346 346 | &[
|
347 347 | &DESCRIBERESERVEDINSTANCESOFFERINGSINPUT_MEMBER_AVAILABILITY_ZONE,
|
348 348 | &DESCRIBERESERVEDINSTANCESOFFERINGSINPUT_MEMBER_INCLUDE_MARKETPLACE,
|
349 349 | &DESCRIBERESERVEDINSTANCESOFFERINGSINPUT_MEMBER_INSTANCE_TYPE,
|
434 434 | ser.write_string(&DESCRIBERESERVEDINSTANCESOFFERINGSINPUT_MEMBER_NEXT_TOKEN, val)?;
|
435 435 | }
|
436 436 | if let Some(ref val) = self.max_results {
|
437 437 | ser.write_integer(&DESCRIBERESERVEDINSTANCESOFFERINGSINPUT_MEMBER_MAX_RESULTS, *val)?;
|
438 438 | }
|
439 439 | Ok(())
|
440 440 | }
|
441 441 | }
|
442 442 | impl DescribeReservedInstancesOfferingsInput {
|
443 443 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
444 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
445 - | deserializer: &mut D,
|
444 + | pub fn deserialize(
|
445 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
446 446 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
447 447 | #[allow(unused_variables, unused_mut)]
|
448 448 | let mut builder = Self::builder();
|
449 449 | #[allow(
|
450 450 | unused_variables,
|
451 451 | unreachable_code,
|
452 452 | clippy::single_match,
|
453 453 | clippy::match_single_binding,
|
454 454 | clippy::diverging_sub_expression
|
455 455 | )]
|
456 - | deserializer.read_struct(&DESCRIBERESERVEDINSTANCESOFFERINGSINPUT_SCHEMA, (), |_, member, deser| {
|
456 + | deserializer.read_struct(&DESCRIBERESERVEDINSTANCESOFFERINGSINPUT_SCHEMA, &mut |member, deser| {
|
457 457 | match member.member_index() {
|
458 458 | Some(0) => {
|
459 459 | builder.availability_zone = Some(deser.read_string(member)?);
|
460 460 | }
|
461 461 | Some(1) => {
|
462 462 | builder.include_marketplace = Some(deser.read_boolean(member)?);
|
463 463 | }
|
464 464 | Some(2) => {
|
465 465 | builder.instance_type = Some(crate::types::InstanceType::from(deser.read_string(member)?.as_str()));
|
466 466 | }
|
467 467 | Some(3) => {
|
468 468 | builder.max_duration = Some(deser.read_long(member)?);
|
469 469 | }
|
470 470 | Some(4) => {
|
471 471 | builder.max_instance_count = Some(deser.read_integer(member)?);
|
472 472 | }
|
473 473 | Some(5) => {
|
474 474 | builder.min_duration = Some(deser.read_long(member)?);
|
475 475 | }
|
476 476 | Some(6) => {
|
477 477 | builder.offering_class = Some(crate::types::OfferingClassType::from(deser.read_string(member)?.as_str()));
|
478 478 | }
|
479 479 | Some(7) => {
|
480 480 | builder.product_description = Some(crate::types::RiProductDescription::from(deser.read_string(member)?.as_str()));
|
481 481 | }
|
482 482 | Some(8) => {
|
483 - | builder.reserved_instances_offering_ids = Some({
|
484 - | let container = if let Some(cap) = deser.container_size() {
|
485 - | Vec::with_capacity(cap)
|
486 - | } else {
|
487 - | Vec::new()
|
488 - | };
|
489 - | deser.read_list(member, container, |mut list, deser| {
|
490 - | list.push(deser.read_string(member)?);
|
491 - | Ok(list)
|
492 - | })?
|
493 - | });
|
483 + | builder.reserved_instances_offering_ids = Some(deser.read_string_list(member)?);
|
494 484 | }
|
495 485 | Some(9) => {
|
496 486 | builder.availability_zone_id = Some(deser.read_string(member)?);
|
497 487 | }
|
498 488 | Some(10) => {
|
499 489 | builder.dry_run = Some(deser.read_boolean(member)?);
|
500 490 | }
|
501 491 | Some(11) => {
|
502 492 | builder.filters = Some({
|
503 - | let container = if let Some(cap) = deser.container_size() {
|
504 - | Vec::with_capacity(cap)
|
505 - | } else {
|
506 - | Vec::new()
|
507 - | };
|
508 - | deser.read_list(member, container, |mut list, deser| {
|
509 - | list.push(crate::types::Filter::deserialize(deser)?);
|
510 - | Ok(list)
|
511 - | })?
|
493 + | let mut container = Vec::new();
|
494 + | deser.read_list(member, &mut |deser| {
|
495 + | container.push(crate::types::Filter::deserialize(deser)?);
|
496 + | Ok(())
|
497 + | })?;
|
498 + | container
|
512 499 | });
|
513 500 | }
|
514 501 | Some(12) => {
|
515 502 | builder.instance_tenancy = Some(crate::types::Tenancy::from(deser.read_string(member)?.as_str()));
|
516 503 | }
|
517 504 | Some(13) => {
|
518 505 | builder.offering_type = Some(crate::types::OfferingTypeValues::from(deser.read_string(member)?.as_str()));
|
519 506 | }
|
520 507 | Some(14) => {
|
521 508 | builder.next_token = Some(deser.read_string(member)?);
|
522 509 | }
|
523 510 | Some(15) => {
|
524 511 | builder.max_results = Some(deser.read_integer(member)?);
|
525 512 | }
|
526 513 | _ => {}
|
527 514 | }
|
528 515 | Ok(())
|
529 516 | })?;
|
530 517 | builder
|
531 518 | .build()
|
532 519 | .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
|
533 520 | }
|
534 521 | }
|
522 + | impl DescribeReservedInstancesOfferingsInput {
|
523 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
524 + | pub fn deserialize_with_response(
|
525 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
526 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
527 + | _status: u16,
|
528 + | _body: &[u8],
|
529 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
530 + | Self::deserialize(deserializer)
|
531 + | }
|
532 + | }
|
535 533 | impl DescribeReservedInstancesOfferingsInput {
|
536 534 | /// Creates a new builder-style object to manufacture [`DescribeReservedInstancesOfferingsInput`](crate::operation::describe_reserved_instances_offerings::DescribeReservedInstancesOfferingsInput).
|
537 535 | pub fn builder() -> crate::operation::describe_reserved_instances_offerings::builders::DescribeReservedInstancesOfferingsInputBuilder {
|
538 536 | crate::operation::describe_reserved_instances_offerings::builders::DescribeReservedInstancesOfferingsInputBuilder::default()
|
539 537 | }
|
540 538 | }
|
541 539 |
|
542 540 | /// A builder for [`DescribeReservedInstancesOfferingsInput`](crate::operation::describe_reserved_instances_offerings::DescribeReservedInstancesOfferingsInput).
|
543 541 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
544 542 | #[non_exhaustive]
|