77 77 | "aws.protocoltests.ec2.synthetic",
|
78 78 | "SimpleInputParamsInput",
|
79 79 | );
|
80 80 | static SIMPLEINPUTPARAMSINPUT_MEMBER_FOO: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
81 81 | ::aws_smithy_schema::ShapeId::from_static(
|
82 82 | "aws.protocoltests.ec2.synthetic#SimpleInputParamsInput$Foo",
|
83 83 | "aws.protocoltests.ec2.synthetic",
|
84 84 | "SimpleInputParamsInput",
|
85 85 | ),
|
86 86 | ::aws_smithy_schema::ShapeType::String,
|
87 - | "foo",
|
87 + | "Foo",
|
88 88 | 0,
|
89 89 | );
|
90 90 | static SIMPLEINPUTPARAMSINPUT_MEMBER_BAR: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
91 91 | ::aws_smithy_schema::ShapeId::from_static(
|
92 92 | "aws.protocoltests.ec2.synthetic#SimpleInputParamsInput$Bar",
|
93 93 | "aws.protocoltests.ec2.synthetic",
|
94 94 | "SimpleInputParamsInput",
|
95 95 | ),
|
96 96 | ::aws_smithy_schema::ShapeType::String,
|
97 - | "bar",
|
97 + | "Bar",
|
98 98 | 1,
|
99 99 | );
|
100 100 | static SIMPLEINPUTPARAMSINPUT_MEMBER_BAZ: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
101 101 | ::aws_smithy_schema::ShapeId::from_static(
|
102 102 | "aws.protocoltests.ec2.synthetic#SimpleInputParamsInput$Baz",
|
103 103 | "aws.protocoltests.ec2.synthetic",
|
104 104 | "SimpleInputParamsInput",
|
105 105 | ),
|
106 106 | ::aws_smithy_schema::ShapeType::Boolean,
|
107 - | "baz",
|
107 + | "Baz",
|
108 108 | 2,
|
109 109 | );
|
110 110 | static SIMPLEINPUTPARAMSINPUT_MEMBER_BAM: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
111 111 | ::aws_smithy_schema::ShapeId::from_static(
|
112 112 | "aws.protocoltests.ec2.synthetic#SimpleInputParamsInput$Bam",
|
113 113 | "aws.protocoltests.ec2.synthetic",
|
114 114 | "SimpleInputParamsInput",
|
115 115 | ),
|
116 116 | ::aws_smithy_schema::ShapeType::Integer,
|
117 - | "bam",
|
117 + | "Bam",
|
118 118 | 3,
|
119 119 | );
|
120 120 | static SIMPLEINPUTPARAMSINPUT_MEMBER_FLOAT_VALUE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
121 121 | ::aws_smithy_schema::ShapeId::from_static(
|
122 122 | "aws.protocoltests.ec2.synthetic#SimpleInputParamsInput$FloatValue",
|
123 123 | "aws.protocoltests.ec2.synthetic",
|
124 124 | "SimpleInputParamsInput",
|
125 125 | ),
|
126 126 | ::aws_smithy_schema::ShapeType::Float,
|
127 - | "float_value",
|
127 + | "FloatValue",
|
128 128 | 4,
|
129 129 | );
|
130 130 | static SIMPLEINPUTPARAMSINPUT_MEMBER_BOO: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
131 131 | ::aws_smithy_schema::ShapeId::from_static(
|
132 132 | "aws.protocoltests.ec2.synthetic#SimpleInputParamsInput$Boo",
|
133 133 | "aws.protocoltests.ec2.synthetic",
|
134 134 | "SimpleInputParamsInput",
|
135 135 | ),
|
136 136 | ::aws_smithy_schema::ShapeType::Double,
|
137 - | "boo",
|
137 + | "Boo",
|
138 138 | 5,
|
139 139 | );
|
140 140 | static SIMPLEINPUTPARAMSINPUT_MEMBER_QUX: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
141 141 | ::aws_smithy_schema::ShapeId::from_static(
|
142 142 | "aws.protocoltests.ec2.synthetic#SimpleInputParamsInput$Qux",
|
143 143 | "aws.protocoltests.ec2.synthetic",
|
144 144 | "SimpleInputParamsInput",
|
145 145 | ),
|
146 146 | ::aws_smithy_schema::ShapeType::Blob,
|
147 - | "qux",
|
147 + | "Qux",
|
148 148 | 6,
|
149 149 | );
|
150 150 | static SIMPLEINPUTPARAMSINPUT_MEMBER_FOO_ENUM: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
151 151 | ::aws_smithy_schema::ShapeId::from_static(
|
152 152 | "aws.protocoltests.ec2.synthetic#SimpleInputParamsInput$FooEnum",
|
153 153 | "aws.protocoltests.ec2.synthetic",
|
154 154 | "SimpleInputParamsInput",
|
155 155 | ),
|
156 156 | ::aws_smithy_schema::ShapeType::String,
|
157 - | "foo_enum",
|
157 + | "FooEnum",
|
158 158 | 7,
|
159 159 | );
|
160 160 | static SIMPLEINPUTPARAMSINPUT_MEMBER_HAS_QUERY_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
161 161 | ::aws_smithy_schema::ShapeId::from_static(
|
162 162 | "aws.protocoltests.ec2.synthetic#SimpleInputParamsInput$HasQueryName",
|
163 163 | "aws.protocoltests.ec2.synthetic",
|
164 164 | "SimpleInputParamsInput",
|
165 165 | ),
|
166 166 | ::aws_smithy_schema::ShapeType::String,
|
167 - | "has_query_name",
|
167 + | "HasQueryName",
|
168 168 | 8,
|
169 169 | );
|
170 170 | static SIMPLEINPUTPARAMSINPUT_MEMBER_HAS_QUERY_AND_XML_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
171 171 | ::aws_smithy_schema::ShapeId::from_static(
|
172 172 | "aws.protocoltests.ec2.synthetic#SimpleInputParamsInput$HasQueryAndXmlName",
|
173 173 | "aws.protocoltests.ec2.synthetic",
|
174 174 | "SimpleInputParamsInput",
|
175 175 | ),
|
176 176 | ::aws_smithy_schema::ShapeType::String,
|
177 - | "has_query_and_xml_name",
|
177 + | "HasQueryAndXmlName",
|
178 178 | 9,
|
179 179 | )
|
180 180 | .with_xml_name("hasQueryAndXmlName");
|
181 181 | static SIMPLEINPUTPARAMSINPUT_MEMBER_USES_XML_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
182 182 | ::aws_smithy_schema::ShapeId::from_static(
|
183 183 | "aws.protocoltests.ec2.synthetic#SimpleInputParamsInput$UsesXmlName",
|
184 184 | "aws.protocoltests.ec2.synthetic",
|
185 185 | "SimpleInputParamsInput",
|
186 186 | ),
|
187 187 | ::aws_smithy_schema::ShapeType::String,
|
188 - | "uses_xml_name",
|
188 + | "UsesXmlName",
|
189 189 | 10,
|
190 190 | )
|
191 191 | .with_xml_name("usesXmlName");
|
192 192 | static SIMPLEINPUTPARAMSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
193 193 | SIMPLEINPUTPARAMSINPUT_SCHEMA_ID,
|
194 194 | ::aws_smithy_schema::ShapeType::Structure,
|
195 195 | &[
|
196 196 | &SIMPLEINPUTPARAMSINPUT_MEMBER_FOO,
|
197 197 | &SIMPLEINPUTPARAMSINPUT_MEMBER_BAR,
|
198 198 | &SIMPLEINPUTPARAMSINPUT_MEMBER_BAZ,
|
247 247 | ser.write_string(&SIMPLEINPUTPARAMSINPUT_MEMBER_HAS_QUERY_AND_XML_NAME, val)?;
|
248 248 | }
|
249 249 | if let Some(ref val) = self.uses_xml_name {
|
250 250 | ser.write_string(&SIMPLEINPUTPARAMSINPUT_MEMBER_USES_XML_NAME, val)?;
|
251 251 | }
|
252 252 | Ok(())
|
253 253 | }
|
254 254 | }
|
255 255 | impl SimpleInputParamsInput {
|
256 256 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
257 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
258 - | deserializer: &mut D,
|
257 + | pub fn deserialize(
|
258 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
259 259 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
260 260 | #[allow(unused_variables, unused_mut)]
|
261 261 | let mut builder = Self::builder();
|
262 262 | #[allow(
|
263 263 | unused_variables,
|
264 264 | unreachable_code,
|
265 265 | clippy::single_match,
|
266 266 | clippy::match_single_binding,
|
267 267 | clippy::diverging_sub_expression
|
268 268 | )]
|
269 - | deserializer.read_struct(&SIMPLEINPUTPARAMSINPUT_SCHEMA, (), |_, member, deser| {
|
269 + | deserializer.read_struct(&SIMPLEINPUTPARAMSINPUT_SCHEMA, &mut |member, deser| {
|
270 270 | match member.member_index() {
|
271 271 | Some(0) => {
|
272 272 | builder.foo = Some(deser.read_string(member)?);
|
273 273 | }
|
274 274 | Some(1) => {
|
275 275 | builder.bar = Some(deser.read_string(member)?);
|
276 276 | }
|
277 277 | Some(2) => {
|
278 278 | builder.baz = Some(deser.read_boolean(member)?);
|
279 279 | }
|
280 280 | Some(3) => {
|
281 281 | builder.bam = Some(deser.read_integer(member)?);
|
282 282 | }
|
283 283 | Some(4) => {
|
284 284 | builder.float_value = Some(deser.read_float(member)?);
|
285 285 | }
|
286 286 | Some(5) => {
|
287 287 | builder.boo = Some(deser.read_double(member)?);
|
288 288 | }
|
289 289 | Some(6) => {
|
290 290 | builder.qux = Some(deser.read_blob(member)?);
|
291 291 | }
|
292 292 | Some(7) => {
|
293 293 | builder.foo_enum = Some(crate::types::FooEnum::from(deser.read_string(member)?.as_str()));
|
294 294 | }
|
295 295 | Some(8) => {
|
296 296 | builder.has_query_name = Some(deser.read_string(member)?);
|
297 297 | }
|
298 298 | Some(9) => {
|
299 299 | builder.has_query_and_xml_name = Some(deser.read_string(member)?);
|
300 300 | }
|
301 301 | Some(10) => {
|
302 302 | builder.uses_xml_name = Some(deser.read_string(member)?);
|
303 303 | }
|
304 304 | _ => {}
|
305 305 | }
|
306 306 | Ok(())
|
307 307 | })?;
|
308 308 | builder
|
309 309 | .build()
|
310 310 | .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
|
311 311 | }
|
312 312 | }
|
313 + | impl SimpleInputParamsInput {
|
314 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
315 + | pub fn deserialize_with_response(
|
316 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
317 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
318 + | _status: u16,
|
319 + | _body: &[u8],
|
320 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
321 + | Self::deserialize(deserializer)
|
322 + | }
|
323 + | }
|
313 324 | impl SimpleInputParamsInput {
|
314 325 | /// Creates a new builder-style object to manufacture [`SimpleInputParamsInput`](crate::operation::simple_input_params::SimpleInputParamsInput).
|
315 326 | pub fn builder() -> crate::operation::simple_input_params::builders::SimpleInputParamsInputBuilder {
|
316 327 | crate::operation::simple_input_params::builders::SimpleInputParamsInputBuilder::default()
|
317 328 | }
|
318 329 | }
|
319 330 |
|
320 331 | /// A builder for [`SimpleInputParamsInput`](crate::operation::simple_input_params::SimpleInputParamsInput).
|
321 332 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
322 333 | #[non_exhaustive]
|
323 334 | pub struct SimpleInputParamsInputBuilder {
|
324 335 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
325 336 | pub(crate) bar: ::std::option::Option<::std::string::String>,
|
326 337 | pub(crate) baz: ::std::option::Option<bool>,
|
327 338 | pub(crate) bam: ::std::option::Option<i32>,
|
328 339 | pub(crate) float_value: ::std::option::Option<f32>,
|
329 340 | pub(crate) boo: ::std::option::Option<f64>,
|
330 341 | pub(crate) qux: ::std::option::Option<::aws_smithy_types::Blob>,
|
331 342 | pub(crate) foo_enum: ::std::option::Option<crate::types::FooEnum>,
|
332 343 | pub(crate) has_query_name: ::std::option::Option<::std::string::String>,
|
333 344 | pub(crate) has_query_and_xml_name: ::std::option::Option<::std::string::String>,
|
334 345 | pub(crate) uses_xml_name: ::std::option::Option<::std::string::String>,
|
335 346 | }
|
336 347 | impl SimpleInputParamsInputBuilder {
|
337 348 | #[allow(missing_docs)] // documentation missing in model
|
338 349 | pub fn foo(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
339 350 | self.foo = ::std::option::Option::Some(input.into());
|
340 351 | self
|
341 352 | }
|
342 353 | #[allow(missing_docs)] // documentation missing in model
|