24 24 | "com.amazonaws.ec2.synthetic",
|
25 25 | "DeleteSecurityGroupOutput",
|
26 26 | );
|
27 27 | static DELETESECURITYGROUPOUTPUT_MEMBER_RETURN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
28 28 | ::aws_smithy_schema::ShapeId::from_static(
|
29 29 | "com.amazonaws.ec2.synthetic#DeleteSecurityGroupOutput$Return",
|
30 30 | "com.amazonaws.ec2.synthetic",
|
31 31 | "DeleteSecurityGroupOutput",
|
32 32 | ),
|
33 33 | ::aws_smithy_schema::ShapeType::Boolean,
|
34 - | "r##return",
|
34 + | "Return",
|
35 35 | 0,
|
36 36 | )
|
37 37 | .with_xml_name("return");
|
38 38 | static DELETESECURITYGROUPOUTPUT_MEMBER_GROUP_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
39 39 | ::aws_smithy_schema::ShapeId::from_static(
|
40 40 | "com.amazonaws.ec2.synthetic#DeleteSecurityGroupOutput$GroupId",
|
41 41 | "com.amazonaws.ec2.synthetic",
|
42 42 | "DeleteSecurityGroupOutput",
|
43 43 | ),
|
44 44 | ::aws_smithy_schema::ShapeType::String,
|
45 - | "group_id",
|
45 + | "GroupId",
|
46 46 | 1,
|
47 47 | )
|
48 48 | .with_xml_name("groupId");
|
49 + | static DELETESECURITYGROUPOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
50 + | ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
|
51 + | ::aws_smithy_schema::ShapeType::String,
|
52 + | "request_id",
|
53 + | 2,
|
54 + | )
|
55 + | .with_http_header("x-amzn-requestid");
|
49 56 | static DELETESECURITYGROUPOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
50 57 | DELETESECURITYGROUPOUTPUT_SCHEMA_ID,
|
51 58 | ::aws_smithy_schema::ShapeType::Structure,
|
52 - | &[&DELETESECURITYGROUPOUTPUT_MEMBER_RETURN, &DELETESECURITYGROUPOUTPUT_MEMBER_GROUP_ID],
|
59 + | &[
|
60 + | &DELETESECURITYGROUPOUTPUT_MEMBER_RETURN,
|
61 + | &DELETESECURITYGROUPOUTPUT_MEMBER_GROUP_ID,
|
62 + | &DELETESECURITYGROUPOUTPUT_MEMBER__REQUEST_ID,
|
63 + | ],
|
53 64 | );
|
54 65 | impl DeleteSecurityGroupOutput {
|
55 66 | /// The schema for this shape.
|
56 67 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETESECURITYGROUPOUTPUT_SCHEMA;
|
57 68 | }
|
58 69 | impl ::aws_smithy_schema::serde::SerializableStruct for DeleteSecurityGroupOutput {
|
59 70 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
60 71 | fn serialize_members(
|
61 72 | &self,
|
62 73 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
63 74 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
64 75 | if let Some(ref val) = self.r#return {
|
65 76 | ser.write_boolean(&DELETESECURITYGROUPOUTPUT_MEMBER_RETURN, *val)?;
|
66 77 | }
|
67 78 | if let Some(ref val) = self.group_id {
|
68 79 | ser.write_string(&DELETESECURITYGROUPOUTPUT_MEMBER_GROUP_ID, val)?;
|
69 80 | }
|
70 81 | Ok(())
|
71 82 | }
|
72 83 | }
|
73 84 | impl DeleteSecurityGroupOutput {
|
74 85 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
75 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
76 - | deserializer: &mut D,
|
86 + | pub fn deserialize(
|
87 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
77 88 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
78 89 | #[allow(unused_variables, unused_mut)]
|
79 90 | let mut builder = Self::builder();
|
80 91 | #[allow(
|
81 92 | unused_variables,
|
82 93 | unreachable_code,
|
83 94 | clippy::single_match,
|
84 95 | clippy::match_single_binding,
|
85 96 | clippy::diverging_sub_expression
|
86 97 | )]
|
87 - | deserializer.read_struct(&DELETESECURITYGROUPOUTPUT_SCHEMA, (), |_, member, deser| {
|
98 + | deserializer.read_struct(&DELETESECURITYGROUPOUTPUT_SCHEMA, &mut |member, deser| {
|
99 + | match member.member_index() {
|
100 + | Some(0) => {
|
101 + | builder.r#return = Some(deser.read_boolean(member)?);
|
102 + | }
|
103 + | Some(1) => {
|
104 + | builder.group_id = Some(deser.read_string(member)?);
|
105 + | }
|
106 + | Some(2) => {
|
107 + | builder._request_id = Some(deser.read_string(member)?);
|
108 + | }
|
109 + | _ => {}
|
110 + | }
|
111 + | Ok(())
|
112 + | })?;
|
113 + | Ok(builder.build())
|
114 + | }
|
115 + | }
|
116 + | impl DeleteSecurityGroupOutput {
|
117 + | /// Deserializes this structure from a body deserializer and HTTP response headers.
|
118 + | /// Header-bound members are read directly from headers, avoiding runtime
|
119 + | /// member iteration overhead. Body members are read via the deserializer.
|
120 + | pub fn deserialize_with_response(
|
121 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
122 + | headers: &::aws_smithy_runtime_api::http::Headers,
|
123 + | _status: u16,
|
124 + | _body: &[u8],
|
125 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
126 + | #[allow(unused_variables, unused_mut)]
|
127 + | let mut builder = Self::builder();
|
128 + | if let Some(val) = headers.get("x-amzn-requestid") {
|
129 + | builder._request_id = Some(val.to_string());
|
130 + | }
|
131 + | #[allow(
|
132 + | unused_variables,
|
133 + | unreachable_code,
|
134 + | clippy::single_match,
|
135 + | clippy::match_single_binding,
|
136 + | clippy::diverging_sub_expression
|
137 + | )]
|
138 + | deserializer.read_struct(&DELETESECURITYGROUPOUTPUT_SCHEMA, &mut |member, deser| {
|
88 139 | match member.member_index() {
|
89 140 | Some(0) => {
|
90 141 | builder.r#return = Some(deser.read_boolean(member)?);
|
91 142 | }
|
92 143 | Some(1) => {
|
93 144 | builder.group_id = Some(deser.read_string(member)?);
|
94 145 | }
|
95 146 | _ => {}
|
96 147 | }
|
97 148 | Ok(())
|