1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 2 | #[::pyo3::pyclass]
|
3 + | /// :param list typing.Optional\[typing.List\[typing.List\[typing.List\[typing.Dict\[str, misc.model.EmptyStructure\]\]\]\]\]:
|
3 4 | /// :rtype None:
|
4 5 | #[allow(missing_docs)] // documentation missing in model
|
5 - | #[derive(
|
6 - | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
7 - | )]
|
8 - | pub struct ResponseCodeDefaultOperationInput {}
|
9 - | #[allow(clippy::new_without_default)]
|
10 - | #[allow(clippy::too_many_arguments)]
|
11 - | #[::pyo3::pymethods]
|
12 - | impl ResponseCodeDefaultOperationInput {
|
13 - | #[new]
|
14 - | pub fn new() -> Self {
|
15 - | Self {}
|
16 - | }
|
17 - | fn __repr__(&self) -> String {
|
18 - | format!("{self:?}")
|
19 - | }
|
20 - | fn __str__(&self) -> String {
|
21 - | format!("{self:?}")
|
22 - | }
|
23 - | }
|
24 - | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<ResponseCodeDefaultOperationInput> {
|
25 - | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
26 - | ob.extract::<ResponseCodeDefaultOperationInput>()
|
27 - | .map(Box::new)
|
28 - | }
|
29 - | }
|
30 - |
|
31 - | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<ResponseCodeDefaultOperationInput> {
|
32 - | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
33 - | (*self).into_py(py)
|
34 - | }
|
35 - | }
|
36 - | impl crate::constrained::Constrained for crate::input::ResponseCodeDefaultOperationInput {
|
37 - | type Unconstrained = crate::input::response_code_default_operation_input_internal::Builder;
|
6 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
7 + | pub struct TypeComplexityOperationInput {
|
8 + | #[pyo3(get, set)]
|
9 + | /// :type typing.Optional\[typing.List\[typing.List\[typing.List\[typing.Dict\[str, misc.model.EmptyStructure\]\]\]\]\]:
|
10 + | #[allow(missing_docs)] // documentation missing in model
|
11 + | pub list: ::std::option::Option<
|
12 + | ::std::vec::Vec<
|
13 + | ::std::vec::Vec<
|
14 + | ::std::vec::Vec<
|
15 + | ::std::collections::HashMap<
|
16 + | ::std::string::String,
|
17 + | crate::model::EmptyStructure,
|
18 + | >,
|
19 + | >,
|
20 + | >,
|
21 + | >,
|
22 + | >,
|
38 23 | }
|
39 - | impl ResponseCodeDefaultOperationInput {
|
40 - | /// Creates a new builder-style object to manufacture [`ResponseCodeDefaultOperationInput`](crate::input::ResponseCodeDefaultOperationInput).
|
41 - | pub fn builder() -> crate::input::response_code_default_operation_input::Builder {
|
42 - | crate::input::response_code_default_operation_input::Builder::default()
|
24 + | impl TypeComplexityOperationInput {
|
25 + | #[allow(missing_docs)] // documentation missing in model
|
26 + | pub fn list(
|
27 + | &self,
|
28 + | ) -> ::std::option::Option<
|
29 + | &[::std::vec::Vec<
|
30 + | ::std::vec::Vec<
|
31 + | ::std::collections::HashMap<::std::string::String, crate::model::EmptyStructure>,
|
32 + | >,
|
33 + | >],
|
34 + | > {
|
35 + | self.list.as_deref()
|
43 36 | }
|
44 37 | }
|
45 - |
|
46 - | #[::pyo3::pyclass]
|
47 - | /// :rtype None:
|
48 - | #[allow(missing_docs)] // documentation missing in model
|
49 - | #[derive(
|
50 - | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
51 - | )]
|
52 - | pub struct ResponseCodeHttpFallbackOperationInput {}
|
53 38 | #[allow(clippy::new_without_default)]
|
54 39 | #[allow(clippy::too_many_arguments)]
|
55 40 | #[::pyo3::pymethods]
|
56 - | impl ResponseCodeHttpFallbackOperationInput {
|
41 + | impl TypeComplexityOperationInput {
|
57 42 | #[new]
|
58 - | pub fn new() -> Self {
|
59 - | Self {}
|
43 + | pub fn new(
|
44 + | list: ::std::option::Option<
|
45 + | ::std::vec::Vec<
|
46 + | ::std::vec::Vec<
|
47 + | ::std::vec::Vec<
|
48 + | ::std::collections::HashMap<
|
49 + | ::std::string::String,
|
50 + | crate::model::EmptyStructure,
|
51 + | >,
|
52 + | >,
|
53 + | >,
|
54 + | >,
|
55 + | >,
|
56 + | ) -> Self {
|
57 + | Self { list }
|
60 58 | }
|
61 59 | fn __repr__(&self) -> String {
|
62 60 | format!("{self:?}")
|
63 61 | }
|
64 62 | fn __str__(&self) -> String {
|
65 63 | format!("{self:?}")
|
66 64 | }
|
67 65 | }
|
68 - | impl<'source> ::pyo3::FromPyObject<'source>
|
69 - | for std::boxed::Box<ResponseCodeHttpFallbackOperationInput>
|
70 - | {
|
66 + | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<TypeComplexityOperationInput> {
|
71 67 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
72 - | ob.extract::<ResponseCodeHttpFallbackOperationInput>()
|
73 - | .map(Box::new)
|
68 + | ob.extract::<TypeComplexityOperationInput>().map(Box::new)
|
74 69 | }
|
75 70 | }
|
76 71 |
|
77 - | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<ResponseCodeHttpFallbackOperationInput> {
|
72 + | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<TypeComplexityOperationInput> {
|
78 73 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
79 74 | (*self).into_py(py)
|
80 75 | }
|
81 76 | }
|
82 - | impl crate::constrained::Constrained for crate::input::ResponseCodeHttpFallbackOperationInput {
|
83 - | type Unconstrained =
|
84 - | crate::input::response_code_http_fallback_operation_input_internal::Builder;
|
77 + | impl crate::constrained::Constrained for crate::input::TypeComplexityOperationInput {
|
78 + | type Unconstrained = crate::input::type_complexity_operation_input_internal::Builder;
|
85 79 | }
|
86 - | impl ResponseCodeHttpFallbackOperationInput {
|
87 - | /// Creates a new builder-style object to manufacture [`ResponseCodeHttpFallbackOperationInput`](crate::input::ResponseCodeHttpFallbackOperationInput).
|
88 - | pub fn builder() -> crate::input::response_code_http_fallback_operation_input::Builder {
|
89 - | crate::input::response_code_http_fallback_operation_input::Builder::default()
|
80 + | impl TypeComplexityOperationInput {
|
81 + | /// Creates a new builder-style object to manufacture [`TypeComplexityOperationInput`](crate::input::TypeComplexityOperationInput).
|
82 + | pub fn builder() -> crate::input::type_complexity_operation_input::Builder {
|
83 + | crate::input::type_complexity_operation_input::Builder::default()
|
90 84 | }
|
91 85 | }
|
92 86 |
|
93 87 | #[::pyo3::pyclass]
|
88 + | /// :param inner typing.Optional\[misc.model.InnerShape\]:
|
94 89 | /// :rtype None:
|
95 90 | #[allow(missing_docs)] // documentation missing in model
|
96 - | #[derive(
|
97 - | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
98 - | )]
|
99 - | pub struct ResponseCodeRequiredOperationInput {}
|
91 + | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
92 + | pub struct RequiredInnerShapeOperationInput {
|
93 + | #[pyo3(get, set)]
|
94 + | /// :type typing.Optional\[misc.model.InnerShape\]:
|
95 + | #[allow(missing_docs)] // documentation missing in model
|
96 + | pub inner: ::std::option::Option<crate::model::InnerShape>,
|
97 + | }
|
98 + | impl RequiredInnerShapeOperationInput {
|
99 + | #[allow(missing_docs)] // documentation missing in model
|
100 + | pub fn inner(&self) -> ::std::option::Option<&crate::model::InnerShape> {
|
101 + | self.inner.as_ref()
|
102 + | }
|
103 + | }
|
100 104 | #[allow(clippy::new_without_default)]
|
101 105 | #[allow(clippy::too_many_arguments)]
|
102 106 | #[::pyo3::pymethods]
|
103 - | impl ResponseCodeRequiredOperationInput {
|
107 + | impl RequiredInnerShapeOperationInput {
|
104 108 | #[new]
|
105 - | pub fn new() -> Self {
|
106 - | Self {}
|
109 + | pub fn new(inner: ::std::option::Option<crate::model::InnerShape>) -> Self {
|
110 + | Self { inner }
|
107 111 | }
|
108 112 | fn __repr__(&self) -> String {
|
109 113 | format!("{self:?}")
|
110 114 | }
|
111 115 | fn __str__(&self) -> String {
|
112 116 | format!("{self:?}")
|
113 117 | }
|
114 118 | }
|
115 - | impl<'source> ::pyo3::FromPyObject<'source>
|
116 - | for std::boxed::Box<ResponseCodeRequiredOperationInput>
|
117 - | {
|
119 + | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<RequiredInnerShapeOperationInput> {
|
118 120 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
119 - | ob.extract::<ResponseCodeRequiredOperationInput>()
|
121 + | ob.extract::<RequiredInnerShapeOperationInput>()
|
120 122 | .map(Box::new)
|
121 123 | }
|
122 124 | }
|
123 125 |
|
124 - | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<ResponseCodeRequiredOperationInput> {
|
126 + | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<RequiredInnerShapeOperationInput> {
|
125 127 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
126 128 | (*self).into_py(py)
|
127 129 | }
|
128 130 | }
|
129 - | impl crate::constrained::Constrained for crate::input::ResponseCodeRequiredOperationInput {
|
130 - | type Unconstrained = crate::input::response_code_required_operation_input_internal::Builder;
|
131 + | impl crate::constrained::Constrained for crate::input::RequiredInnerShapeOperationInput {
|
132 + | type Unconstrained = crate::input::required_inner_shape_operation_input_internal::Builder;
|
131 133 | }
|
132 - | impl ResponseCodeRequiredOperationInput {
|
133 - | /// Creates a new builder-style object to manufacture [`ResponseCodeRequiredOperationInput`](crate::input::ResponseCodeRequiredOperationInput).
|
134 - | pub fn builder() -> crate::input::response_code_required_operation_input::Builder {
|
135 - | crate::input::response_code_required_operation_input::Builder::default()
|
134 + | impl RequiredInnerShapeOperationInput {
|
135 + | /// Creates a new builder-style object to manufacture [`RequiredInnerShapeOperationInput`](crate::input::RequiredInnerShapeOperationInput).
|
136 + | pub fn builder() -> crate::input::required_inner_shape_operation_input::Builder {
|
137 + | crate::input::required_inner_shape_operation_input::Builder::default()
|
136 138 | }
|
137 139 | }
|
138 140 |
|
139 141 | #[::pyo3::pyclass]
|
140 142 | /// :param required_header_list typing.List\[str\]:
|
141 143 | /// :param required_header_set typing.List\[str\]:
|
142 144 | /// :rtype None:
|
143 145 | #[allow(missing_docs)] // documentation missing in model
|
144 146 | #[derive(
|
145 147 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
205 207 | type Unconstrained = crate::input::required_header_collection_operation_input_internal::Builder;
|
206 208 | }
|
207 209 | impl RequiredHeaderCollectionOperationInput {
|
208 210 | /// Creates a new builder-style object to manufacture [`RequiredHeaderCollectionOperationInput`](crate::input::RequiredHeaderCollectionOperationInput).
|
209 211 | pub fn builder() -> crate::input::required_header_collection_operation_input::Builder {
|
210 212 | crate::input::required_header_collection_operation_input::Builder::default()
|
211 213 | }
|
212 214 | }
|
213 215 |
|
214 216 | #[::pyo3::pyclass]
|
215 - | /// :param inner typing.Optional\[misc.model.InnerShape\]:
|
216 217 | /// :rtype None:
|
217 218 | #[allow(missing_docs)] // documentation missing in model
|
218 - | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
219 - | pub struct RequiredInnerShapeOperationInput {
|
220 - | #[pyo3(get, set)]
|
221 - | /// :type typing.Optional\[misc.model.InnerShape\]:
|
222 - | #[allow(missing_docs)] // documentation missing in model
|
223 - | pub inner: ::std::option::Option<crate::model::InnerShape>,
|
224 - | }
|
225 - | impl RequiredInnerShapeOperationInput {
|
226 - | #[allow(missing_docs)] // documentation missing in model
|
227 - | pub fn inner(&self) -> ::std::option::Option<&crate::model::InnerShape> {
|
228 - | self.inner.as_ref()
|
229 - | }
|
230 - | }
|
219 + | #[derive(
|
220 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
221 + | )]
|
222 + | pub struct ResponseCodeRequiredOperationInput {}
|
231 223 | #[allow(clippy::new_without_default)]
|
232 224 | #[allow(clippy::too_many_arguments)]
|
233 225 | #[::pyo3::pymethods]
|
234 - | impl RequiredInnerShapeOperationInput {
|
226 + | impl ResponseCodeRequiredOperationInput {
|
235 227 | #[new]
|
236 - | pub fn new(inner: ::std::option::Option<crate::model::InnerShape>) -> Self {
|
237 - | Self { inner }
|
228 + | pub fn new() -> Self {
|
229 + | Self {}
|
238 230 | }
|
239 231 | fn __repr__(&self) -> String {
|
240 232 | format!("{self:?}")
|
241 233 | }
|
242 234 | fn __str__(&self) -> String {
|
243 235 | format!("{self:?}")
|
244 236 | }
|
245 237 | }
|
246 - | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<RequiredInnerShapeOperationInput> {
|
238 + | impl<'source> ::pyo3::FromPyObject<'source>
|
239 + | for std::boxed::Box<ResponseCodeRequiredOperationInput>
|
240 + | {
|
247 241 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
248 - | ob.extract::<RequiredInnerShapeOperationInput>()
|
242 + | ob.extract::<ResponseCodeRequiredOperationInput>()
|
249 243 | .map(Box::new)
|
250 244 | }
|
251 245 | }
|
252 246 |
|
253 - | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<RequiredInnerShapeOperationInput> {
|
247 + | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<ResponseCodeRequiredOperationInput> {
|
254 248 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
255 249 | (*self).into_py(py)
|
256 250 | }
|
257 251 | }
|
258 - | impl crate::constrained::Constrained for crate::input::RequiredInnerShapeOperationInput {
|
259 - | type Unconstrained = crate::input::required_inner_shape_operation_input_internal::Builder;
|
252 + | impl crate::constrained::Constrained for crate::input::ResponseCodeRequiredOperationInput {
|
253 + | type Unconstrained = crate::input::response_code_required_operation_input_internal::Builder;
|
260 254 | }
|
261 - | impl RequiredInnerShapeOperationInput {
|
262 - | /// Creates a new builder-style object to manufacture [`RequiredInnerShapeOperationInput`](crate::input::RequiredInnerShapeOperationInput).
|
263 - | pub fn builder() -> crate::input::required_inner_shape_operation_input::Builder {
|
264 - | crate::input::required_inner_shape_operation_input::Builder::default()
|
255 + | impl ResponseCodeRequiredOperationInput {
|
256 + | /// Creates a new builder-style object to manufacture [`ResponseCodeRequiredOperationInput`](crate::input::ResponseCodeRequiredOperationInput).
|
257 + | pub fn builder() -> crate::input::response_code_required_operation_input::Builder {
|
258 + | crate::input::response_code_required_operation_input::Builder::default()
|
265 259 | }
|
266 260 | }
|
267 261 |
|
268 262 | #[::pyo3::pyclass]
|
269 - | /// :param list typing.Optional\[typing.List\[typing.List\[typing.List\[typing.Dict\[str, misc.model.EmptyStructure\]\]\]\]\]:
|
270 263 | /// :rtype None:
|
271 264 | #[allow(missing_docs)] // documentation missing in model
|
272 - | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
273 - | pub struct TypeComplexityOperationInput {
|
274 - | #[pyo3(get, set)]
|
275 - | /// :type typing.Optional\[typing.List\[typing.List\[typing.List\[typing.Dict\[str, misc.model.EmptyStructure\]\]\]\]\]:
|
276 - | #[allow(missing_docs)] // documentation missing in model
|
277 - | pub list: ::std::option::Option<
|
278 - | ::std::vec::Vec<
|
279 - | ::std::vec::Vec<
|
280 - | ::std::vec::Vec<
|
281 - | ::std::collections::HashMap<
|
282 - | ::std::string::String,
|
283 - | crate::model::EmptyStructure,
|
284 - | >,
|
285 - | >,
|
286 - | >,
|
287 - | >,
|
288 - | >,
|
289 - | }
|
290 - | impl TypeComplexityOperationInput {
|
291 - | #[allow(missing_docs)] // documentation missing in model
|
292 - | pub fn list(
|
293 - | &self,
|
294 - | ) -> ::std::option::Option<
|
295 - | &[::std::vec::Vec<
|
296 - | ::std::vec::Vec<
|
297 - | ::std::collections::HashMap<::std::string::String, crate::model::EmptyStructure>,
|
298 - | >,
|
299 - | >],
|
300 - | > {
|
301 - | self.list.as_deref()
|
302 - | }
|
303 - | }
|
265 + | #[derive(
|
266 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
267 + | )]
|
268 + | pub struct ResponseCodeHttpFallbackOperationInput {}
|
304 269 | #[allow(clippy::new_without_default)]
|
305 270 | #[allow(clippy::too_many_arguments)]
|
306 271 | #[::pyo3::pymethods]
|
307 - | impl TypeComplexityOperationInput {
|
272 + | impl ResponseCodeHttpFallbackOperationInput {
|
308 273 | #[new]
|
309 - | pub fn new(
|
310 - | list: ::std::option::Option<
|
311 - | ::std::vec::Vec<
|
312 - | ::std::vec::Vec<
|
313 - | ::std::vec::Vec<
|
314 - | ::std::collections::HashMap<
|
315 - | ::std::string::String,
|
316 - | crate::model::EmptyStructure,
|
317 - | >,
|
318 - | >,
|
319 - | >,
|
320 - | >,
|
321 - | >,
|
322 - | ) -> Self {
|
323 - | Self { list }
|
274 + | pub fn new() -> Self {
|
275 + | Self {}
|
324 276 | }
|
325 277 | fn __repr__(&self) -> String {
|
326 278 | format!("{self:?}")
|
327 279 | }
|
328 280 | fn __str__(&self) -> String {
|
329 281 | format!("{self:?}")
|
330 282 | }
|
331 283 | }
|
332 - | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<TypeComplexityOperationInput> {
|
284 + | impl<'source> ::pyo3::FromPyObject<'source>
|
285 + | for std::boxed::Box<ResponseCodeHttpFallbackOperationInput>
|
286 + | {
|
333 287 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
334 - | ob.extract::<TypeComplexityOperationInput>().map(Box::new)
|
288 + | ob.extract::<ResponseCodeHttpFallbackOperationInput>()
|
289 + | .map(Box::new)
|
335 290 | }
|
336 291 | }
|
337 292 |
|
338 - | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<TypeComplexityOperationInput> {
|
293 + | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<ResponseCodeHttpFallbackOperationInput> {
|
339 294 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
340 295 | (*self).into_py(py)
|
341 296 | }
|
342 297 | }
|
343 - | impl crate::constrained::Constrained for crate::input::TypeComplexityOperationInput {
|
344 - | type Unconstrained = crate::input::type_complexity_operation_input_internal::Builder;
|
298 + | impl crate::constrained::Constrained for crate::input::ResponseCodeHttpFallbackOperationInput {
|
299 + | type Unconstrained =
|
300 + | crate::input::response_code_http_fallback_operation_input_internal::Builder;
|
345 301 | }
|
346 - | impl TypeComplexityOperationInput {
|
347 - | /// Creates a new builder-style object to manufacture [`TypeComplexityOperationInput`](crate::input::TypeComplexityOperationInput).
|
348 - | pub fn builder() -> crate::input::type_complexity_operation_input::Builder {
|
349 - | crate::input::type_complexity_operation_input::Builder::default()
|
302 + | impl ResponseCodeHttpFallbackOperationInput {
|
303 + | /// Creates a new builder-style object to manufacture [`ResponseCodeHttpFallbackOperationInput`](crate::input::ResponseCodeHttpFallbackOperationInput).
|
304 + | pub fn builder() -> crate::input::response_code_http_fallback_operation_input::Builder {
|
305 + | crate::input::response_code_http_fallback_operation_input::Builder::default()
|
350 306 | }
|
351 307 | }
|
352 - | /// See [`ResponseCodeDefaultOperationInput`](crate::input::ResponseCodeDefaultOperationInput).
|
353 - | pub(crate) mod response_code_default_operation_input_internal {
|
354 308 |
|
355 - | impl ::std::convert::From<Builder> for crate::input::ResponseCodeDefaultOperationInput {
|
356 - | fn from(builder: Builder) -> Self {
|
357 - | builder.build()
|
358 - | }
|
359 - | }
|
360 - | /// A builder for [`ResponseCodeDefaultOperationInput`](crate::input::ResponseCodeDefaultOperationInput).
|
361 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
362 - | pub(crate) struct Builder {}
|
363 - | impl Builder {
|
364 - | /// Consumes the builder and constructs a [`ResponseCodeDefaultOperationInput`](crate::input::ResponseCodeDefaultOperationInput).
|
365 - | pub fn build(self) -> crate::input::ResponseCodeDefaultOperationInput {
|
366 - | self.build_enforcing_all_constraints()
|
367 - | }
|
368 - | fn build_enforcing_all_constraints(
|
369 - | self,
|
370 - | ) -> crate::input::ResponseCodeDefaultOperationInput {
|
371 - | crate::input::ResponseCodeDefaultOperationInput {}
|
372 - | }
|
309 + | #[::pyo3::pyclass]
|
310 + | /// :rtype None:
|
311 + | #[allow(missing_docs)] // documentation missing in model
|
312 + | #[derive(
|
313 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
314 + | )]
|
315 + | pub struct ResponseCodeDefaultOperationInput {}
|
316 + | #[allow(clippy::new_without_default)]
|
317 + | #[allow(clippy::too_many_arguments)]
|
318 + | #[::pyo3::pymethods]
|
319 + | impl ResponseCodeDefaultOperationInput {
|
320 + | #[new]
|
321 + | pub fn new() -> Self {
|
322 + | Self {}
|
373 323 | }
|
374 - | }
|
375 - | /// See [`ResponseCodeDefaultOperationInput`](crate::input::ResponseCodeDefaultOperationInput).
|
376 - | pub mod response_code_default_operation_input {
|
377 - |
|
378 - | impl ::std::convert::From<Builder> for crate::input::ResponseCodeDefaultOperationInput {
|
379 - | fn from(builder: Builder) -> Self {
|
380 - | builder.build()
|
381 - | }
|
324 + | fn __repr__(&self) -> String {
|
325 + | format!("{self:?}")
|
382 326 | }
|
383 - | /// A builder for [`ResponseCodeDefaultOperationInput`](crate::input::ResponseCodeDefaultOperationInput).
|
384 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
385 - | pub struct Builder {}
|
386 - | impl Builder {
|
387 - | /// Consumes the builder and constructs a [`ResponseCodeDefaultOperationInput`](crate::input::ResponseCodeDefaultOperationInput).
|
388 - | pub fn build(self) -> crate::input::ResponseCodeDefaultOperationInput {
|
389 - | self.build_enforcing_required_and_enum_traits()
|
390 - | }
|
391 - | fn build_enforcing_required_and_enum_traits(
|
392 - | self,
|
393 - | ) -> crate::input::ResponseCodeDefaultOperationInput {
|
394 - | crate::input::ResponseCodeDefaultOperationInput {}
|
395 - | }
|
327 + | fn __str__(&self) -> String {
|
328 + | format!("{self:?}")
|
396 329 | }
|
397 330 | }
|
398 - | /// See [`ResponseCodeHttpFallbackOperationInput`](crate::input::ResponseCodeHttpFallbackOperationInput).
|
399 - | pub(crate) mod response_code_http_fallback_operation_input_internal {
|
400 - |
|
401 - | impl ::std::convert::From<Builder> for crate::input::ResponseCodeHttpFallbackOperationInput {
|
402 - | fn from(builder: Builder) -> Self {
|
403 - | builder.build()
|
404 - | }
|
405 - | }
|
406 - | /// A builder for [`ResponseCodeHttpFallbackOperationInput`](crate::input::ResponseCodeHttpFallbackOperationInput).
|
407 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
408 - | pub(crate) struct Builder {}
|
409 - | impl Builder {
|
410 - | /// Consumes the builder and constructs a [`ResponseCodeHttpFallbackOperationInput`](crate::input::ResponseCodeHttpFallbackOperationInput).
|
411 - | pub fn build(self) -> crate::input::ResponseCodeHttpFallbackOperationInput {
|
412 - | self.build_enforcing_all_constraints()
|
413 - | }
|
414 - | fn build_enforcing_all_constraints(
|
415 - | self,
|
416 - | ) -> crate::input::ResponseCodeHttpFallbackOperationInput {
|
417 - | crate::input::ResponseCodeHttpFallbackOperationInput {}
|
418 - | }
|
331 + | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<ResponseCodeDefaultOperationInput> {
|
332 + | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
333 + | ob.extract::<ResponseCodeDefaultOperationInput>()
|
334 + | .map(Box::new)
|
419 335 | }
|
420 336 | }
|
421 - | /// See [`ResponseCodeHttpFallbackOperationInput`](crate::input::ResponseCodeHttpFallbackOperationInput).
|
422 - | pub mod response_code_http_fallback_operation_input {
|
423 337 |
|
424 - | impl ::std::convert::From<Builder> for crate::input::ResponseCodeHttpFallbackOperationInput {
|
425 - | fn from(builder: Builder) -> Self {
|
426 - | builder.build()
|
427 - | }
|
338 + | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<ResponseCodeDefaultOperationInput> {
|
339 + | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
340 + | (*self).into_py(py)
|
428 341 | }
|
429 - | /// A builder for [`ResponseCodeHttpFallbackOperationInput`](crate::input::ResponseCodeHttpFallbackOperationInput).
|
430 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
431 - | pub struct Builder {}
|
432 - | impl Builder {
|
433 - | /// Consumes the builder and constructs a [`ResponseCodeHttpFallbackOperationInput`](crate::input::ResponseCodeHttpFallbackOperationInput).
|
434 - | pub fn build(self) -> crate::input::ResponseCodeHttpFallbackOperationInput {
|
435 - | self.build_enforcing_required_and_enum_traits()
|
436 - | }
|
437 - | fn build_enforcing_required_and_enum_traits(
|
438 - | self,
|
439 - | ) -> crate::input::ResponseCodeHttpFallbackOperationInput {
|
440 - | crate::input::ResponseCodeHttpFallbackOperationInput {}
|
441 - | }
|
342 + | }
|
343 + | impl crate::constrained::Constrained for crate::input::ResponseCodeDefaultOperationInput {
|
344 + | type Unconstrained = crate::input::response_code_default_operation_input_internal::Builder;
|
345 + | }
|
346 + | impl ResponseCodeDefaultOperationInput {
|
347 + | /// Creates a new builder-style object to manufacture [`ResponseCodeDefaultOperationInput`](crate::input::ResponseCodeDefaultOperationInput).
|
348 + | pub fn builder() -> crate::input::response_code_default_operation_input::Builder {
|
349 + | crate::input::response_code_default_operation_input::Builder::default()
|
442 350 | }
|
443 351 | }
|
444 - | /// See [`ResponseCodeRequiredOperationInput`](crate::input::ResponseCodeRequiredOperationInput).
|
445 - | pub(crate) mod response_code_required_operation_input_internal {
|
352 + | /// See [`TypeComplexityOperationInput`](crate::input::TypeComplexityOperationInput).
|
353 + | pub(crate) mod type_complexity_operation_input_internal {
|
446 354 |
|
447 - | impl ::std::convert::From<Builder> for crate::input::ResponseCodeRequiredOperationInput {
|
355 + | impl ::std::convert::From<Builder> for crate::input::TypeComplexityOperationInput {
|
448 356 | fn from(builder: Builder) -> Self {
|
449 357 | builder.build()
|
450 358 | }
|
451 359 | }
|
452 - | /// A builder for [`ResponseCodeRequiredOperationInput`](crate::input::ResponseCodeRequiredOperationInput).
|
360 + | /// A builder for [`TypeComplexityOperationInput`](crate::input::TypeComplexityOperationInput).
|
453 361 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
454 - | pub(crate) struct Builder {}
|
362 + | pub(crate) struct Builder {
|
363 + | pub(crate) list: ::std::option::Option<
|
364 + | ::std::vec::Vec<
|
365 + | ::std::vec::Vec<
|
366 + | ::std::vec::Vec<
|
367 + | ::std::collections::HashMap<
|
368 + | ::std::string::String,
|
369 + | crate::model::EmptyStructure,
|
370 + | >,
|
371 + | >,
|
372 + | >,
|
373 + | >,
|
374 + | >,
|
375 + | }
|
455 376 | impl Builder {
|
456 - | /// Consumes the builder and constructs a [`ResponseCodeRequiredOperationInput`](crate::input::ResponseCodeRequiredOperationInput).
|
457 - | pub fn build(self) -> crate::input::ResponseCodeRequiredOperationInput {
|
377 + | #[allow(missing_docs)] // documentation missing in model
|
378 + | pub(crate) fn set_list(
|
379 + | mut self,
|
380 + | input: Option<
|
381 + | impl ::std::convert::Into<
|
382 + | ::std::vec::Vec<
|
383 + | ::std::vec::Vec<
|
384 + | ::std::vec::Vec<
|
385 + | ::std::collections::HashMap<
|
386 + | ::std::string::String,
|
387 + | crate::model::EmptyStructure,
|
388 + | >,
|
389 + | >,
|
390 + | >,
|
391 + | >,
|
392 + | >,
|
393 + | >,
|
394 + | ) -> Self {
|
395 + | self.list = input.map(|v| v.into());
|
396 + | self
|
397 + | }
|
398 + | /// Consumes the builder and constructs a [`TypeComplexityOperationInput`](crate::input::TypeComplexityOperationInput).
|
399 + | pub fn build(self) -> crate::input::TypeComplexityOperationInput {
|
458 400 | self.build_enforcing_all_constraints()
|
459 401 | }
|
460 - | fn build_enforcing_all_constraints(
|
461 - | self,
|
462 - | ) -> crate::input::ResponseCodeRequiredOperationInput {
|
463 - | crate::input::ResponseCodeRequiredOperationInput {}
|
402 + | fn build_enforcing_all_constraints(self) -> crate::input::TypeComplexityOperationInput {
|
403 + | crate::input::TypeComplexityOperationInput { list: self.list }
|
464 404 | }
|
465 405 | }
|
466 406 | }
|
467 - | /// See [`ResponseCodeRequiredOperationInput`](crate::input::ResponseCodeRequiredOperationInput).
|
468 - | pub mod response_code_required_operation_input {
|
407 + | /// See [`TypeComplexityOperationInput`](crate::input::TypeComplexityOperationInput).
|
408 + | pub mod type_complexity_operation_input {
|
469 409 |
|
470 - | impl ::std::convert::From<Builder> for crate::input::ResponseCodeRequiredOperationInput {
|
410 + | impl ::std::convert::From<Builder> for crate::input::TypeComplexityOperationInput {
|
471 411 | fn from(builder: Builder) -> Self {
|
472 412 | builder.build()
|
473 413 | }
|
474 414 | }
|
475 - | /// A builder for [`ResponseCodeRequiredOperationInput`](crate::input::ResponseCodeRequiredOperationInput).
|
415 + | /// A builder for [`TypeComplexityOperationInput`](crate::input::TypeComplexityOperationInput).
|
476 416 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
477 - | pub struct Builder {}
|
417 + | pub struct Builder {
|
418 + | pub(crate) list: ::std::option::Option<
|
419 + | ::std::vec::Vec<
|
420 + | ::std::vec::Vec<
|
421 + | ::std::vec::Vec<
|
422 + | ::std::collections::HashMap<
|
423 + | ::std::string::String,
|
424 + | crate::model::EmptyStructure,
|
425 + | >,
|
426 + | >,
|
427 + | >,
|
428 + | >,
|
429 + | >,
|
430 + | }
|
478 431 | impl Builder {
|
479 - | /// Consumes the builder and constructs a [`ResponseCodeRequiredOperationInput`](crate::input::ResponseCodeRequiredOperationInput).
|
480 - | pub fn build(self) -> crate::input::ResponseCodeRequiredOperationInput {
|
432 + | #[allow(missing_docs)] // documentation missing in model
|
433 + | pub fn list(
|
434 + | mut self,
|
435 + | input: ::std::option::Option<
|
436 + | ::std::vec::Vec<
|
437 + | ::std::vec::Vec<
|
438 + | ::std::vec::Vec<
|
439 + | ::std::collections::HashMap<
|
440 + | ::std::string::String,
|
441 + | crate::model::EmptyStructure,
|
442 + | >,
|
443 + | >,
|
444 + | >,
|
445 + | >,
|
446 + | >,
|
447 + | ) -> Self {
|
448 + | self.list = input;
|
449 + | self
|
450 + | }
|
451 + | /// Consumes the builder and constructs a [`TypeComplexityOperationInput`](crate::input::TypeComplexityOperationInput).
|
452 + | pub fn build(self) -> crate::input::TypeComplexityOperationInput {
|
481 453 | self.build_enforcing_required_and_enum_traits()
|
482 454 | }
|
483 455 | fn build_enforcing_required_and_enum_traits(
|
484 456 | self,
|
485 - | ) -> crate::input::ResponseCodeRequiredOperationInput {
|
486 - | crate::input::ResponseCodeRequiredOperationInput {}
|
457 + | ) -> crate::input::TypeComplexityOperationInput {
|
458 + | crate::input::TypeComplexityOperationInput { list: self.list }
|
487 459 | }
|
488 460 | }
|
489 461 | }
|
490 - | /// See [`RequiredHeaderCollectionOperationInput`](crate::input::RequiredHeaderCollectionOperationInput).
|
491 - | pub(crate) mod required_header_collection_operation_input_internal {
|
462 + | /// See [`RequiredInnerShapeOperationInput`](crate::input::RequiredInnerShapeOperationInput).
|
463 + | pub(crate) mod required_inner_shape_operation_input_internal {
|
492 464 |
|
493 465 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
494 466 | /// Holds one variant for each of the ways the builder can fail.
|
495 467 | #[non_exhaustive]
|
496 468 | #[allow(clippy::enum_variant_names)]
|
497 469 | pub(crate) enum ConstraintViolation {
|
498 - | /// `required_header_list` was not provided but it is required when building `RequiredHeaderCollectionOperationInput`.
|
499 - | MissingRequiredHeaderList,
|
500 - | /// `required_header_set` was not provided but it is required when building `RequiredHeaderCollectionOperationInput`.
|
501 - | MissingRequiredHeaderSet,
|
502 - | /// Constraint violation occurred building member `required_header_set` when building `RequiredHeaderCollectionOperationInput`.
|
470 + | /// Constraint violation occurred building member `inner` when building `RequiredInnerShapeOperationInput`.
|
503 471 | #[doc(hidden)]
|
504 - | RequiredHeaderSet(crate::model::header_set_internal::ConstraintViolation),
|
472 + | Inner(crate::model::inner_shape_internal::ConstraintViolation),
|
473 + | }
|
474 + | impl ::std::fmt::Display for ConstraintViolation {
|
475 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
476 + | match self {
|
477 + | ConstraintViolation::Inner(_) => write!(f, "constraint violation occurred building member `inner` when building `RequiredInnerShapeOperationInput`"),
|
478 + | }
|
479 + | }
|
480 + | }
|
481 + | impl ::std::error::Error for ConstraintViolation {}
|
482 + | impl ConstraintViolation {
|
483 + | pub(crate) fn as_validation_exception_field(
|
484 + | self,
|
485 + | path: ::std::string::String,
|
486 + | ) -> crate::model::ValidationExceptionField {
|
487 + | match self {
|
488 + | ConstraintViolation::Inner(inner) => {
|
489 + | inner.as_validation_exception_field(path + "/inner")
|
490 + | }
|
491 + | }
|
492 + | }
|
493 + | }
|
494 + | impl ::std::convert::From<ConstraintViolation>
|
495 + | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
496 + | {
|
497 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
498 + | let first_validation_exception_field =
|
499 + | constraint_violation.as_validation_exception_field("".to_owned());
|
500 + | let validation_exception = crate::error::ValidationException {
|
501 + | message: format!(
|
502 + | "1 validation error detected. {}",
|
503 + | &first_validation_exception_field.message
|
504 + | ),
|
505 + | field_list: Some(vec![first_validation_exception_field]),
|
506 + | };
|
507 + | Self::ConstraintViolation(
|
508 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
509 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
510 + | )
|
511 + | }
|
512 + | }
|
513 + | impl ::std::convert::From<Builder>
|
514 + | for crate::constrained::MaybeConstrained<crate::input::RequiredInnerShapeOperationInput>
|
515 + | {
|
516 + | fn from(builder: Builder) -> Self {
|
517 + | Self::Unconstrained(builder)
|
518 + | }
|
519 + | }
|
520 + | impl ::std::convert::TryFrom<Builder> for crate::input::RequiredInnerShapeOperationInput {
|
521 + | type Error = ConstraintViolation;
|
522 + |
|
523 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
524 + | builder.build()
|
525 + | }
|
526 + | }
|
527 + | /// A builder for [`RequiredInnerShapeOperationInput`](crate::input::RequiredInnerShapeOperationInput).
|
528 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
529 + | pub(crate) struct Builder {
|
530 + | pub(crate) inner:
|
531 + | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::InnerShape>>,
|
532 + | }
|
533 + | impl Builder {
|
534 + | #[allow(missing_docs)] // documentation missing in model
|
535 + | pub(crate) fn set_inner(
|
536 + | mut self,
|
537 + | input: Option<
|
538 + | impl ::std::convert::Into<
|
539 + | crate::constrained::MaybeConstrained<crate::model::InnerShape>,
|
540 + | >,
|
541 + | >,
|
542 + | ) -> Self {
|
543 + | self.inner = input.map(|v| v.into());
|
544 + | self
|
545 + | }
|
546 + | /// Consumes the builder and constructs a [`RequiredInnerShapeOperationInput`](crate::input::RequiredInnerShapeOperationInput).
|
547 + | ///
|
548 + | /// The builder fails to construct a [`RequiredInnerShapeOperationInput`](crate::input::RequiredInnerShapeOperationInput) if a [`ConstraintViolation`] occurs.
|
549 + | ///
|
550 + | pub fn build(
|
551 + | self,
|
552 + | ) -> Result<crate::input::RequiredInnerShapeOperationInput, ConstraintViolation> {
|
553 + | self.build_enforcing_all_constraints()
|
554 + | }
|
555 + | fn build_enforcing_all_constraints(
|
556 + | self,
|
557 + | ) -> Result<crate::input::RequiredInnerShapeOperationInput, ConstraintViolation> {
|
558 + | Ok(crate::input::RequiredInnerShapeOperationInput {
|
559 + | inner: self
|
560 + | .inner
|
561 + | .map(|v| match v {
|
562 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
563 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
564 + | })
|
565 + | .map(|res| res.map_err(ConstraintViolation::Inner))
|
566 + | .transpose()?,
|
567 + | })
|
568 + | }
|
569 + | }
|
570 + | }
|
571 + | /// See [`RequiredInnerShapeOperationInput`](crate::input::RequiredInnerShapeOperationInput).
|
572 + | pub mod required_inner_shape_operation_input {
|
573 + |
|
574 + | impl ::std::convert::From<Builder> for crate::input::RequiredInnerShapeOperationInput {
|
575 + | fn from(builder: Builder) -> Self {
|
576 + | builder.build()
|
577 + | }
|
578 + | }
|
579 + | /// A builder for [`RequiredInnerShapeOperationInput`](crate::input::RequiredInnerShapeOperationInput).
|
580 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
581 + | pub struct Builder {
|
582 + | pub(crate) inner: ::std::option::Option<crate::model::InnerShape>,
|
583 + | }
|
584 + | impl Builder {
|
585 + | #[allow(missing_docs)] // documentation missing in model
|
586 + | pub fn inner(mut self, input: ::std::option::Option<crate::model::InnerShape>) -> Self {
|
587 + | self.inner = input;
|
588 + | self
|
589 + | }
|
590 + | /// Consumes the builder and constructs a [`RequiredInnerShapeOperationInput`](crate::input::RequiredInnerShapeOperationInput).
|
591 + | pub fn build(self) -> crate::input::RequiredInnerShapeOperationInput {
|
592 + | self.build_enforcing_required_and_enum_traits()
|
593 + | }
|
594 + | fn build_enforcing_required_and_enum_traits(
|
595 + | self,
|
596 + | ) -> crate::input::RequiredInnerShapeOperationInput {
|
597 + | crate::input::RequiredInnerShapeOperationInput { inner: self.inner }
|
598 + | }
|
599 + | }
|
600 + | }
|
601 + | /// See [`RequiredHeaderCollectionOperationInput`](crate::input::RequiredHeaderCollectionOperationInput).
|
602 + | pub(crate) mod required_header_collection_operation_input_internal {
|
603 + |
|
604 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
605 + | /// Holds one variant for each of the ways the builder can fail.
|
606 + | #[non_exhaustive]
|
607 + | #[allow(clippy::enum_variant_names)]
|
608 + | pub(crate) enum ConstraintViolation {
|
609 + | /// `required_header_list` was not provided but it is required when building `RequiredHeaderCollectionOperationInput`.
|
610 + | MissingRequiredHeaderList,
|
611 + | /// `required_header_set` was not provided but it is required when building `RequiredHeaderCollectionOperationInput`.
|
612 + | MissingRequiredHeaderSet,
|
613 + | /// Constraint violation occurred building member `required_header_set` when building `RequiredHeaderCollectionOperationInput`.
|
614 + | #[doc(hidden)]
|
615 + | RequiredHeaderSet(crate::model::header_set_internal::ConstraintViolation),
|
505 616 | }
|
506 617 | impl ::std::fmt::Display for ConstraintViolation {
|
507 618 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
508 619 | match self {
|
509 620 | ConstraintViolation::MissingRequiredHeaderList => write!(f, "`required_header_list` was not provided but it is required when building `RequiredHeaderCollectionOperationInput`"),
|
510 621 | ConstraintViolation::MissingRequiredHeaderSet => write!(f, "`required_header_set` was not provided but it is required when building `RequiredHeaderCollectionOperationInput`"),
|
511 622 | ConstraintViolation::RequiredHeaderSet(_) => write!(f, "constraint violation occurred building member `required_header_set` when building `RequiredHeaderCollectionOperationInput`"),
|
512 623 | }
|
513 624 | }
|
514 625 | }
|
697 808 | required_header_list: self
|
698 809 | .required_header_list
|
699 810 | .ok_or(ConstraintViolation::MissingRequiredHeaderList)?,
|
700 811 | required_header_set: self
|
701 812 | .required_header_set
|
702 813 | .ok_or(ConstraintViolation::MissingRequiredHeaderSet)?,
|
703 814 | })
|
704 815 | }
|
705 816 | }
|
706 817 | }
|
707 - | /// See [`RequiredInnerShapeOperationInput`](crate::input::RequiredInnerShapeOperationInput).
|
708 - | pub(crate) mod required_inner_shape_operation_input_internal {
|
818 + | /// See [`ResponseCodeRequiredOperationInput`](crate::input::ResponseCodeRequiredOperationInput).
|
819 + | pub(crate) mod response_code_required_operation_input_internal {
|
709 820 |
|
710 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
711 - | /// Holds one variant for each of the ways the builder can fail.
|
712 - | #[non_exhaustive]
|
713 - | #[allow(clippy::enum_variant_names)]
|
714 - | pub(crate) enum ConstraintViolation {
|
715 - | /// Constraint violation occurred building member `inner` when building `RequiredInnerShapeOperationInput`.
|
716 - | #[doc(hidden)]
|
717 - | Inner(crate::model::inner_shape_internal::ConstraintViolation),
|
718 - | }
|
719 - | impl ::std::fmt::Display for ConstraintViolation {
|
720 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
721 - | match self {
|
722 - | ConstraintViolation::Inner(_) => write!(f, "constraint violation occurred building member `inner` when building `RequiredInnerShapeOperationInput`"),
|
723 - | }
|
821 + | impl ::std::convert::From<Builder> for crate::input::ResponseCodeRequiredOperationInput {
|
822 + | fn from(builder: Builder) -> Self {
|
823 + | builder.build()
|
724 824 | }
|
725 825 | }
|
726 - | impl ::std::error::Error for ConstraintViolation {}
|
727 - | impl ConstraintViolation {
|
728 - | pub(crate) fn as_validation_exception_field(
|
826 + | /// A builder for [`ResponseCodeRequiredOperationInput`](crate::input::ResponseCodeRequiredOperationInput).
|
827 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
828 + | pub(crate) struct Builder {}
|
829 + | impl Builder {
|
830 + | /// Consumes the builder and constructs a [`ResponseCodeRequiredOperationInput`](crate::input::ResponseCodeRequiredOperationInput).
|
831 + | pub fn build(self) -> crate::input::ResponseCodeRequiredOperationInput {
|
832 + | self.build_enforcing_all_constraints()
|
833 + | }
|
834 + | fn build_enforcing_all_constraints(
|
729 835 | self,
|
730 - | path: ::std::string::String,
|
731 - | ) -> crate::model::ValidationExceptionField {
|
732 - | match self {
|
733 - | ConstraintViolation::Inner(inner) => {
|
734 - | inner.as_validation_exception_field(path + "/inner")
|
735 - | }
|
736 - | }
|
836 + | ) -> crate::input::ResponseCodeRequiredOperationInput {
|
837 + | crate::input::ResponseCodeRequiredOperationInput {}
|
737 838 | }
|
738 839 | }
|
739 - | impl ::std::convert::From<ConstraintViolation>
|
740 - | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
741 - | {
|
742 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
743 - | let first_validation_exception_field =
|
744 - | constraint_violation.as_validation_exception_field("".to_owned());
|
745 - | let validation_exception = crate::error::ValidationException {
|
746 - | message: format!(
|
747 - | "1 validation error detected. {}",
|
748 - | &first_validation_exception_field.message
|
749 - | ),
|
750 - | field_list: Some(vec![first_validation_exception_field]),
|
751 - | };
|
752 - | Self::ConstraintViolation(
|
753 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
754 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
755 - | )
|
840 + | }
|
841 + | /// See [`ResponseCodeRequiredOperationInput`](crate::input::ResponseCodeRequiredOperationInput).
|
842 + | pub mod response_code_required_operation_input {
|
843 + |
|
844 + | impl ::std::convert::From<Builder> for crate::input::ResponseCodeRequiredOperationInput {
|
845 + | fn from(builder: Builder) -> Self {
|
846 + | builder.build()
|
756 847 | }
|
757 848 | }
|
758 - | impl ::std::convert::From<Builder>
|
759 - | for crate::constrained::MaybeConstrained<crate::input::RequiredInnerShapeOperationInput>
|
760 - | {
|
761 - | fn from(builder: Builder) -> Self {
|
762 - | Self::Unconstrained(builder)
|
849 + | /// A builder for [`ResponseCodeRequiredOperationInput`](crate::input::ResponseCodeRequiredOperationInput).
|
850 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
851 + | pub struct Builder {}
|
852 + | impl Builder {
|
853 + | /// Consumes the builder and constructs a [`ResponseCodeRequiredOperationInput`](crate::input::ResponseCodeRequiredOperationInput).
|
854 + | pub fn build(self) -> crate::input::ResponseCodeRequiredOperationInput {
|
855 + | self.build_enforcing_required_and_enum_traits()
|
856 + | }
|
857 + | fn build_enforcing_required_and_enum_traits(
|
858 + | self,
|
859 + | ) -> crate::input::ResponseCodeRequiredOperationInput {
|
860 + | crate::input::ResponseCodeRequiredOperationInput {}
|
763 861 | }
|
764 862 | }
|
765 - | impl ::std::convert::TryFrom<Builder> for crate::input::RequiredInnerShapeOperationInput {
|
766 - | type Error = ConstraintViolation;
|
863 + | }
|
864 + | /// See [`ResponseCodeHttpFallbackOperationInput`](crate::input::ResponseCodeHttpFallbackOperationInput).
|
865 + | pub(crate) mod response_code_http_fallback_operation_input_internal {
|
767 866 |
|
768 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
867 + | impl ::std::convert::From<Builder> for crate::input::ResponseCodeHttpFallbackOperationInput {
|
868 + | fn from(builder: Builder) -> Self {
|
769 869 | builder.build()
|
770 870 | }
|
771 871 | }
|
772 - | /// A builder for [`RequiredInnerShapeOperationInput`](crate::input::RequiredInnerShapeOperationInput).
|
872 + | /// A builder for [`ResponseCodeHttpFallbackOperationInput`](crate::input::ResponseCodeHttpFallbackOperationInput).
|
773 873 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
774 - | pub(crate) struct Builder {
|
775 - | pub(crate) inner:
|
776 - | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::InnerShape>>,
|
777 - | }
|
874 + | pub(crate) struct Builder {}
|
778 875 | impl Builder {
|
779 - | #[allow(missing_docs)] // documentation missing in model
|
780 - | pub(crate) fn set_inner(
|
781 - | mut self,
|
782 - | input: Option<
|
783 - | impl ::std::convert::Into<
|
784 - | crate::constrained::MaybeConstrained<crate::model::InnerShape>,
|
785 - | >,
|
786 - | >,
|
787 - | ) -> Self {
|
788 - | self.inner = input.map(|v| v.into());
|
789 - | self
|
790 - | }
|
791 - | /// Consumes the builder and constructs a [`RequiredInnerShapeOperationInput`](crate::input::RequiredInnerShapeOperationInput).
|
792 - | ///
|
793 - | /// The builder fails to construct a [`RequiredInnerShapeOperationInput`](crate::input::RequiredInnerShapeOperationInput) if a [`ConstraintViolation`] occurs.
|
794 - | ///
|
795 - | pub fn build(
|
796 - | self,
|
797 - | ) -> Result<crate::input::RequiredInnerShapeOperationInput, ConstraintViolation> {
|
876 + | /// Consumes the builder and constructs a [`ResponseCodeHttpFallbackOperationInput`](crate::input::ResponseCodeHttpFallbackOperationInput).
|
877 + | pub fn build(self) -> crate::input::ResponseCodeHttpFallbackOperationInput {
|
798 878 | self.build_enforcing_all_constraints()
|
799 879 | }
|
800 880 | fn build_enforcing_all_constraints(
|
801 881 | self,
|
802 - | ) -> Result<crate::input::RequiredInnerShapeOperationInput, ConstraintViolation> {
|
803 - | Ok(crate::input::RequiredInnerShapeOperationInput {
|
804 - | inner: self
|
805 - | .inner
|
806 - | .map(|v| match v {
|
807 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
808 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
809 - | })
|
810 - | .map(|res| res.map_err(ConstraintViolation::Inner))
|
811 - | .transpose()?,
|
812 - | })
|
882 + | ) -> crate::input::ResponseCodeHttpFallbackOperationInput {
|
883 + | crate::input::ResponseCodeHttpFallbackOperationInput {}
|
813 884 | }
|
814 885 | }
|
815 886 | }
|
816 - | /// See [`RequiredInnerShapeOperationInput`](crate::input::RequiredInnerShapeOperationInput).
|
817 - | pub mod required_inner_shape_operation_input {
|
887 + | /// See [`ResponseCodeHttpFallbackOperationInput`](crate::input::ResponseCodeHttpFallbackOperationInput).
|
888 + | pub mod response_code_http_fallback_operation_input {
|
818 889 |
|
819 - | impl ::std::convert::From<Builder> for crate::input::RequiredInnerShapeOperationInput {
|
890 + | impl ::std::convert::From<Builder> for crate::input::ResponseCodeHttpFallbackOperationInput {
|
820 891 | fn from(builder: Builder) -> Self {
|
821 892 | builder.build()
|
822 893 | }
|
823 894 | }
|
824 - | /// A builder for [`RequiredInnerShapeOperationInput`](crate::input::RequiredInnerShapeOperationInput).
|
895 + | /// A builder for [`ResponseCodeHttpFallbackOperationInput`](crate::input::ResponseCodeHttpFallbackOperationInput).
|
825 896 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
826 - | pub struct Builder {
|
827 - | pub(crate) inner: ::std::option::Option<crate::model::InnerShape>,
|
828 - | }
|
897 + | pub struct Builder {}
|
829 898 | impl Builder {
|
830 - | #[allow(missing_docs)] // documentation missing in model
|
831 - | pub fn inner(mut self, input: ::std::option::Option<crate::model::InnerShape>) -> Self {
|
832 - | self.inner = input;
|
833 - | self
|
834 - | }
|
835 - | /// Consumes the builder and constructs a [`RequiredInnerShapeOperationInput`](crate::input::RequiredInnerShapeOperationInput).
|
836 - | pub fn build(self) -> crate::input::RequiredInnerShapeOperationInput {
|
899 + | /// Consumes the builder and constructs a [`ResponseCodeHttpFallbackOperationInput`](crate::input::ResponseCodeHttpFallbackOperationInput).
|
900 + | pub fn build(self) -> crate::input::ResponseCodeHttpFallbackOperationInput {
|
837 901 | self.build_enforcing_required_and_enum_traits()
|
838 902 | }
|
839 903 | fn build_enforcing_required_and_enum_traits(
|
840 904 | self,
|
841 - | ) -> crate::input::RequiredInnerShapeOperationInput {
|
842 - | crate::input::RequiredInnerShapeOperationInput { inner: self.inner }
|
905 + | ) -> crate::input::ResponseCodeHttpFallbackOperationInput {
|
906 + | crate::input::ResponseCodeHttpFallbackOperationInput {}
|
843 907 | }
|
844 908 | }
|
845 909 | }
|
846 - | /// See [`TypeComplexityOperationInput`](crate::input::TypeComplexityOperationInput).
|
847 - | pub(crate) mod type_complexity_operation_input_internal {
|
910 + | /// See [`ResponseCodeDefaultOperationInput`](crate::input::ResponseCodeDefaultOperationInput).
|
911 + | pub(crate) mod response_code_default_operation_input_internal {
|
848 912 |
|
849 - | impl ::std::convert::From<Builder> for crate::input::TypeComplexityOperationInput {
|
913 + | impl ::std::convert::From<Builder> for crate::input::ResponseCodeDefaultOperationInput {
|
850 914 | fn from(builder: Builder) -> Self {
|
851 915 | builder.build()
|
852 916 | }
|
853 917 | }
|
854 - | /// A builder for [`TypeComplexityOperationInput`](crate::input::TypeComplexityOperationInput).
|
918 + | /// A builder for [`ResponseCodeDefaultOperationInput`](crate::input::ResponseCodeDefaultOperationInput).
|
855 919 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
856 - | pub(crate) struct Builder {
|
857 - | pub(crate) list: ::std::option::Option<
|
858 - | ::std::vec::Vec<
|
859 - | ::std::vec::Vec<
|
860 - | ::std::vec::Vec<
|
861 - | ::std::collections::HashMap<
|
862 - | ::std::string::String,
|
863 - | crate::model::EmptyStructure,
|
864 - | >,
|
865 - | >,
|
866 - | >,
|
867 - | >,
|
868 - | >,
|
869 - | }
|
920 + | pub(crate) struct Builder {}
|
870 921 | impl Builder {
|
871 - | #[allow(missing_docs)] // documentation missing in model
|
872 - | pub(crate) fn set_list(
|
873 - | mut self,
|
874 - | input: Option<
|
875 - | impl ::std::convert::Into<
|
876 - | ::std::vec::Vec<
|
877 - | ::std::vec::Vec<
|
878 - | ::std::vec::Vec<
|
879 - | ::std::collections::HashMap<
|
880 - | ::std::string::String,
|
881 - | crate::model::EmptyStructure,
|
882 - | >,
|
883 - | >,
|
884 - | >,
|
885 - | >,
|
886 - | >,
|
887 - | >,
|
888 - | ) -> Self {
|
889 - | self.list = input.map(|v| v.into());
|
890 - | self
|
891 - | }
|
892 - | /// Consumes the builder and constructs a [`TypeComplexityOperationInput`](crate::input::TypeComplexityOperationInput).
|
893 - | pub fn build(self) -> crate::input::TypeComplexityOperationInput {
|
922 + | /// Consumes the builder and constructs a [`ResponseCodeDefaultOperationInput`](crate::input::ResponseCodeDefaultOperationInput).
|
923 + | pub fn build(self) -> crate::input::ResponseCodeDefaultOperationInput {
|
894 924 | self.build_enforcing_all_constraints()
|
895 925 | }
|
896 - | fn build_enforcing_all_constraints(self) -> crate::input::TypeComplexityOperationInput {
|
897 - | crate::input::TypeComplexityOperationInput { list: self.list }
|
926 + | fn build_enforcing_all_constraints(
|
927 + | self,
|
928 + | ) -> crate::input::ResponseCodeDefaultOperationInput {
|
929 + | crate::input::ResponseCodeDefaultOperationInput {}
|
898 930 | }
|
899 931 | }
|
900 932 | }
|
901 - | /// See [`TypeComplexityOperationInput`](crate::input::TypeComplexityOperationInput).
|
902 - | pub mod type_complexity_operation_input {
|
933 + | /// See [`ResponseCodeDefaultOperationInput`](crate::input::ResponseCodeDefaultOperationInput).
|
934 + | pub mod response_code_default_operation_input {
|
903 935 |
|
904 - | impl ::std::convert::From<Builder> for crate::input::TypeComplexityOperationInput {
|
936 + | impl ::std::convert::From<Builder> for crate::input::ResponseCodeDefaultOperationInput {
|
905 937 | fn from(builder: Builder) -> Self {
|
906 938 | builder.build()
|
907 939 | }
|
908 940 | }
|
909 - | /// A builder for [`TypeComplexityOperationInput`](crate::input::TypeComplexityOperationInput).
|
941 + | /// A builder for [`ResponseCodeDefaultOperationInput`](crate::input::ResponseCodeDefaultOperationInput).
|
910 942 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
911 - | pub struct Builder {
|
912 - | pub(crate) list: ::std::option::Option<
|
913 - | ::std::vec::Vec<
|
914 - | ::std::vec::Vec<
|
915 - | ::std::vec::Vec<
|
916 - | ::std::collections::HashMap<
|
917 - | ::std::string::String,
|
918 - | crate::model::EmptyStructure,
|
919 - | >,
|
920 - | >,
|
921 - | >,
|
922 - | >,
|
923 - | >,
|
924 - | }
|
943 + | pub struct Builder {}
|
925 944 | impl Builder {
|
926 - | #[allow(missing_docs)] // documentation missing in model
|
927 - | pub fn list(
|
928 - | mut self,
|
929 - | input: ::std::option::Option<
|
930 - | ::std::vec::Vec<
|
931 - | ::std::vec::Vec<
|
932 - | ::std::vec::Vec<
|
933 - | ::std::collections::HashMap<
|
934 - | ::std::string::String,
|
935 - | crate::model::EmptyStructure,
|
936 - | >,
|
937 - | >,
|
938 - | >,
|
939 - | >,
|
940 - | >,
|
941 - | ) -> Self {
|
942 - | self.list = input;
|
943 - | self
|
944 - | }
|
945 - | /// Consumes the builder and constructs a [`TypeComplexityOperationInput`](crate::input::TypeComplexityOperationInput).
|
946 - | pub fn build(self) -> crate::input::TypeComplexityOperationInput {
|
945 + | /// Consumes the builder and constructs a [`ResponseCodeDefaultOperationInput`](crate::input::ResponseCodeDefaultOperationInput).
|
946 + | pub fn build(self) -> crate::input::ResponseCodeDefaultOperationInput {
|
947 947 | self.build_enforcing_required_and_enum_traits()
|
948 948 | }
|
949 949 | fn build_enforcing_required_and_enum_traits(
|
950 950 | self,
|
951 - | ) -> crate::input::TypeComplexityOperationInput {
|
952 - | crate::input::TypeComplexityOperationInput { list: self.list }
|
951 + | ) -> crate::input::ResponseCodeDefaultOperationInput {
|
952 + | crate::input::ResponseCodeDefaultOperationInput {}
|
953 953 | }
|
954 954 | }
|
955 955 | }
|