243 243 | "timestamp",
|
244 244 | 9,
|
245 245 | );
|
246 246 | static SIMPLESTRUCTOPERATIONINPUT_MEMBER_ENUM: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
247 247 | ::aws_smithy_schema::ShapeId::from_static(
|
248 248 | "smithy.protocoltests.rpcv2Cbor.synthetic#SimpleStructOperationInput$enum",
|
249 249 | "smithy.protocoltests.rpcv2Cbor.synthetic",
|
250 250 | "SimpleStructOperationInput",
|
251 251 | ),
|
252 252 | ::aws_smithy_schema::ShapeType::String,
|
253 - | "r##enum",
|
253 + | "enum",
|
254 254 | 10,
|
255 255 | );
|
256 256 | static SIMPLESTRUCTOPERATIONINPUT_MEMBER_REQUIRED_BLOB: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
257 257 | ::aws_smithy_schema::ShapeId::from_static(
|
258 258 | "smithy.protocoltests.rpcv2Cbor.synthetic#SimpleStructOperationInput$requiredBlob",
|
259 259 | "smithy.protocoltests.rpcv2Cbor.synthetic",
|
260 260 | "SimpleStructOperationInput",
|
261 261 | ),
|
262 262 | ::aws_smithy_schema::ShapeType::Blob,
|
263 - | "required_blob",
|
263 + | "requiredBlob",
|
264 264 | 11,
|
265 265 | );
|
266 266 | static SIMPLESTRUCTOPERATIONINPUT_MEMBER_REQUIRED_BOOLEAN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
267 267 | ::aws_smithy_schema::ShapeId::from_static(
|
268 268 | "smithy.protocoltests.rpcv2Cbor.synthetic#SimpleStructOperationInput$requiredBoolean",
|
269 269 | "smithy.protocoltests.rpcv2Cbor.synthetic",
|
270 270 | "SimpleStructOperationInput",
|
271 271 | ),
|
272 272 | ::aws_smithy_schema::ShapeType::Boolean,
|
273 - | "required_boolean",
|
273 + | "requiredBoolean",
|
274 274 | 12,
|
275 275 | );
|
276 276 | static SIMPLESTRUCTOPERATIONINPUT_MEMBER_REQUIRED_STRING: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
277 277 | ::aws_smithy_schema::ShapeId::from_static(
|
278 278 | "smithy.protocoltests.rpcv2Cbor.synthetic#SimpleStructOperationInput$requiredString",
|
279 279 | "smithy.protocoltests.rpcv2Cbor.synthetic",
|
280 280 | "SimpleStructOperationInput",
|
281 281 | ),
|
282 282 | ::aws_smithy_schema::ShapeType::String,
|
283 - | "required_string",
|
283 + | "requiredString",
|
284 284 | 13,
|
285 285 | );
|
286 286 | static SIMPLESTRUCTOPERATIONINPUT_MEMBER_REQUIRED_BYTE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
287 287 | ::aws_smithy_schema::ShapeId::from_static(
|
288 288 | "smithy.protocoltests.rpcv2Cbor.synthetic#SimpleStructOperationInput$requiredByte",
|
289 289 | "smithy.protocoltests.rpcv2Cbor.synthetic",
|
290 290 | "SimpleStructOperationInput",
|
291 291 | ),
|
292 292 | ::aws_smithy_schema::ShapeType::Byte,
|
293 - | "required_byte",
|
293 + | "requiredByte",
|
294 294 | 14,
|
295 295 | );
|
296 296 | static SIMPLESTRUCTOPERATIONINPUT_MEMBER_REQUIRED_SHORT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
297 297 | ::aws_smithy_schema::ShapeId::from_static(
|
298 298 | "smithy.protocoltests.rpcv2Cbor.synthetic#SimpleStructOperationInput$requiredShort",
|
299 299 | "smithy.protocoltests.rpcv2Cbor.synthetic",
|
300 300 | "SimpleStructOperationInput",
|
301 301 | ),
|
302 302 | ::aws_smithy_schema::ShapeType::Short,
|
303 - | "required_short",
|
303 + | "requiredShort",
|
304 304 | 15,
|
305 305 | );
|
306 306 | static SIMPLESTRUCTOPERATIONINPUT_MEMBER_REQUIRED_INTEGER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
307 307 | ::aws_smithy_schema::ShapeId::from_static(
|
308 308 | "smithy.protocoltests.rpcv2Cbor.synthetic#SimpleStructOperationInput$requiredInteger",
|
309 309 | "smithy.protocoltests.rpcv2Cbor.synthetic",
|
310 310 | "SimpleStructOperationInput",
|
311 311 | ),
|
312 312 | ::aws_smithy_schema::ShapeType::Integer,
|
313 - | "required_integer",
|
313 + | "requiredInteger",
|
314 314 | 16,
|
315 315 | );
|
316 316 | static SIMPLESTRUCTOPERATIONINPUT_MEMBER_REQUIRED_LONG: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
317 317 | ::aws_smithy_schema::ShapeId::from_static(
|
318 318 | "smithy.protocoltests.rpcv2Cbor.synthetic#SimpleStructOperationInput$requiredLong",
|
319 319 | "smithy.protocoltests.rpcv2Cbor.synthetic",
|
320 320 | "SimpleStructOperationInput",
|
321 321 | ),
|
322 322 | ::aws_smithy_schema::ShapeType::Long,
|
323 - | "required_long",
|
323 + | "requiredLong",
|
324 324 | 17,
|
325 325 | );
|
326 326 | static SIMPLESTRUCTOPERATIONINPUT_MEMBER_REQUIRED_FLOAT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
327 327 | ::aws_smithy_schema::ShapeId::from_static(
|
328 328 | "smithy.protocoltests.rpcv2Cbor.synthetic#SimpleStructOperationInput$requiredFloat",
|
329 329 | "smithy.protocoltests.rpcv2Cbor.synthetic",
|
330 330 | "SimpleStructOperationInput",
|
331 331 | ),
|
332 332 | ::aws_smithy_schema::ShapeType::Float,
|
333 - | "required_float",
|
333 + | "requiredFloat",
|
334 334 | 18,
|
335 335 | );
|
336 336 | static SIMPLESTRUCTOPERATIONINPUT_MEMBER_REQUIRED_DOUBLE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
337 337 | ::aws_smithy_schema::ShapeId::from_static(
|
338 338 | "smithy.protocoltests.rpcv2Cbor.synthetic#SimpleStructOperationInput$requiredDouble",
|
339 339 | "smithy.protocoltests.rpcv2Cbor.synthetic",
|
340 340 | "SimpleStructOperationInput",
|
341 341 | ),
|
342 342 | ::aws_smithy_schema::ShapeType::Double,
|
343 - | "required_double",
|
343 + | "requiredDouble",
|
344 344 | 19,
|
345 345 | );
|
346 346 | static SIMPLESTRUCTOPERATIONINPUT_MEMBER_REQUIRED_TIMESTAMP: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
347 347 | ::aws_smithy_schema::ShapeId::from_static(
|
348 348 | "smithy.protocoltests.rpcv2Cbor.synthetic#SimpleStructOperationInput$requiredTimestamp",
|
349 349 | "smithy.protocoltests.rpcv2Cbor.synthetic",
|
350 350 | "SimpleStructOperationInput",
|
351 351 | ),
|
352 352 | ::aws_smithy_schema::ShapeType::Timestamp,
|
353 - | "required_timestamp",
|
353 + | "requiredTimestamp",
|
354 354 | 20,
|
355 355 | );
|
356 356 | static SIMPLESTRUCTOPERATIONINPUT_MEMBER_REQUIRED_ENUM: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
357 357 | ::aws_smithy_schema::ShapeId::from_static(
|
358 358 | "smithy.protocoltests.rpcv2Cbor.synthetic#SimpleStructOperationInput$requiredEnum",
|
359 359 | "smithy.protocoltests.rpcv2Cbor.synthetic",
|
360 360 | "SimpleStructOperationInput",
|
361 361 | ),
|
362 362 | ::aws_smithy_schema::ShapeType::String,
|
363 - | "required_enum",
|
363 + | "requiredEnum",
|
364 364 | 21,
|
365 365 | );
|
366 366 | static SIMPLESTRUCTOPERATIONINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
367 367 | SIMPLESTRUCTOPERATIONINPUT_SCHEMA_ID,
|
368 368 | ::aws_smithy_schema::ShapeType::Structure,
|
369 369 | &[
|
370 370 | &SIMPLESTRUCTOPERATIONINPUT_MEMBER_BLOB,
|
371 371 | &SIMPLESTRUCTOPERATIONINPUT_MEMBER_BOOLEAN,
|
372 372 | &SIMPLESTRUCTOPERATIONINPUT_MEMBER_STRING,
|
373 373 | &SIMPLESTRUCTOPERATIONINPUT_MEMBER_BYTE,
|
374 374 | &SIMPLESTRUCTOPERATIONINPUT_MEMBER_SHORT,
|
375 375 | &SIMPLESTRUCTOPERATIONINPUT_MEMBER_INTEGER,
|
376 376 | &SIMPLESTRUCTOPERATIONINPUT_MEMBER_LONG,
|
377 377 | &SIMPLESTRUCTOPERATIONINPUT_MEMBER_FLOAT,
|
378 378 | &SIMPLESTRUCTOPERATIONINPUT_MEMBER_DOUBLE,
|
379 379 | &SIMPLESTRUCTOPERATIONINPUT_MEMBER_TIMESTAMP,
|
380 380 | &SIMPLESTRUCTOPERATIONINPUT_MEMBER_ENUM,
|
381 381 | &SIMPLESTRUCTOPERATIONINPUT_MEMBER_REQUIRED_BLOB,
|
382 382 | &SIMPLESTRUCTOPERATIONINPUT_MEMBER_REQUIRED_BOOLEAN,
|
383 383 | &SIMPLESTRUCTOPERATIONINPUT_MEMBER_REQUIRED_STRING,
|
384 384 | &SIMPLESTRUCTOPERATIONINPUT_MEMBER_REQUIRED_BYTE,
|
385 385 | &SIMPLESTRUCTOPERATIONINPUT_MEMBER_REQUIRED_SHORT,
|
386 386 | &SIMPLESTRUCTOPERATIONINPUT_MEMBER_REQUIRED_INTEGER,
|
387 387 | &SIMPLESTRUCTOPERATIONINPUT_MEMBER_REQUIRED_LONG,
|
388 388 | &SIMPLESTRUCTOPERATIONINPUT_MEMBER_REQUIRED_FLOAT,
|
389 389 | &SIMPLESTRUCTOPERATIONINPUT_MEMBER_REQUIRED_DOUBLE,
|
390 390 | &SIMPLESTRUCTOPERATIONINPUT_MEMBER_REQUIRED_TIMESTAMP,
|
391 391 | &SIMPLESTRUCTOPERATIONINPUT_MEMBER_REQUIRED_ENUM,
|
392 392 | ],
|
393 - | );
|
393 + | )
|
394 + | .with_http(aws_smithy_schema::traits::HttpTrait::new("POST", "/simple-struct-operation", None));
|
394 395 | impl SimpleStructOperationInput {
|
395 396 | /// The schema for this shape.
|
396 397 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &SIMPLESTRUCTOPERATIONINPUT_SCHEMA;
|
397 398 | }
|
398 399 | impl ::aws_smithy_schema::serde::SerializableStruct for SimpleStructOperationInput {
|
399 400 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
400 401 | fn serialize_members(
|
401 402 | &self,
|
402 403 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
403 404 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
549 550 | Some(20) => {
|
550 551 | builder.required_timestamp = Some(deser.read_timestamp(member)?);
|
551 552 | }
|
552 553 | Some(21) => {
|
553 554 | builder.required_enum = Some(crate::types::Suit::from(deser.read_string(member)?.as_str()));
|
554 555 | }
|
555 556 | _ => {}
|
556 557 | }
|
557 558 | Ok(())
|
558 559 | })?;
|
560 + | builder.required_blob = builder.required_blob.or(Some(::aws_smithy_types::Blob::new("")));
|
561 + | builder.required_boolean = builder.required_boolean.or(Some(false));
|
562 + | builder.required_string = builder.required_string.or(Some(String::new()));
|
563 + | builder.required_byte = builder.required_byte.or(Some(0i8));
|
564 + | builder.required_short = builder.required_short.or(Some(0i16));
|
565 + | builder.required_integer = builder.required_integer.or(Some(0i32));
|
566 + | builder.required_long = builder.required_long.or(Some(0i64));
|
567 + | builder.required_float = builder.required_float.or(Some(0.0f32));
|
568 + | builder.required_double = builder.required_double.or(Some(0.0f64));
|
569 + | builder.required_timestamp = builder.required_timestamp.or(Some(::aws_smithy_types::DateTime::from_secs(0)));
|
559 570 | builder
|
560 571 | .build()
|
561 572 | .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
|
562 573 | }
|
563 574 | }
|
575 + | impl SimpleStructOperationInput {
|
576 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
577 + | pub fn deserialize_with_response(
|
578 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
579 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
580 + | _status: u16,
|
581 + | _body: &[u8],
|
582 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
583 + | Self::deserialize(deserializer)
|
584 + | }
|
585 + | }
|
564 586 | impl SimpleStructOperationInput {
|
565 587 | /// Creates a new builder-style object to manufacture [`SimpleStructOperationInput`](crate::operation::simple_struct_operation::SimpleStructOperationInput).
|
566 588 | pub fn builder() -> crate::operation::simple_struct_operation::builders::SimpleStructOperationInputBuilder {
|
567 589 | crate::operation::simple_struct_operation::builders::SimpleStructOperationInputBuilder::default()
|
568 590 | }
|
569 591 | }
|
570 592 |
|
571 593 | /// A builder for [`SimpleStructOperationInput`](crate::operation::simple_struct_operation::SimpleStructOperationInput).
|
572 594 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
573 595 | #[non_exhaustive]
|
574 596 | pub struct SimpleStructOperationInputBuilder {
|
575 597 | pub(crate) blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
576 598 | pub(crate) boolean: ::std::option::Option<bool>,
|
577 599 | pub(crate) string: ::std::option::Option<::std::string::String>,
|
578 600 | pub(crate) byte: ::std::option::Option<i8>,
|
579 601 | pub(crate) short: ::std::option::Option<i16>,
|
580 602 | pub(crate) integer: ::std::option::Option<i32>,
|
581 603 | pub(crate) long: ::std::option::Option<i64>,
|
582 604 | pub(crate) float: ::std::option::Option<f32>,
|
583 605 | pub(crate) double: ::std::option::Option<f64>,
|
584 606 | pub(crate) timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
|
585 607 | pub(crate) r#enum: ::std::option::Option<crate::types::Suit>,
|
586 608 | pub(crate) required_blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
587 609 | pub(crate) required_boolean: ::std::option::Option<bool>,
|
588 610 | pub(crate) required_string: ::std::option::Option<::std::string::String>,
|
589 611 | pub(crate) required_byte: ::std::option::Option<i8>,
|
590 612 | pub(crate) required_short: ::std::option::Option<i16>,
|
591 613 | pub(crate) required_integer: ::std::option::Option<i32>,
|
592 614 | pub(crate) required_long: ::std::option::Option<i64>,
|
593 615 | pub(crate) required_float: ::std::option::Option<f32>,
|