1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + | #[::pyo3::pyclass]
|
3 + | /// :param dialog rest_json.model.Dialog:
|
4 + | /// :param dialog_list typing.List\[rest_json.model.Dialog\]:
|
5 + | /// :param dialog_map typing.Dict\[str, rest_json.model.Dialog\]:
|
6 + | /// :rtype None:
|
7 + | #[allow(missing_docs)] // documentation missing in model
|
8 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
9 + | pub struct OperationWithNestedStructureOutput {
|
10 + | #[pyo3(get, set)]
|
11 + | /// :type rest_json.model.Dialog:
|
12 + | #[allow(missing_docs)] // documentation missing in model
|
13 + | pub dialog: crate::model::Dialog,
|
14 + | #[pyo3(get, set)]
|
15 + | /// :type typing.List\[rest_json.model.Dialog\]:
|
16 + | #[allow(missing_docs)] // documentation missing in model
|
17 + | pub dialog_list: ::std::vec::Vec<crate::model::Dialog>,
|
18 + | #[pyo3(get, set)]
|
19 + | /// :type typing.Dict\[str, rest_json.model.Dialog\]:
|
20 + | #[allow(missing_docs)] // documentation missing in model
|
21 + | pub dialog_map: ::std::collections::HashMap<::std::string::String, crate::model::Dialog>,
|
22 + | }
|
23 + | impl OperationWithNestedStructureOutput {
|
24 + | #[allow(missing_docs)] // documentation missing in model
|
25 + | pub fn dialog(&self) -> &crate::model::Dialog {
|
26 + | &self.dialog
|
27 + | }
|
28 + | #[allow(missing_docs)] // documentation missing in model
|
29 + | pub fn dialog_list(&self) -> &[crate::model::Dialog] {
|
30 + | use std::ops::Deref;
|
31 + | self.dialog_list.deref()
|
32 + | }
|
33 + | #[allow(missing_docs)] // documentation missing in model
|
34 + | pub fn dialog_map(
|
35 + | &self,
|
36 + | ) -> &::std::collections::HashMap<::std::string::String, crate::model::Dialog> {
|
37 + | &self.dialog_map
|
38 + | }
|
39 + | }
|
40 + | #[allow(clippy::new_without_default)]
|
41 + | #[allow(clippy::too_many_arguments)]
|
42 + | #[::pyo3::pymethods]
|
43 + | impl OperationWithNestedStructureOutput {
|
44 + | #[new]
|
45 + | pub fn new(
|
46 + | dialog: crate::model::Dialog,
|
47 + | dialog_list: ::std::vec::Vec<crate::model::Dialog>,
|
48 + | dialog_map: ::std::collections::HashMap<::std::string::String, crate::model::Dialog>,
|
49 + | ) -> Self {
|
50 + | Self {
|
51 + | dialog,
|
52 + | dialog_list,
|
53 + | dialog_map,
|
54 + | }
|
55 + | }
|
56 + | fn __repr__(&self) -> String {
|
57 + | format!("{self:?}")
|
58 + | }
|
59 + | fn __str__(&self) -> String {
|
60 + | format!("{self:?}")
|
61 + | }
|
62 + | }
|
63 + | impl<'source> ::pyo3::FromPyObject<'source>
|
64 + | for std::boxed::Box<OperationWithNestedStructureOutput>
|
65 + | {
|
66 + | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
67 + | ob.extract::<OperationWithNestedStructureOutput>()
|
68 + | .map(Box::new)
|
69 + | }
|
70 + | }
|
71 + |
|
72 + | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<OperationWithNestedStructureOutput> {
|
73 + | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
74 + | (*self).into_py(py)
|
75 + | }
|
76 + | }
|
77 + | impl OperationWithNestedStructureOutput {
|
78 + | /// Creates a new builder-style object to manufacture [`OperationWithNestedStructureOutput`](crate::output::OperationWithNestedStructureOutput).
|
79 + | pub fn builder() -> crate::output::operation_with_nested_structure_output::Builder {
|
80 + | crate::output::operation_with_nested_structure_output::Builder::default()
|
81 + | }
|
82 + | }
|
83 + |
|
84 + | #[::pyo3::pyclass]
|
85 + | /// :param default_string str:
|
86 + | /// :param default_boolean bool:
|
87 + | /// :param default_list typing.List\[str\]:
|
88 + | /// :param default_document_map rest_json.types.Document:
|
89 + | /// :param default_document_string rest_json.types.Document:
|
90 + | /// :param default_document_boolean rest_json.types.Document:
|
91 + | /// :param default_document_list rest_json.types.Document:
|
92 + | /// :param default_null_document typing.Optional\[rest_json.types.Document\]:
|
93 + | /// :param default_timestamp rest_json.types.DateTime:
|
94 + | /// :param default_blob rest_json.types.Blob:
|
95 + | /// :param default_byte int:
|
96 + | /// :param default_short int:
|
97 + | /// :param default_integer int:
|
98 + | /// :param default_long int:
|
99 + | /// :param default_float float:
|
100 + | /// :param default_double float:
|
101 + | /// :param default_map typing.Dict\[str, str\]:
|
102 + | /// :param default_enum rest_json.model.TestEnum:
|
103 + | /// :param default_int_enum int:
|
104 + | /// :param empty_string str:
|
105 + | /// :param false_boolean bool:
|
106 + | /// :param empty_blob rest_json.types.Blob:
|
107 + | /// :param zero_byte int:
|
108 + | /// :param zero_short int:
|
109 + | /// :param zero_integer int:
|
110 + | /// :param zero_long int:
|
111 + | /// :param zero_float float:
|
112 + | /// :param zero_double float:
|
113 + | /// :rtype None:
|
114 + | #[allow(missing_docs)] // documentation missing in model
|
115 + | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
116 + | pub struct OperationWithDefaultsOutput {
|
117 + | #[pyo3(get, set)]
|
118 + | /// :type str:
|
119 + | #[allow(missing_docs)] // documentation missing in model
|
120 + | pub default_string: ::std::string::String,
|
121 + | #[pyo3(get, set)]
|
122 + | /// :type bool:
|
123 + | #[allow(missing_docs)] // documentation missing in model
|
124 + | pub default_boolean: bool,
|
125 + | #[pyo3(get, set)]
|
126 + | /// :type typing.List\[str\]:
|
127 + | #[allow(missing_docs)] // documentation missing in model
|
128 + | pub default_list: ::std::vec::Vec<::std::string::String>,
|
129 + | #[pyo3(get, set)]
|
130 + | /// :type rest_json.types.Document:
|
131 + | #[allow(missing_docs)] // documentation missing in model
|
132 + | pub default_document_map: ::aws_smithy_http_server_python::types::Document,
|
133 + | #[pyo3(get, set)]
|
134 + | /// :type rest_json.types.Document:
|
135 + | #[allow(missing_docs)] // documentation missing in model
|
136 + | pub default_document_string: ::aws_smithy_http_server_python::types::Document,
|
137 + | #[pyo3(get, set)]
|
138 + | /// :type rest_json.types.Document:
|
139 + | #[allow(missing_docs)] // documentation missing in model
|
140 + | pub default_document_boolean: ::aws_smithy_http_server_python::types::Document,
|
141 + | #[pyo3(get, set)]
|
142 + | /// :type rest_json.types.Document:
|
143 + | #[allow(missing_docs)] // documentation missing in model
|
144 + | pub default_document_list: ::aws_smithy_http_server_python::types::Document,
|
145 + | #[pyo3(get, set)]
|
146 + | /// :type typing.Optional\[rest_json.types.Document\]:
|
147 + | #[allow(missing_docs)] // documentation missing in model
|
148 + | pub default_null_document:
|
149 + | ::std::option::Option<::aws_smithy_http_server_python::types::Document>,
|
150 + | #[pyo3(get, set)]
|
151 + | /// :type rest_json.types.DateTime:
|
152 + | #[allow(missing_docs)] // documentation missing in model
|
153 + | pub default_timestamp: ::aws_smithy_http_server_python::types::DateTime,
|
154 + | #[pyo3(get, set)]
|
155 + | /// :type rest_json.types.Blob:
|
156 + | #[allow(missing_docs)] // documentation missing in model
|
157 + | pub default_blob: ::aws_smithy_http_server_python::types::Blob,
|
158 + | #[pyo3(get, set)]
|
159 + | /// :type int:
|
160 + | #[allow(missing_docs)] // documentation missing in model
|
161 + | pub default_byte: i8,
|
162 + | #[pyo3(get, set)]
|
163 + | /// :type int:
|
164 + | #[allow(missing_docs)] // documentation missing in model
|
165 + | pub default_short: i16,
|
166 + | #[pyo3(get, set)]
|
167 + | /// :type int:
|
168 + | #[allow(missing_docs)] // documentation missing in model
|
169 + | pub default_integer: i32,
|
170 + | #[pyo3(get, set)]
|
171 + | /// :type int:
|
172 + | #[allow(missing_docs)] // documentation missing in model
|
173 + | pub default_long: i64,
|
174 + | #[pyo3(get, set)]
|
175 + | /// :type float:
|
176 + | #[allow(missing_docs)] // documentation missing in model
|
177 + | pub default_float: f32,
|
178 + | #[pyo3(get, set)]
|
179 + | /// :type float:
|
180 + | #[allow(missing_docs)] // documentation missing in model
|
181 + | pub default_double: f64,
|
182 + | #[pyo3(get, set)]
|
183 + | /// :type typing.Dict\[str, str\]:
|
184 + | #[allow(missing_docs)] // documentation missing in model
|
185 + | pub default_map: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
186 + | #[pyo3(get, set)]
|
187 + | /// :type rest_json.model.TestEnum:
|
188 + | #[allow(missing_docs)] // documentation missing in model
|
189 + | pub default_enum: crate::model::TestEnum,
|
190 + | #[pyo3(get, set)]
|
191 + | /// :type int:
|
192 + | #[allow(missing_docs)] // documentation missing in model
|
193 + | pub default_int_enum: i32,
|
194 + | #[pyo3(get, set)]
|
195 + | /// :type str:
|
196 + | #[allow(missing_docs)] // documentation missing in model
|
197 + | pub empty_string: ::std::string::String,
|
198 + | #[pyo3(get, set)]
|
199 + | /// :type bool:
|
200 + | #[allow(missing_docs)] // documentation missing in model
|
201 + | pub false_boolean: bool,
|
202 + | #[pyo3(get, set)]
|
203 + | /// :type rest_json.types.Blob:
|
204 + | #[allow(missing_docs)] // documentation missing in model
|
205 + | pub empty_blob: ::aws_smithy_http_server_python::types::Blob,
|
206 + | #[pyo3(get, set)]
|
207 + | /// :type int:
|
208 + | #[allow(missing_docs)] // documentation missing in model
|
209 + | pub zero_byte: i8,
|
210 + | #[pyo3(get, set)]
|
211 + | /// :type int:
|
212 + | #[allow(missing_docs)] // documentation missing in model
|
213 + | pub zero_short: i16,
|
214 + | #[pyo3(get, set)]
|
215 + | /// :type int:
|
216 + | #[allow(missing_docs)] // documentation missing in model
|
217 + | pub zero_integer: i32,
|
218 + | #[pyo3(get, set)]
|
219 + | /// :type int:
|
220 + | #[allow(missing_docs)] // documentation missing in model
|
221 + | pub zero_long: i64,
|
222 + | #[pyo3(get, set)]
|
223 + | /// :type float:
|
224 + | #[allow(missing_docs)] // documentation missing in model
|
225 + | pub zero_float: f32,
|
226 + | #[pyo3(get, set)]
|
227 + | /// :type float:
|
228 + | #[allow(missing_docs)] // documentation missing in model
|
229 + | pub zero_double: f64,
|
230 + | }
|
231 + | impl OperationWithDefaultsOutput {
|
232 + | #[allow(missing_docs)] // documentation missing in model
|
233 + | pub fn default_string(&self) -> &str {
|
234 + | use std::ops::Deref;
|
235 + | self.default_string.deref()
|
236 + | }
|
237 + | #[allow(missing_docs)] // documentation missing in model
|
238 + | pub fn default_boolean(&self) -> bool {
|
239 + | self.default_boolean
|
240 + | }
|
241 + | #[allow(missing_docs)] // documentation missing in model
|
242 + | pub fn default_list(&self) -> &[::std::string::String] {
|
243 + | use std::ops::Deref;
|
244 + | self.default_list.deref()
|
245 + | }
|
246 + | #[allow(missing_docs)] // documentation missing in model
|
247 + | pub fn default_document_map(&self) -> &::aws_smithy_http_server_python::types::Document {
|
248 + | &self.default_document_map
|
249 + | }
|
250 + | #[allow(missing_docs)] // documentation missing in model
|
251 + | pub fn default_document_string(&self) -> &::aws_smithy_http_server_python::types::Document {
|
252 + | &self.default_document_string
|
253 + | }
|
254 + | #[allow(missing_docs)] // documentation missing in model
|
255 + | pub fn default_document_boolean(&self) -> &::aws_smithy_http_server_python::types::Document {
|
256 + | &self.default_document_boolean
|
257 + | }
|
258 + | #[allow(missing_docs)] // documentation missing in model
|
259 + | pub fn default_document_list(&self) -> &::aws_smithy_http_server_python::types::Document {
|
260 + | &self.default_document_list
|
261 + | }
|
262 + | #[allow(missing_docs)] // documentation missing in model
|
263 + | pub fn default_null_document(
|
264 + | &self,
|
265 + | ) -> ::std::option::Option<&::aws_smithy_http_server_python::types::Document> {
|
266 + | self.default_null_document.as_ref()
|
267 + | }
|
268 + | #[allow(missing_docs)] // documentation missing in model
|
269 + | pub fn default_timestamp(&self) -> &::aws_smithy_http_server_python::types::DateTime {
|
270 + | &self.default_timestamp
|
271 + | }
|
272 + | #[allow(missing_docs)] // documentation missing in model
|
273 + | pub fn default_blob(&self) -> &::aws_smithy_http_server_python::types::Blob {
|
274 + | &self.default_blob
|
275 + | }
|
276 + | #[allow(missing_docs)] // documentation missing in model
|
277 + | pub fn default_byte(&self) -> i8 {
|
278 + | self.default_byte
|
279 + | }
|
280 + | #[allow(missing_docs)] // documentation missing in model
|
281 + | pub fn default_short(&self) -> i16 {
|
282 + | self.default_short
|
283 + | }
|
284 + | #[allow(missing_docs)] // documentation missing in model
|
285 + | pub fn default_integer(&self) -> i32 {
|
286 + | self.default_integer
|
287 + | }
|
288 + | #[allow(missing_docs)] // documentation missing in model
|
289 + | pub fn default_long(&self) -> i64 {
|
290 + | self.default_long
|
291 + | }
|
292 + | #[allow(missing_docs)] // documentation missing in model
|
293 + | pub fn default_float(&self) -> f32 {
|
294 + | self.default_float
|
295 + | }
|
296 + | #[allow(missing_docs)] // documentation missing in model
|
297 + | pub fn default_double(&self) -> f64 {
|
298 + | self.default_double
|
299 + | }
|
300 + | #[allow(missing_docs)] // documentation missing in model
|
301 + | pub fn default_map(
|
302 + | &self,
|
303 + | ) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> {
|
304 + | &self.default_map
|
305 + | }
|
306 + | #[allow(missing_docs)] // documentation missing in model
|
307 + | pub fn default_enum(&self) -> &crate::model::TestEnum {
|
308 + | &self.default_enum
|
309 + | }
|
310 + | #[allow(missing_docs)] // documentation missing in model
|
311 + | pub fn default_int_enum(&self) -> i32 {
|
312 + | self.default_int_enum
|
313 + | }
|
314 + | #[allow(missing_docs)] // documentation missing in model
|
315 + | pub fn empty_string(&self) -> &str {
|
316 + | use std::ops::Deref;
|
317 + | self.empty_string.deref()
|
318 + | }
|
319 + | #[allow(missing_docs)] // documentation missing in model
|
320 + | pub fn false_boolean(&self) -> bool {
|
321 + | self.false_boolean
|
322 + | }
|
323 + | #[allow(missing_docs)] // documentation missing in model
|
324 + | pub fn empty_blob(&self) -> &::aws_smithy_http_server_python::types::Blob {
|
325 + | &self.empty_blob
|
326 + | }
|
327 + | #[allow(missing_docs)] // documentation missing in model
|
328 + | pub fn zero_byte(&self) -> i8 {
|
329 + | self.zero_byte
|
330 + | }
|
331 + | #[allow(missing_docs)] // documentation missing in model
|
332 + | pub fn zero_short(&self) -> i16 {
|
333 + | self.zero_short
|
334 + | }
|
335 + | #[allow(missing_docs)] // documentation missing in model
|
336 + | pub fn zero_integer(&self) -> i32 {
|
337 + | self.zero_integer
|
338 + | }
|
339 + | #[allow(missing_docs)] // documentation missing in model
|
340 + | pub fn zero_long(&self) -> i64 {
|
341 + | self.zero_long
|
342 + | }
|
343 + | #[allow(missing_docs)] // documentation missing in model
|
344 + | pub fn zero_float(&self) -> f32 {
|
345 + | self.zero_float
|
346 + | }
|
347 + | #[allow(missing_docs)] // documentation missing in model
|
348 + | pub fn zero_double(&self) -> f64 {
|
349 + | self.zero_double
|
350 + | }
|
351 + | }
|
352 + | #[allow(clippy::new_without_default)]
|
353 + | #[allow(clippy::too_many_arguments)]
|
354 + | #[::pyo3::pymethods]
|
355 + | impl OperationWithDefaultsOutput {
|
356 + | #[new]
|
357 + | pub fn new(
|
358 + | default_string: ::std::string::String,
|
359 + | default_boolean: bool,
|
360 + | default_list: ::std::vec::Vec<::std::string::String>,
|
361 + | default_document_map: ::aws_smithy_http_server_python::types::Document,
|
362 + | default_document_string: ::aws_smithy_http_server_python::types::Document,
|
363 + | default_document_boolean: ::aws_smithy_http_server_python::types::Document,
|
364 + | default_document_list: ::aws_smithy_http_server_python::types::Document,
|
365 + | default_null_document: ::std::option::Option<
|
366 + | ::aws_smithy_http_server_python::types::Document,
|
367 + | >,
|
368 + | default_timestamp: ::aws_smithy_http_server_python::types::DateTime,
|
369 + | default_blob: ::aws_smithy_http_server_python::types::Blob,
|
370 + | default_byte: i8,
|
371 + | default_short: i16,
|
372 + | default_integer: i32,
|
373 + | default_long: i64,
|
374 + | default_float: f32,
|
375 + | default_double: f64,
|
376 + | default_map: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
377 + | default_enum: crate::model::TestEnum,
|
378 + | default_int_enum: i32,
|
379 + | empty_string: ::std::string::String,
|
380 + | false_boolean: bool,
|
381 + | empty_blob: ::aws_smithy_http_server_python::types::Blob,
|
382 + | zero_byte: i8,
|
383 + | zero_short: i16,
|
384 + | zero_integer: i32,
|
385 + | zero_long: i64,
|
386 + | zero_float: f32,
|
387 + | zero_double: f64,
|
388 + | ) -> Self {
|
389 + | Self {
|
390 + | default_string,
|
391 + | default_boolean,
|
392 + | default_list,
|
393 + | default_document_map,
|
394 + | default_document_string,
|
395 + | default_document_boolean,
|
396 + | default_document_list,
|
397 + | default_null_document,
|
398 + | default_timestamp,
|
399 + | default_blob,
|
400 + | default_byte,
|
401 + | default_short,
|
402 + | default_integer,
|
403 + | default_long,
|
404 + | default_float,
|
405 + | default_double,
|
406 + | default_map,
|
407 + | default_enum,
|
408 + | default_int_enum,
|
409 + | empty_string,
|
410 + | false_boolean,
|
411 + | empty_blob,
|
412 + | zero_byte,
|
413 + | zero_short,
|
414 + | zero_integer,
|
415 + | zero_long,
|
416 + | zero_float,
|
417 + | zero_double,
|
418 + | }
|
419 + | }
|
420 + | fn __repr__(&self) -> String {
|
421 + | format!("{self:?}")
|
422 + | }
|
423 + | fn __str__(&self) -> String {
|
424 + | format!("{self:?}")
|
425 + | }
|
426 + | }
|
427 + | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<OperationWithDefaultsOutput> {
|
428 + | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
429 + | ob.extract::<OperationWithDefaultsOutput>().map(Box::new)
|
430 + | }
|
431 + | }
|
432 + |
|
433 + | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<OperationWithDefaultsOutput> {
|
434 + | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
435 + | (*self).into_py(py)
|
436 + | }
|
437 + | }
|
438 + | impl OperationWithDefaultsOutput {
|
439 + | /// Creates a new builder-style object to manufacture [`OperationWithDefaultsOutput`](crate::output::OperationWithDefaultsOutput).
|
440 + | pub fn builder() -> crate::output::operation_with_defaults_output::Builder {
|
441 + | crate::output::operation_with_defaults_output::Builder::default()
|
442 + | }
|
443 + | }
|
444 + |
|
445 + | #[::pyo3::pyclass]
|
446 + | /// :rtype None:
|
447 + | #[allow(missing_docs)] // documentation missing in model
|
448 + | #[derive(
|
449 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
450 + | )]
|
451 + | pub struct ContentTypeParametersOutput {}
|
452 + | #[allow(clippy::new_without_default)]
|
453 + | #[allow(clippy::too_many_arguments)]
|
454 + | #[::pyo3::pymethods]
|
455 + | impl ContentTypeParametersOutput {
|
456 + | #[new]
|
457 + | pub fn new() -> Self {
|
458 + | Self {}
|
459 + | }
|
460 + | fn __repr__(&self) -> String {
|
461 + | format!("{self:?}")
|
462 + | }
|
463 + | fn __str__(&self) -> String {
|
464 + | format!("{self:?}")
|
465 + | }
|
466 + | }
|
467 + | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<ContentTypeParametersOutput> {
|
468 + | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
469 + | ob.extract::<ContentTypeParametersOutput>().map(Box::new)
|
470 + | }
|
471 + | }
|
472 + |
|
473 + | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<ContentTypeParametersOutput> {
|
474 + | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
475 + | (*self).into_py(py)
|
476 + | }
|
477 + | }
|
478 + | impl ContentTypeParametersOutput {
|
479 + | /// Creates a new builder-style object to manufacture [`ContentTypeParametersOutput`](crate::output::ContentTypeParametersOutput).
|
480 + | pub fn builder() -> crate::output::content_type_parameters_output::Builder {
|
481 + | crate::output::content_type_parameters_output::Builder::default()
|
482 + | }
|
483 + | }
|
484 + |
|
2 485 | #[::pyo3::pyclass]
|
3 486 | /// :rtype None:
|
4 487 | #[allow(missing_docs)] // documentation missing in model
|
5 488 | #[derive(
|
6 489 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
7 490 | )]
|
8 491 | pub struct PutWithContentEncodingOutput {}
|
9 492 | #[allow(clippy::new_without_default)]
|
10 493 | #[allow(clippy::too_many_arguments)]
|
11 494 | #[::pyo3::pymethods]
|
5522 6057 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
5523 6058 | (*self).into_py(py)
|
5524 6059 | }
|
5525 6060 | }
|
5526 6061 | impl NoInputAndNoOutputOutput {
|
5527 6062 | /// Creates a new builder-style object to manufacture [`NoInputAndNoOutputOutput`](crate::output::NoInputAndNoOutputOutput).
|
5528 6063 | pub fn builder() -> crate::output::no_input_and_no_output_output::Builder {
|
5529 6064 | crate::output::no_input_and_no_output_output::Builder::default()
|
5530 6065 | }
|
5531 6066 | }
|
6067 + | /// See [`OperationWithNestedStructureOutput`](crate::output::OperationWithNestedStructureOutput).
|
6068 + | ///
|
6069 + | pub mod operation_with_nested_structure_output {
|
6070 + |
|
6071 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
6072 + | /// Holds one variant for each of the ways the builder can fail.
|
6073 + |
|
6074 + | #[allow(clippy::enum_variant_names)]
|
6075 + | pub enum ConstraintViolation {
|
6076 + | /// `dialog` was not provided but it is required when building `OperationWithNestedStructureOutput`.
|
6077 + | MissingDialog,
|
6078 + | }
|
6079 + | impl ::std::fmt::Display for ConstraintViolation {
|
6080 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
6081 + | match self {
|
6082 + | ConstraintViolation::MissingDialog => write!(f, "`dialog` was not provided but it is required when building `OperationWithNestedStructureOutput`"),
|
6083 + | }
|
6084 + | }
|
6085 + | }
|
6086 + | impl ::std::error::Error for ConstraintViolation {}
|
6087 + | impl ::std::convert::TryFrom<Builder> for crate::output::OperationWithNestedStructureOutput {
|
6088 + | type Error = ConstraintViolation;
|
6089 + |
|
6090 + | fn try_from(builder: Builder) -> Result<Self, Self::Error> {
|
6091 + | builder.build()
|
6092 + | }
|
6093 + | }
|
6094 + | /// A builder for [`OperationWithNestedStructureOutput`](crate::output::OperationWithNestedStructureOutput).
|
6095 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6096 + | pub struct Builder {
|
6097 + | pub(crate) dialog: ::std::option::Option<crate::model::Dialog>,
|
6098 + | pub(crate) dialog_list: ::std::option::Option<::std::vec::Vec<crate::model::Dialog>>,
|
6099 + | pub(crate) dialog_map: ::std::option::Option<
|
6100 + | ::std::collections::HashMap<::std::string::String, crate::model::Dialog>,
|
6101 + | >,
|
6102 + | }
|
6103 + | impl Builder {
|
6104 + | #[allow(missing_docs)] // documentation missing in model
|
6105 + | pub fn dialog(mut self, input: crate::model::Dialog) -> Self {
|
6106 + | self.dialog = Some(input);
|
6107 + | self
|
6108 + | }
|
6109 + | #[allow(missing_docs)] // documentation missing in model
|
6110 + | pub fn dialog_list(mut self, input: ::std::vec::Vec<crate::model::Dialog>) -> Self {
|
6111 + | self.dialog_list = Some(input);
|
6112 + | self
|
6113 + | }
|
6114 + | #[allow(missing_docs)] // documentation missing in model
|
6115 + | pub fn dialog_map(
|
6116 + | mut self,
|
6117 + | input: ::std::collections::HashMap<::std::string::String, crate::model::Dialog>,
|
6118 + | ) -> Self {
|
6119 + | self.dialog_map = Some(input);
|
6120 + | self
|
6121 + | }
|
6122 + | /// Consumes the builder and constructs a [`OperationWithNestedStructureOutput`](crate::output::OperationWithNestedStructureOutput).
|
6123 + | ///
|
6124 + | /// The builder fails to construct a [`OperationWithNestedStructureOutput`](crate::output::OperationWithNestedStructureOutput) if you do not provide a value for all non-`Option`al members.
|
6125 + | ///
|
6126 + | pub fn build(
|
6127 + | self,
|
6128 + | ) -> Result<crate::output::OperationWithNestedStructureOutput, ConstraintViolation>
|
6129 + | {
|
6130 + | self.build_enforcing_required_and_enum_traits()
|
6131 + | }
|
6132 + | fn build_enforcing_required_and_enum_traits(
|
6133 + | self,
|
6134 + | ) -> Result<crate::output::OperationWithNestedStructureOutput, ConstraintViolation>
|
6135 + | {
|
6136 + | Ok(crate::output::OperationWithNestedStructureOutput {
|
6137 + | dialog: self.dialog.ok_or(ConstraintViolation::MissingDialog)?,
|
6138 + | dialog_list: self.dialog_list.unwrap_or_else(
|
6139 + | #[allow(clippy::redundant_closure)]
|
6140 + | || ::std::vec::Vec::new(),
|
6141 + | ),
|
6142 + | dialog_map: self.dialog_map.unwrap_or_else(
|
6143 + | #[allow(clippy::redundant_closure)]
|
6144 + | || ::std::collections::HashMap::new(),
|
6145 + | ),
|
6146 + | })
|
6147 + | }
|
6148 + | }
|
6149 + | }
|
6150 + | /// See [`OperationWithDefaultsOutput`](crate::output::OperationWithDefaultsOutput).
|
6151 + | ///
|
6152 + | pub mod operation_with_defaults_output {
|
6153 + |
|
6154 + | impl ::std::convert::From<Builder> for crate::output::OperationWithDefaultsOutput {
|
6155 + | fn from(builder: Builder) -> Self {
|
6156 + | builder.build()
|
6157 + | }
|
6158 + | }
|
6159 + | /// A builder for [`OperationWithDefaultsOutput`](crate::output::OperationWithDefaultsOutput).
|
6160 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6161 + | pub struct Builder {
|
6162 + | pub(crate) default_string: ::std::option::Option<::std::string::String>,
|
6163 + | pub(crate) default_boolean: ::std::option::Option<bool>,
|
6164 + | pub(crate) default_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
6165 + | pub(crate) default_document_map:
|
6166 + | ::std::option::Option<::aws_smithy_http_server_python::types::Document>,
|
6167 + | pub(crate) default_document_string:
|
6168 + | ::std::option::Option<::aws_smithy_http_server_python::types::Document>,
|
6169 + | pub(crate) default_document_boolean:
|
6170 + | ::std::option::Option<::aws_smithy_http_server_python::types::Document>,
|
6171 + | pub(crate) default_document_list:
|
6172 + | ::std::option::Option<::aws_smithy_http_server_python::types::Document>,
|
6173 + | pub(crate) default_null_document:
|
6174 + | ::std::option::Option<::aws_smithy_http_server_python::types::Document>,
|
6175 + | pub(crate) default_timestamp:
|
6176 + | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
6177 + | pub(crate) default_blob:
|
6178 + | ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
6179 + | pub(crate) default_byte: ::std::option::Option<i8>,
|
6180 + | pub(crate) default_short: ::std::option::Option<i16>,
|
6181 + | pub(crate) default_integer: ::std::option::Option<i32>,
|
6182 + | pub(crate) default_long: ::std::option::Option<i64>,
|
6183 + | pub(crate) default_float: ::std::option::Option<f32>,
|
6184 + | pub(crate) default_double: ::std::option::Option<f64>,
|
6185 + | pub(crate) default_map: ::std::option::Option<
|
6186 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
6187 + | >,
|
6188 + | pub(crate) default_enum: ::std::option::Option<crate::model::TestEnum>,
|
6189 + | pub(crate) default_int_enum: ::std::option::Option<i32>,
|
6190 + | pub(crate) empty_string: ::std::option::Option<::std::string::String>,
|
6191 + | pub(crate) false_boolean: ::std::option::Option<bool>,
|
6192 + | pub(crate) empty_blob: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
6193 + | pub(crate) zero_byte: ::std::option::Option<i8>,
|
6194 + | pub(crate) zero_short: ::std::option::Option<i16>,
|
6195 + | pub(crate) zero_integer: ::std::option::Option<i32>,
|
6196 + | pub(crate) zero_long: ::std::option::Option<i64>,
|
6197 + | pub(crate) zero_float: ::std::option::Option<f32>,
|
6198 + | pub(crate) zero_double: ::std::option::Option<f64>,
|
6199 + | }
|
6200 + | impl Builder {
|
6201 + | #[allow(missing_docs)] // documentation missing in model
|
6202 + | pub fn default_string(mut self, input: ::std::string::String) -> Self {
|
6203 + | self.default_string = Some(input);
|
6204 + | self
|
6205 + | }
|
6206 + | #[allow(missing_docs)] // documentation missing in model
|
6207 + | pub fn default_boolean(mut self, input: bool) -> Self {
|
6208 + | self.default_boolean = Some(input);
|
6209 + | self
|
6210 + | }
|
6211 + | #[allow(missing_docs)] // documentation missing in model
|
6212 + | pub fn default_list(mut self, input: ::std::vec::Vec<::std::string::String>) -> Self {
|
6213 + | self.default_list = Some(input);
|
6214 + | self
|
6215 + | }
|
6216 + | #[allow(missing_docs)] // documentation missing in model
|
6217 + | pub fn default_document_map(
|
6218 + | mut self,
|
6219 + | input: ::aws_smithy_http_server_python::types::Document,
|
6220 + | ) -> Self {
|
6221 + | self.default_document_map = Some(input);
|
6222 + | self
|
6223 + | }
|
6224 + | #[allow(missing_docs)] // documentation missing in model
|
6225 + | pub fn default_document_string(
|
6226 + | mut self,
|
6227 + | input: ::aws_smithy_http_server_python::types::Document,
|
6228 + | ) -> Self {
|
6229 + | self.default_document_string = Some(input);
|
6230 + | self
|
6231 + | }
|
6232 + | #[allow(missing_docs)] // documentation missing in model
|
6233 + | pub fn default_document_boolean(
|
6234 + | mut self,
|
6235 + | input: ::aws_smithy_http_server_python::types::Document,
|
6236 + | ) -> Self {
|
6237 + | self.default_document_boolean = Some(input);
|
6238 + | self
|
6239 + | }
|
6240 + | #[allow(missing_docs)] // documentation missing in model
|
6241 + | pub fn default_document_list(
|
6242 + | mut self,
|
6243 + | input: ::aws_smithy_http_server_python::types::Document,
|
6244 + | ) -> Self {
|
6245 + | self.default_document_list = Some(input);
|
6246 + | self
|
6247 + | }
|
6248 + | #[allow(missing_docs)] // documentation missing in model
|
6249 + | pub fn default_null_document(
|
6250 + | mut self,
|
6251 + | input: ::std::option::Option<::aws_smithy_http_server_python::types::Document>,
|
6252 + | ) -> Self {
|
6253 + | self.default_null_document = input;
|
6254 + | self
|
6255 + | }
|
6256 + | #[allow(missing_docs)] // documentation missing in model
|
6257 + | pub fn default_timestamp(
|
6258 + | mut self,
|
6259 + | input: ::aws_smithy_http_server_python::types::DateTime,
|
6260 + | ) -> Self {
|
6261 + | self.default_timestamp = Some(input);
|
6262 + | self
|
6263 + | }
|
6264 + | #[allow(missing_docs)] // documentation missing in model
|
6265 + | pub fn default_blob(mut self, input: ::aws_smithy_http_server_python::types::Blob) -> Self {
|
6266 + | self.default_blob = Some(input);
|
6267 + | self
|
6268 + | }
|
6269 + | #[allow(missing_docs)] // documentation missing in model
|
6270 + | pub fn default_byte(mut self, input: i8) -> Self {
|
6271 + | self.default_byte = Some(input);
|
6272 + | self
|
6273 + | }
|
6274 + | #[allow(missing_docs)] // documentation missing in model
|
6275 + | pub fn default_short(mut self, input: i16) -> Self {
|
6276 + | self.default_short = Some(input);
|
6277 + | self
|
6278 + | }
|
6279 + | #[allow(missing_docs)] // documentation missing in model
|
6280 + | pub fn default_integer(mut self, input: i32) -> Self {
|
6281 + | self.default_integer = Some(input);
|
6282 + | self
|
6283 + | }
|
6284 + | #[allow(missing_docs)] // documentation missing in model
|
6285 + | pub fn default_long(mut self, input: i64) -> Self {
|
6286 + | self.default_long = Some(input);
|
6287 + | self
|
6288 + | }
|
6289 + | #[allow(missing_docs)] // documentation missing in model
|
6290 + | pub fn default_float(mut self, input: f32) -> Self {
|
6291 + | self.default_float = Some(input);
|
6292 + | self
|
6293 + | }
|
6294 + | #[allow(missing_docs)] // documentation missing in model
|
6295 + | pub fn default_double(mut self, input: f64) -> Self {
|
6296 + | self.default_double = Some(input);
|
6297 + | self
|
6298 + | }
|
6299 + | #[allow(missing_docs)] // documentation missing in model
|
6300 + | pub fn default_map(
|
6301 + | mut self,
|
6302 + | input: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
6303 + | ) -> Self {
|
6304 + | self.default_map = Some(input);
|
6305 + | self
|
6306 + | }
|
6307 + | #[allow(missing_docs)] // documentation missing in model
|
6308 + | pub fn default_enum(mut self, input: crate::model::TestEnum) -> Self {
|
6309 + | self.default_enum = Some(input);
|
6310 + | self
|
6311 + | }
|
6312 + | #[allow(missing_docs)] // documentation missing in model
|
6313 + | pub fn default_int_enum(mut self, input: i32) -> Self {
|
6314 + | self.default_int_enum = Some(input);
|
6315 + | self
|
6316 + | }
|
6317 + | #[allow(missing_docs)] // documentation missing in model
|
6318 + | pub fn empty_string(mut self, input: ::std::string::String) -> Self {
|
6319 + | self.empty_string = Some(input);
|
6320 + | self
|
6321 + | }
|
6322 + | #[allow(missing_docs)] // documentation missing in model
|
6323 + | pub fn false_boolean(mut self, input: bool) -> Self {
|
6324 + | self.false_boolean = Some(input);
|
6325 + | self
|
6326 + | }
|
6327 + | #[allow(missing_docs)] // documentation missing in model
|
6328 + | pub fn empty_blob(mut self, input: ::aws_smithy_http_server_python::types::Blob) -> Self {
|
6329 + | self.empty_blob = Some(input);
|
6330 + | self
|
6331 + | }
|
6332 + | #[allow(missing_docs)] // documentation missing in model
|
6333 + | pub fn zero_byte(mut self, input: i8) -> Self {
|
6334 + | self.zero_byte = Some(input);
|
6335 + | self
|
6336 + | }
|
6337 + | #[allow(missing_docs)] // documentation missing in model
|
6338 + | pub fn zero_short(mut self, input: i16) -> Self {
|
6339 + | self.zero_short = Some(input);
|
6340 + | self
|
6341 + | }
|
6342 + | #[allow(missing_docs)] // documentation missing in model
|
6343 + | pub fn zero_integer(mut self, input: i32) -> Self {
|
6344 + | self.zero_integer = Some(input);
|
6345 + | self
|
6346 + | }
|
6347 + | #[allow(missing_docs)] // documentation missing in model
|
6348 + | pub fn zero_long(mut self, input: i64) -> Self {
|
6349 + | self.zero_long = Some(input);
|
6350 + | self
|
6351 + | }
|
6352 + | #[allow(missing_docs)] // documentation missing in model
|
6353 + | pub fn zero_float(mut self, input: f32) -> Self {
|
6354 + | self.zero_float = Some(input);
|
6355 + | self
|
6356 + | }
|
6357 + | #[allow(missing_docs)] // documentation missing in model
|
6358 + | pub fn zero_double(mut self, input: f64) -> Self {
|
6359 + | self.zero_double = Some(input);
|
6360 + | self
|
6361 + | }
|
6362 + | /// Consumes the builder and constructs a [`OperationWithDefaultsOutput`](crate::output::OperationWithDefaultsOutput).
|
6363 + | pub fn build(self) -> crate::output::OperationWithDefaultsOutput {
|
6364 + | self.build_enforcing_required_and_enum_traits()
|
6365 + | }
|
6366 + | fn build_enforcing_required_and_enum_traits(
|
6367 + | self,
|
6368 + | ) -> crate::output::OperationWithDefaultsOutput {
|
6369 + | crate::output::OperationWithDefaultsOutput {
|
6370 + | default_string: self.default_string.unwrap_or_else(
|
6371 + | #[allow(clippy::redundant_closure)]
|
6372 + | || String::from("hi"),
|
6373 + | ),
|
6374 + | default_boolean: self.default_boolean.unwrap_or(true),
|
6375 + | default_list: self.default_list.unwrap_or_else(
|
6376 + | #[allow(clippy::redundant_closure)]
|
6377 + | || ::std::vec::Vec::new(),
|
6378 + | ),
|
6379 + | default_document_map: self.default_document_map.unwrap_or_else(
|
6380 + | #[allow(clippy::redundant_closure)]
|
6381 + | || {
|
6382 + | ::aws_smithy_types::Document::Object(::std::collections::HashMap::new())
|
6383 + | .into()
|
6384 + | },
|
6385 + | ),
|
6386 + | default_document_string: self.default_document_string.unwrap_or_else(
|
6387 + | #[allow(clippy::redundant_closure)]
|
6388 + | || {
|
6389 + | ::aws_smithy_types::Document::String(::std::string::String::from("hi"))
|
6390 + | .into()
|
6391 + | },
|
6392 + | ),
|
6393 + | default_document_boolean: self
|
6394 + | .default_document_boolean
|
6395 + | .unwrap_or(::aws_smithy_types::Document::Bool(true).into()),
|
6396 + | default_document_list: self.default_document_list.unwrap_or_else(
|
6397 + | #[allow(clippy::redundant_closure)]
|
6398 + | || ::aws_smithy_types::Document::Array(::std::vec::Vec::new()).into(),
|
6399 + | ),
|
6400 + | default_null_document: self.default_null_document,
|
6401 + | default_timestamp: self.default_timestamp.unwrap_or_else(
|
6402 + | #[allow(clippy::redundant_closure)]
|
6403 + | || ::aws_smithy_types::DateTime::from_fractional_secs(0, 0_f64).into(),
|
6404 + | ),
|
6405 + | default_blob: self.default_blob.unwrap_or_else(
|
6406 + | #[allow(clippy::redundant_closure)]
|
6407 + | || ::aws_smithy_types::Blob::new("abc").into(),
|
6408 + | ),
|
6409 + | default_byte: self.default_byte.unwrap_or(1i8),
|
6410 + | default_short: self.default_short.unwrap_or(1i16),
|
6411 + | default_integer: self.default_integer.unwrap_or(10i32),
|
6412 + | default_long: self.default_long.unwrap_or(100i64),
|
6413 + | default_float: self.default_float.unwrap_or(1.0f32),
|
6414 + | default_double: self.default_double.unwrap_or(1.0f64),
|
6415 + | default_map: self.default_map.unwrap_or_else(
|
6416 + | #[allow(clippy::redundant_closure)]
|
6417 + | || ::std::collections::HashMap::new(),
|
6418 + | ),
|
6419 + | default_enum: self.default_enum.unwrap_or(
|
6420 + | "FOO"
|
6421 + | .parse::<crate::model::TestEnum>()
|
6422 + | .expect("static value validated to member"),
|
6423 + | ),
|
6424 + | default_int_enum: self.default_int_enum.unwrap_or(1i32),
|
6425 + | empty_string: self.empty_string.unwrap_or_else(
|
6426 + | #[allow(clippy::redundant_closure)]
|
6427 + | || String::from(""),
|
6428 + | ),
|
6429 + | false_boolean: self.false_boolean.unwrap_or(false),
|
6430 + | empty_blob: self.empty_blob.unwrap_or_else(
|
6431 + | #[allow(clippy::redundant_closure)]
|
6432 + | || ::aws_smithy_types::Blob::new("").into(),
|
6433 + | ),
|
6434 + | zero_byte: self.zero_byte.unwrap_or(0i8),
|
6435 + | zero_short: self.zero_short.unwrap_or(0i16),
|
6436 + | zero_integer: self.zero_integer.unwrap_or(0i32),
|
6437 + | zero_long: self.zero_long.unwrap_or(0i64),
|
6438 + | zero_float: self.zero_float.unwrap_or(0.0f32),
|
6439 + | zero_double: self.zero_double.unwrap_or(0.0f64),
|
6440 + | }
|
6441 + | }
|
6442 + | }
|
6443 + | }
|
6444 + | /// See [`ContentTypeParametersOutput`](crate::output::ContentTypeParametersOutput).
|
6445 + | ///
|
6446 + | pub mod content_type_parameters_output {
|
6447 + |
|
6448 + | impl ::std::convert::From<Builder> for crate::output::ContentTypeParametersOutput {
|
6449 + | fn from(builder: Builder) -> Self {
|
6450 + | builder.build()
|
6451 + | }
|
6452 + | }
|
6453 + | /// A builder for [`ContentTypeParametersOutput`](crate::output::ContentTypeParametersOutput).
|
6454 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6455 + | pub struct Builder {}
|
6456 + | impl Builder {
|
6457 + | /// Consumes the builder and constructs a [`ContentTypeParametersOutput`](crate::output::ContentTypeParametersOutput).
|
6458 + | pub fn build(self) -> crate::output::ContentTypeParametersOutput {
|
6459 + | self.build_enforcing_required_and_enum_traits()
|
6460 + | }
|
6461 + | fn build_enforcing_required_and_enum_traits(
|
6462 + | self,
|
6463 + | ) -> crate::output::ContentTypeParametersOutput {
|
6464 + | crate::output::ContentTypeParametersOutput {}
|
6465 + | }
|
6466 + | }
|
6467 + | }
|
5532 6468 | /// See [`PutWithContentEncodingOutput`](crate::output::PutWithContentEncodingOutput).
|
5533 6469 | ///
|
5534 6470 | pub mod put_with_content_encoding_output {
|
5535 6471 |
|
5536 6472 | impl ::std::convert::From<Builder> for crate::output::PutWithContentEncodingOutput {
|
5537 6473 | fn from(builder: Builder) -> Self {
|
5538 6474 | builder.build()
|
5539 6475 | }
|
5540 6476 | }
|
5541 6477 | /// A builder for [`PutWithContentEncodingOutput`](crate::output::PutWithContentEncodingOutput).
|