1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 2 | #[::pyo3::pyclass]
|
3 - | /// :param events typing.AsyncIterator\[constraints.model.Event\]:
|
4 - | /// :rtype None:
|
5 - | #[allow(missing_docs)] // documentation missing in model
|
6 - | #[derive(::std::clone::Clone, ::std::fmt::Debug)]
|
7 - | pub struct EventStreamsOperationInput {
|
8 - | #[pyo3(get, set)]
|
9 - | /// :type typing.AsyncIterator\[constraints.model.Event\]:
|
10 - | #[allow(missing_docs)] // documentation missing in model
|
11 - | pub events: crate::python_event_stream::EventStreamsOperationInputEventsReceiver,
|
12 - | }
|
13 - | impl EventStreamsOperationInput {
|
14 - | #[allow(missing_docs)] // documentation missing in model
|
15 - | pub fn events(&self) -> &crate::python_event_stream::EventStreamsOperationInputEventsReceiver {
|
16 - | &self.events
|
17 - | }
|
18 - | }
|
19 - | #[allow(clippy::new_without_default)]
|
20 - | #[allow(clippy::too_many_arguments)]
|
21 - | #[::pyo3::pymethods]
|
22 - | impl EventStreamsOperationInput {
|
23 - | #[new]
|
24 - | pub fn new(
|
25 - | events: crate::python_event_stream::EventStreamsOperationInputEventsReceiver,
|
26 - | ) -> Self {
|
27 - | Self { events }
|
28 - | }
|
29 - | fn __repr__(&self) -> String {
|
30 - | format!("{self:?}")
|
31 - | }
|
32 - | fn __str__(&self) -> String {
|
33 - | format!("{self:?}")
|
34 - | }
|
35 - | }
|
36 - | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<EventStreamsOperationInput> {
|
37 - | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
38 - | ob.extract::<EventStreamsOperationInput>().map(Box::new)
|
39 - | }
|
40 - | }
|
41 - |
|
42 - | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<EventStreamsOperationInput> {
|
43 - | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
44 - | (*self).into_py(py)
|
45 - | }
|
46 - | }
|
47 - | impl crate::constrained::Constrained for crate::input::EventStreamsOperationInput {
|
48 - | type Unconstrained = crate::input::event_streams_operation_input_internal::Builder;
|
49 - | }
|
50 - | impl EventStreamsOperationInput {
|
51 - | /// Creates a new builder-style object to manufacture [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
52 - | pub fn builder() -> crate::input::event_streams_operation_input::Builder {
|
53 - | crate::input::event_streams_operation_input::Builder::default()
|
54 - | }
|
55 - | }
|
56 - |
|
57 - | #[::pyo3::pyclass]
|
58 - | /// :param streaming_blob constraints.types.ByteStream:
|
3 + | /// :param con_a constraints.model.ConA:
|
59 4 | /// :rtype None:
|
60 5 | #[allow(missing_docs)] // documentation missing in model
|
61 - | #[derive(::std::clone::Clone, ::std::fmt::Debug)]
|
62 - | pub struct StreamingBlobOperationInput {
|
6 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
7 + | pub struct ConstrainedShapesOperationInput {
|
63 8 | #[pyo3(get, set)]
|
64 - | /// :type constraints.types.ByteStream:
|
9 + | /// :type constraints.model.ConA:
|
65 10 | #[allow(missing_docs)] // documentation missing in model
|
66 - | pub streaming_blob: ::aws_smithy_http_server_python::types::ByteStream,
|
11 + | pub con_a: crate::model::ConA,
|
67 12 | }
|
68 - | impl StreamingBlobOperationInput {
|
13 + | impl ConstrainedShapesOperationInput {
|
69 14 | #[allow(missing_docs)] // documentation missing in model
|
70 - | pub fn streaming_blob(&self) -> &::aws_smithy_http_server_python::types::ByteStream {
|
71 - | &self.streaming_blob
|
15 + | pub fn con_a(&self) -> &crate::model::ConA {
|
16 + | &self.con_a
|
72 17 | }
|
73 18 | }
|
74 19 | #[allow(clippy::new_without_default)]
|
75 20 | #[allow(clippy::too_many_arguments)]
|
76 21 | #[::pyo3::pymethods]
|
77 - | impl StreamingBlobOperationInput {
|
22 + | impl ConstrainedShapesOperationInput {
|
78 23 | #[new]
|
79 - | pub fn new(streaming_blob: ::aws_smithy_http_server_python::types::ByteStream) -> Self {
|
80 - | Self { streaming_blob }
|
24 + | pub fn new(con_a: crate::model::ConA) -> Self {
|
25 + | Self { con_a }
|
81 26 | }
|
82 27 | fn __repr__(&self) -> String {
|
83 28 | format!("{self:?}")
|
84 29 | }
|
85 30 | fn __str__(&self) -> String {
|
86 31 | format!("{self:?}")
|
87 32 | }
|
88 33 | }
|
89 - | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<StreamingBlobOperationInput> {
|
34 + | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<ConstrainedShapesOperationInput> {
|
90 35 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
91 - | ob.extract::<StreamingBlobOperationInput>().map(Box::new)
|
36 + | ob.extract::<ConstrainedShapesOperationInput>()
|
37 + | .map(Box::new)
|
92 38 | }
|
93 39 | }
|
94 40 |
|
95 - | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<StreamingBlobOperationInput> {
|
41 + | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<ConstrainedShapesOperationInput> {
|
96 42 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
97 43 | (*self).into_py(py)
|
98 44 | }
|
99 45 | }
|
100 - | impl crate::constrained::Constrained for crate::input::StreamingBlobOperationInput {
|
101 - | type Unconstrained = crate::input::streaming_blob_operation_input_internal::Builder;
|
46 + | impl crate::constrained::Constrained for crate::input::ConstrainedShapesOperationInput {
|
47 + | type Unconstrained = crate::input::constrained_shapes_operation_input_internal::Builder;
|
102 48 | }
|
103 - | impl StreamingBlobOperationInput {
|
104 - | /// Creates a new builder-style object to manufacture [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
105 - | pub fn builder() -> crate::input::streaming_blob_operation_input::Builder {
|
106 - | crate::input::streaming_blob_operation_input::Builder::default()
|
49 + | impl ConstrainedShapesOperationInput {
|
50 + | /// Creates a new builder-style object to manufacture [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
51 + | pub fn builder() -> crate::input::constrained_shapes_operation_input::Builder {
|
52 + | crate::input::constrained_shapes_operation_input::Builder::default()
|
107 53 | }
|
108 54 | }
|
109 55 |
|
110 56 | #[::pyo3::pyclass]
|
111 - | /// :param non_streaming_blob typing.Optional\[constraints.types.Blob\]:
|
112 57 | /// :rtype None:
|
113 58 | #[allow(missing_docs)] // documentation missing in model
|
114 59 | #[derive(
|
115 60 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
116 61 | )]
|
117 - | pub struct NonStreamingBlobOperationInput {
|
118 - | #[pyo3(get, set)]
|
119 - | /// :type typing.Optional\[constraints.types.Blob\]:
|
120 - | #[allow(missing_docs)] // documentation missing in model
|
121 - | pub non_streaming_blob: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
122 - | }
|
123 - | impl NonStreamingBlobOperationInput {
|
124 - | #[allow(missing_docs)] // documentation missing in model
|
125 - | pub fn non_streaming_blob(
|
126 - | &self,
|
127 - | ) -> ::std::option::Option<&::aws_smithy_http_server_python::types::Blob> {
|
128 - | self.non_streaming_blob.as_ref()
|
129 - | }
|
130 - | }
|
131 - | #[allow(clippy::new_without_default)]
|
132 - | #[allow(clippy::too_many_arguments)]
|
133 - | #[::pyo3::pymethods]
|
134 - | impl NonStreamingBlobOperationInput {
|
135 - | #[new]
|
136 - | pub fn new(
|
137 - | non_streaming_blob: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
138 - | ) -> Self {
|
139 - | Self { non_streaming_blob }
|
140 - | }
|
141 - | fn __repr__(&self) -> String {
|
142 - | format!("{self:?}")
|
143 - | }
|
144 - | fn __str__(&self) -> String {
|
145 - | format!("{self:?}")
|
146 - | }
|
147 - | }
|
148 - | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<NonStreamingBlobOperationInput> {
|
149 - | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
150 - | ob.extract::<NonStreamingBlobOperationInput>().map(Box::new)
|
151 - | }
|
152 - | }
|
153 - |
|
154 - | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<NonStreamingBlobOperationInput> {
|
155 - | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
156 - | (*self).into_py(py)
|
157 - | }
|
158 - | }
|
159 - | impl crate::constrained::Constrained for crate::input::NonStreamingBlobOperationInput {
|
160 - | type Unconstrained = crate::input::non_streaming_blob_operation_input_internal::Builder;
|
161 - | }
|
162 - | impl NonStreamingBlobOperationInput {
|
163 - | /// Creates a new builder-style object to manufacture [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
164 - | pub fn builder() -> crate::input::non_streaming_blob_operation_input::Builder {
|
165 - | crate::input::non_streaming_blob_operation_input::Builder::default()
|
166 - | }
|
167 - | }
|
168 - |
|
169 - | #[::pyo3::pyclass]
|
170 - | /// :param map_of_enum_string typing.Optional\[typing.Dict\[constraints.model.EnumString, constraints.model.EnumString\]\]:
|
171 - | /// :rtype None:
|
172 - | #[allow(missing_docs)] // documentation missing in model
|
173 - | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
174 - | pub struct QueryParamsTargetingMapOfEnumStringOperationInput {
|
175 - | #[pyo3(get, set)]
|
176 - | /// :type typing.Optional\[typing.Dict\[constraints.model.EnumString, constraints.model.EnumString\]\]:
|
177 - | #[allow(missing_docs)] // documentation missing in model
|
178 - | pub map_of_enum_string: ::std::option::Option<
|
179 - | ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
180 - | >,
|
181 - | }
|
182 - | impl QueryParamsTargetingMapOfEnumStringOperationInput {
|
183 - | #[allow(missing_docs)] // documentation missing in model
|
184 - | pub fn map_of_enum_string(
|
185 - | &self,
|
186 - | ) -> ::std::option::Option<
|
187 - | &::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
188 - | > {
|
189 - | self.map_of_enum_string.as_ref()
|
190 - | }
|
191 - | }
|
62 + | pub struct ConstrainedShapesOnlyInOutputOperationInput {}
|
192 63 | #[allow(clippy::new_without_default)]
|
193 64 | #[allow(clippy::too_many_arguments)]
|
194 65 | #[::pyo3::pymethods]
|
195 - | impl QueryParamsTargetingMapOfEnumStringOperationInput {
|
66 + | impl ConstrainedShapesOnlyInOutputOperationInput {
|
196 67 | #[new]
|
197 - | pub fn new(
|
198 - | map_of_enum_string: ::std::option::Option<
|
199 - | ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
200 - | >,
|
201 - | ) -> Self {
|
202 - | Self { map_of_enum_string }
|
68 + | pub fn new() -> Self {
|
69 + | Self {}
|
203 70 | }
|
204 71 | fn __repr__(&self) -> String {
|
205 72 | format!("{self:?}")
|
206 73 | }
|
207 74 | fn __str__(&self) -> String {
|
208 75 | format!("{self:?}")
|
209 76 | }
|
210 77 | }
|
211 78 | impl<'source> ::pyo3::FromPyObject<'source>
|
212 - | for std::boxed::Box<QueryParamsTargetingMapOfEnumStringOperationInput>
|
79 + | for std::boxed::Box<ConstrainedShapesOnlyInOutputOperationInput>
|
213 80 | {
|
214 81 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
215 - | ob.extract::<QueryParamsTargetingMapOfEnumStringOperationInput>()
|
82 + | ob.extract::<ConstrainedShapesOnlyInOutputOperationInput>()
|
216 83 | .map(Box::new)
|
217 84 | }
|
218 85 | }
|
219 86 |
|
220 87 | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
221 - | for std::boxed::Box<QueryParamsTargetingMapOfEnumStringOperationInput>
|
88 + | for std::boxed::Box<ConstrainedShapesOnlyInOutputOperationInput>
|
222 89 | {
|
223 90 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
224 91 | (*self).into_py(py)
|
225 92 | }
|
226 93 | }
|
227 - | impl crate::constrained::Constrained
|
228 - | for crate::input::QueryParamsTargetingMapOfEnumStringOperationInput
|
229 - | {
|
94 + | impl crate::constrained::Constrained for crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
230 95 | type Unconstrained =
|
231 - | crate::input::query_params_targeting_map_of_enum_string_operation_input_internal::Builder;
|
96 + | crate::input::constrained_shapes_only_in_output_operation_input_internal::Builder;
|
232 97 | }
|
233 - | impl QueryParamsTargetingMapOfEnumStringOperationInput {
|
234 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
235 - | pub fn builder(
|
236 - | ) -> crate::input::query_params_targeting_map_of_enum_string_operation_input::Builder {
|
237 - | crate::input::query_params_targeting_map_of_enum_string_operation_input::Builder::default()
|
98 + | impl ConstrainedShapesOnlyInOutputOperationInput {
|
99 + | /// Creates a new builder-style object to manufacture [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
100 + | pub fn builder() -> crate::input::constrained_shapes_only_in_output_operation_input::Builder {
|
101 + | crate::input::constrained_shapes_only_in_output_operation_input::Builder::default()
|
238 102 | }
|
239 103 | }
|
240 104 |
|
241 105 | #[::pyo3::pyclass]
|
242 - | /// :param length_map typing.Optional\[typing.Dict\[str, str\]\]:
|
106 + | /// :param length_string_label str:
|
107 + | /// :param range_integer_label int:
|
108 + | /// :param range_short_label int:
|
109 + | /// :param range_long_label int:
|
110 + | /// :param range_byte_label int:
|
111 + | /// :param enum_string_label constraints.model.EnumString:
|
112 + | /// :param length_string_header_map typing.Dict\[str, str\]:
|
113 + | /// :param range_integer_header int:
|
114 + | /// :param range_short_header int:
|
115 + | /// :param range_long_header int:
|
116 + | /// :param range_byte_header int:
|
117 + | /// :param range_byte_query int:
|
118 + | /// :param range_short_query int:
|
119 + | /// :param range_integer_query int:
|
120 + | /// :param range_long_query int:
|
121 + | /// :param length_string_header typing.Optional\[str\]:
|
122 + | /// :param length_string_set_header typing.Optional\[typing.Set\[str\]\]:
|
123 + | /// :param list_length_string_header typing.Optional\[typing.List\[str\]\]:
|
124 + | /// :param length_list_pattern_string_header typing.Optional\[typing.List\[str\]\]:
|
125 + | /// :param length_set_pattern_string_header typing.Optional\[typing.Set\[str\]\]:
|
126 + | /// :param range_byte_set_header typing.Optional\[typing.List\[int\]\]:
|
127 + | /// :param range_short_set_header typing.Optional\[typing.List\[int\]\]:
|
128 + | /// :param range_integer_set_header typing.Optional\[typing.List\[int\]\]:
|
129 + | /// :param range_long_set_header typing.Optional\[typing.List\[int\]\]:
|
130 + | /// :param range_byte_list_header typing.Optional\[typing.List\[int\]\]:
|
131 + | /// :param range_short_list_header typing.Optional\[typing.List\[int\]\]:
|
132 + | /// :param range_integer_list_header typing.Optional\[typing.List\[int\]\]:
|
133 + | /// :param range_long_list_header typing.Optional\[typing.List\[int\]\]:
|
134 + | /// :param length_string_query typing.Optional\[str\]:
|
135 + | /// :param enum_string_query typing.Optional\[constraints.model.EnumString\]:
|
136 + | /// :param length_string_list_query typing.Optional\[typing.List\[str\]\]:
|
137 + | /// :param length_list_pattern_string_query typing.Optional\[typing.List\[str\]\]:
|
138 + | /// :param length_string_set_query typing.Optional\[typing.Set\[str\]\]:
|
139 + | /// :param range_byte_list_query typing.Optional\[typing.List\[int\]\]:
|
140 + | /// :param range_short_list_query typing.Optional\[typing.List\[int\]\]:
|
141 + | /// :param range_integer_list_query typing.Optional\[typing.List\[int\]\]:
|
142 + | /// :param range_long_list_query typing.Optional\[typing.List\[int\]\]:
|
143 + | /// :param range_byte_set_query typing.Optional\[typing.List\[int\]\]:
|
144 + | /// :param range_short_set_query typing.Optional\[typing.List\[int\]\]:
|
145 + | /// :param range_integer_set_query typing.Optional\[typing.List\[int\]\]:
|
146 + | /// :param range_long_set_query typing.Optional\[typing.List\[int\]\]:
|
147 + | /// :param enum_string_list_query typing.Optional\[typing.List\[constraints.model.EnumString\]\]:
|
243 148 | /// :rtype None:
|
244 149 | #[allow(missing_docs)] // documentation missing in model
|
245 150 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
246 - | pub struct HttpPrefixHeadersTargetingLengthMapOperationInput {
|
151 + | pub struct ConstrainedHttpBoundShapesOperationInput {
|
247 152 | #[pyo3(get, set)]
|
248 - | /// :type typing.Optional\[typing.Dict\[str, str\]\]:
|
153 + | /// :type str:
|
249 154 | #[allow(missing_docs)] // documentation missing in model
|
250 - | pub length_map: ::std::option::Option<
|
251 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
252 - | >,
|
253 - | }
|
254 - | impl HttpPrefixHeadersTargetingLengthMapOperationInput {
|
155 + | pub length_string_label: ::std::string::String,
|
156 + | #[pyo3(get, set)]
|
157 + | /// :type int:
|
255 158 | #[allow(missing_docs)] // documentation missing in model
|
256 - | pub fn length_map(
|
257 - | &self,
|
258 - | ) -> ::std::option::Option<
|
259 - | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
260 - | > {
|
261 - | self.length_map.as_ref()
|
262 - | }
|
263 - | }
|
264 - | #[allow(clippy::new_without_default)]
|
265 - | #[allow(clippy::too_many_arguments)]
|
266 - | #[::pyo3::pymethods]
|
267 - | impl HttpPrefixHeadersTargetingLengthMapOperationInput {
|
268 - | #[new]
|
269 - | pub fn new(
|
270 - | length_map: ::std::option::Option<
|
271 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
272 - | >,
|
273 - | ) -> Self {
|
274 - | Self { length_map }
|
275 - | }
|
276 - | fn __repr__(&self) -> String {
|
277 - | format!("{self:?}")
|
278 - | }
|
279 - | fn __str__(&self) -> String {
|
280 - | format!("{self:?}")
|
281 - | }
|
282 - | }
|
283 - | impl<'source> ::pyo3::FromPyObject<'source>
|
284 - | for std::boxed::Box<HttpPrefixHeadersTargetingLengthMapOperationInput>
|
285 - | {
|
286 - | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
287 - | ob.extract::<HttpPrefixHeadersTargetingLengthMapOperationInput>()
|
288 - | .map(Box::new)
|
289 - | }
|
290 - | }
|
291 - |
|
292 - | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
293 - | for std::boxed::Box<HttpPrefixHeadersTargetingLengthMapOperationInput>
|
294 - | {
|
295 - | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
296 - | (*self).into_py(py)
|
297 - | }
|
298 - | }
|
299 - | impl crate::constrained::Constrained
|
300 - | for crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput
|
301 - | {
|
302 - | type Unconstrained =
|
303 - | crate::input::http_prefix_headers_targeting_length_map_operation_input_internal::Builder;
|
304 - | }
|
305 - | impl HttpPrefixHeadersTargetingLengthMapOperationInput {
|
306 - | /// Creates a new builder-style object to manufacture [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
307 - | pub fn builder(
|
308 - | ) -> crate::input::http_prefix_headers_targeting_length_map_operation_input::Builder {
|
309 - | crate::input::http_prefix_headers_targeting_length_map_operation_input::Builder::default()
|
310 - | }
|
311 - | }
|
312 - |
|
313 - | #[::pyo3::pyclass]
|
314 - | /// :param map_of_length_pattern_string typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
315 - | /// :rtype None:
|
316 - | #[allow(missing_docs)] // documentation missing in model
|
317 - | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
318 - | pub struct QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
159 + | pub range_integer_label: i32,
|
319 160 | #[pyo3(get, set)]
|
320 - | /// :type typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
161 + | /// :type int:
|
321 162 | #[allow(missing_docs)] // documentation missing in model
|
322 - | pub map_of_length_pattern_string: ::std::option::Option<
|
323 - | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
324 - | >,
|
325 - | }
|
326 - | impl QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
163 + | pub range_short_label: i16,
|
164 + | #[pyo3(get, set)]
|
165 + | /// :type int:
|
327 166 | #[allow(missing_docs)] // documentation missing in model
|
328 - | pub fn map_of_length_pattern_string(
|
329 - | &self,
|
330 - | ) -> ::std::option::Option<
|
331 - | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
332 - | > {
|
333 - | self.map_of_length_pattern_string.as_ref()
|
334 - | }
|
335 - | }
|
336 - | #[allow(clippy::new_without_default)]
|
337 - | #[allow(clippy::too_many_arguments)]
|
338 - | #[::pyo3::pymethods]
|
339 - | impl QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
340 - | #[new]
|
341 - | pub fn new(
|
342 - | map_of_length_pattern_string: ::std::option::Option<
|
343 - | ::std::collections::HashMap<
|
344 - | ::std::string::String,
|
345 - | ::std::vec::Vec<::std::string::String>,
|
346 - | >,
|
347 - | >,
|
348 - | ) -> Self {
|
349 - | Self {
|
350 - | map_of_length_pattern_string,
|
351 - | }
|
352 - | }
|
353 - | fn __repr__(&self) -> String {
|
354 - | format!("{self:?}")
|
355 - | }
|
356 - | fn __str__(&self) -> String {
|
357 - | format!("{self:?}")
|
358 - | }
|
359 - | }
|
360 - | impl<'source> ::pyo3::FromPyObject<'source>
|
361 - | for std::boxed::Box<QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput>
|
362 - | {
|
363 - | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
364 - | ob.extract::<QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput>()
|
365 - | .map(Box::new)
|
366 - | }
|
367 - | }
|
368 - |
|
369 - | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
370 - | for std::boxed::Box<QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput>
|
371 - | {
|
372 - | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
373 - | (*self).into_py(py)
|
374 - | }
|
375 - | }
|
376 - | impl crate::constrained::Constrained
|
377 - | for crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
378 - | {
|
379 - | type Unconstrained = crate::input::query_params_targeting_map_of_list_of_length_pattern_string_operation_input_internal::Builder;
|
380 - | }
|
381 - | impl QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
382 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
383 - | pub fn builder() -> crate::input::query_params_targeting_map_of_list_of_length_pattern_string_operation_input::Builder{
|
384 - | crate::input::query_params_targeting_map_of_list_of_length_pattern_string_operation_input::Builder::default()
|
385 - | }
|
386 - | }
|
387 - |
|
388 - | #[::pyo3::pyclass]
|
389 - | /// :param map_of_length_pattern_string typing.Optional\[typing.Dict\[str, str\]\]:
|
390 - | /// :rtype None:
|
391 - | #[allow(missing_docs)] // documentation missing in model
|
392 - | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
393 - | pub struct QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
167 + | pub range_long_label: i64,
|
394 168 | #[pyo3(get, set)]
|
395 - | /// :type typing.Optional\[typing.Dict\[str, str\]\]:
|
169 + | /// :type int:
|
396 170 | #[allow(missing_docs)] // documentation missing in model
|
397 - | pub map_of_length_pattern_string: ::std::option::Option<
|
398 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
399 - | >,
|
400 - | }
|
401 - | impl QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
171 + | pub range_byte_label: i8,
|
172 + | #[pyo3(get, set)]
|
173 + | /// :type constraints.model.EnumString:
|
402 174 | #[allow(missing_docs)] // documentation missing in model
|
403 - | pub fn map_of_length_pattern_string(
|
404 - | &self,
|
405 - | ) -> ::std::option::Option<
|
406 - | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
407 - | > {
|
408 - | self.map_of_length_pattern_string.as_ref()
|
409 - | }
|
410 - | }
|
411 - | #[allow(clippy::new_without_default)]
|
412 - | #[allow(clippy::too_many_arguments)]
|
413 - | #[::pyo3::pymethods]
|
414 - | impl QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
415 - | #[new]
|
416 - | pub fn new(
|
417 - | map_of_length_pattern_string: ::std::option::Option<
|
175 + | pub enum_string_label: crate::model::EnumString,
|
176 + | #[pyo3(get, set)]
|
177 + | /// :type typing.Dict\[str, str\]:
|
178 + | #[allow(missing_docs)] // documentation missing in model
|
179 + | pub length_string_header_map:
|
418 180 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
419 - | >,
|
420 - | ) -> Self {
|
421 - | Self {
|
422 - | map_of_length_pattern_string,
|
423 - | }
|
424 - | }
|
425 - | fn __repr__(&self) -> String {
|
426 - | format!("{self:?}")
|
427 - | }
|
428 - | fn __str__(&self) -> String {
|
429 - | format!("{self:?}")
|
430 - | }
|
431 - | }
|
432 - | impl<'source> ::pyo3::FromPyObject<'source>
|
433 - | for std::boxed::Box<QueryParamsTargetingMapOfLengthPatternStringOperationInput>
|
434 - | {
|
435 - | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
436 - | ob.extract::<QueryParamsTargetingMapOfLengthPatternStringOperationInput>()
|
437 - | .map(Box::new)
|
438 - | }
|
439 - | }
|
440 - |
|
441 - | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
442 - | for std::boxed::Box<QueryParamsTargetingMapOfLengthPatternStringOperationInput>
|
443 - | {
|
444 - | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
445 - | (*self).into_py(py)
|
446 - | }
|
447 - | }
|
448 - | impl crate::constrained::Constrained
|
449 - | for crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput
|
450 - | {
|
451 - | type Unconstrained = crate::input::query_params_targeting_map_of_length_pattern_string_operation_input_internal::Builder;
|
452 - | }
|
453 - | impl QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
454 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
455 - | pub fn builder(
|
456 - | ) -> crate::input::query_params_targeting_map_of_length_pattern_string_operation_input::Builder
|
457 - | {
|
458 - | crate::input::query_params_targeting_map_of_length_pattern_string_operation_input::Builder::default()
|
459 - | }
|
460 - | }
|
461 - |
|
462 - | #[::pyo3::pyclass]
|
463 - | /// :param map_of_list_of_pattern_string typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
464 - | /// :rtype None:
|
465 - | #[allow(missing_docs)] // documentation missing in model
|
466 - | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
467 - | pub struct QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
468 181 | #[pyo3(get, set)]
|
469 - | /// :type typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
182 + | /// :type typing.Optional\[str\]:
|
470 183 | #[allow(missing_docs)] // documentation missing in model
|
471 - | pub map_of_list_of_pattern_string: ::std::option::Option<
|
472 - | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
473 - | >,
|
474 - | }
|
475 - | impl QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
184 + | pub length_string_header: ::std::option::Option<::std::string::String>,
|
185 + | #[pyo3(get, set)]
|
186 + | /// :type int:
|
476 187 | #[allow(missing_docs)] // documentation missing in model
|
477 - | pub fn map_of_list_of_pattern_string(
|
478 - | &self,
|
479 - | ) -> ::std::option::Option<
|
480 - | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
481 - | > {
|
482 - | self.map_of_list_of_pattern_string.as_ref()
|
483 - | }
|
484 - | }
|
485 - | #[allow(clippy::new_without_default)]
|
486 - | #[allow(clippy::too_many_arguments)]
|
487 - | #[::pyo3::pymethods]
|
488 - | impl QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
489 - | #[new]
|
490 - | pub fn new(
|
491 - | map_of_list_of_pattern_string: ::std::option::Option<
|
492 - | ::std::collections::HashMap<
|
493 - | ::std::string::String,
|
494 - | ::std::vec::Vec<::std::string::String>,
|
495 - | >,
|
496 - | >,
|
497 - | ) -> Self {
|
498 - | Self {
|
499 - | map_of_list_of_pattern_string,
|
500 - | }
|
501 - | }
|
502 - | fn __repr__(&self) -> String {
|
503 - | format!("{self:?}")
|
188 + | pub range_integer_header: i32,
|
189 + | #[pyo3(get, set)]
|
190 + | /// :type int:
|
191 + | #[allow(missing_docs)] // documentation missing in model
|
192 + | pub range_short_header: i16,
|
193 + | #[pyo3(get, set)]
|
194 + | /// :type int:
|
195 + | #[allow(missing_docs)] // documentation missing in model
|
196 + | pub range_long_header: i64,
|
197 + | #[pyo3(get, set)]
|
198 + | /// :type int:
|
199 + | #[allow(missing_docs)] // documentation missing in model
|
200 + | pub range_byte_header: i8,
|
201 + | #[pyo3(get, set)]
|
202 + | /// :type typing.Optional\[typing.Set\[str\]\]:
|
203 + | #[allow(missing_docs)] // documentation missing in model
|
204 + | pub length_string_set_header: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
205 + | #[pyo3(get, set)]
|
206 + | /// :type typing.Optional\[typing.List\[str\]\]:
|
207 + | #[allow(missing_docs)] // documentation missing in model
|
208 + | pub list_length_string_header: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
209 + | #[pyo3(get, set)]
|
210 + | /// :type typing.Optional\[typing.List\[str\]\]:
|
211 + | #[allow(missing_docs)] // documentation missing in model
|
212 + | pub length_list_pattern_string_header:
|
213 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
214 + | #[pyo3(get, set)]
|
215 + | /// :type typing.Optional\[typing.Set\[str\]\]:
|
216 + | #[allow(missing_docs)] // documentation missing in model
|
217 + | pub length_set_pattern_string_header:
|
218 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
219 + | #[pyo3(get, set)]
|
220 + | /// :type typing.Optional\[typing.List\[int\]\]:
|
221 + | #[allow(missing_docs)] // documentation missing in model
|
222 + | pub range_byte_set_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
223 + | #[pyo3(get, set)]
|
224 + | /// :type typing.Optional\[typing.List\[int\]\]:
|
225 + | #[allow(missing_docs)] // documentation missing in model
|
226 + | pub range_short_set_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
227 + | #[pyo3(get, set)]
|
228 + | /// :type typing.Optional\[typing.List\[int\]\]:
|
229 + | #[allow(missing_docs)] // documentation missing in model
|
230 + | pub range_integer_set_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
231 + | #[pyo3(get, set)]
|
232 + | /// :type typing.Optional\[typing.List\[int\]\]:
|
233 + | #[allow(missing_docs)] // documentation missing in model
|
234 + | pub range_long_set_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
235 + | #[pyo3(get, set)]
|
236 + | /// :type typing.Optional\[typing.List\[int\]\]:
|
237 + | #[allow(missing_docs)] // documentation missing in model
|
238 + | pub range_byte_list_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
239 + | #[pyo3(get, set)]
|
240 + | /// :type typing.Optional\[typing.List\[int\]\]:
|
241 + | #[allow(missing_docs)] // documentation missing in model
|
242 + | pub range_short_list_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
243 + | #[pyo3(get, set)]
|
244 + | /// :type typing.Optional\[typing.List\[int\]\]:
|
245 + | #[allow(missing_docs)] // documentation missing in model
|
246 + | pub range_integer_list_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
247 + | #[pyo3(get, set)]
|
248 + | /// :type typing.Optional\[typing.List\[int\]\]:
|
249 + | #[allow(missing_docs)] // documentation missing in model
|
250 + | pub range_long_list_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
251 + | #[pyo3(get, set)]
|
252 + | /// :type typing.Optional\[str\]:
|
253 + | #[allow(missing_docs)] // documentation missing in model
|
254 + | pub length_string_query: ::std::option::Option<::std::string::String>,
|
255 + | #[pyo3(get, set)]
|
256 + | /// :type int:
|
257 + | #[allow(missing_docs)] // documentation missing in model
|
258 + | pub range_byte_query: i8,
|
259 + | #[pyo3(get, set)]
|
260 + | /// :type int:
|
261 + | #[allow(missing_docs)] // documentation missing in model
|
262 + | pub range_short_query: i16,
|
263 + | #[pyo3(get, set)]
|
264 + | /// :type int:
|
265 + | #[allow(missing_docs)] // documentation missing in model
|
266 + | pub range_integer_query: i32,
|
267 + | #[pyo3(get, set)]
|
268 + | /// :type int:
|
269 + | #[allow(missing_docs)] // documentation missing in model
|
270 + | pub range_long_query: i64,
|
271 + | #[pyo3(get, set)]
|
272 + | /// :type typing.Optional\[constraints.model.EnumString\]:
|
273 + | #[allow(missing_docs)] // documentation missing in model
|
274 + | pub enum_string_query: ::std::option::Option<crate::model::EnumString>,
|
275 + | #[pyo3(get, set)]
|
276 + | /// :type typing.Optional\[typing.List\[str\]\]:
|
277 + | #[allow(missing_docs)] // documentation missing in model
|
278 + | pub length_string_list_query: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
279 + | #[pyo3(get, set)]
|
280 + | /// :type typing.Optional\[typing.List\[str\]\]:
|
281 + | #[allow(missing_docs)] // documentation missing in model
|
282 + | pub length_list_pattern_string_query:
|
283 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
284 + | #[pyo3(get, set)]
|
285 + | /// :type typing.Optional\[typing.Set\[str\]\]:
|
286 + | #[allow(missing_docs)] // documentation missing in model
|
287 + | pub length_string_set_query: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
288 + | #[pyo3(get, set)]
|
289 + | /// :type typing.Optional\[typing.List\[int\]\]:
|
290 + | #[allow(missing_docs)] // documentation missing in model
|
291 + | pub range_byte_list_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
292 + | #[pyo3(get, set)]
|
293 + | /// :type typing.Optional\[typing.List\[int\]\]:
|
294 + | #[allow(missing_docs)] // documentation missing in model
|
295 + | pub range_short_list_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
296 + | #[pyo3(get, set)]
|
297 + | /// :type typing.Optional\[typing.List\[int\]\]:
|
298 + | #[allow(missing_docs)] // documentation missing in model
|
299 + | pub range_integer_list_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
300 + | #[pyo3(get, set)]
|
301 + | /// :type typing.Optional\[typing.List\[int\]\]:
|
302 + | #[allow(missing_docs)] // documentation missing in model
|
303 + | pub range_long_list_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
304 + | #[pyo3(get, set)]
|
305 + | /// :type typing.Optional\[typing.List\[int\]\]:
|
306 + | #[allow(missing_docs)] // documentation missing in model
|
307 + | pub range_byte_set_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
308 + | #[pyo3(get, set)]
|
309 + | /// :type typing.Optional\[typing.List\[int\]\]:
|
310 + | #[allow(missing_docs)] // documentation missing in model
|
311 + | pub range_short_set_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
312 + | #[pyo3(get, set)]
|
313 + | /// :type typing.Optional\[typing.List\[int\]\]:
|
314 + | #[allow(missing_docs)] // documentation missing in model
|
315 + | pub range_integer_set_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
316 + | #[pyo3(get, set)]
|
317 + | /// :type typing.Optional\[typing.List\[int\]\]:
|
318 + | #[allow(missing_docs)] // documentation missing in model
|
319 + | pub range_long_set_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
320 + | #[pyo3(get, set)]
|
321 + | /// :type typing.Optional\[typing.List\[constraints.model.EnumString\]\]:
|
322 + | #[allow(missing_docs)] // documentation missing in model
|
323 + | pub enum_string_list_query: ::std::option::Option<::std::vec::Vec<crate::model::EnumString>>,
|
324 + | }
|
325 + | impl ConstrainedHttpBoundShapesOperationInput {
|
326 + | #[allow(missing_docs)] // documentation missing in model
|
327 + | pub fn length_string_label(&self) -> &str {
|
328 + | use std::ops::Deref;
|
329 + | self.length_string_label.deref()
|
504 330 | }
|
505 - | fn __str__(&self) -> String {
|
506 - | format!("{self:?}")
|
331 + | #[allow(missing_docs)] // documentation missing in model
|
332 + | pub fn range_integer_label(&self) -> i32 {
|
333 + | self.range_integer_label
|
507 334 | }
|
508 - | }
|
509 - | impl<'source> ::pyo3::FromPyObject<'source>
|
510 - | for std::boxed::Box<QueryParamsTargetingMapOfListOfPatternStringOperationInput>
|
511 - | {
|
512 - | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
513 - | ob.extract::<QueryParamsTargetingMapOfListOfPatternStringOperationInput>()
|
514 - | .map(Box::new)
|
335 + | #[allow(missing_docs)] // documentation missing in model
|
336 + | pub fn range_short_label(&self) -> i16 {
|
337 + | self.range_short_label
|
515 338 | }
|
516 - | }
|
517 - |
|
518 - | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
519 - | for std::boxed::Box<QueryParamsTargetingMapOfListOfPatternStringOperationInput>
|
520 - | {
|
521 - | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
522 - | (*self).into_py(py)
|
339 + | #[allow(missing_docs)] // documentation missing in model
|
340 + | pub fn range_long_label(&self) -> i64 {
|
341 + | self.range_long_label
|
523 342 | }
|
524 - | }
|
525 - | impl crate::constrained::Constrained
|
526 - | for crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput
|
527 - | {
|
528 - | type Unconstrained = crate::input::query_params_targeting_map_of_list_of_pattern_string_operation_input_internal::Builder;
|
529 - | }
|
530 - | impl QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
531 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
532 - | pub fn builder(
|
533 - | ) -> crate::input::query_params_targeting_map_of_list_of_pattern_string_operation_input::Builder
|
534 - | {
|
535 - | crate::input::query_params_targeting_map_of_list_of_pattern_string_operation_input::Builder::default()
|
343 + | #[allow(missing_docs)] // documentation missing in model
|
344 + | pub fn range_byte_label(&self) -> i8 {
|
345 + | self.range_byte_label
|
536 346 | }
|
537 - | }
|
538 - |
|
539 - | #[::pyo3::pyclass]
|
540 - | /// :param map_of_pattern_string typing.Optional\[typing.Dict\[str, str\]\]:
|
541 - | /// :rtype None:
|
542 - | #[allow(missing_docs)] // documentation missing in model
|
543 - | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
544 - | pub struct QueryParamsTargetingMapOfPatternStringOperationInput {
|
545 - | #[pyo3(get, set)]
|
546 - | /// :type typing.Optional\[typing.Dict\[str, str\]\]:
|
547 347 | #[allow(missing_docs)] // documentation missing in model
|
548 - | pub map_of_pattern_string: ::std::option::Option<
|
549 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
550 - | >,
|
551 - | }
|
552 - | impl QueryParamsTargetingMapOfPatternStringOperationInput {
|
348 + | pub fn enum_string_label(&self) -> &crate::model::EnumString {
|
349 + | &self.enum_string_label
|
350 + | }
|
553 351 | #[allow(missing_docs)] // documentation missing in model
|
554 - | pub fn map_of_pattern_string(
|
352 + | pub fn length_string_header_map(
|
555 353 | &self,
|
556 - | ) -> ::std::option::Option<
|
557 - | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
558 - | > {
|
559 - | self.map_of_pattern_string.as_ref()
|
354 + | ) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> {
|
355 + | &self.length_string_header_map
|
560 356 | }
|
561 - | }
|
562 - | #[allow(clippy::new_without_default)]
|
563 - | #[allow(clippy::too_many_arguments)]
|
564 - | #[::pyo3::pymethods]
|
565 - | impl QueryParamsTargetingMapOfPatternStringOperationInput {
|
566 - | #[new]
|
567 - | pub fn new(
|
568 - | map_of_pattern_string: ::std::option::Option<
|
569 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
570 - | >,
|
571 - | ) -> Self {
|
572 - | Self {
|
573 - | map_of_pattern_string,
|
357 + | #[allow(missing_docs)] // documentation missing in model
|
358 + | pub fn length_string_header(&self) -> ::std::option::Option<&str> {
|
359 + | self.length_string_header.as_deref()
|
574 360 | }
|
361 + | #[allow(missing_docs)] // documentation missing in model
|
362 + | pub fn range_integer_header(&self) -> i32 {
|
363 + | self.range_integer_header
|
575 364 | }
|
576 - | fn __repr__(&self) -> String {
|
577 - | format!("{self:?}")
|
365 + | #[allow(missing_docs)] // documentation missing in model
|
366 + | pub fn range_short_header(&self) -> i16 {
|
367 + | self.range_short_header
|
578 368 | }
|
579 - | fn __str__(&self) -> String {
|
580 - | format!("{self:?}")
|
369 + | #[allow(missing_docs)] // documentation missing in model
|
370 + | pub fn range_long_header(&self) -> i64 {
|
371 + | self.range_long_header
|
581 372 | }
|
582 - | }
|
583 - | impl<'source> ::pyo3::FromPyObject<'source>
|
584 - | for std::boxed::Box<QueryParamsTargetingMapOfPatternStringOperationInput>
|
585 - | {
|
586 - | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
587 - | ob.extract::<QueryParamsTargetingMapOfPatternStringOperationInput>()
|
588 - | .map(Box::new)
|
373 + | #[allow(missing_docs)] // documentation missing in model
|
374 + | pub fn range_byte_header(&self) -> i8 {
|
375 + | self.range_byte_header
|
589 376 | }
|
590 - | }
|
591 - |
|
592 - | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
593 - | for std::boxed::Box<QueryParamsTargetingMapOfPatternStringOperationInput>
|
594 - | {
|
595 - | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
596 - | (*self).into_py(py)
|
377 + | #[allow(missing_docs)] // documentation missing in model
|
378 + | pub fn length_string_set_header(
|
379 + | &self,
|
380 + | ) -> ::std::option::Option<&::std::vec::Vec<::std::string::String>> {
|
381 + | self.length_string_set_header.as_ref()
|
597 382 | }
|
598 - | }
|
599 - | impl crate::constrained::Constrained
|
600 - | for crate::input::QueryParamsTargetingMapOfPatternStringOperationInput
|
601 - | {
|
602 - | type Unconstrained = crate::input::query_params_targeting_map_of_pattern_string_operation_input_internal::Builder;
|
603 - | }
|
604 - | impl QueryParamsTargetingMapOfPatternStringOperationInput {
|
605 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
606 - | pub fn builder(
|
607 - | ) -> crate::input::query_params_targeting_map_of_pattern_string_operation_input::Builder {
|
608 - | crate::input::query_params_targeting_map_of_pattern_string_operation_input::Builder::default(
|
609 - | )
|
383 + | #[allow(missing_docs)] // documentation missing in model
|
384 + | pub fn list_length_string_header(&self) -> ::std::option::Option<&[::std::string::String]> {
|
385 + | self.list_length_string_header.as_deref()
|
610 386 | }
|
611 - | }
|
612 - |
|
613 - | #[::pyo3::pyclass]
|
614 - | /// :param map_of_list_of_enum_string typing.Optional\[typing.Dict\[constraints.model.EnumString, typing.List\[constraints.model.EnumString\]\]\]:
|
615 - | /// :rtype None:
|
616 - | #[allow(missing_docs)] // documentation missing in model
|
617 - | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
618 - | pub struct QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
619 - | #[pyo3(get, set)]
|
620 - | /// :type typing.Optional\[typing.Dict\[constraints.model.EnumString, typing.List\[constraints.model.EnumString\]\]\]:
|
621 387 | #[allow(missing_docs)] // documentation missing in model
|
622 - | pub map_of_list_of_enum_string: ::std::option::Option<
|
623 - | ::std::collections::HashMap<
|
624 - | crate::model::EnumString,
|
625 - | ::std::vec::Vec<crate::model::EnumString>,
|
626 - | >,
|
627 - | >,
|
628 - | }
|
629 - | impl QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
388 + | pub fn length_list_pattern_string_header(
|
389 + | &self,
|
390 + | ) -> ::std::option::Option<&[::std::string::String]> {
|
391 + | self.length_list_pattern_string_header.as_deref()
|
392 + | }
|
630 393 | #[allow(missing_docs)] // documentation missing in model
|
631 - | pub fn map_of_list_of_enum_string(
|
394 + | pub fn length_set_pattern_string_header(
|
632 395 | &self,
|
633 - | ) -> ::std::option::Option<
|
634 - | &::std::collections::HashMap<
|
635 - | crate::model::EnumString,
|
636 - | ::std::vec::Vec<crate::model::EnumString>,
|
637 - | >,
|
638 - | > {
|
639 - | self.map_of_list_of_enum_string.as_ref()
|
396 + | ) -> ::std::option::Option<&::std::vec::Vec<::std::string::String>> {
|
397 + | self.length_set_pattern_string_header.as_ref()
|
640 398 | }
|
641 - | }
|
642 - | #[allow(clippy::new_without_default)]
|
643 - | #[allow(clippy::too_many_arguments)]
|
644 - | #[::pyo3::pymethods]
|
645 - | impl QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
646 - | #[new]
|
647 - | pub fn new(
|
648 - | map_of_list_of_enum_string: ::std::option::Option<
|
649 - | ::std::collections::HashMap<
|
650 - | crate::model::EnumString,
|
651 - | ::std::vec::Vec<crate::model::EnumString>,
|
652 - | >,
|
653 - | >,
|
654 - | ) -> Self {
|
655 - | Self {
|
656 - | map_of_list_of_enum_string,
|
399 + | #[allow(missing_docs)] // documentation missing in model
|
400 + | pub fn range_byte_set_header(&self) -> ::std::option::Option<&[i8]> {
|
401 + | self.range_byte_set_header.as_deref()
|
657 402 | }
|
403 + | #[allow(missing_docs)] // documentation missing in model
|
404 + | pub fn range_short_set_header(&self) -> ::std::option::Option<&[i16]> {
|
405 + | self.range_short_set_header.as_deref()
|
658 406 | }
|
659 - | fn __repr__(&self) -> String {
|
660 - | format!("{self:?}")
|
407 + | #[allow(missing_docs)] // documentation missing in model
|
408 + | pub fn range_integer_set_header(&self) -> ::std::option::Option<&[i32]> {
|
409 + | self.range_integer_set_header.as_deref()
|
661 410 | }
|
662 - | fn __str__(&self) -> String {
|
663 - | format!("{self:?}")
|
411 + | #[allow(missing_docs)] // documentation missing in model
|
412 + | pub fn range_long_set_header(&self) -> ::std::option::Option<&[i64]> {
|
413 + | self.range_long_set_header.as_deref()
|
664 414 | }
|
665 - | }
|
666 - | impl<'source> ::pyo3::FromPyObject<'source>
|
667 - | for std::boxed::Box<QueryParamsTargetingMapOfListOfEnumStringOperationInput>
|
668 - | {
|
669 - | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
670 - | ob.extract::<QueryParamsTargetingMapOfListOfEnumStringOperationInput>()
|
671 - | .map(Box::new)
|
415 + | #[allow(missing_docs)] // documentation missing in model
|
416 + | pub fn range_byte_list_header(&self) -> ::std::option::Option<&[i8]> {
|
417 + | self.range_byte_list_header.as_deref()
|
672 418 | }
|
673 - | }
|
674 - |
|
675 - | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
676 - | for std::boxed::Box<QueryParamsTargetingMapOfListOfEnumStringOperationInput>
|
677 - | {
|
678 - | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
679 - | (*self).into_py(py)
|
419 + | #[allow(missing_docs)] // documentation missing in model
|
420 + | pub fn range_short_list_header(&self) -> ::std::option::Option<&[i16]> {
|
421 + | self.range_short_list_header.as_deref()
|
680 422 | }
|
681 - | }
|
682 - | impl crate::constrained::Constrained
|
683 - | for crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput
|
684 - | {
|
685 - | type Unconstrained = crate::input::query_params_targeting_map_of_list_of_enum_string_operation_input_internal::Builder;
|
686 - | }
|
687 - | impl QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
688 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
689 - | pub fn builder(
|
690 - | ) -> crate::input::query_params_targeting_map_of_list_of_enum_string_operation_input::Builder
|
691 - | {
|
692 - | crate::input::query_params_targeting_map_of_list_of_enum_string_operation_input::Builder::default()
|
423 + | #[allow(missing_docs)] // documentation missing in model
|
424 + | pub fn range_integer_list_header(&self) -> ::std::option::Option<&[i32]> {
|
425 + | self.range_integer_list_header.as_deref()
|
693 426 | }
|
694 - | }
|
695 - |
|
696 - | #[::pyo3::pyclass]
|
697 - | /// :param map_of_length_list_of_pattern_string typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
698 - | /// :rtype None:
|
699 - | #[allow(missing_docs)] // documentation missing in model
|
700 - | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
701 - | pub struct QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
702 - | #[pyo3(get, set)]
|
703 - | /// :type typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
704 427 | #[allow(missing_docs)] // documentation missing in model
|
705 - | pub map_of_length_list_of_pattern_string: ::std::option::Option<
|
706 - | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
707 - | >,
|
708 - | }
|
709 - | impl QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
428 + | pub fn range_long_list_header(&self) -> ::std::option::Option<&[i64]> {
|
429 + | self.range_long_list_header.as_deref()
|
430 + | }
|
710 431 | #[allow(missing_docs)] // documentation missing in model
|
711 - | pub fn map_of_length_list_of_pattern_string(
|
432 + | pub fn length_string_query(&self) -> ::std::option::Option<&str> {
|
433 + | self.length_string_query.as_deref()
|
434 + | }
|
435 + | #[allow(missing_docs)] // documentation missing in model
|
436 + | pub fn range_byte_query(&self) -> i8 {
|
437 + | self.range_byte_query
|
438 + | }
|
439 + | #[allow(missing_docs)] // documentation missing in model
|
440 + | pub fn range_short_query(&self) -> i16 {
|
441 + | self.range_short_query
|
442 + | }
|
443 + | #[allow(missing_docs)] // documentation missing in model
|
444 + | pub fn range_integer_query(&self) -> i32 {
|
445 + | self.range_integer_query
|
446 + | }
|
447 + | #[allow(missing_docs)] // documentation missing in model
|
448 + | pub fn range_long_query(&self) -> i64 {
|
449 + | self.range_long_query
|
450 + | }
|
451 + | #[allow(missing_docs)] // documentation missing in model
|
452 + | pub fn enum_string_query(&self) -> ::std::option::Option<&crate::model::EnumString> {
|
453 + | self.enum_string_query.as_ref()
|
454 + | }
|
455 + | #[allow(missing_docs)] // documentation missing in model
|
456 + | pub fn length_string_list_query(&self) -> ::std::option::Option<&[::std::string::String]> {
|
457 + | self.length_string_list_query.as_deref()
|
458 + | }
|
459 + | #[allow(missing_docs)] // documentation missing in model
|
460 + | pub fn length_list_pattern_string_query(
|
712 461 | &self,
|
713 - | ) -> ::std::option::Option<
|
714 - | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
715 - | > {
|
716 - | self.map_of_length_list_of_pattern_string.as_ref()
|
462 + | ) -> ::std::option::Option<&[::std::string::String]> {
|
463 + | self.length_list_pattern_string_query.as_deref()
|
464 + | }
|
465 + | #[allow(missing_docs)] // documentation missing in model
|
466 + | pub fn length_string_set_query(
|
467 + | &self,
|
468 + | ) -> ::std::option::Option<&::std::vec::Vec<::std::string::String>> {
|
469 + | self.length_string_set_query.as_ref()
|
470 + | }
|
471 + | #[allow(missing_docs)] // documentation missing in model
|
472 + | pub fn range_byte_list_query(&self) -> ::std::option::Option<&[i8]> {
|
473 + | self.range_byte_list_query.as_deref()
|
474 + | }
|
475 + | #[allow(missing_docs)] // documentation missing in model
|
476 + | pub fn range_short_list_query(&self) -> ::std::option::Option<&[i16]> {
|
477 + | self.range_short_list_query.as_deref()
|
478 + | }
|
479 + | #[allow(missing_docs)] // documentation missing in model
|
480 + | pub fn range_integer_list_query(&self) -> ::std::option::Option<&[i32]> {
|
481 + | self.range_integer_list_query.as_deref()
|
482 + | }
|
483 + | #[allow(missing_docs)] // documentation missing in model
|
484 + | pub fn range_long_list_query(&self) -> ::std::option::Option<&[i64]> {
|
485 + | self.range_long_list_query.as_deref()
|
486 + | }
|
487 + | #[allow(missing_docs)] // documentation missing in model
|
488 + | pub fn range_byte_set_query(&self) -> ::std::option::Option<&[i8]> {
|
489 + | self.range_byte_set_query.as_deref()
|
490 + | }
|
491 + | #[allow(missing_docs)] // documentation missing in model
|
492 + | pub fn range_short_set_query(&self) -> ::std::option::Option<&[i16]> {
|
493 + | self.range_short_set_query.as_deref()
|
494 + | }
|
495 + | #[allow(missing_docs)] // documentation missing in model
|
496 + | pub fn range_integer_set_query(&self) -> ::std::option::Option<&[i32]> {
|
497 + | self.range_integer_set_query.as_deref()
|
498 + | }
|
499 + | #[allow(missing_docs)] // documentation missing in model
|
500 + | pub fn range_long_set_query(&self) -> ::std::option::Option<&[i64]> {
|
501 + | self.range_long_set_query.as_deref()
|
502 + | }
|
503 + | #[allow(missing_docs)] // documentation missing in model
|
504 + | pub fn enum_string_list_query(&self) -> ::std::option::Option<&[crate::model::EnumString]> {
|
505 + | self.enum_string_list_query.as_deref()
|
717 506 | }
|
718 507 | }
|
719 508 | #[allow(clippy::new_without_default)]
|
720 509 | #[allow(clippy::too_many_arguments)]
|
721 510 | #[::pyo3::pymethods]
|
722 - | impl QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
511 + | impl ConstrainedHttpBoundShapesOperationInput {
|
723 512 | #[new]
|
724 513 | pub fn new(
|
725 - | map_of_length_list_of_pattern_string: ::std::option::Option<
|
726 - | ::std::collections::HashMap<
|
514 + | length_string_label: ::std::string::String,
|
515 + | range_integer_label: i32,
|
516 + | range_short_label: i16,
|
517 + | range_long_label: i64,
|
518 + | range_byte_label: i8,
|
519 + | enum_string_label: crate::model::EnumString,
|
520 + | length_string_header_map: ::std::collections::HashMap<
|
727 521 | ::std::string::String,
|
522 + | ::std::string::String,
|
523 + | >,
|
524 + | range_integer_header: i32,
|
525 + | range_short_header: i16,
|
526 + | range_long_header: i64,
|
527 + | range_byte_header: i8,
|
528 + | range_byte_query: i8,
|
529 + | range_short_query: i16,
|
530 + | range_integer_query: i32,
|
531 + | range_long_query: i64,
|
532 + | length_string_header: ::std::option::Option<::std::string::String>,
|
533 + | length_string_set_header: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
534 + | list_length_string_header: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
535 + | length_list_pattern_string_header: ::std::option::Option<
|
728 536 | ::std::vec::Vec<::std::string::String>,
|
729 537 | >,
|
538 + | length_set_pattern_string_header: ::std::option::Option<
|
539 + | ::std::vec::Vec<::std::string::String>,
|
730 540 | >,
|
731 - | ) -> Self {
|
732 - | Self {
|
733 - | map_of_length_list_of_pattern_string,
|
734 - | }
|
735 - | }
|
736 - | fn __repr__(&self) -> String {
|
737 - | format!("{self:?}")
|
738 - | }
|
739 - | fn __str__(&self) -> String {
|
740 - | format!("{self:?}")
|
541 + | range_byte_set_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
542 + | range_short_set_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
543 + | range_integer_set_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
544 + | range_long_set_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
545 + | range_byte_list_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
546 + | range_short_list_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
547 + | range_integer_list_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
548 + | range_long_list_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
549 + | length_string_query: ::std::option::Option<::std::string::String>,
|
550 + | enum_string_query: ::std::option::Option<crate::model::EnumString>,
|
551 + | length_string_list_query: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
552 + | length_list_pattern_string_query: ::std::option::Option<
|
553 + | ::std::vec::Vec<::std::string::String>,
|
554 + | >,
|
555 + | length_string_set_query: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
556 + | range_byte_list_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
557 + | range_short_list_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
558 + | range_integer_list_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
559 + | range_long_list_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
560 + | range_byte_set_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
561 + | range_short_set_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
562 + | range_integer_set_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
563 + | range_long_set_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
564 + | enum_string_list_query: ::std::option::Option<::std::vec::Vec<crate::model::EnumString>>,
|
565 + | ) -> Self {
|
566 + | Self {
|
567 + | length_string_label,
|
568 + | range_integer_label,
|
569 + | range_short_label,
|
570 + | range_long_label,
|
571 + | range_byte_label,
|
572 + | enum_string_label,
|
573 + | length_string_header_map,
|
574 + | range_integer_header,
|
575 + | range_short_header,
|
576 + | range_long_header,
|
577 + | range_byte_header,
|
578 + | range_byte_query,
|
579 + | range_short_query,
|
580 + | range_integer_query,
|
581 + | range_long_query,
|
582 + | length_string_header,
|
583 + | length_string_set_header,
|
584 + | list_length_string_header,
|
585 + | length_list_pattern_string_header,
|
586 + | length_set_pattern_string_header,
|
587 + | range_byte_set_header,
|
588 + | range_short_set_header,
|
589 + | range_integer_set_header,
|
590 + | range_long_set_header,
|
591 + | range_byte_list_header,
|
592 + | range_short_list_header,
|
593 + | range_integer_list_header,
|
594 + | range_long_list_header,
|
595 + | length_string_query,
|
596 + | enum_string_query,
|
597 + | length_string_list_query,
|
598 + | length_list_pattern_string_query,
|
599 + | length_string_set_query,
|
600 + | range_byte_list_query,
|
601 + | range_short_list_query,
|
602 + | range_integer_list_query,
|
603 + | range_long_list_query,
|
604 + | range_byte_set_query,
|
605 + | range_short_set_query,
|
606 + | range_integer_set_query,
|
607 + | range_long_set_query,
|
608 + | enum_string_list_query,
|
609 + | }
|
610 + | }
|
611 + | fn __repr__(&self) -> String {
|
612 + | format!("{self:?}")
|
613 + | }
|
614 + | fn __str__(&self) -> String {
|
615 + | format!("{self:?}")
|
741 616 | }
|
742 617 | }
|
743 618 | impl<'source> ::pyo3::FromPyObject<'source>
|
744 - | for std::boxed::Box<QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput>
|
619 + | for std::boxed::Box<ConstrainedHttpBoundShapesOperationInput>
|
745 620 | {
|
746 621 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
747 - | ob.extract::<QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput>()
|
622 + | ob.extract::<ConstrainedHttpBoundShapesOperationInput>()
|
748 623 | .map(Box::new)
|
749 624 | }
|
750 625 | }
|
751 626 |
|
752 627 | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
753 - | for std::boxed::Box<QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput>
|
628 + | for std::boxed::Box<ConstrainedHttpBoundShapesOperationInput>
|
754 629 | {
|
755 630 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
756 631 | (*self).into_py(py)
|
757 632 | }
|
758 633 | }
|
759 - | impl crate::constrained::Constrained
|
760 - | for crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
761 - | {
|
762 - | type Unconstrained = crate::input::query_params_targeting_map_of_length_list_of_pattern_string_operation_input_internal::Builder;
|
634 + | impl crate::constrained::Constrained for crate::input::ConstrainedHttpBoundShapesOperationInput {
|
635 + | type Unconstrained =
|
636 + | crate::input::constrained_http_bound_shapes_operation_input_internal::Builder;
|
763 637 | }
|
764 - | impl QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
765 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
766 - | pub fn builder() -> crate::input::query_params_targeting_map_of_length_list_of_pattern_string_operation_input::Builder{
|
767 - | crate::input::query_params_targeting_map_of_length_list_of_pattern_string_operation_input::Builder::default()
|
638 + | impl ConstrainedHttpBoundShapesOperationInput {
|
639 + | /// Creates a new builder-style object to manufacture [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
640 + | pub fn builder() -> crate::input::constrained_http_bound_shapes_operation_input::Builder {
|
641 + | crate::input::constrained_http_bound_shapes_operation_input::Builder::default()
|
768 642 | }
|
769 643 | }
|
770 644 |
|
771 645 | #[::pyo3::pyclass]
|
772 - | /// :param map_of_set_of_length_string typing.Optional\[typing.Dict\[str, typing.Set\[str\]\]\]:
|
646 + | /// :param http_payload_bound_constrained_shape constraints.model.ConA:
|
773 647 | /// :rtype None:
|
774 648 | #[allow(missing_docs)] // documentation missing in model
|
775 649 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
776 - | pub struct QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
650 + | pub struct ConstrainedHttpPayloadBoundShapeOperationInput {
|
777 651 | #[pyo3(get, set)]
|
778 - | /// :type typing.Optional\[typing.Dict\[str, typing.Set\[str\]\]\]:
|
652 + | /// :type constraints.model.ConA:
|
779 653 | #[allow(missing_docs)] // documentation missing in model
|
780 - | pub map_of_set_of_length_string: ::std::option::Option<
|
781 - | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
782 - | >,
|
654 + | pub http_payload_bound_constrained_shape: crate::model::ConA,
|
783 655 | }
|
784 - | impl QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
656 + | impl ConstrainedHttpPayloadBoundShapeOperationInput {
|
785 657 | #[allow(missing_docs)] // documentation missing in model
|
786 - | pub fn map_of_set_of_length_string(
|
787 - | &self,
|
788 - | ) -> ::std::option::Option<
|
789 - | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
790 - | > {
|
791 - | self.map_of_set_of_length_string.as_ref()
|
658 + | pub fn http_payload_bound_constrained_shape(&self) -> &crate::model::ConA {
|
659 + | &self.http_payload_bound_constrained_shape
|
792 660 | }
|
793 661 | }
|
794 662 | #[allow(clippy::new_without_default)]
|
795 663 | #[allow(clippy::too_many_arguments)]
|
796 664 | #[::pyo3::pymethods]
|
797 - | impl QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
665 + | impl ConstrainedHttpPayloadBoundShapeOperationInput {
|
798 666 | #[new]
|
799 - | pub fn new(
|
800 - | map_of_set_of_length_string: ::std::option::Option<
|
801 - | ::std::collections::HashMap<
|
802 - | ::std::string::String,
|
803 - | ::std::vec::Vec<::std::string::String>,
|
804 - | >,
|
805 - | >,
|
806 - | ) -> Self {
|
667 + | pub fn new(http_payload_bound_constrained_shape: crate::model::ConA) -> Self {
|
807 668 | Self {
|
808 - | map_of_set_of_length_string,
|
669 + | http_payload_bound_constrained_shape,
|
809 670 | }
|
810 671 | }
|
811 672 | fn __repr__(&self) -> String {
|
812 673 | format!("{self:?}")
|
813 674 | }
|
814 675 | fn __str__(&self) -> String {
|
815 676 | format!("{self:?}")
|
816 677 | }
|
817 678 | }
|
818 679 | impl<'source> ::pyo3::FromPyObject<'source>
|
819 - | for std::boxed::Box<QueryParamsTargetingMapOfSetOfLengthStringOperationInput>
|
680 + | for std::boxed::Box<ConstrainedHttpPayloadBoundShapeOperationInput>
|
820 681 | {
|
821 682 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
822 - | ob.extract::<QueryParamsTargetingMapOfSetOfLengthStringOperationInput>()
|
683 + | ob.extract::<ConstrainedHttpPayloadBoundShapeOperationInput>()
|
823 684 | .map(Box::new)
|
824 685 | }
|
825 686 | }
|
826 687 |
|
827 688 | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
828 - | for std::boxed::Box<QueryParamsTargetingMapOfSetOfLengthStringOperationInput>
|
689 + | for std::boxed::Box<ConstrainedHttpPayloadBoundShapeOperationInput>
|
829 690 | {
|
830 691 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
831 692 | (*self).into_py(py)
|
832 693 | }
|
833 694 | }
|
834 695 | impl crate::constrained::Constrained
|
835 - | for crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput
|
696 + | for crate::input::ConstrainedHttpPayloadBoundShapeOperationInput
|
836 697 | {
|
837 - | type Unconstrained = crate::input::query_params_targeting_map_of_set_of_length_string_operation_input_internal::Builder;
|
698 + | type Unconstrained =
|
699 + | crate::input::constrained_http_payload_bound_shape_operation_input_internal::Builder;
|
838 700 | }
|
839 - | impl QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
840 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
841 - | pub fn builder(
|
842 - | ) -> crate::input::query_params_targeting_map_of_set_of_length_string_operation_input::Builder
|
701 + | impl ConstrainedHttpPayloadBoundShapeOperationInput {
|
702 + | /// Creates a new builder-style object to manufacture [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
703 + | pub fn builder() -> crate::input::constrained_http_payload_bound_shape_operation_input::Builder
|
843 704 | {
|
844 - | crate::input::query_params_targeting_map_of_set_of_length_string_operation_input::Builder::default()
|
705 + | crate::input::constrained_http_payload_bound_shape_operation_input::Builder::default()
|
845 706 | }
|
846 707 | }
|
847 708 |
|
848 709 | #[::pyo3::pyclass]
|
849 - | /// :param map_of_list_of_length_string typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
710 + | /// :param recursive_list typing.List\[constraints.model.RecursiveShapesInputOutputNested1\]:
|
711 + | /// :param nested typing.Optional\[constraints.model.RecursiveShapesInputOutputNested1\]:
|
850 712 | /// :rtype None:
|
851 713 | #[allow(missing_docs)] // documentation missing in model
|
852 - | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
853 - | pub struct QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
714 + | #[derive(
|
715 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
716 + | )]
|
717 + | pub struct ConstrainedRecursiveShapesOperationInput {
|
854 718 | #[pyo3(get, set)]
|
855 - | /// :type typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
719 + | /// :type typing.Optional\[constraints.model.RecursiveShapesInputOutputNested1\]:
|
856 720 | #[allow(missing_docs)] // documentation missing in model
|
857 - | pub map_of_list_of_length_string: ::std::option::Option<
|
858 - | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
859 - | >,
|
721 + | pub nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
722 + | #[pyo3(get, set)]
|
723 + | /// :type typing.List\[constraints.model.RecursiveShapesInputOutputNested1\]:
|
724 + | #[allow(missing_docs)] // documentation missing in model
|
725 + | pub recursive_list: ::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>,
|
860 726 | }
|
861 - | impl QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
727 + | impl ConstrainedRecursiveShapesOperationInput {
|
862 728 | #[allow(missing_docs)] // documentation missing in model
|
863 - | pub fn map_of_list_of_length_string(
|
729 + | pub fn nested(
|
864 730 | &self,
|
865 - | ) -> ::std::option::Option<
|
866 - | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
867 - | > {
|
868 - | self.map_of_list_of_length_string.as_ref()
|
731 + | ) -> ::std::option::Option<&crate::model::RecursiveShapesInputOutputNested1> {
|
732 + | self.nested.as_ref()
|
733 + | }
|
734 + | #[allow(missing_docs)] // documentation missing in model
|
735 + | pub fn recursive_list(&self) -> &[crate::model::RecursiveShapesInputOutputNested1] {
|
736 + | use std::ops::Deref;
|
737 + | self.recursive_list.deref()
|
869 738 | }
|
870 739 | }
|
871 740 | #[allow(clippy::new_without_default)]
|
872 741 | #[allow(clippy::too_many_arguments)]
|
873 742 | #[::pyo3::pymethods]
|
874 - | impl QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
743 + | impl ConstrainedRecursiveShapesOperationInput {
|
875 744 | #[new]
|
876 745 | pub fn new(
|
877 - | map_of_list_of_length_string: ::std::option::Option<
|
878 - | ::std::collections::HashMap<
|
879 - | ::std::string::String,
|
880 - | ::std::vec::Vec<::std::string::String>,
|
881 - | >,
|
882 - | >,
|
746 + | recursive_list: ::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>,
|
747 + | nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
883 748 | ) -> Self {
|
884 749 | Self {
|
885 - | map_of_list_of_length_string,
|
750 + | recursive_list,
|
751 + | nested,
|
886 752 | }
|
887 753 | }
|
888 754 | fn __repr__(&self) -> String {
|
889 755 | format!("{self:?}")
|
890 756 | }
|
891 757 | fn __str__(&self) -> String {
|
892 758 | format!("{self:?}")
|
893 759 | }
|
894 760 | }
|
895 761 | impl<'source> ::pyo3::FromPyObject<'source>
|
896 - | for std::boxed::Box<QueryParamsTargetingMapOfListOfLengthStringOperationInput>
|
762 + | for std::boxed::Box<ConstrainedRecursiveShapesOperationInput>
|
897 763 | {
|
898 764 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
899 - | ob.extract::<QueryParamsTargetingMapOfListOfLengthStringOperationInput>()
|
765 + | ob.extract::<ConstrainedRecursiveShapesOperationInput>()
|
900 766 | .map(Box::new)
|
901 767 | }
|
902 768 | }
|
903 769 |
|
904 770 | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
905 - | for std::boxed::Box<QueryParamsTargetingMapOfListOfLengthStringOperationInput>
|
771 + | for std::boxed::Box<ConstrainedRecursiveShapesOperationInput>
|
906 772 | {
|
907 773 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
908 774 | (*self).into_py(py)
|
909 775 | }
|
910 776 | }
|
911 - | impl crate::constrained::Constrained
|
912 - | for crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput
|
913 - | {
|
914 - | type Unconstrained = crate::input::query_params_targeting_map_of_list_of_length_string_operation_input_internal::Builder;
|
777 + | impl crate::constrained::Constrained for crate::input::ConstrainedRecursiveShapesOperationInput {
|
778 + | type Unconstrained =
|
779 + | crate::input::constrained_recursive_shapes_operation_input_internal::Builder;
|
915 780 | }
|
916 - | impl QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
917 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
918 - | pub fn builder(
|
919 - | ) -> crate::input::query_params_targeting_map_of_list_of_length_string_operation_input::Builder
|
920 - | {
|
921 - | crate::input::query_params_targeting_map_of_list_of_length_string_operation_input::Builder::default()
|
781 + | impl ConstrainedRecursiveShapesOperationInput {
|
782 + | /// Creates a new builder-style object to manufacture [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
783 + | pub fn builder() -> crate::input::constrained_recursive_shapes_operation_input::Builder {
|
784 + | crate::input::constrained_recursive_shapes_operation_input::Builder::default()
|
922 785 | }
|
923 786 | }
|
924 787 |
|
925 788 | #[::pyo3::pyclass]
|
926 - | /// :param map_of_length_string typing.Optional\[typing.Dict\[str, str\]\]:
|
789 + | /// :param length_map typing.Optional\[typing.Dict\[str, str\]\]:
|
927 790 | /// :rtype None:
|
928 791 | #[allow(missing_docs)] // documentation missing in model
|
929 792 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
930 - | pub struct QueryParamsTargetingMapOfLengthStringOperationInput {
|
793 + | pub struct QueryParamsTargetingLengthMapOperationInput {
|
931 794 | #[pyo3(get, set)]
|
932 795 | /// :type typing.Optional\[typing.Dict\[str, str\]\]:
|
933 796 | #[allow(missing_docs)] // documentation missing in model
|
934 - | pub map_of_length_string: ::std::option::Option<
|
797 + | pub length_map: ::std::option::Option<
|
935 798 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
936 799 | >,
|
937 800 | }
|
938 - | impl QueryParamsTargetingMapOfLengthStringOperationInput {
|
801 + | impl QueryParamsTargetingLengthMapOperationInput {
|
939 802 | #[allow(missing_docs)] // documentation missing in model
|
940 - | pub fn map_of_length_string(
|
803 + | pub fn length_map(
|
941 804 | &self,
|
942 805 | ) -> ::std::option::Option<
|
943 806 | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
944 807 | > {
|
945 - | self.map_of_length_string.as_ref()
|
808 + | self.length_map.as_ref()
|
946 809 | }
|
947 810 | }
|
948 811 | #[allow(clippy::new_without_default)]
|
949 812 | #[allow(clippy::too_many_arguments)]
|
950 813 | #[::pyo3::pymethods]
|
951 - | impl QueryParamsTargetingMapOfLengthStringOperationInput {
|
814 + | impl QueryParamsTargetingLengthMapOperationInput {
|
952 815 | #[new]
|
953 816 | pub fn new(
|
954 - | map_of_length_string: ::std::option::Option<
|
817 + | length_map: ::std::option::Option<
|
955 818 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
956 819 | >,
|
957 820 | ) -> Self {
|
958 - | Self {
|
959 - | map_of_length_string,
|
960 - | }
|
821 + | Self { length_map }
|
961 822 | }
|
962 823 | fn __repr__(&self) -> String {
|
963 824 | format!("{self:?}")
|
964 825 | }
|
965 826 | fn __str__(&self) -> String {
|
966 827 | format!("{self:?}")
|
967 828 | }
|
968 829 | }
|
969 830 | impl<'source> ::pyo3::FromPyObject<'source>
|
970 - | for std::boxed::Box<QueryParamsTargetingMapOfLengthStringOperationInput>
|
831 + | for std::boxed::Box<QueryParamsTargetingLengthMapOperationInput>
|
971 832 | {
|
972 833 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
973 - | ob.extract::<QueryParamsTargetingMapOfLengthStringOperationInput>()
|
834 + | ob.extract::<QueryParamsTargetingLengthMapOperationInput>()
|
974 835 | .map(Box::new)
|
975 836 | }
|
976 837 | }
|
977 838 |
|
978 839 | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
979 - | for std::boxed::Box<QueryParamsTargetingMapOfLengthStringOperationInput>
|
840 + | for std::boxed::Box<QueryParamsTargetingLengthMapOperationInput>
|
980 841 | {
|
981 842 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
982 843 | (*self).into_py(py)
|
983 844 | }
|
984 845 | }
|
985 - | impl crate::constrained::Constrained
|
986 - | for crate::input::QueryParamsTargetingMapOfLengthStringOperationInput
|
987 - | {
|
846 + | impl crate::constrained::Constrained for crate::input::QueryParamsTargetingLengthMapOperationInput {
|
988 847 | type Unconstrained =
|
989 - | crate::input::query_params_targeting_map_of_length_string_operation_input_internal::Builder;
|
848 + | crate::input::query_params_targeting_length_map_operation_input_internal::Builder;
|
990 849 | }
|
991 - | impl QueryParamsTargetingMapOfLengthStringOperationInput {
|
992 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
993 - | pub fn builder(
|
994 - | ) -> crate::input::query_params_targeting_map_of_length_string_operation_input::Builder {
|
995 - | crate::input::query_params_targeting_map_of_length_string_operation_input::Builder::default(
|
996 - | )
|
850 + | impl QueryParamsTargetingLengthMapOperationInput {
|
851 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
852 + | pub fn builder() -> crate::input::query_params_targeting_length_map_operation_input::Builder {
|
853 + | crate::input::query_params_targeting_length_map_operation_input::Builder::default()
|
997 854 | }
|
998 855 | }
|
999 856 |
|
1000 857 | #[::pyo3::pyclass]
|
1001 - | /// :param length_map typing.Optional\[typing.Dict\[str, str\]\]:
|
858 + | /// :param map_of_length_string typing.Optional\[typing.Dict\[str, str\]\]:
|
1002 859 | /// :rtype None:
|
1003 860 | #[allow(missing_docs)] // documentation missing in model
|
1004 861 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1005 - | pub struct QueryParamsTargetingLengthMapOperationInput {
|
862 + | pub struct QueryParamsTargetingMapOfLengthStringOperationInput {
|
1006 863 | #[pyo3(get, set)]
|
1007 864 | /// :type typing.Optional\[typing.Dict\[str, str\]\]:
|
1008 865 | #[allow(missing_docs)] // documentation missing in model
|
1009 - | pub length_map: ::std::option::Option<
|
866 + | pub map_of_length_string: ::std::option::Option<
|
1010 867 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1011 868 | >,
|
1012 869 | }
|
1013 - | impl QueryParamsTargetingLengthMapOperationInput {
|
870 + | impl QueryParamsTargetingMapOfLengthStringOperationInput {
|
1014 871 | #[allow(missing_docs)] // documentation missing in model
|
1015 - | pub fn length_map(
|
872 + | pub fn map_of_length_string(
|
1016 873 | &self,
|
1017 874 | ) -> ::std::option::Option<
|
1018 875 | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1019 876 | > {
|
1020 - | self.length_map.as_ref()
|
877 + | self.map_of_length_string.as_ref()
|
1021 878 | }
|
1022 879 | }
|
1023 880 | #[allow(clippy::new_without_default)]
|
1024 881 | #[allow(clippy::too_many_arguments)]
|
1025 882 | #[::pyo3::pymethods]
|
1026 - | impl QueryParamsTargetingLengthMapOperationInput {
|
883 + | impl QueryParamsTargetingMapOfLengthStringOperationInput {
|
1027 884 | #[new]
|
1028 885 | pub fn new(
|
1029 - | length_map: ::std::option::Option<
|
886 + | map_of_length_string: ::std::option::Option<
|
1030 887 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1031 888 | >,
|
1032 889 | ) -> Self {
|
1033 - | Self { length_map }
|
890 + | Self {
|
891 + | map_of_length_string,
|
892 + | }
|
1034 893 | }
|
1035 894 | fn __repr__(&self) -> String {
|
1036 895 | format!("{self:?}")
|
1037 896 | }
|
1038 897 | fn __str__(&self) -> String {
|
1039 898 | format!("{self:?}")
|
1040 899 | }
|
1041 900 | }
|
1042 901 | impl<'source> ::pyo3::FromPyObject<'source>
|
1043 - | for std::boxed::Box<QueryParamsTargetingLengthMapOperationInput>
|
902 + | for std::boxed::Box<QueryParamsTargetingMapOfLengthStringOperationInput>
|
1044 903 | {
|
1045 904 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1046 - | ob.extract::<QueryParamsTargetingLengthMapOperationInput>()
|
905 + | ob.extract::<QueryParamsTargetingMapOfLengthStringOperationInput>()
|
1047 906 | .map(Box::new)
|
1048 907 | }
|
1049 908 | }
|
1050 909 |
|
1051 910 | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
1052 - | for std::boxed::Box<QueryParamsTargetingLengthMapOperationInput>
|
911 + | for std::boxed::Box<QueryParamsTargetingMapOfLengthStringOperationInput>
|
1053 912 | {
|
1054 913 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1055 914 | (*self).into_py(py)
|
1056 915 | }
|
1057 916 | }
|
1058 - | impl crate::constrained::Constrained for crate::input::QueryParamsTargetingLengthMapOperationInput {
|
917 + | impl crate::constrained::Constrained
|
918 + | for crate::input::QueryParamsTargetingMapOfLengthStringOperationInput
|
919 + | {
|
1059 920 | type Unconstrained =
|
1060 - | crate::input::query_params_targeting_length_map_operation_input_internal::Builder;
|
921 + | crate::input::query_params_targeting_map_of_length_string_operation_input_internal::Builder;
|
1061 922 | }
|
1062 - | impl QueryParamsTargetingLengthMapOperationInput {
|
1063 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
1064 - | pub fn builder() -> crate::input::query_params_targeting_length_map_operation_input::Builder {
|
1065 - | crate::input::query_params_targeting_length_map_operation_input::Builder::default()
|
923 + | impl QueryParamsTargetingMapOfLengthStringOperationInput {
|
924 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
925 + | pub fn builder(
|
926 + | ) -> crate::input::query_params_targeting_map_of_length_string_operation_input::Builder {
|
927 + | crate::input::query_params_targeting_map_of_length_string_operation_input::Builder::default(
|
928 + | )
|
1066 929 | }
|
1067 930 | }
|
1068 931 |
|
1069 932 | #[::pyo3::pyclass]
|
1070 - | /// :param recursive_list typing.List\[constraints.model.RecursiveShapesInputOutputNested1\]:
|
1071 - | /// :param nested typing.Optional\[constraints.model.RecursiveShapesInputOutputNested1\]:
|
933 + | /// :param map_of_list_of_length_string typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
1072 934 | /// :rtype None:
|
1073 935 | #[allow(missing_docs)] // documentation missing in model
|
1074 - | #[derive(
|
1075 - | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1076 - | )]
|
1077 - | pub struct ConstrainedRecursiveShapesOperationInput {
|
1078 - | #[pyo3(get, set)]
|
1079 - | /// :type typing.Optional\[constraints.model.RecursiveShapesInputOutputNested1\]:
|
1080 - | #[allow(missing_docs)] // documentation missing in model
|
1081 - | pub nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
936 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
937 + | pub struct QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
1082 938 | #[pyo3(get, set)]
|
1083 - | /// :type typing.List\[constraints.model.RecursiveShapesInputOutputNested1\]:
|
939 + | /// :type typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
1084 940 | #[allow(missing_docs)] // documentation missing in model
|
1085 - | pub recursive_list: ::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>,
|
941 + | pub map_of_list_of_length_string: ::std::option::Option<
|
942 + | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
943 + | >,
|
1086 944 | }
|
1087 - | impl ConstrainedRecursiveShapesOperationInput {
|
945 + | impl QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
1088 946 | #[allow(missing_docs)] // documentation missing in model
|
1089 - | pub fn nested(
|
947 + | pub fn map_of_list_of_length_string(
|
1090 948 | &self,
|
1091 - | ) -> ::std::option::Option<&crate::model::RecursiveShapesInputOutputNested1> {
|
1092 - | self.nested.as_ref()
|
1093 - | }
|
1094 - | #[allow(missing_docs)] // documentation missing in model
|
1095 - | pub fn recursive_list(&self) -> &[crate::model::RecursiveShapesInputOutputNested1] {
|
1096 - | use std::ops::Deref;
|
1097 - | self.recursive_list.deref()
|
949 + | ) -> ::std::option::Option<
|
950 + | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
951 + | > {
|
952 + | self.map_of_list_of_length_string.as_ref()
|
1098 953 | }
|
1099 954 | }
|
1100 955 | #[allow(clippy::new_without_default)]
|
1101 956 | #[allow(clippy::too_many_arguments)]
|
1102 957 | #[::pyo3::pymethods]
|
1103 - | impl ConstrainedRecursiveShapesOperationInput {
|
958 + | impl QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
1104 959 | #[new]
|
1105 960 | pub fn new(
|
1106 - | recursive_list: ::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>,
|
1107 - | nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
961 + | map_of_list_of_length_string: ::std::option::Option<
|
962 + | ::std::collections::HashMap<
|
963 + | ::std::string::String,
|
964 + | ::std::vec::Vec<::std::string::String>,
|
965 + | >,
|
966 + | >,
|
1108 967 | ) -> Self {
|
1109 968 | Self {
|
1110 - | recursive_list,
|
1111 - | nested,
|
969 + | map_of_list_of_length_string,
|
1112 970 | }
|
1113 971 | }
|
1114 972 | fn __repr__(&self) -> String {
|
1115 973 | format!("{self:?}")
|
1116 974 | }
|
1117 975 | fn __str__(&self) -> String {
|
1118 976 | format!("{self:?}")
|
1119 977 | }
|
1120 978 | }
|
1121 979 | impl<'source> ::pyo3::FromPyObject<'source>
|
1122 - | for std::boxed::Box<ConstrainedRecursiveShapesOperationInput>
|
980 + | for std::boxed::Box<QueryParamsTargetingMapOfListOfLengthStringOperationInput>
|
1123 981 | {
|
1124 982 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1125 - | ob.extract::<ConstrainedRecursiveShapesOperationInput>()
|
983 + | ob.extract::<QueryParamsTargetingMapOfListOfLengthStringOperationInput>()
|
1126 984 | .map(Box::new)
|
1127 985 | }
|
1128 986 | }
|
1129 987 |
|
1130 988 | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
1131 - | for std::boxed::Box<ConstrainedRecursiveShapesOperationInput>
|
989 + | for std::boxed::Box<QueryParamsTargetingMapOfListOfLengthStringOperationInput>
|
1132 990 | {
|
1133 991 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1134 992 | (*self).into_py(py)
|
1135 993 | }
|
1136 994 | }
|
1137 - | impl crate::constrained::Constrained for crate::input::ConstrainedRecursiveShapesOperationInput {
|
1138 - | type Unconstrained =
|
1139 - | crate::input::constrained_recursive_shapes_operation_input_internal::Builder;
|
995 + | impl crate::constrained::Constrained
|
996 + | for crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput
|
997 + | {
|
998 + | type Unconstrained = crate::input::query_params_targeting_map_of_list_of_length_string_operation_input_internal::Builder;
|
1140 999 | }
|
1141 - | impl ConstrainedRecursiveShapesOperationInput {
|
1142 - | /// Creates a new builder-style object to manufacture [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
1143 - | pub fn builder() -> crate::input::constrained_recursive_shapes_operation_input::Builder {
|
1144 - | crate::input::constrained_recursive_shapes_operation_input::Builder::default()
|
1000 + | impl QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
1001 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
1002 + | pub fn builder(
|
1003 + | ) -> crate::input::query_params_targeting_map_of_list_of_length_string_operation_input::Builder
|
1004 + | {
|
1005 + | crate::input::query_params_targeting_map_of_list_of_length_string_operation_input::Builder::default()
|
1145 1006 | }
|
1146 1007 | }
|
1147 1008 |
|
1148 1009 | #[::pyo3::pyclass]
|
1149 - | /// :param http_payload_bound_constrained_shape constraints.model.ConA:
|
1010 + | /// :param map_of_set_of_length_string typing.Optional\[typing.Dict\[str, typing.Set\[str\]\]\]:
|
1150 1011 | /// :rtype None:
|
1151 1012 | #[allow(missing_docs)] // documentation missing in model
|
1152 1013 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1153 - | pub struct ConstrainedHttpPayloadBoundShapeOperationInput {
|
1014 + | pub struct QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
1154 1015 | #[pyo3(get, set)]
|
1155 - | /// :type constraints.model.ConA:
|
1016 + | /// :type typing.Optional\[typing.Dict\[str, typing.Set\[str\]\]\]:
|
1156 1017 | #[allow(missing_docs)] // documentation missing in model
|
1157 - | pub http_payload_bound_constrained_shape: crate::model::ConA,
|
1018 + | pub map_of_set_of_length_string: ::std::option::Option<
|
1019 + | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
1020 + | >,
|
1158 1021 | }
|
1159 - | impl ConstrainedHttpPayloadBoundShapeOperationInput {
|
1022 + | impl QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
1160 1023 | #[allow(missing_docs)] // documentation missing in model
|
1161 - | pub fn http_payload_bound_constrained_shape(&self) -> &crate::model::ConA {
|
1162 - | &self.http_payload_bound_constrained_shape
|
1024 + | pub fn map_of_set_of_length_string(
|
1025 + | &self,
|
1026 + | ) -> ::std::option::Option<
|
1027 + | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
1028 + | > {
|
1029 + | self.map_of_set_of_length_string.as_ref()
|
1163 1030 | }
|
1164 1031 | }
|
1165 1032 | #[allow(clippy::new_without_default)]
|
1166 1033 | #[allow(clippy::too_many_arguments)]
|
1167 1034 | #[::pyo3::pymethods]
|
1168 - | impl ConstrainedHttpPayloadBoundShapeOperationInput {
|
1035 + | impl QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
1169 1036 | #[new]
|
1170 - | pub fn new(http_payload_bound_constrained_shape: crate::model::ConA) -> Self {
|
1037 + | pub fn new(
|
1038 + | map_of_set_of_length_string: ::std::option::Option<
|
1039 + | ::std::collections::HashMap<
|
1040 + | ::std::string::String,
|
1041 + | ::std::vec::Vec<::std::string::String>,
|
1042 + | >,
|
1043 + | >,
|
1044 + | ) -> Self {
|
1171 1045 | Self {
|
1172 - | http_payload_bound_constrained_shape,
|
1046 + | map_of_set_of_length_string,
|
1173 1047 | }
|
1174 1048 | }
|
1175 1049 | fn __repr__(&self) -> String {
|
1176 1050 | format!("{self:?}")
|
1177 1051 | }
|
1178 1052 | fn __str__(&self) -> String {
|
1179 1053 | format!("{self:?}")
|
1180 1054 | }
|
1181 1055 | }
|
1182 1056 | impl<'source> ::pyo3::FromPyObject<'source>
|
1183 - | for std::boxed::Box<ConstrainedHttpPayloadBoundShapeOperationInput>
|
1057 + | for std::boxed::Box<QueryParamsTargetingMapOfSetOfLengthStringOperationInput>
|
1184 1058 | {
|
1185 1059 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1186 - | ob.extract::<ConstrainedHttpPayloadBoundShapeOperationInput>()
|
1060 + | ob.extract::<QueryParamsTargetingMapOfSetOfLengthStringOperationInput>()
|
1187 1061 | .map(Box::new)
|
1188 1062 | }
|
1189 1063 | }
|
1190 1064 |
|
1191 1065 | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
1192 - | for std::boxed::Box<ConstrainedHttpPayloadBoundShapeOperationInput>
|
1066 + | for std::boxed::Box<QueryParamsTargetingMapOfSetOfLengthStringOperationInput>
|
1193 1067 | {
|
1194 1068 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1195 1069 | (*self).into_py(py)
|
1196 1070 | }
|
1197 1071 | }
|
1198 1072 | impl crate::constrained::Constrained
|
1199 - | for crate::input::ConstrainedHttpPayloadBoundShapeOperationInput
|
1073 + | for crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput
|
1200 1074 | {
|
1201 - | type Unconstrained =
|
1202 - | crate::input::constrained_http_payload_bound_shape_operation_input_internal::Builder;
|
1075 + | type Unconstrained = crate::input::query_params_targeting_map_of_set_of_length_string_operation_input_internal::Builder;
|
1203 1076 | }
|
1204 - | impl ConstrainedHttpPayloadBoundShapeOperationInput {
|
1205 - | /// Creates a new builder-style object to manufacture [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
1206 - | pub fn builder() -> crate::input::constrained_http_payload_bound_shape_operation_input::Builder
|
1077 + | impl QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
1078 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
1079 + | pub fn builder(
|
1080 + | ) -> crate::input::query_params_targeting_map_of_set_of_length_string_operation_input::Builder
|
1207 1081 | {
|
1208 - | crate::input::constrained_http_payload_bound_shape_operation_input::Builder::default()
|
1082 + | crate::input::query_params_targeting_map_of_set_of_length_string_operation_input::Builder::default()
|
1209 1083 | }
|
1210 1084 | }
|
1211 1085 |
|
1212 1086 | #[::pyo3::pyclass]
|
1213 - | /// :param length_string_label str:
|
1214 - | /// :param range_integer_label int:
|
1215 - | /// :param range_short_label int:
|
1216 - | /// :param range_long_label int:
|
1217 - | /// :param range_byte_label int:
|
1218 - | /// :param enum_string_label constraints.model.EnumString:
|
1219 - | /// :param length_string_header_map typing.Dict\[str, str\]:
|
1220 - | /// :param range_integer_header int:
|
1221 - | /// :param range_short_header int:
|
1222 - | /// :param range_long_header int:
|
1223 - | /// :param range_byte_header int:
|
1224 - | /// :param range_byte_query int:
|
1225 - | /// :param range_short_query int:
|
1226 - | /// :param range_integer_query int:
|
1227 - | /// :param range_long_query int:
|
1228 - | /// :param length_string_header typing.Optional\[str\]:
|
1229 - | /// :param length_string_set_header typing.Optional\[typing.Set\[str\]\]:
|
1230 - | /// :param list_length_string_header typing.Optional\[typing.List\[str\]\]:
|
1231 - | /// :param length_list_pattern_string_header typing.Optional\[typing.List\[str\]\]:
|
1232 - | /// :param length_set_pattern_string_header typing.Optional\[typing.Set\[str\]\]:
|
1233 - | /// :param range_byte_set_header typing.Optional\[typing.List\[int\]\]:
|
1234 - | /// :param range_short_set_header typing.Optional\[typing.List\[int\]\]:
|
1235 - | /// :param range_integer_set_header typing.Optional\[typing.List\[int\]\]:
|
1236 - | /// :param range_long_set_header typing.Optional\[typing.List\[int\]\]:
|
1237 - | /// :param range_byte_list_header typing.Optional\[typing.List\[int\]\]:
|
1238 - | /// :param range_short_list_header typing.Optional\[typing.List\[int\]\]:
|
1239 - | /// :param range_integer_list_header typing.Optional\[typing.List\[int\]\]:
|
1240 - | /// :param range_long_list_header typing.Optional\[typing.List\[int\]\]:
|
1241 - | /// :param length_string_query typing.Optional\[str\]:
|
1242 - | /// :param enum_string_query typing.Optional\[constraints.model.EnumString\]:
|
1243 - | /// :param length_string_list_query typing.Optional\[typing.List\[str\]\]:
|
1244 - | /// :param length_list_pattern_string_query typing.Optional\[typing.List\[str\]\]:
|
1245 - | /// :param length_string_set_query typing.Optional\[typing.Set\[str\]\]:
|
1246 - | /// :param range_byte_list_query typing.Optional\[typing.List\[int\]\]:
|
1247 - | /// :param range_short_list_query typing.Optional\[typing.List\[int\]\]:
|
1248 - | /// :param range_integer_list_query typing.Optional\[typing.List\[int\]\]:
|
1249 - | /// :param range_long_list_query typing.Optional\[typing.List\[int\]\]:
|
1250 - | /// :param range_byte_set_query typing.Optional\[typing.List\[int\]\]:
|
1251 - | /// :param range_short_set_query typing.Optional\[typing.List\[int\]\]:
|
1252 - | /// :param range_integer_set_query typing.Optional\[typing.List\[int\]\]:
|
1253 - | /// :param range_long_set_query typing.Optional\[typing.List\[int\]\]:
|
1254 - | /// :param enum_string_list_query typing.Optional\[typing.List\[constraints.model.EnumString\]\]:
|
1087 + | /// :param map_of_length_list_of_pattern_string typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
1255 1088 | /// :rtype None:
|
1256 1089 | #[allow(missing_docs)] // documentation missing in model
|
1257 1090 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1258 - | pub struct ConstrainedHttpBoundShapesOperationInput {
|
1259 - | #[pyo3(get, set)]
|
1260 - | /// :type str:
|
1261 - | #[allow(missing_docs)] // documentation missing in model
|
1262 - | pub length_string_label: ::std::string::String,
|
1263 - | #[pyo3(get, set)]
|
1264 - | /// :type int:
|
1265 - | #[allow(missing_docs)] // documentation missing in model
|
1266 - | pub range_integer_label: i32,
|
1267 - | #[pyo3(get, set)]
|
1268 - | /// :type int:
|
1269 - | #[allow(missing_docs)] // documentation missing in model
|
1270 - | pub range_short_label: i16,
|
1271 - | #[pyo3(get, set)]
|
1272 - | /// :type int:
|
1273 - | #[allow(missing_docs)] // documentation missing in model
|
1274 - | pub range_long_label: i64,
|
1275 - | #[pyo3(get, set)]
|
1276 - | /// :type int:
|
1277 - | #[allow(missing_docs)] // documentation missing in model
|
1278 - | pub range_byte_label: i8,
|
1279 - | #[pyo3(get, set)]
|
1280 - | /// :type constraints.model.EnumString:
|
1281 - | #[allow(missing_docs)] // documentation missing in model
|
1282 - | pub enum_string_label: crate::model::EnumString,
|
1283 - | #[pyo3(get, set)]
|
1284 - | /// :type typing.Dict\[str, str\]:
|
1285 - | #[allow(missing_docs)] // documentation missing in model
|
1286 - | pub length_string_header_map:
|
1287 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1091 + | pub struct QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
1288 1092 | #[pyo3(get, set)]
|
1289 - | /// :type typing.Optional\[str\]:
|
1093 + | /// :type typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
1290 1094 | #[allow(missing_docs)] // documentation missing in model
|
1291 - | pub length_string_header: ::std::option::Option<::std::string::String>,
|
1292 - | #[pyo3(get, set)]
|
1293 - | /// :type int:
|
1095 + | pub map_of_length_list_of_pattern_string: ::std::option::Option<
|
1096 + | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
1097 + | >,
|
1098 + | }
|
1099 + | impl QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
1294 1100 | #[allow(missing_docs)] // documentation missing in model
|
1295 - | pub range_integer_header: i32,
|
1296 - | #[pyo3(get, set)]
|
1297 - | /// :type int:
|
1298 - | #[allow(missing_docs)] // documentation missing in model
|
1299 - | pub range_short_header: i16,
|
1300 - | #[pyo3(get, set)]
|
1301 - | /// :type int:
|
1302 - | #[allow(missing_docs)] // documentation missing in model
|
1303 - | pub range_long_header: i64,
|
1304 - | #[pyo3(get, set)]
|
1305 - | /// :type int:
|
1306 - | #[allow(missing_docs)] // documentation missing in model
|
1307 - | pub range_byte_header: i8,
|
1308 - | #[pyo3(get, set)]
|
1309 - | /// :type typing.Optional\[typing.Set\[str\]\]:
|
1310 - | #[allow(missing_docs)] // documentation missing in model
|
1311 - | pub length_string_set_header: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1312 - | #[pyo3(get, set)]
|
1313 - | /// :type typing.Optional\[typing.List\[str\]\]:
|
1314 - | #[allow(missing_docs)] // documentation missing in model
|
1315 - | pub list_length_string_header: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1316 - | #[pyo3(get, set)]
|
1317 - | /// :type typing.Optional\[typing.List\[str\]\]:
|
1318 - | #[allow(missing_docs)] // documentation missing in model
|
1319 - | pub length_list_pattern_string_header:
|
1320 - | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1321 - | #[pyo3(get, set)]
|
1322 - | /// :type typing.Optional\[typing.Set\[str\]\]:
|
1323 - | #[allow(missing_docs)] // documentation missing in model
|
1324 - | pub length_set_pattern_string_header:
|
1325 - | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1326 - | #[pyo3(get, set)]
|
1327 - | /// :type typing.Optional\[typing.List\[int\]\]:
|
1328 - | #[allow(missing_docs)] // documentation missing in model
|
1329 - | pub range_byte_set_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
1330 - | #[pyo3(get, set)]
|
1331 - | /// :type typing.Optional\[typing.List\[int\]\]:
|
1332 - | #[allow(missing_docs)] // documentation missing in model
|
1333 - | pub range_short_set_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
1334 - | #[pyo3(get, set)]
|
1335 - | /// :type typing.Optional\[typing.List\[int\]\]:
|
1336 - | #[allow(missing_docs)] // documentation missing in model
|
1337 - | pub range_integer_set_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
1338 - | #[pyo3(get, set)]
|
1339 - | /// :type typing.Optional\[typing.List\[int\]\]:
|
1340 - | #[allow(missing_docs)] // documentation missing in model
|
1341 - | pub range_long_set_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
1342 - | #[pyo3(get, set)]
|
1343 - | /// :type typing.Optional\[typing.List\[int\]\]:
|
1344 - | #[allow(missing_docs)] // documentation missing in model
|
1345 - | pub range_byte_list_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
1346 - | #[pyo3(get, set)]
|
1347 - | /// :type typing.Optional\[typing.List\[int\]\]:
|
1348 - | #[allow(missing_docs)] // documentation missing in model
|
1349 - | pub range_short_list_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
1350 - | #[pyo3(get, set)]
|
1351 - | /// :type typing.Optional\[typing.List\[int\]\]:
|
1352 - | #[allow(missing_docs)] // documentation missing in model
|
1353 - | pub range_integer_list_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
1354 - | #[pyo3(get, set)]
|
1355 - | /// :type typing.Optional\[typing.List\[int\]\]:
|
1356 - | #[allow(missing_docs)] // documentation missing in model
|
1357 - | pub range_long_list_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
1358 - | #[pyo3(get, set)]
|
1359 - | /// :type typing.Optional\[str\]:
|
1360 - | #[allow(missing_docs)] // documentation missing in model
|
1361 - | pub length_string_query: ::std::option::Option<::std::string::String>,
|
1362 - | #[pyo3(get, set)]
|
1363 - | /// :type int:
|
1364 - | #[allow(missing_docs)] // documentation missing in model
|
1365 - | pub range_byte_query: i8,
|
1366 - | #[pyo3(get, set)]
|
1367 - | /// :type int:
|
1368 - | #[allow(missing_docs)] // documentation missing in model
|
1369 - | pub range_short_query: i16,
|
1370 - | #[pyo3(get, set)]
|
1371 - | /// :type int:
|
1372 - | #[allow(missing_docs)] // documentation missing in model
|
1373 - | pub range_integer_query: i32,
|
1374 - | #[pyo3(get, set)]
|
1375 - | /// :type int:
|
1376 - | #[allow(missing_docs)] // documentation missing in model
|
1377 - | pub range_long_query: i64,
|
1378 - | #[pyo3(get, set)]
|
1379 - | /// :type typing.Optional\[constraints.model.EnumString\]:
|
1380 - | #[allow(missing_docs)] // documentation missing in model
|
1381 - | pub enum_string_query: ::std::option::Option<crate::model::EnumString>,
|
1382 - | #[pyo3(get, set)]
|
1383 - | /// :type typing.Optional\[typing.List\[str\]\]:
|
1384 - | #[allow(missing_docs)] // documentation missing in model
|
1385 - | pub length_string_list_query: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1386 - | #[pyo3(get, set)]
|
1387 - | /// :type typing.Optional\[typing.List\[str\]\]:
|
1388 - | #[allow(missing_docs)] // documentation missing in model
|
1389 - | pub length_list_pattern_string_query:
|
1390 - | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1391 - | #[pyo3(get, set)]
|
1392 - | /// :type typing.Optional\[typing.Set\[str\]\]:
|
1393 - | #[allow(missing_docs)] // documentation missing in model
|
1394 - | pub length_string_set_query: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1395 - | #[pyo3(get, set)]
|
1396 - | /// :type typing.Optional\[typing.List\[int\]\]:
|
1397 - | #[allow(missing_docs)] // documentation missing in model
|
1398 - | pub range_byte_list_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
1399 - | #[pyo3(get, set)]
|
1400 - | /// :type typing.Optional\[typing.List\[int\]\]:
|
1401 - | #[allow(missing_docs)] // documentation missing in model
|
1402 - | pub range_short_list_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
1403 - | #[pyo3(get, set)]
|
1404 - | /// :type typing.Optional\[typing.List\[int\]\]:
|
1405 - | #[allow(missing_docs)] // documentation missing in model
|
1406 - | pub range_integer_list_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
1407 - | #[pyo3(get, set)]
|
1408 - | /// :type typing.Optional\[typing.List\[int\]\]:
|
1409 - | #[allow(missing_docs)] // documentation missing in model
|
1410 - | pub range_long_list_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
1411 - | #[pyo3(get, set)]
|
1412 - | /// :type typing.Optional\[typing.List\[int\]\]:
|
1413 - | #[allow(missing_docs)] // documentation missing in model
|
1414 - | pub range_byte_set_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
1415 - | #[pyo3(get, set)]
|
1416 - | /// :type typing.Optional\[typing.List\[int\]\]:
|
1417 - | #[allow(missing_docs)] // documentation missing in model
|
1418 - | pub range_short_set_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
1419 - | #[pyo3(get, set)]
|
1420 - | /// :type typing.Optional\[typing.List\[int\]\]:
|
1421 - | #[allow(missing_docs)] // documentation missing in model
|
1422 - | pub range_integer_set_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
1423 - | #[pyo3(get, set)]
|
1424 - | /// :type typing.Optional\[typing.List\[int\]\]:
|
1425 - | #[allow(missing_docs)] // documentation missing in model
|
1426 - | pub range_long_set_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
1427 - | #[pyo3(get, set)]
|
1428 - | /// :type typing.Optional\[typing.List\[constraints.model.EnumString\]\]:
|
1429 - | #[allow(missing_docs)] // documentation missing in model
|
1430 - | pub enum_string_list_query: ::std::option::Option<::std::vec::Vec<crate::model::EnumString>>,
|
1431 - | }
|
1432 - | impl ConstrainedHttpBoundShapesOperationInput {
|
1433 - | #[allow(missing_docs)] // documentation missing in model
|
1434 - | pub fn length_string_label(&self) -> &str {
|
1435 - | use std::ops::Deref;
|
1436 - | self.length_string_label.deref()
|
1437 - | }
|
1438 - | #[allow(missing_docs)] // documentation missing in model
|
1439 - | pub fn range_integer_label(&self) -> i32 {
|
1440 - | self.range_integer_label
|
1441 - | }
|
1442 - | #[allow(missing_docs)] // documentation missing in model
|
1443 - | pub fn range_short_label(&self) -> i16 {
|
1444 - | self.range_short_label
|
1445 - | }
|
1446 - | #[allow(missing_docs)] // documentation missing in model
|
1447 - | pub fn range_long_label(&self) -> i64 {
|
1448 - | self.range_long_label
|
1101 + | pub fn map_of_length_list_of_pattern_string(
|
1102 + | &self,
|
1103 + | ) -> ::std::option::Option<
|
1104 + | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
1105 + | > {
|
1106 + | self.map_of_length_list_of_pattern_string.as_ref()
|
1449 1107 | }
|
1450 - | #[allow(missing_docs)] // documentation missing in model
|
1451 - | pub fn range_byte_label(&self) -> i8 {
|
1452 - | self.range_byte_label
|
1108 + | }
|
1109 + | #[allow(clippy::new_without_default)]
|
1110 + | #[allow(clippy::too_many_arguments)]
|
1111 + | #[::pyo3::pymethods]
|
1112 + | impl QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
1113 + | #[new]
|
1114 + | pub fn new(
|
1115 + | map_of_length_list_of_pattern_string: ::std::option::Option<
|
1116 + | ::std::collections::HashMap<
|
1117 + | ::std::string::String,
|
1118 + | ::std::vec::Vec<::std::string::String>,
|
1119 + | >,
|
1120 + | >,
|
1121 + | ) -> Self {
|
1122 + | Self {
|
1123 + | map_of_length_list_of_pattern_string,
|
1453 1124 | }
|
1454 - | #[allow(missing_docs)] // documentation missing in model
|
1455 - | pub fn enum_string_label(&self) -> &crate::model::EnumString {
|
1456 - | &self.enum_string_label
|
1457 1125 | }
|
1458 - | #[allow(missing_docs)] // documentation missing in model
|
1459 - | pub fn length_string_header_map(
|
1460 - | &self,
|
1461 - | ) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> {
|
1462 - | &self.length_string_header_map
|
1126 + | fn __repr__(&self) -> String {
|
1127 + | format!("{self:?}")
|
1463 1128 | }
|
1464 - | #[allow(missing_docs)] // documentation missing in model
|
1465 - | pub fn length_string_header(&self) -> ::std::option::Option<&str> {
|
1466 - | self.length_string_header.as_deref()
|
1129 + | fn __str__(&self) -> String {
|
1130 + | format!("{self:?}")
|
1467 1131 | }
|
1468 - | #[allow(missing_docs)] // documentation missing in model
|
1469 - | pub fn range_integer_header(&self) -> i32 {
|
1470 - | self.range_integer_header
|
1132 + | }
|
1133 + | impl<'source> ::pyo3::FromPyObject<'source>
|
1134 + | for std::boxed::Box<QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput>
|
1135 + | {
|
1136 + | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1137 + | ob.extract::<QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput>()
|
1138 + | .map(Box::new)
|
1471 1139 | }
|
1472 - | #[allow(missing_docs)] // documentation missing in model
|
1473 - | pub fn range_short_header(&self) -> i16 {
|
1474 - | self.range_short_header
|
1140 + | }
|
1141 + |
|
1142 + | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
1143 + | for std::boxed::Box<QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput>
|
1144 + | {
|
1145 + | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1146 + | (*self).into_py(py)
|
1475 1147 | }
|
1476 - | #[allow(missing_docs)] // documentation missing in model
|
1477 - | pub fn range_long_header(&self) -> i64 {
|
1478 - | self.range_long_header
|
1148 + | }
|
1149 + | impl crate::constrained::Constrained
|
1150 + | for crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
1151 + | {
|
1152 + | type Unconstrained = crate::input::query_params_targeting_map_of_length_list_of_pattern_string_operation_input_internal::Builder;
|
1153 + | }
|
1154 + | impl QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
1155 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
1156 + | pub fn builder() -> crate::input::query_params_targeting_map_of_length_list_of_pattern_string_operation_input::Builder{
|
1157 + | crate::input::query_params_targeting_map_of_length_list_of_pattern_string_operation_input::Builder::default()
|
1479 1158 | }
|
1159 + | }
|
1160 + |
|
1161 + | #[::pyo3::pyclass]
|
1162 + | /// :param map_of_list_of_enum_string typing.Optional\[typing.Dict\[constraints.model.EnumString, typing.List\[constraints.model.EnumString\]\]\]:
|
1163 + | /// :rtype None:
|
1164 + | #[allow(missing_docs)] // documentation missing in model
|
1165 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1166 + | pub struct QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
1167 + | #[pyo3(get, set)]
|
1168 + | /// :type typing.Optional\[typing.Dict\[constraints.model.EnumString, typing.List\[constraints.model.EnumString\]\]\]:
|
1480 1169 | #[allow(missing_docs)] // documentation missing in model
|
1481 - | pub fn range_byte_header(&self) -> i8 {
|
1482 - | self.range_byte_header
|
1483 - | }
|
1170 + | pub map_of_list_of_enum_string: ::std::option::Option<
|
1171 + | ::std::collections::HashMap<
|
1172 + | crate::model::EnumString,
|
1173 + | ::std::vec::Vec<crate::model::EnumString>,
|
1174 + | >,
|
1175 + | >,
|
1176 + | }
|
1177 + | impl QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
1484 1178 | #[allow(missing_docs)] // documentation missing in model
|
1485 - | pub fn length_string_set_header(
|
1179 + | pub fn map_of_list_of_enum_string(
|
1486 1180 | &self,
|
1487 - | ) -> ::std::option::Option<&::std::vec::Vec<::std::string::String>> {
|
1488 - | self.length_string_set_header.as_ref()
|
1489 - | }
|
1490 - | #[allow(missing_docs)] // documentation missing in model
|
1491 - | pub fn list_length_string_header(&self) -> ::std::option::Option<&[::std::string::String]> {
|
1492 - | self.list_length_string_header.as_deref()
|
1493 - | }
|
1494 - | #[allow(missing_docs)] // documentation missing in model
|
1495 - | pub fn length_list_pattern_string_header(
|
1496 - | &self,
|
1497 - | ) -> ::std::option::Option<&[::std::string::String]> {
|
1498 - | self.length_list_pattern_string_header.as_deref()
|
1499 - | }
|
1500 - | #[allow(missing_docs)] // documentation missing in model
|
1501 - | pub fn length_set_pattern_string_header(
|
1502 - | &self,
|
1503 - | ) -> ::std::option::Option<&::std::vec::Vec<::std::string::String>> {
|
1504 - | self.length_set_pattern_string_header.as_ref()
|
1505 - | }
|
1506 - | #[allow(missing_docs)] // documentation missing in model
|
1507 - | pub fn range_byte_set_header(&self) -> ::std::option::Option<&[i8]> {
|
1508 - | self.range_byte_set_header.as_deref()
|
1509 - | }
|
1510 - | #[allow(missing_docs)] // documentation missing in model
|
1511 - | pub fn range_short_set_header(&self) -> ::std::option::Option<&[i16]> {
|
1512 - | self.range_short_set_header.as_deref()
|
1513 - | }
|
1514 - | #[allow(missing_docs)] // documentation missing in model
|
1515 - | pub fn range_integer_set_header(&self) -> ::std::option::Option<&[i32]> {
|
1516 - | self.range_integer_set_header.as_deref()
|
1517 - | }
|
1518 - | #[allow(missing_docs)] // documentation missing in model
|
1519 - | pub fn range_long_set_header(&self) -> ::std::option::Option<&[i64]> {
|
1520 - | self.range_long_set_header.as_deref()
|
1521 - | }
|
1522 - | #[allow(missing_docs)] // documentation missing in model
|
1523 - | pub fn range_byte_list_header(&self) -> ::std::option::Option<&[i8]> {
|
1524 - | self.range_byte_list_header.as_deref()
|
1525 - | }
|
1526 - | #[allow(missing_docs)] // documentation missing in model
|
1527 - | pub fn range_short_list_header(&self) -> ::std::option::Option<&[i16]> {
|
1528 - | self.range_short_list_header.as_deref()
|
1529 - | }
|
1530 - | #[allow(missing_docs)] // documentation missing in model
|
1531 - | pub fn range_integer_list_header(&self) -> ::std::option::Option<&[i32]> {
|
1532 - | self.range_integer_list_header.as_deref()
|
1533 - | }
|
1534 - | #[allow(missing_docs)] // documentation missing in model
|
1535 - | pub fn range_long_list_header(&self) -> ::std::option::Option<&[i64]> {
|
1536 - | self.range_long_list_header.as_deref()
|
1537 - | }
|
1538 - | #[allow(missing_docs)] // documentation missing in model
|
1539 - | pub fn length_string_query(&self) -> ::std::option::Option<&str> {
|
1540 - | self.length_string_query.as_deref()
|
1541 - | }
|
1542 - | #[allow(missing_docs)] // documentation missing in model
|
1543 - | pub fn range_byte_query(&self) -> i8 {
|
1544 - | self.range_byte_query
|
1545 - | }
|
1546 - | #[allow(missing_docs)] // documentation missing in model
|
1547 - | pub fn range_short_query(&self) -> i16 {
|
1548 - | self.range_short_query
|
1549 - | }
|
1550 - | #[allow(missing_docs)] // documentation missing in model
|
1551 - | pub fn range_integer_query(&self) -> i32 {
|
1552 - | self.range_integer_query
|
1553 - | }
|
1554 - | #[allow(missing_docs)] // documentation missing in model
|
1555 - | pub fn range_long_query(&self) -> i64 {
|
1556 - | self.range_long_query
|
1557 - | }
|
1558 - | #[allow(missing_docs)] // documentation missing in model
|
1559 - | pub fn enum_string_query(&self) -> ::std::option::Option<&crate::model::EnumString> {
|
1560 - | self.enum_string_query.as_ref()
|
1561 - | }
|
1562 - | #[allow(missing_docs)] // documentation missing in model
|
1563 - | pub fn length_string_list_query(&self) -> ::std::option::Option<&[::std::string::String]> {
|
1564 - | self.length_string_list_query.as_deref()
|
1565 - | }
|
1566 - | #[allow(missing_docs)] // documentation missing in model
|
1567 - | pub fn length_list_pattern_string_query(
|
1568 - | &self,
|
1569 - | ) -> ::std::option::Option<&[::std::string::String]> {
|
1570 - | self.length_list_pattern_string_query.as_deref()
|
1571 - | }
|
1572 - | #[allow(missing_docs)] // documentation missing in model
|
1573 - | pub fn length_string_set_query(
|
1574 - | &self,
|
1575 - | ) -> ::std::option::Option<&::std::vec::Vec<::std::string::String>> {
|
1576 - | self.length_string_set_query.as_ref()
|
1577 - | }
|
1578 - | #[allow(missing_docs)] // documentation missing in model
|
1579 - | pub fn range_byte_list_query(&self) -> ::std::option::Option<&[i8]> {
|
1580 - | self.range_byte_list_query.as_deref()
|
1581 - | }
|
1582 - | #[allow(missing_docs)] // documentation missing in model
|
1583 - | pub fn range_short_list_query(&self) -> ::std::option::Option<&[i16]> {
|
1584 - | self.range_short_list_query.as_deref()
|
1585 - | }
|
1586 - | #[allow(missing_docs)] // documentation missing in model
|
1587 - | pub fn range_integer_list_query(&self) -> ::std::option::Option<&[i32]> {
|
1588 - | self.range_integer_list_query.as_deref()
|
1589 - | }
|
1590 - | #[allow(missing_docs)] // documentation missing in model
|
1591 - | pub fn range_long_list_query(&self) -> ::std::option::Option<&[i64]> {
|
1592 - | self.range_long_list_query.as_deref()
|
1593 - | }
|
1594 - | #[allow(missing_docs)] // documentation missing in model
|
1595 - | pub fn range_byte_set_query(&self) -> ::std::option::Option<&[i8]> {
|
1596 - | self.range_byte_set_query.as_deref()
|
1597 - | }
|
1598 - | #[allow(missing_docs)] // documentation missing in model
|
1599 - | pub fn range_short_set_query(&self) -> ::std::option::Option<&[i16]> {
|
1600 - | self.range_short_set_query.as_deref()
|
1601 - | }
|
1602 - | #[allow(missing_docs)] // documentation missing in model
|
1603 - | pub fn range_integer_set_query(&self) -> ::std::option::Option<&[i32]> {
|
1604 - | self.range_integer_set_query.as_deref()
|
1605 - | }
|
1606 - | #[allow(missing_docs)] // documentation missing in model
|
1607 - | pub fn range_long_set_query(&self) -> ::std::option::Option<&[i64]> {
|
1608 - | self.range_long_set_query.as_deref()
|
1609 - | }
|
1610 - | #[allow(missing_docs)] // documentation missing in model
|
1611 - | pub fn enum_string_list_query(&self) -> ::std::option::Option<&[crate::model::EnumString]> {
|
1612 - | self.enum_string_list_query.as_deref()
|
1181 + | ) -> ::std::option::Option<
|
1182 + | &::std::collections::HashMap<
|
1183 + | crate::model::EnumString,
|
1184 + | ::std::vec::Vec<crate::model::EnumString>,
|
1185 + | >,
|
1186 + | > {
|
1187 + | self.map_of_list_of_enum_string.as_ref()
|
1613 1188 | }
|
1614 1189 | }
|
1615 1190 | #[allow(clippy::new_without_default)]
|
1616 1191 | #[allow(clippy::too_many_arguments)]
|
1617 1192 | #[::pyo3::pymethods]
|
1618 - | impl ConstrainedHttpBoundShapesOperationInput {
|
1193 + | impl QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
1619 1194 | #[new]
|
1620 1195 | pub fn new(
|
1621 - | length_string_label: ::std::string::String,
|
1622 - | range_integer_label: i32,
|
1623 - | range_short_label: i16,
|
1624 - | range_long_label: i64,
|
1625 - | range_byte_label: i8,
|
1626 - | enum_string_label: crate::model::EnumString,
|
1627 - | length_string_header_map: ::std::collections::HashMap<
|
1628 - | ::std::string::String,
|
1629 - | ::std::string::String,
|
1630 - | >,
|
1631 - | range_integer_header: i32,
|
1632 - | range_short_header: i16,
|
1633 - | range_long_header: i64,
|
1634 - | range_byte_header: i8,
|
1635 - | range_byte_query: i8,
|
1636 - | range_short_query: i16,
|
1637 - | range_integer_query: i32,
|
1638 - | range_long_query: i64,
|
1639 - | length_string_header: ::std::option::Option<::std::string::String>,
|
1640 - | length_string_set_header: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1641 - | list_length_string_header: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1642 - | length_list_pattern_string_header: ::std::option::Option<
|
1643 - | ::std::vec::Vec<::std::string::String>,
|
1644 - | >,
|
1645 - | length_set_pattern_string_header: ::std::option::Option<
|
1646 - | ::std::vec::Vec<::std::string::String>,
|
1196 + | map_of_list_of_enum_string: ::std::option::Option<
|
1197 + | ::std::collections::HashMap<
|
1198 + | crate::model::EnumString,
|
1199 + | ::std::vec::Vec<crate::model::EnumString>,
|
1647 1200 | >,
|
1648 - | range_byte_set_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
1649 - | range_short_set_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
1650 - | range_integer_set_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
1651 - | range_long_set_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
1652 - | range_byte_list_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
1653 - | range_short_list_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
1654 - | range_integer_list_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
1655 - | range_long_list_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
1656 - | length_string_query: ::std::option::Option<::std::string::String>,
|
1657 - | enum_string_query: ::std::option::Option<crate::model::EnumString>,
|
1658 - | length_string_list_query: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1659 - | length_list_pattern_string_query: ::std::option::Option<
|
1660 - | ::std::vec::Vec<::std::string::String>,
|
1661 1201 | >,
|
1662 - | length_string_set_query: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1663 - | range_byte_list_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
1664 - | range_short_list_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
1665 - | range_integer_list_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
1666 - | range_long_list_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
1667 - | range_byte_set_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
1668 - | range_short_set_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
1669 - | range_integer_set_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
1670 - | range_long_set_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
1671 - | enum_string_list_query: ::std::option::Option<::std::vec::Vec<crate::model::EnumString>>,
|
1672 1202 | ) -> Self {
|
1673 1203 | Self {
|
1674 - | length_string_label,
|
1675 - | range_integer_label,
|
1676 - | range_short_label,
|
1677 - | range_long_label,
|
1678 - | range_byte_label,
|
1679 - | enum_string_label,
|
1680 - | length_string_header_map,
|
1681 - | range_integer_header,
|
1682 - | range_short_header,
|
1683 - | range_long_header,
|
1684 - | range_byte_header,
|
1685 - | range_byte_query,
|
1686 - | range_short_query,
|
1687 - | range_integer_query,
|
1688 - | range_long_query,
|
1689 - | length_string_header,
|
1690 - | length_string_set_header,
|
1691 - | list_length_string_header,
|
1692 - | length_list_pattern_string_header,
|
1693 - | length_set_pattern_string_header,
|
1694 - | range_byte_set_header,
|
1695 - | range_short_set_header,
|
1696 - | range_integer_set_header,
|
1697 - | range_long_set_header,
|
1698 - | range_byte_list_header,
|
1699 - | range_short_list_header,
|
1700 - | range_integer_list_header,
|
1701 - | range_long_list_header,
|
1702 - | length_string_query,
|
1703 - | enum_string_query,
|
1704 - | length_string_list_query,
|
1705 - | length_list_pattern_string_query,
|
1706 - | length_string_set_query,
|
1707 - | range_byte_list_query,
|
1708 - | range_short_list_query,
|
1709 - | range_integer_list_query,
|
1710 - | range_long_list_query,
|
1711 - | range_byte_set_query,
|
1712 - | range_short_set_query,
|
1713 - | range_integer_set_query,
|
1714 - | range_long_set_query,
|
1715 - | enum_string_list_query,
|
1204 + | map_of_list_of_enum_string,
|
1716 1205 | }
|
1717 1206 | }
|
1718 1207 | fn __repr__(&self) -> String {
|
1719 1208 | format!("{self:?}")
|
1720 1209 | }
|
1721 1210 | fn __str__(&self) -> String {
|
1722 1211 | format!("{self:?}")
|
1723 1212 | }
|
1724 1213 | }
|
1725 1214 | impl<'source> ::pyo3::FromPyObject<'source>
|
1726 - | for std::boxed::Box<ConstrainedHttpBoundShapesOperationInput>
|
1215 + | for std::boxed::Box<QueryParamsTargetingMapOfListOfEnumStringOperationInput>
|
1727 1216 | {
|
1728 1217 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1729 - | ob.extract::<ConstrainedHttpBoundShapesOperationInput>()
|
1218 + | ob.extract::<QueryParamsTargetingMapOfListOfEnumStringOperationInput>()
|
1730 1219 | .map(Box::new)
|
1731 1220 | }
|
1732 1221 | }
|
1733 1222 |
|
1734 1223 | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
1735 - | for std::boxed::Box<ConstrainedHttpBoundShapesOperationInput>
|
1224 + | for std::boxed::Box<QueryParamsTargetingMapOfListOfEnumStringOperationInput>
|
1736 1225 | {
|
1737 1226 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1738 1227 | (*self).into_py(py)
|
1739 1228 | }
|
1740 1229 | }
|
1741 - | impl crate::constrained::Constrained for crate::input::ConstrainedHttpBoundShapesOperationInput {
|
1742 - | type Unconstrained =
|
1743 - | crate::input::constrained_http_bound_shapes_operation_input_internal::Builder;
|
1230 + | impl crate::constrained::Constrained
|
1231 + | for crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput
|
1232 + | {
|
1233 + | type Unconstrained = crate::input::query_params_targeting_map_of_list_of_enum_string_operation_input_internal::Builder;
|
1744 1234 | }
|
1745 - | impl ConstrainedHttpBoundShapesOperationInput {
|
1746 - | /// Creates a new builder-style object to manufacture [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
1747 - | pub fn builder() -> crate::input::constrained_http_bound_shapes_operation_input::Builder {
|
1748 - | crate::input::constrained_http_bound_shapes_operation_input::Builder::default()
|
1235 + | impl QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
1236 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
1237 + | pub fn builder(
|
1238 + | ) -> crate::input::query_params_targeting_map_of_list_of_enum_string_operation_input::Builder
|
1239 + | {
|
1240 + | crate::input::query_params_targeting_map_of_list_of_enum_string_operation_input::Builder::default()
|
1749 1241 | }
|
1750 1242 | }
|
1751 1243 |
|
1752 1244 | #[::pyo3::pyclass]
|
1245 + | /// :param map_of_pattern_string typing.Optional\[typing.Dict\[str, str\]\]:
|
1753 1246 | /// :rtype None:
|
1754 1247 | #[allow(missing_docs)] // documentation missing in model
|
1755 - | #[derive(
|
1756 - | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1757 - | )]
|
1758 - | pub struct ConstrainedShapesOnlyInOutputOperationInput {}
|
1759 - | #[allow(clippy::new_without_default)]
|
1760 - | #[allow(clippy::too_many_arguments)]
|
1761 - | #[::pyo3::pymethods]
|
1762 - | impl ConstrainedShapesOnlyInOutputOperationInput {
|
1763 - | #[new]
|
1764 - | pub fn new() -> Self {
|
1765 - | Self {}
|
1248 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1249 + | pub struct QueryParamsTargetingMapOfPatternStringOperationInput {
|
1250 + | #[pyo3(get, set)]
|
1251 + | /// :type typing.Optional\[typing.Dict\[str, str\]\]:
|
1252 + | #[allow(missing_docs)] // documentation missing in model
|
1253 + | pub map_of_pattern_string: ::std::option::Option<
|
1254 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1255 + | >,
|
1256 + | }
|
1257 + | impl QueryParamsTargetingMapOfPatternStringOperationInput {
|
1258 + | #[allow(missing_docs)] // documentation missing in model
|
1259 + | pub fn map_of_pattern_string(
|
1260 + | &self,
|
1261 + | ) -> ::std::option::Option<
|
1262 + | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1263 + | > {
|
1264 + | self.map_of_pattern_string.as_ref()
|
1265 + | }
|
1266 + | }
|
1267 + | #[allow(clippy::new_without_default)]
|
1268 + | #[allow(clippy::too_many_arguments)]
|
1269 + | #[::pyo3::pymethods]
|
1270 + | impl QueryParamsTargetingMapOfPatternStringOperationInput {
|
1271 + | #[new]
|
1272 + | pub fn new(
|
1273 + | map_of_pattern_string: ::std::option::Option<
|
1274 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1275 + | >,
|
1276 + | ) -> Self {
|
1277 + | Self {
|
1278 + | map_of_pattern_string,
|
1279 + | }
|
1766 1280 | }
|
1767 1281 | fn __repr__(&self) -> String {
|
1768 1282 | format!("{self:?}")
|
1769 1283 | }
|
1770 1284 | fn __str__(&self) -> String {
|
1771 1285 | format!("{self:?}")
|
1772 1286 | }
|
1773 1287 | }
|
1774 1288 | impl<'source> ::pyo3::FromPyObject<'source>
|
1775 - | for std::boxed::Box<ConstrainedShapesOnlyInOutputOperationInput>
|
1289 + | for std::boxed::Box<QueryParamsTargetingMapOfPatternStringOperationInput>
|
1776 1290 | {
|
1777 1291 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1778 - | ob.extract::<ConstrainedShapesOnlyInOutputOperationInput>()
|
1292 + | ob.extract::<QueryParamsTargetingMapOfPatternStringOperationInput>()
|
1779 1293 | .map(Box::new)
|
1780 1294 | }
|
1781 1295 | }
|
1782 1296 |
|
1783 1297 | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
1784 - | for std::boxed::Box<ConstrainedShapesOnlyInOutputOperationInput>
|
1298 + | for std::boxed::Box<QueryParamsTargetingMapOfPatternStringOperationInput>
|
1785 1299 | {
|
1786 1300 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1787 1301 | (*self).into_py(py)
|
1788 1302 | }
|
1789 1303 | }
|
1790 - | impl crate::constrained::Constrained for crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
1791 - | type Unconstrained =
|
1792 - | crate::input::constrained_shapes_only_in_output_operation_input_internal::Builder;
|
1304 + | impl crate::constrained::Constrained
|
1305 + | for crate::input::QueryParamsTargetingMapOfPatternStringOperationInput
|
1306 + | {
|
1307 + | type Unconstrained = crate::input::query_params_targeting_map_of_pattern_string_operation_input_internal::Builder;
|
1793 1308 | }
|
1794 - | impl ConstrainedShapesOnlyInOutputOperationInput {
|
1795 - | /// Creates a new builder-style object to manufacture [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
1796 - | pub fn builder() -> crate::input::constrained_shapes_only_in_output_operation_input::Builder {
|
1797 - | crate::input::constrained_shapes_only_in_output_operation_input::Builder::default()
|
1309 + | impl QueryParamsTargetingMapOfPatternStringOperationInput {
|
1310 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
1311 + | pub fn builder(
|
1312 + | ) -> crate::input::query_params_targeting_map_of_pattern_string_operation_input::Builder {
|
1313 + | crate::input::query_params_targeting_map_of_pattern_string_operation_input::Builder::default(
|
1314 + | )
|
1798 1315 | }
|
1799 1316 | }
|
1800 1317 |
|
1801 1318 | #[::pyo3::pyclass]
|
1802 - | /// :param con_a constraints.model.ConA:
|
1319 + | /// :param map_of_list_of_pattern_string typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
1803 1320 | /// :rtype None:
|
1804 1321 | #[allow(missing_docs)] // documentation missing in model
|
1805 1322 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1806 - | pub struct ConstrainedShapesOperationInput {
|
1323 + | pub struct QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
1807 1324 | #[pyo3(get, set)]
|
1808 - | /// :type constraints.model.ConA:
|
1325 + | /// :type typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
1809 1326 | #[allow(missing_docs)] // documentation missing in model
|
1810 - | pub con_a: crate::model::ConA,
|
1327 + | pub map_of_list_of_pattern_string: ::std::option::Option<
|
1328 + | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
1329 + | >,
|
1811 1330 | }
|
1812 - | impl ConstrainedShapesOperationInput {
|
1331 + | impl QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
1813 1332 | #[allow(missing_docs)] // documentation missing in model
|
1814 - | pub fn con_a(&self) -> &crate::model::ConA {
|
1815 - | &self.con_a
|
1333 + | pub fn map_of_list_of_pattern_string(
|
1334 + | &self,
|
1335 + | ) -> ::std::option::Option<
|
1336 + | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
1337 + | > {
|
1338 + | self.map_of_list_of_pattern_string.as_ref()
|
1816 1339 | }
|
1817 1340 | }
|
1818 1341 | #[allow(clippy::new_without_default)]
|
1819 1342 | #[allow(clippy::too_many_arguments)]
|
1820 1343 | #[::pyo3::pymethods]
|
1821 - | impl ConstrainedShapesOperationInput {
|
1344 + | impl QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
1822 1345 | #[new]
|
1823 - | pub fn new(con_a: crate::model::ConA) -> Self {
|
1824 - | Self { con_a }
|
1346 + | pub fn new(
|
1347 + | map_of_list_of_pattern_string: ::std::option::Option<
|
1348 + | ::std::collections::HashMap<
|
1349 + | ::std::string::String,
|
1350 + | ::std::vec::Vec<::std::string::String>,
|
1351 + | >,
|
1352 + | >,
|
1353 + | ) -> Self {
|
1354 + | Self {
|
1355 + | map_of_list_of_pattern_string,
|
1356 + | }
|
1825 1357 | }
|
1826 1358 | fn __repr__(&self) -> String {
|
1827 1359 | format!("{self:?}")
|
1828 1360 | }
|
1829 1361 | fn __str__(&self) -> String {
|
1830 1362 | format!("{self:?}")
|
1831 1363 | }
|
1832 1364 | }
|
1833 - | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<ConstrainedShapesOperationInput> {
|
1365 + | impl<'source> ::pyo3::FromPyObject<'source>
|
1366 + | for std::boxed::Box<QueryParamsTargetingMapOfListOfPatternStringOperationInput>
|
1367 + | {
|
1834 1368 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1835 - | ob.extract::<ConstrainedShapesOperationInput>()
|
1369 + | ob.extract::<QueryParamsTargetingMapOfListOfPatternStringOperationInput>()
|
1836 1370 | .map(Box::new)
|
1837 1371 | }
|
1838 1372 | }
|
1839 1373 |
|
1840 - | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<ConstrainedShapesOperationInput> {
|
1374 + | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
1375 + | for std::boxed::Box<QueryParamsTargetingMapOfListOfPatternStringOperationInput>
|
1376 + | {
|
1841 1377 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1842 1378 | (*self).into_py(py)
|
1843 1379 | }
|
1844 1380 | }
|
1845 - | impl crate::constrained::Constrained for crate::input::ConstrainedShapesOperationInput {
|
1846 - | type Unconstrained = crate::input::constrained_shapes_operation_input_internal::Builder;
|
1381 + | impl crate::constrained::Constrained
|
1382 + | for crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput
|
1383 + | {
|
1384 + | type Unconstrained = crate::input::query_params_targeting_map_of_list_of_pattern_string_operation_input_internal::Builder;
|
1847 1385 | }
|
1848 - | impl ConstrainedShapesOperationInput {
|
1849 - | /// Creates a new builder-style object to manufacture [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
1850 - | pub fn builder() -> crate::input::constrained_shapes_operation_input::Builder {
|
1851 - | crate::input::constrained_shapes_operation_input::Builder::default()
|
1386 + | impl QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
1387 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
1388 + | pub fn builder(
|
1389 + | ) -> crate::input::query_params_targeting_map_of_list_of_pattern_string_operation_input::Builder
|
1390 + | {
|
1391 + | crate::input::query_params_targeting_map_of_list_of_pattern_string_operation_input::Builder::default()
|
1852 1392 | }
|
1853 1393 | }
|
1854 - | /// See [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
1855 - | pub(crate) mod event_streams_operation_input_internal {
|
1856 1394 |
|
1857 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1858 - | /// Holds one variant for each of the ways the builder can fail.
|
1859 - | #[non_exhaustive]
|
1860 - | #[allow(clippy::enum_variant_names)]
|
1861 - | pub(crate) enum ConstraintViolation {
|
1862 - | /// `events` was not provided but it is required when building `EventStreamsOperationInput`.
|
1863 - | MissingEvents,
|
1864 - | }
|
1865 - | impl ::std::fmt::Display for ConstraintViolation {
|
1866 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1867 - | match self {
|
1868 - | ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `EventStreamsOperationInput`"),
|
1869 - | }
|
1395 + | #[::pyo3::pyclass]
|
1396 + | /// :param map_of_length_pattern_string typing.Optional\[typing.Dict\[str, str\]\]:
|
1397 + | /// :rtype None:
|
1398 + | #[allow(missing_docs)] // documentation missing in model
|
1399 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1400 + | pub struct QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
1401 + | #[pyo3(get, set)]
|
1402 + | /// :type typing.Optional\[typing.Dict\[str, str\]\]:
|
1403 + | #[allow(missing_docs)] // documentation missing in model
|
1404 + | pub map_of_length_pattern_string: ::std::option::Option<
|
1405 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1406 + | >,
|
1407 + | }
|
1408 + | impl QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
1409 + | #[allow(missing_docs)] // documentation missing in model
|
1410 + | pub fn map_of_length_pattern_string(
|
1411 + | &self,
|
1412 + | ) -> ::std::option::Option<
|
1413 + | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1414 + | > {
|
1415 + | self.map_of_length_pattern_string.as_ref()
|
1870 1416 | }
|
1417 + | }
|
1418 + | #[allow(clippy::new_without_default)]
|
1419 + | #[allow(clippy::too_many_arguments)]
|
1420 + | #[::pyo3::pymethods]
|
1421 + | impl QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
1422 + | #[new]
|
1423 + | pub fn new(
|
1424 + | map_of_length_pattern_string: ::std::option::Option<
|
1425 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1426 + | >,
|
1427 + | ) -> Self {
|
1428 + | Self {
|
1429 + | map_of_length_pattern_string,
|
1871 1430 | }
|
1872 - | impl ::std::error::Error for ConstraintViolation {}
|
1873 - | impl ConstraintViolation {
|
1874 - | pub(crate) fn as_validation_exception_field(
|
1875 - | self,
|
1876 - | path: ::std::string::String,
|
1877 - | ) -> crate::model::ValidationExceptionField {
|
1878 - | match self {
|
1879 - | ConstraintViolation::MissingEvents => crate::model::ValidationExceptionField {
|
1880 - | message: format!("Value at '{}/events' failed to satisfy constraint: Member must not be null", path),
|
1881 - | path: path + "/events",
|
1882 - | },
|
1883 1431 | }
|
1432 + | fn __repr__(&self) -> String {
|
1433 + | format!("{self:?}")
|
1884 1434 | }
|
1435 + | fn __str__(&self) -> String {
|
1436 + | format!("{self:?}")
|
1885 1437 | }
|
1886 - | impl ::std::convert::From<ConstraintViolation>
|
1887 - | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
1888 - | {
|
1889 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
1890 - | let first_validation_exception_field =
|
1891 - | constraint_violation.as_validation_exception_field("".to_owned());
|
1892 - | let validation_exception = crate::error::ValidationException {
|
1893 - | message: format!(
|
1894 - | "1 validation error detected. {}",
|
1895 - | &first_validation_exception_field.message
|
1896 - | ),
|
1897 - | field_list: Some(vec![first_validation_exception_field]),
|
1898 - | };
|
1899 - | Self::ConstraintViolation(
|
1900 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
1901 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
1902 - | )
|
1438 + | }
|
1439 + | impl<'source> ::pyo3::FromPyObject<'source>
|
1440 + | for std::boxed::Box<QueryParamsTargetingMapOfLengthPatternStringOperationInput>
|
1441 + | {
|
1442 + | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1443 + | ob.extract::<QueryParamsTargetingMapOfLengthPatternStringOperationInput>()
|
1444 + | .map(Box::new)
|
1903 1445 | }
|
1446 + | }
|
1447 + |
|
1448 + | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
1449 + | for std::boxed::Box<QueryParamsTargetingMapOfLengthPatternStringOperationInput>
|
1450 + | {
|
1451 + | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1452 + | (*self).into_py(py)
|
1904 1453 | }
|
1905 - | impl ::std::convert::From<Builder>
|
1906 - | for crate::constrained::MaybeConstrained<crate::input::EventStreamsOperationInput>
|
1454 + | }
|
1455 + | impl crate::constrained::Constrained
|
1456 + | for crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput
|
1457 + | {
|
1458 + | type Unconstrained = crate::input::query_params_targeting_map_of_length_pattern_string_operation_input_internal::Builder;
|
1459 + | }
|
1460 + | impl QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
1461 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
1462 + | pub fn builder(
|
1463 + | ) -> crate::input::query_params_targeting_map_of_length_pattern_string_operation_input::Builder
|
1907 1464 | {
|
1908 - | fn from(builder: Builder) -> Self {
|
1909 - | Self::Unconstrained(builder)
|
1910 - | }
|
1465 + | crate::input::query_params_targeting_map_of_length_pattern_string_operation_input::Builder::default()
|
1911 1466 | }
|
1912 - | impl ::std::convert::TryFrom<Builder> for crate::input::EventStreamsOperationInput {
|
1913 - | type Error = ConstraintViolation;
|
1467 + | }
|
1914 1468 |
|
1915 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1916 - | builder.build()
|
1917 - | }
|
1918 - | }
|
1919 - | /// A builder for [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
1920 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1921 - | pub(crate) struct Builder {
|
1922 - | pub(crate) events: ::std::option::Option<
|
1923 - | crate::python_event_stream::EventStreamsOperationInputEventsReceiver,
|
1469 + | #[::pyo3::pyclass]
|
1470 + | /// :param map_of_length_pattern_string typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
1471 + | /// :rtype None:
|
1472 + | #[allow(missing_docs)] // documentation missing in model
|
1473 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1474 + | pub struct QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
1475 + | #[pyo3(get, set)]
|
1476 + | /// :type typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
1477 + | #[allow(missing_docs)] // documentation missing in model
|
1478 + | pub map_of_length_pattern_string: ::std::option::Option<
|
1479 + | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
1924 1480 | >,
|
1925 - | }
|
1926 - | impl Builder {
|
1481 + | }
|
1482 + | impl QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
1927 1483 | #[allow(missing_docs)] // documentation missing in model
|
1928 - | pub(crate) fn set_events(
|
1929 - | mut self,
|
1930 - | input: impl ::std::convert::Into<
|
1931 - | crate::python_event_stream::EventStreamsOperationInputEventsReceiver,
|
1484 + | pub fn map_of_length_pattern_string(
|
1485 + | &self,
|
1486 + | ) -> ::std::option::Option<
|
1487 + | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
1488 + | > {
|
1489 + | self.map_of_length_pattern_string.as_ref()
|
1490 + | }
|
1491 + | }
|
1492 + | #[allow(clippy::new_without_default)]
|
1493 + | #[allow(clippy::too_many_arguments)]
|
1494 + | #[::pyo3::pymethods]
|
1495 + | impl QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
1496 + | #[new]
|
1497 + | pub fn new(
|
1498 + | map_of_length_pattern_string: ::std::option::Option<
|
1499 + | ::std::collections::HashMap<
|
1500 + | ::std::string::String,
|
1501 + | ::std::vec::Vec<::std::string::String>,
|
1502 + | >,
|
1932 1503 | >,
|
1933 1504 | ) -> Self {
|
1934 - | self.events = Some(input.into());
|
1935 - | self
|
1505 + | Self {
|
1506 + | map_of_length_pattern_string,
|
1936 1507 | }
|
1937 - | /// Consumes the builder and constructs a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
1938 - | ///
|
1939 - | /// The builder fails to construct a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput) if a [`ConstraintViolation`] occurs.
|
1940 - | ///
|
1941 - | pub fn build(
|
1942 - | self,
|
1943 - | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
1944 - | self.build_enforcing_all_constraints()
|
1945 1508 | }
|
1946 - | fn build_enforcing_all_constraints(
|
1947 - | self,
|
1948 - | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
1949 - | Ok(crate::input::EventStreamsOperationInput {
|
1950 - | events: self.events.ok_or(ConstraintViolation::MissingEvents)?,
|
1951 - | })
|
1509 + | fn __repr__(&self) -> String {
|
1510 + | format!("{self:?}")
|
1952 1511 | }
|
1512 + | fn __str__(&self) -> String {
|
1513 + | format!("{self:?}")
|
1953 1514 | }
|
1954 1515 | }
|
1955 - | /// See [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
1956 - | pub mod event_streams_operation_input {
|
1957 - |
|
1958 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1959 - | /// Holds one variant for each of the ways the builder can fail.
|
1960 - | #[allow(clippy::enum_variant_names)]
|
1961 - | pub enum ConstraintViolation {
|
1962 - | /// `events` was not provided but it is required when building `EventStreamsOperationInput`.
|
1963 - | MissingEvents,
|
1964 - | }
|
1965 - | impl ::std::fmt::Display for ConstraintViolation {
|
1966 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1967 - | match self {
|
1968 - | ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `EventStreamsOperationInput`"),
|
1969 - | }
|
1970 - | }
|
1516 + | impl<'source> ::pyo3::FromPyObject<'source>
|
1517 + | for std::boxed::Box<QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput>
|
1518 + | {
|
1519 + | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1520 + | ob.extract::<QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput>()
|
1521 + | .map(Box::new)
|
1971 1522 | }
|
1972 - | impl ::std::error::Error for ConstraintViolation {}
|
1973 - | impl ::std::convert::TryFrom<Builder> for crate::input::EventStreamsOperationInput {
|
1974 - | type Error = ConstraintViolation;
|
1523 + | }
|
1975 1524 |
|
1976 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1977 - | builder.build()
|
1525 + | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
1526 + | for std::boxed::Box<QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput>
|
1527 + | {
|
1528 + | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1529 + | (*self).into_py(py)
|
1978 1530 | }
|
1531 + | }
|
1532 + | impl crate::constrained::Constrained
|
1533 + | for crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
1534 + | {
|
1535 + | type Unconstrained = crate::input::query_params_targeting_map_of_list_of_length_pattern_string_operation_input_internal::Builder;
|
1536 + | }
|
1537 + | impl QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
1538 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
1539 + | pub fn builder() -> crate::input::query_params_targeting_map_of_list_of_length_pattern_string_operation_input::Builder{
|
1540 + | crate::input::query_params_targeting_map_of_list_of_length_pattern_string_operation_input::Builder::default()
|
1979 1541 | }
|
1980 - | /// A builder for [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
1981 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1982 - | pub struct Builder {
|
1983 - | pub(crate) events: ::std::option::Option<
|
1984 - | crate::python_event_stream::EventStreamsOperationInputEventsReceiver,
|
1542 + | }
|
1543 + |
|
1544 + | #[::pyo3::pyclass]
|
1545 + | /// :param length_map typing.Optional\[typing.Dict\[str, str\]\]:
|
1546 + | /// :rtype None:
|
1547 + | #[allow(missing_docs)] // documentation missing in model
|
1548 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1549 + | pub struct HttpPrefixHeadersTargetingLengthMapOperationInput {
|
1550 + | #[pyo3(get, set)]
|
1551 + | /// :type typing.Optional\[typing.Dict\[str, str\]\]:
|
1552 + | #[allow(missing_docs)] // documentation missing in model
|
1553 + | pub length_map: ::std::option::Option<
|
1554 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1985 1555 | >,
|
1986 - | }
|
1987 - | impl Builder {
|
1556 + | }
|
1557 + | impl HttpPrefixHeadersTargetingLengthMapOperationInput {
|
1988 1558 | #[allow(missing_docs)] // documentation missing in model
|
1989 - | pub fn events(
|
1990 - | mut self,
|
1991 - | input: crate::python_event_stream::EventStreamsOperationInputEventsReceiver,
|
1559 + | pub fn length_map(
|
1560 + | &self,
|
1561 + | ) -> ::std::option::Option<
|
1562 + | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1563 + | > {
|
1564 + | self.length_map.as_ref()
|
1565 + | }
|
1566 + | }
|
1567 + | #[allow(clippy::new_without_default)]
|
1568 + | #[allow(clippy::too_many_arguments)]
|
1569 + | #[::pyo3::pymethods]
|
1570 + | impl HttpPrefixHeadersTargetingLengthMapOperationInput {
|
1571 + | #[new]
|
1572 + | pub fn new(
|
1573 + | length_map: ::std::option::Option<
|
1574 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1575 + | >,
|
1992 1576 | ) -> Self {
|
1993 - | self.events = Some(input);
|
1994 - | self
|
1577 + | Self { length_map }
|
1995 1578 | }
|
1996 - | /// Consumes the builder and constructs a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
1997 - | ///
|
1998 - | /// The builder fails to construct a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput) if you do not provide a value for all non-`Option`al members.
|
1999 - | ///
|
2000 - | pub fn build(
|
2001 - | self,
|
2002 - | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
2003 - | self.build_enforcing_required_and_enum_traits()
|
1579 + | fn __repr__(&self) -> String {
|
1580 + | format!("{self:?}")
|
2004 1581 | }
|
2005 - | fn build_enforcing_required_and_enum_traits(
|
2006 - | self,
|
2007 - | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
2008 - | Ok(crate::input::EventStreamsOperationInput {
|
2009 - | events: self.events.ok_or(ConstraintViolation::MissingEvents)?,
|
2010 - | })
|
1582 + | fn __str__(&self) -> String {
|
1583 + | format!("{self:?}")
|
2011 1584 | }
|
1585 + | }
|
1586 + | impl<'source> ::pyo3::FromPyObject<'source>
|
1587 + | for std::boxed::Box<HttpPrefixHeadersTargetingLengthMapOperationInput>
|
1588 + | {
|
1589 + | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1590 + | ob.extract::<HttpPrefixHeadersTargetingLengthMapOperationInput>()
|
1591 + | .map(Box::new)
|
2012 1592 | }
|
2013 1593 | }
|
2014 - | /// See [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
2015 - | pub(crate) mod streaming_blob_operation_input_internal {
|
2016 1594 |
|
2017 - | impl ::std::convert::From<Builder> for crate::input::StreamingBlobOperationInput {
|
2018 - | fn from(builder: Builder) -> Self {
|
2019 - | builder.build()
|
2020 - | }
|
1595 + | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
1596 + | for std::boxed::Box<HttpPrefixHeadersTargetingLengthMapOperationInput>
|
1597 + | {
|
1598 + | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1599 + | (*self).into_py(py)
|
2021 1600 | }
|
2022 - | /// A builder for [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
2023 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2024 - | pub(crate) struct Builder {
|
2025 - | pub(crate) streaming_blob:
|
2026 - | ::std::option::Option<::aws_smithy_http_server_python::types::ByteStream>,
|
1601 + | }
|
1602 + | impl crate::constrained::Constrained
|
1603 + | for crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput
|
1604 + | {
|
1605 + | type Unconstrained =
|
1606 + | crate::input::http_prefix_headers_targeting_length_map_operation_input_internal::Builder;
|
1607 + | }
|
1608 + | impl HttpPrefixHeadersTargetingLengthMapOperationInput {
|
1609 + | /// Creates a new builder-style object to manufacture [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
1610 + | pub fn builder(
|
1611 + | ) -> crate::input::http_prefix_headers_targeting_length_map_operation_input::Builder {
|
1612 + | crate::input::http_prefix_headers_targeting_length_map_operation_input::Builder::default()
|
2027 1613 | }
|
2028 - | impl Builder {
|
1614 + | }
|
1615 + |
|
1616 + | #[::pyo3::pyclass]
|
1617 + | /// :param map_of_enum_string typing.Optional\[typing.Dict\[constraints.model.EnumString, constraints.model.EnumString\]\]:
|
1618 + | /// :rtype None:
|
1619 + | #[allow(missing_docs)] // documentation missing in model
|
1620 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1621 + | pub struct QueryParamsTargetingMapOfEnumStringOperationInput {
|
1622 + | #[pyo3(get, set)]
|
1623 + | /// :type typing.Optional\[typing.Dict\[constraints.model.EnumString, constraints.model.EnumString\]\]:
|
2029 1624 | #[allow(missing_docs)] // documentation missing in model
|
2030 - | pub(crate) fn set_streaming_blob(
|
2031 - | mut self,
|
2032 - | input: impl ::std::convert::Into<::aws_smithy_http_server_python::types::ByteStream>,
|
2033 - | ) -> Self {
|
2034 - | self.streaming_blob = Some(input.into());
|
2035 - | self
|
1625 + | pub map_of_enum_string: ::std::option::Option<
|
1626 + | ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
1627 + | >,
|
1628 + | }
|
1629 + | impl QueryParamsTargetingMapOfEnumStringOperationInput {
|
1630 + | #[allow(missing_docs)] // documentation missing in model
|
1631 + | pub fn map_of_enum_string(
|
1632 + | &self,
|
1633 + | ) -> ::std::option::Option<
|
1634 + | &::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
1635 + | > {
|
1636 + | self.map_of_enum_string.as_ref()
|
2036 1637 | }
|
2037 - | /// Consumes the builder and constructs a [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
2038 - | pub fn build(self) -> crate::input::StreamingBlobOperationInput {
|
2039 - | self.build_enforcing_all_constraints()
|
1638 + | }
|
1639 + | #[allow(clippy::new_without_default)]
|
1640 + | #[allow(clippy::too_many_arguments)]
|
1641 + | #[::pyo3::pymethods]
|
1642 + | impl QueryParamsTargetingMapOfEnumStringOperationInput {
|
1643 + | #[new]
|
1644 + | pub fn new(
|
1645 + | map_of_enum_string: ::std::option::Option<
|
1646 + | ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
1647 + | >,
|
1648 + | ) -> Self {
|
1649 + | Self { map_of_enum_string }
|
2040 1650 | }
|
2041 - | fn build_enforcing_all_constraints(self) -> crate::input::StreamingBlobOperationInput {
|
2042 - | crate::input::StreamingBlobOperationInput {
|
2043 - | streaming_blob: self.streaming_blob.unwrap_or_default(),
|
1651 + | fn __repr__(&self) -> String {
|
1652 + | format!("{self:?}")
|
2044 1653 | }
|
1654 + | fn __str__(&self) -> String {
|
1655 + | format!("{self:?}")
|
2045 1656 | }
|
1657 + | }
|
1658 + | impl<'source> ::pyo3::FromPyObject<'source>
|
1659 + | for std::boxed::Box<QueryParamsTargetingMapOfEnumStringOperationInput>
|
1660 + | {
|
1661 + | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1662 + | ob.extract::<QueryParamsTargetingMapOfEnumStringOperationInput>()
|
1663 + | .map(Box::new)
|
2046 1664 | }
|
2047 1665 | }
|
2048 - | /// See [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
2049 - | pub mod streaming_blob_operation_input {
|
2050 1666 |
|
2051 - | impl ::std::convert::From<Builder> for crate::input::StreamingBlobOperationInput {
|
2052 - | fn from(builder: Builder) -> Self {
|
2053 - | builder.build()
|
2054 - | }
|
1667 + | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
1668 + | for std::boxed::Box<QueryParamsTargetingMapOfEnumStringOperationInput>
|
1669 + | {
|
1670 + | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1671 + | (*self).into_py(py)
|
2055 1672 | }
|
2056 - | /// A builder for [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
2057 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2058 - | pub struct Builder {
|
2059 - | pub(crate) streaming_blob:
|
2060 - | ::std::option::Option<::aws_smithy_http_server_python::types::ByteStream>,
|
1673 + | }
|
1674 + | impl crate::constrained::Constrained
|
1675 + | for crate::input::QueryParamsTargetingMapOfEnumStringOperationInput
|
1676 + | {
|
1677 + | type Unconstrained =
|
1678 + | crate::input::query_params_targeting_map_of_enum_string_operation_input_internal::Builder;
|
1679 + | }
|
1680 + | impl QueryParamsTargetingMapOfEnumStringOperationInput {
|
1681 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
1682 + | pub fn builder(
|
1683 + | ) -> crate::input::query_params_targeting_map_of_enum_string_operation_input::Builder {
|
1684 + | crate::input::query_params_targeting_map_of_enum_string_operation_input::Builder::default()
|
2061 1685 | }
|
2062 - | impl Builder {
|
1686 + | }
|
1687 + |
|
1688 + | #[::pyo3::pyclass]
|
1689 + | /// :param non_streaming_blob typing.Optional\[constraints.types.Blob\]:
|
1690 + | /// :rtype None:
|
1691 + | #[allow(missing_docs)] // documentation missing in model
|
1692 + | #[derive(
|
1693 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1694 + | )]
|
1695 + | pub struct NonStreamingBlobOperationInput {
|
1696 + | #[pyo3(get, set)]
|
1697 + | /// :type typing.Optional\[constraints.types.Blob\]:
|
2063 1698 | #[allow(missing_docs)] // documentation missing in model
|
2064 - | pub fn streaming_blob(
|
2065 - | mut self,
|
2066 - | input: ::aws_smithy_http_server_python::types::ByteStream,
|
2067 - | ) -> Self {
|
2068 - | self.streaming_blob = Some(input);
|
2069 - | self
|
1699 + | pub non_streaming_blob: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
1700 + | }
|
1701 + | impl NonStreamingBlobOperationInput {
|
1702 + | #[allow(missing_docs)] // documentation missing in model
|
1703 + | pub fn non_streaming_blob(
|
1704 + | &self,
|
1705 + | ) -> ::std::option::Option<&::aws_smithy_http_server_python::types::Blob> {
|
1706 + | self.non_streaming_blob.as_ref()
|
2070 1707 | }
|
2071 - | /// Consumes the builder and constructs a [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
2072 - | pub fn build(self) -> crate::input::StreamingBlobOperationInput {
|
2073 - | self.build_enforcing_required_and_enum_traits()
|
1708 + | }
|
1709 + | #[allow(clippy::new_without_default)]
|
1710 + | #[allow(clippy::too_many_arguments)]
|
1711 + | #[::pyo3::pymethods]
|
1712 + | impl NonStreamingBlobOperationInput {
|
1713 + | #[new]
|
1714 + | pub fn new(
|
1715 + | non_streaming_blob: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
1716 + | ) -> Self {
|
1717 + | Self { non_streaming_blob }
|
2074 1718 | }
|
2075 - | fn build_enforcing_required_and_enum_traits(
|
2076 - | self,
|
2077 - | ) -> crate::input::StreamingBlobOperationInput {
|
2078 - | crate::input::StreamingBlobOperationInput {
|
2079 - | streaming_blob: self.streaming_blob.unwrap_or_default(),
|
1719 + | fn __repr__(&self) -> String {
|
1720 + | format!("{self:?}")
|
2080 1721 | }
|
1722 + | fn __str__(&self) -> String {
|
1723 + | format!("{self:?}")
|
2081 1724 | }
|
1725 + | }
|
1726 + | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<NonStreamingBlobOperationInput> {
|
1727 + | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1728 + | ob.extract::<NonStreamingBlobOperationInput>().map(Box::new)
|
2082 1729 | }
|
2083 1730 | }
|
2084 - | /// See [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
2085 - | pub(crate) mod non_streaming_blob_operation_input_internal {
|
2086 1731 |
|
2087 - | impl ::std::convert::From<Builder> for crate::input::NonStreamingBlobOperationInput {
|
2088 - | fn from(builder: Builder) -> Self {
|
2089 - | builder.build()
|
2090 - | }
|
1732 + | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<NonStreamingBlobOperationInput> {
|
1733 + | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1734 + | (*self).into_py(py)
|
2091 1735 | }
|
2092 - | /// A builder for [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
2093 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2094 - | pub(crate) struct Builder {
|
2095 - | pub(crate) non_streaming_blob:
|
2096 - | ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
1736 + | }
|
1737 + | impl crate::constrained::Constrained for crate::input::NonStreamingBlobOperationInput {
|
1738 + | type Unconstrained = crate::input::non_streaming_blob_operation_input_internal::Builder;
|
1739 + | }
|
1740 + | impl NonStreamingBlobOperationInput {
|
1741 + | /// Creates a new builder-style object to manufacture [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
1742 + | pub fn builder() -> crate::input::non_streaming_blob_operation_input::Builder {
|
1743 + | crate::input::non_streaming_blob_operation_input::Builder::default()
|
2097 1744 | }
|
2098 - | impl Builder {
|
1745 + | }
|
1746 + |
|
1747 + | #[::pyo3::pyclass]
|
1748 + | /// :param streaming_blob constraints.types.ByteStream:
|
1749 + | /// :rtype None:
|
1750 + | #[allow(missing_docs)] // documentation missing in model
|
1751 + | #[derive(::std::clone::Clone, ::std::fmt::Debug)]
|
1752 + | pub struct StreamingBlobOperationInput {
|
1753 + | #[pyo3(get, set)]
|
1754 + | /// :type constraints.types.ByteStream:
|
2099 1755 | #[allow(missing_docs)] // documentation missing in model
|
2100 - | pub(crate) fn set_non_streaming_blob(
|
2101 - | mut self,
|
2102 - | input: Option<impl ::std::convert::Into<::aws_smithy_http_server_python::types::Blob>>,
|
2103 - | ) -> Self {
|
2104 - | self.non_streaming_blob = input.map(|v| v.into());
|
2105 - | self
|
1756 + | pub streaming_blob: ::aws_smithy_http_server_python::types::ByteStream,
|
1757 + | }
|
1758 + | impl StreamingBlobOperationInput {
|
1759 + | #[allow(missing_docs)] // documentation missing in model
|
1760 + | pub fn streaming_blob(&self) -> &::aws_smithy_http_server_python::types::ByteStream {
|
1761 + | &self.streaming_blob
|
2106 1762 | }
|
2107 - | /// Consumes the builder and constructs a [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
2108 - | pub fn build(self) -> crate::input::NonStreamingBlobOperationInput {
|
2109 - | self.build_enforcing_all_constraints()
|
1763 + | }
|
1764 + | #[allow(clippy::new_without_default)]
|
1765 + | #[allow(clippy::too_many_arguments)]
|
1766 + | #[::pyo3::pymethods]
|
1767 + | impl StreamingBlobOperationInput {
|
1768 + | #[new]
|
1769 + | pub fn new(streaming_blob: ::aws_smithy_http_server_python::types::ByteStream) -> Self {
|
1770 + | Self { streaming_blob }
|
2110 1771 | }
|
2111 - | fn build_enforcing_all_constraints(self) -> crate::input::NonStreamingBlobOperationInput {
|
2112 - | crate::input::NonStreamingBlobOperationInput {
|
2113 - | non_streaming_blob: self.non_streaming_blob,
|
1772 + | fn __repr__(&self) -> String {
|
1773 + | format!("{self:?}")
|
2114 1774 | }
|
1775 + | fn __str__(&self) -> String {
|
1776 + | format!("{self:?}")
|
2115 1777 | }
|
1778 + | }
|
1779 + | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<StreamingBlobOperationInput> {
|
1780 + | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1781 + | ob.extract::<StreamingBlobOperationInput>().map(Box::new)
|
2116 1782 | }
|
2117 1783 | }
|
2118 - | /// See [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
2119 - | pub mod non_streaming_blob_operation_input {
|
2120 1784 |
|
2121 - | impl ::std::convert::From<Builder> for crate::input::NonStreamingBlobOperationInput {
|
2122 - | fn from(builder: Builder) -> Self {
|
2123 - | builder.build()
|
2124 - | }
|
1785 + | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<StreamingBlobOperationInput> {
|
1786 + | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1787 + | (*self).into_py(py)
|
2125 1788 | }
|
2126 - | /// A builder for [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
2127 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2128 - | pub struct Builder {
|
2129 - | pub(crate) non_streaming_blob:
|
2130 - | ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
1789 + | }
|
1790 + | impl crate::constrained::Constrained for crate::input::StreamingBlobOperationInput {
|
1791 + | type Unconstrained = crate::input::streaming_blob_operation_input_internal::Builder;
|
1792 + | }
|
1793 + | impl StreamingBlobOperationInput {
|
1794 + | /// Creates a new builder-style object to manufacture [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
1795 + | pub fn builder() -> crate::input::streaming_blob_operation_input::Builder {
|
1796 + | crate::input::streaming_blob_operation_input::Builder::default()
|
2131 1797 | }
|
2132 - | impl Builder {
|
1798 + | }
|
1799 + |
|
1800 + | #[::pyo3::pyclass]
|
1801 + | /// :param events typing.AsyncIterator\[constraints.model.Event\]:
|
1802 + | /// :rtype None:
|
1803 + | #[allow(missing_docs)] // documentation missing in model
|
1804 + | #[derive(::std::clone::Clone, ::std::fmt::Debug)]
|
1805 + | pub struct EventStreamsOperationInput {
|
1806 + | #[pyo3(get, set)]
|
1807 + | /// :type typing.AsyncIterator\[constraints.model.Event\]:
|
2133 1808 | #[allow(missing_docs)] // documentation missing in model
|
2134 - | pub fn non_streaming_blob(
|
2135 - | mut self,
|
2136 - | input: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
1809 + | pub events: crate::python_event_stream::EventStreamsOperationInputEventsReceiver,
|
1810 + | }
|
1811 + | impl EventStreamsOperationInput {
|
1812 + | #[allow(missing_docs)] // documentation missing in model
|
1813 + | pub fn events(&self) -> &crate::python_event_stream::EventStreamsOperationInputEventsReceiver {
|
1814 + | &self.events
|
1815 + | }
|
1816 + | }
|
1817 + | #[allow(clippy::new_without_default)]
|
1818 + | #[allow(clippy::too_many_arguments)]
|
1819 + | #[::pyo3::pymethods]
|
1820 + | impl EventStreamsOperationInput {
|
1821 + | #[new]
|
1822 + | pub fn new(
|
1823 + | events: crate::python_event_stream::EventStreamsOperationInputEventsReceiver,
|
2137 1824 | ) -> Self {
|
2138 - | self.non_streaming_blob = input;
|
2139 - | self
|
1825 + | Self { events }
|
2140 1826 | }
|
2141 - | /// Consumes the builder and constructs a [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
2142 - | pub fn build(self) -> crate::input::NonStreamingBlobOperationInput {
|
2143 - | self.build_enforcing_required_and_enum_traits()
|
1827 + | fn __repr__(&self) -> String {
|
1828 + | format!("{self:?}")
|
2144 1829 | }
|
2145 - | fn build_enforcing_required_and_enum_traits(
|
2146 - | self,
|
2147 - | ) -> crate::input::NonStreamingBlobOperationInput {
|
2148 - | crate::input::NonStreamingBlobOperationInput {
|
2149 - | non_streaming_blob: self.non_streaming_blob,
|
1830 + | fn __str__(&self) -> String {
|
1831 + | format!("{self:?}")
|
1832 + | }
|
1833 + | }
|
1834 + | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<EventStreamsOperationInput> {
|
1835 + | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1836 + | ob.extract::<EventStreamsOperationInput>().map(Box::new)
|
2150 1837 | }
|
1838 + | }
|
1839 + |
|
1840 + | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<EventStreamsOperationInput> {
|
1841 + | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1842 + | (*self).into_py(py)
|
2151 1843 | }
|
1844 + | }
|
1845 + | impl crate::constrained::Constrained for crate::input::EventStreamsOperationInput {
|
1846 + | type Unconstrained = crate::input::event_streams_operation_input_internal::Builder;
|
1847 + | }
|
1848 + | impl EventStreamsOperationInput {
|
1849 + | /// Creates a new builder-style object to manufacture [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
1850 + | pub fn builder() -> crate::input::event_streams_operation_input::Builder {
|
1851 + | crate::input::event_streams_operation_input::Builder::default()
|
2152 1852 | }
|
2153 1853 | }
|
2154 - | /// See [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
2155 - | pub(crate) mod query_params_targeting_map_of_enum_string_operation_input_internal {
|
1854 + | /// See [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
1855 + | pub(crate) mod constrained_shapes_operation_input_internal {
|
2156 1856 |
|
2157 1857 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2158 1858 | /// Holds one variant for each of the ways the builder can fail.
|
2159 1859 | #[non_exhaustive]
|
2160 1860 | #[allow(clippy::enum_variant_names)]
|
2161 1861 | pub(crate) enum ConstraintViolation {
|
2162 - | /// Constraint violation occurred building member `map_of_enum_string` when building `QueryParamsTargetingMapOfEnumStringOperationInput`.
|
1862 + | /// `con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`.
|
1863 + | MissingConA,
|
1864 + | /// Constraint violation occurred building member `con_a` when building `ConstrainedShapesOperationInput`.
|
2163 1865 | #[doc(hidden)]
|
2164 - | MapOfEnumString(crate::model::map_of_enum_string_internal::ConstraintViolation),
|
1866 + | ConA(crate::model::con_a_internal::ConstraintViolation),
|
2165 1867 | }
|
2166 1868 | impl ::std::fmt::Display for ConstraintViolation {
|
2167 1869 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2168 1870 | match self {
|
2169 - | ConstraintViolation::MapOfEnumString(_) => write!(f, "constraint violation occurred building member `map_of_enum_string` when building `QueryParamsTargetingMapOfEnumStringOperationInput`"),
|
1871 + | ConstraintViolation::MissingConA => write!(f, "`con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`"),
|
1872 + | ConstraintViolation::ConA(_) => write!(f, "constraint violation occurred building member `con_a` when building `ConstrainedShapesOperationInput`"),
|
2170 1873 | }
|
2171 1874 | }
|
2172 1875 | }
|
2173 1876 | impl ::std::error::Error for ConstraintViolation {}
|
2174 1877 | impl ConstraintViolation {
|
2175 1878 | pub(crate) fn as_validation_exception_field(
|
2176 1879 | self,
|
2177 1880 | path: ::std::string::String,
|
2178 1881 | ) -> crate::model::ValidationExceptionField {
|
2179 1882 | match self {
|
2180 - | ConstraintViolation::MapOfEnumString(inner) => {
|
2181 - | inner.as_validation_exception_field(path + "/mapOfEnumString")
|
1883 + | ConstraintViolation::MissingConA => crate::model::ValidationExceptionField {
|
1884 + | message: format!(
|
1885 + | "Value at '{}/conA' failed to satisfy constraint: Member must not be null",
|
1886 + | path
|
1887 + | ),
|
1888 + | path: path + "/conA",
|
1889 + | },
|
1890 + | ConstraintViolation::ConA(inner) => {
|
1891 + | inner.as_validation_exception_field(path + "/conA")
|
2182 1892 | }
|
2183 1893 | }
|
2184 1894 | }
|
2185 1895 | }
|
2186 1896 | impl ::std::convert::From<ConstraintViolation>
|
2187 1897 | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
2188 1898 | {
|
2189 1899 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
2190 1900 | let first_validation_exception_field =
|
2191 1901 | constraint_violation.as_validation_exception_field("".to_owned());
|
2192 1902 | let validation_exception = crate::error::ValidationException {
|
2193 1903 | message: format!(
|
2194 1904 | "1 validation error detected. {}",
|
2195 1905 | &first_validation_exception_field.message
|
2196 1906 | ),
|
2197 1907 | field_list: Some(vec![first_validation_exception_field]),
|
2198 1908 | };
|
2199 1909 | Self::ConstraintViolation(
|
2200 1910 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
2201 1911 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
2202 1912 | )
|
2203 1913 | }
|
2204 1914 | }
|
2205 1915 | impl ::std::convert::From<Builder>
|
2206 - | for crate::constrained::MaybeConstrained<
|
2207 - | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput,
|
2208 - | >
|
1916 + | for crate::constrained::MaybeConstrained<crate::input::ConstrainedShapesOperationInput>
|
2209 1917 | {
|
2210 1918 | fn from(builder: Builder) -> Self {
|
2211 1919 | Self::Unconstrained(builder)
|
2212 1920 | }
|
2213 1921 | }
|
2214 - | impl ::std::convert::TryFrom<Builder>
|
2215 - | for crate::input::QueryParamsTargetingMapOfEnumStringOperationInput
|
2216 - | {
|
1922 + | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedShapesOperationInput {
|
2217 1923 | type Error = ConstraintViolation;
|
2218 1924 |
|
2219 1925 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2220 1926 | builder.build()
|
2221 1927 | }
|
2222 1928 | }
|
2223 - | /// A builder for [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
1929 + | /// A builder for [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
2224 1930 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2225 1931 | pub(crate) struct Builder {
|
2226 - | pub(crate) map_of_enum_string: ::std::option::Option<
|
2227 - | crate::constrained::MaybeConstrained<
|
2228 - | crate::constrained::map_of_enum_string_constrained::MapOfEnumStringConstrained,
|
2229 - | >,
|
2230 - | >,
|
1932 + | pub(crate) con_a:
|
1933 + | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConA>>,
|
2231 1934 | }
|
2232 1935 | impl Builder {
|
2233 1936 | #[allow(missing_docs)] // documentation missing in model
|
2234 - | pub(crate) fn set_map_of_enum_string(
|
1937 + | pub(crate) fn set_con_a(
|
2235 1938 | mut self,
|
2236 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_enum_string_constrained::MapOfEnumStringConstrained>>>,
|
1939 + | input: impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConA>>,
|
2237 1940 | ) -> Self {
|
2238 - | self.map_of_enum_string = input.map(|v| v.into());
|
1941 + | self.con_a = Some(input.into());
|
2239 1942 | self
|
2240 1943 | }
|
2241 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
1944 + | /// Consumes the builder and constructs a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
2242 1945 | ///
|
2243 - | /// The builder fails to construct a [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput) if a [`ConstraintViolation`] occurs.
|
1946 + | /// The builder fails to construct a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput) if a [`ConstraintViolation`] occurs.
|
2244 1947 | ///
|
1948 + | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
2245 1949 | pub fn build(
|
2246 1950 | self,
|
2247 - | ) -> Result<
|
2248 - | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput,
|
2249 - | ConstraintViolation,
|
2250 - | > {
|
1951 + | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
2251 1952 | self.build_enforcing_all_constraints()
|
2252 1953 | }
|
2253 1954 | fn build_enforcing_all_constraints(
|
2254 1955 | self,
|
2255 - | ) -> Result<
|
2256 - | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput,
|
2257 - | ConstraintViolation,
|
2258 - | > {
|
2259 - | Ok(
|
2260 - | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput {
|
2261 - | map_of_enum_string: self
|
2262 - | .map_of_enum_string
|
1956 + | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
1957 + | Ok(crate::input::ConstrainedShapesOperationInput {
|
1958 + | con_a: self
|
1959 + | .con_a
|
2263 1960 | .map(|v| match v {
|
2264 1961 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2265 1962 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2266 1963 | })
|
2267 - | .map(|res| {
|
2268 - | res.map(|v| v.into())
|
2269 - | .map_err(ConstraintViolation::MapOfEnumString)
|
1964 + | .map(|res| res.map_err(ConstraintViolation::ConA))
|
1965 + | .transpose()?
|
1966 + | .ok_or(ConstraintViolation::MissingConA)?,
|
2270 1967 | })
|
2271 - | .transpose()?,
|
2272 - | },
|
2273 - | )
|
2274 - | }
|
2275 - | }
|
2276 - | }
|
2277 - | /// See [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
2278 - | pub mod query_params_targeting_map_of_enum_string_operation_input {
|
2279 - |
|
2280 - | impl ::std::convert::From<Builder>
|
2281 - | for crate::input::QueryParamsTargetingMapOfEnumStringOperationInput
|
2282 - | {
|
2283 - | fn from(builder: Builder) -> Self {
|
2284 - | builder.build()
|
2285 - | }
|
2286 - | }
|
2287 - | /// A builder for [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
2288 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2289 - | pub struct Builder {
|
2290 - | pub(crate) map_of_enum_string: ::std::option::Option<
|
2291 - | ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
2292 - | >,
|
2293 - | }
|
2294 - | impl Builder {
|
2295 - | #[allow(missing_docs)] // documentation missing in model
|
2296 - | pub fn map_of_enum_string(
|
2297 - | mut self,
|
2298 - | input: ::std::option::Option<
|
2299 - | ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
2300 - | >,
|
2301 - | ) -> Self {
|
2302 - | self.map_of_enum_string = input;
|
2303 - | self
|
2304 - | }
|
2305 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
2306 - | pub fn build(self) -> crate::input::QueryParamsTargetingMapOfEnumStringOperationInput {
|
2307 - | self.build_enforcing_required_and_enum_traits()
|
2308 - | }
|
2309 - | fn build_enforcing_required_and_enum_traits(
|
2310 - | self,
|
2311 - | ) -> crate::input::QueryParamsTargetingMapOfEnumStringOperationInput {
|
2312 - | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput {
|
2313 - | map_of_enum_string: self.map_of_enum_string,
|
2314 - | }
|
2315 1968 | }
|
2316 1969 | }
|
2317 1970 | }
|
2318 - | /// See [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
2319 - | pub(crate) mod http_prefix_headers_targeting_length_map_operation_input_internal {
|
1971 + | /// See [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
1972 + | pub mod constrained_shapes_operation_input {
|
2320 1973 |
|
2321 1974 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2322 1975 | /// Holds one variant for each of the ways the builder can fail.
|
2323 - | #[non_exhaustive]
|
2324 1976 | #[allow(clippy::enum_variant_names)]
|
2325 - | pub(crate) enum ConstraintViolation {
|
2326 - | /// Constraint violation occurred building member `length_map` when building `HttpPrefixHeadersTargetingLengthMapOperationInput`.
|
2327 - | #[doc(hidden)]
|
2328 - | LengthMap(crate::model::con_b_map_internal::ConstraintViolation),
|
1977 + | pub enum ConstraintViolation {
|
1978 + | /// `con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`.
|
1979 + | MissingConA,
|
2329 1980 | }
|
2330 1981 | impl ::std::fmt::Display for ConstraintViolation {
|
2331 1982 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2332 1983 | match self {
|
2333 - | ConstraintViolation::LengthMap(_) => write!(f, "constraint violation occurred building member `length_map` when building `HttpPrefixHeadersTargetingLengthMapOperationInput`"),
|
1984 + | ConstraintViolation::MissingConA => write!(f, "`con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`"),
|
2334 1985 | }
|
2335 1986 | }
|
2336 1987 | }
|
2337 1988 | impl ::std::error::Error for ConstraintViolation {}
|
2338 - | impl ConstraintViolation {
|
2339 - | pub(crate) fn as_validation_exception_field(
|
2340 - | self,
|
2341 - | path: ::std::string::String,
|
2342 - | ) -> crate::model::ValidationExceptionField {
|
2343 - | match self {
|
2344 - | ConstraintViolation::LengthMap(inner) => {
|
2345 - | inner.as_validation_exception_field(path + "/lengthMap")
|
2346 - | }
|
2347 - | }
|
2348 - | }
|
2349 - | }
|
2350 - | impl ::std::convert::From<ConstraintViolation>
|
2351 - | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
2352 - | {
|
2353 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
2354 - | let first_validation_exception_field =
|
2355 - | constraint_violation.as_validation_exception_field("".to_owned());
|
2356 - | let validation_exception = crate::error::ValidationException {
|
2357 - | message: format!(
|
2358 - | "1 validation error detected. {}",
|
2359 - | &first_validation_exception_field.message
|
2360 - | ),
|
2361 - | field_list: Some(vec![first_validation_exception_field]),
|
2362 - | };
|
2363 - | Self::ConstraintViolation(
|
2364 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
2365 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
2366 - | )
|
2367 - | }
|
2368 - | }
|
2369 - | impl ::std::convert::From<Builder>
|
2370 - | for crate::constrained::MaybeConstrained<
|
2371 - | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput,
|
2372 - | >
|
2373 - | {
|
2374 - | fn from(builder: Builder) -> Self {
|
2375 - | Self::Unconstrained(builder)
|
2376 - | }
|
2377 - | }
|
2378 - | impl ::std::convert::TryFrom<Builder>
|
2379 - | for crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput
|
2380 - | {
|
1989 + | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedShapesOperationInput {
|
2381 1990 | type Error = ConstraintViolation;
|
2382 1991 |
|
2383 1992 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2384 1993 | builder.build()
|
2385 1994 | }
|
2386 1995 | }
|
2387 - | /// A builder for [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
1996 + | /// A builder for [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
2388 1997 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2389 - | pub(crate) struct Builder {
|
2390 - | pub(crate) length_map:
|
2391 - | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
1998 + | pub struct Builder {
|
1999 + | pub(crate) con_a: ::std::option::Option<crate::model::ConA>,
|
2392 2000 | }
|
2393 2001 | impl Builder {
|
2394 2002 | #[allow(missing_docs)] // documentation missing in model
|
2395 - | pub(crate) fn set_length_map(
|
2396 - | mut self,
|
2397 - | input: Option<
|
2398 - | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
2399 - | >,
|
2400 - | ) -> Self {
|
2401 - | self.length_map = input.map(|v| v.into());
|
2003 + | pub fn con_a(mut self, input: crate::model::ConA) -> Self {
|
2004 + | self.con_a = Some(input);
|
2402 2005 | self
|
2403 2006 | }
|
2404 - | /// Consumes the builder and constructs a [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
2007 + | /// Consumes the builder and constructs a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
2405 2008 | ///
|
2406 - | /// The builder fails to construct a [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput) if a [`ConstraintViolation`] occurs.
|
2009 + | /// The builder fails to construct a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput) if you do not provide a value for all non-`Option`al members.
|
2407 2010 | ///
|
2408 2011 | pub fn build(
|
2409 2012 | self,
|
2410 - | ) -> Result<
|
2411 - | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput,
|
2412 - | ConstraintViolation,
|
2413 - | > {
|
2414 - | self.build_enforcing_all_constraints()
|
2013 + | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
2014 + | self.build_enforcing_required_and_enum_traits()
|
2415 2015 | }
|
2416 - | fn build_enforcing_all_constraints(
|
2016 + | fn build_enforcing_required_and_enum_traits(
|
2417 2017 | self,
|
2418 - | ) -> Result<
|
2419 - | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput,
|
2420 - | ConstraintViolation,
|
2421 - | > {
|
2422 - | Ok(
|
2423 - | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput {
|
2424 - | length_map: self
|
2425 - | .length_map
|
2426 - | .map(|v| match v {
|
2427 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2428 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2018 + | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
2019 + | Ok(crate::input::ConstrainedShapesOperationInput {
|
2020 + | con_a: self.con_a.ok_or(ConstraintViolation::MissingConA)?,
|
2429 2021 | })
|
2430 - | .map(|res| res.map_err(ConstraintViolation::LengthMap))
|
2431 - | .transpose()?
|
2432 - | .map(|v: crate::model::ConBMap| v.into()),
|
2433 - | },
|
2434 - | )
|
2435 2022 | }
|
2436 2023 | }
|
2437 2024 | }
|
2438 - | /// See [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
2439 - | pub mod http_prefix_headers_targeting_length_map_operation_input {
|
2025 + | /// See [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
2026 + | pub(crate) mod constrained_shapes_only_in_output_operation_input_internal {
|
2440 2027 |
|
2441 - | impl ::std::convert::From<Builder>
|
2442 - | for crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput
|
2443 - | {
|
2028 + | impl ::std::convert::From<Builder> for crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
2444 2029 | fn from(builder: Builder) -> Self {
|
2445 2030 | builder.build()
|
2446 2031 | }
|
2447 2032 | }
|
2448 - | /// A builder for [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
2033 + | /// A builder for [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
2449 2034 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2450 - | pub struct Builder {
|
2451 - | pub(crate) length_map: ::std::option::Option<
|
2452 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2453 - | >,
|
2454 - | }
|
2035 + | pub(crate) struct Builder {}
|
2455 2036 | impl Builder {
|
2456 - | #[allow(missing_docs)] // documentation missing in model
|
2457 - | pub fn length_map(
|
2458 - | mut self,
|
2459 - | input: ::std::option::Option<
|
2460 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2461 - | >,
|
2462 - | ) -> Self {
|
2463 - | self.length_map = input;
|
2464 - | self
|
2037 + | /// Consumes the builder and constructs a [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
2038 + | pub fn build(self) -> crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
2039 + | self.build_enforcing_all_constraints()
|
2465 2040 | }
|
2466 - | /// Consumes the builder and constructs a [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
2467 - | pub fn build(self) -> crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput {
|
2041 + | fn build_enforcing_all_constraints(
|
2042 + | self,
|
2043 + | ) -> crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
2044 + | crate::input::ConstrainedShapesOnlyInOutputOperationInput {}
|
2045 + | }
|
2046 + | }
|
2047 + | }
|
2048 + | /// See [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
2049 + | pub mod constrained_shapes_only_in_output_operation_input {
|
2050 + |
|
2051 + | impl ::std::convert::From<Builder> for crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
2052 + | fn from(builder: Builder) -> Self {
|
2053 + | builder.build()
|
2054 + | }
|
2055 + | }
|
2056 + | /// A builder for [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
2057 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2058 + | pub struct Builder {}
|
2059 + | impl Builder {
|
2060 + | /// Consumes the builder and constructs a [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
2061 + | pub fn build(self) -> crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
2468 2062 | self.build_enforcing_required_and_enum_traits()
|
2469 2063 | }
|
2470 2064 | fn build_enforcing_required_and_enum_traits(
|
2471 2065 | self,
|
2472 - | ) -> crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput {
|
2473 - | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput {
|
2474 - | length_map: self.length_map,
|
2475 - | }
|
2066 + | ) -> crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
2067 + | crate::input::ConstrainedShapesOnlyInOutputOperationInput {}
|
2476 2068 | }
|
2477 2069 | }
|
2478 2070 | }
|
2479 - | /// See [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
2480 - | pub(crate) mod query_params_targeting_map_of_list_of_length_pattern_string_operation_input_internal {
|
2071 + | /// See [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
2072 + | pub(crate) mod constrained_http_bound_shapes_operation_input_internal {
|
2481 2073 |
|
2482 2074 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2483 2075 | /// Holds one variant for each of the ways the builder can fail.
|
2484 2076 | #[non_exhaustive]
|
2485 2077 | #[allow(clippy::enum_variant_names)]
|
2486 2078 | pub(crate) enum ConstraintViolation {
|
2487 - | /// Constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`.
|
2079 + | /// `length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
2080 + | MissingLengthStringLabel,
|
2081 + | /// Constraint violation occurred building member `length_string_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2488 2082 | #[doc(hidden)]
|
2489 - | MapOfLengthPatternString(
|
2490 - | crate::model::map_of_list_of_length_pattern_string_internal::ConstraintViolation,
|
2083 + | LengthStringLabel(crate::model::length_string_internal::ConstraintViolation),
|
2084 + | /// Constraint violation occurred building member `range_integer_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2085 + | #[doc(hidden)]
|
2086 + | RangeIntegerLabel(crate::model::range_integer_internal::ConstraintViolation),
|
2087 + | /// Constraint violation occurred building member `range_short_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2088 + | #[doc(hidden)]
|
2089 + | RangeShortLabel(crate::model::range_short_internal::ConstraintViolation),
|
2090 + | /// Constraint violation occurred building member `range_long_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2091 + | #[doc(hidden)]
|
2092 + | RangeLongLabel(crate::model::range_long_internal::ConstraintViolation),
|
2093 + | /// Constraint violation occurred building member `range_byte_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2094 + | #[doc(hidden)]
|
2095 + | RangeByteLabel(crate::model::range_byte_internal::ConstraintViolation),
|
2096 + | /// `enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
2097 + | MissingEnumStringLabel,
|
2098 + | /// Constraint violation occurred building member `enum_string_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2099 + | #[doc(hidden)]
|
2100 + | EnumStringLabel(crate::model::enum_string_internal::ConstraintViolation),
|
2101 + | /// `length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
2102 + | MissingLengthStringHeaderMap,
|
2103 + | /// Constraint violation occurred building member `length_string_header_map` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2104 + | #[doc(hidden)]
|
2105 + | LengthStringHeaderMap(crate::model::map_of_length_string_internal::ConstraintViolation),
|
2106 + | /// Constraint violation occurred building member `length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2107 + | #[doc(hidden)]
|
2108 + | LengthStringHeader(crate::model::length_string_internal::ConstraintViolation),
|
2109 + | /// Constraint violation occurred building member `range_integer_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2110 + | #[doc(hidden)]
|
2111 + | RangeIntegerHeader(crate::model::range_integer_internal::ConstraintViolation),
|
2112 + | /// Constraint violation occurred building member `range_short_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2113 + | #[doc(hidden)]
|
2114 + | RangeShortHeader(crate::model::range_short_internal::ConstraintViolation),
|
2115 + | /// Constraint violation occurred building member `range_long_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2116 + | #[doc(hidden)]
|
2117 + | RangeLongHeader(crate::model::range_long_internal::ConstraintViolation),
|
2118 + | /// Constraint violation occurred building member `range_byte_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2119 + | #[doc(hidden)]
|
2120 + | RangeByteHeader(crate::model::range_byte_internal::ConstraintViolation),
|
2121 + | /// Constraint violation occurred building member `length_string_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2122 + | #[doc(hidden)]
|
2123 + | LengthStringSetHeader(crate::model::set_of_length_string_internal::ConstraintViolation),
|
2124 + | /// Constraint violation occurred building member `list_length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2125 + | #[doc(hidden)]
|
2126 + | ListLengthStringHeader(crate::model::list_of_length_string_internal::ConstraintViolation),
|
2127 + | /// Constraint violation occurred building member `length_list_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2128 + | #[doc(hidden)]
|
2129 + | LengthListPatternStringHeader(
|
2130 + | crate::model::length_list_of_pattern_string_internal::ConstraintViolation,
|
2131 + | ),
|
2132 + | /// Constraint violation occurred building member `length_set_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2133 + | #[doc(hidden)]
|
2134 + | LengthSetPatternStringHeader(
|
2135 + | crate::model::length_set_of_pattern_string_internal::ConstraintViolation,
|
2136 + | ),
|
2137 + | /// Constraint violation occurred building member `range_byte_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2138 + | #[doc(hidden)]
|
2139 + | RangeByteSetHeader(crate::model::set_of_range_byte_internal::ConstraintViolation),
|
2140 + | /// Constraint violation occurred building member `range_short_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2141 + | #[doc(hidden)]
|
2142 + | RangeShortSetHeader(crate::model::set_of_range_short_internal::ConstraintViolation),
|
2143 + | /// Constraint violation occurred building member `range_integer_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2144 + | #[doc(hidden)]
|
2145 + | RangeIntegerSetHeader(crate::model::set_of_range_integer_internal::ConstraintViolation),
|
2146 + | /// Constraint violation occurred building member `range_long_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2147 + | #[doc(hidden)]
|
2148 + | RangeLongSetHeader(crate::model::set_of_range_long_internal::ConstraintViolation),
|
2149 + | /// Constraint violation occurred building member `range_byte_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2150 + | #[doc(hidden)]
|
2151 + | RangeByteListHeader(crate::model::list_of_range_byte_internal::ConstraintViolation),
|
2152 + | /// Constraint violation occurred building member `range_short_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2153 + | #[doc(hidden)]
|
2154 + | RangeShortListHeader(crate::model::list_of_range_short_internal::ConstraintViolation),
|
2155 + | /// Constraint violation occurred building member `range_integer_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2156 + | #[doc(hidden)]
|
2157 + | RangeIntegerListHeader(crate::model::list_of_range_integer_internal::ConstraintViolation),
|
2158 + | /// Constraint violation occurred building member `range_long_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2159 + | #[doc(hidden)]
|
2160 + | RangeLongListHeader(crate::model::list_of_range_long_internal::ConstraintViolation),
|
2161 + | /// Constraint violation occurred building member `length_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2162 + | #[doc(hidden)]
|
2163 + | LengthStringQuery(crate::model::length_string_internal::ConstraintViolation),
|
2164 + | /// Constraint violation occurred building member `range_byte_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2165 + | #[doc(hidden)]
|
2166 + | RangeByteQuery(crate::model::range_byte_internal::ConstraintViolation),
|
2167 + | /// Constraint violation occurred building member `range_short_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2168 + | #[doc(hidden)]
|
2169 + | RangeShortQuery(crate::model::range_short_internal::ConstraintViolation),
|
2170 + | /// Constraint violation occurred building member `range_integer_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2171 + | #[doc(hidden)]
|
2172 + | RangeIntegerQuery(crate::model::range_integer_internal::ConstraintViolation),
|
2173 + | /// Constraint violation occurred building member `range_long_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2174 + | #[doc(hidden)]
|
2175 + | RangeLongQuery(crate::model::range_long_internal::ConstraintViolation),
|
2176 + | /// Constraint violation occurred building member `enum_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2177 + | #[doc(hidden)]
|
2178 + | EnumStringQuery(crate::model::enum_string_internal::ConstraintViolation),
|
2179 + | /// Constraint violation occurred building member `length_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2180 + | #[doc(hidden)]
|
2181 + | LengthStringListQuery(crate::model::list_of_length_string_internal::ConstraintViolation),
|
2182 + | /// Constraint violation occurred building member `length_list_pattern_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2183 + | #[doc(hidden)]
|
2184 + | LengthListPatternStringQuery(
|
2185 + | crate::model::length_list_of_pattern_string_internal::ConstraintViolation,
|
2491 2186 | ),
|
2187 + | /// Constraint violation occurred building member `length_string_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2188 + | #[doc(hidden)]
|
2189 + | LengthStringSetQuery(crate::model::set_of_length_string_internal::ConstraintViolation),
|
2190 + | /// Constraint violation occurred building member `range_byte_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2191 + | #[doc(hidden)]
|
2192 + | RangeByteListQuery(crate::model::list_of_range_byte_internal::ConstraintViolation),
|
2193 + | /// Constraint violation occurred building member `range_short_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2194 + | #[doc(hidden)]
|
2195 + | RangeShortListQuery(crate::model::list_of_range_short_internal::ConstraintViolation),
|
2196 + | /// Constraint violation occurred building member `range_integer_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2197 + | #[doc(hidden)]
|
2198 + | RangeIntegerListQuery(crate::model::list_of_range_integer_internal::ConstraintViolation),
|
2199 + | /// Constraint violation occurred building member `range_long_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2200 + | #[doc(hidden)]
|
2201 + | RangeLongListQuery(crate::model::list_of_range_long_internal::ConstraintViolation),
|
2202 + | /// Constraint violation occurred building member `range_byte_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2203 + | #[doc(hidden)]
|
2204 + | RangeByteSetQuery(crate::model::set_of_range_byte_internal::ConstraintViolation),
|
2205 + | /// Constraint violation occurred building member `range_short_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2206 + | #[doc(hidden)]
|
2207 + | RangeShortSetQuery(crate::model::set_of_range_short_internal::ConstraintViolation),
|
2208 + | /// Constraint violation occurred building member `range_integer_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2209 + | #[doc(hidden)]
|
2210 + | RangeIntegerSetQuery(crate::model::set_of_range_integer_internal::ConstraintViolation),
|
2211 + | /// Constraint violation occurred building member `range_long_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2212 + | #[doc(hidden)]
|
2213 + | RangeLongSetQuery(crate::model::set_of_range_long_internal::ConstraintViolation),
|
2214 + | /// Constraint violation occurred building member `enum_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2215 + | #[doc(hidden)]
|
2216 + | EnumStringListQuery(crate::model::list_of_enum_string_internal::ConstraintViolation),
|
2492 2217 | }
|
2493 2218 | impl ::std::fmt::Display for ConstraintViolation {
|
2494 2219 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2495 2220 | match self {
|
2496 - | ConstraintViolation::MapOfLengthPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`"),
|
2221 + | ConstraintViolation::MissingLengthStringLabel => write!(f, "`length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2222 + | ConstraintViolation::LengthStringLabel(_) => write!(f, "constraint violation occurred building member `length_string_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2223 + | ConstraintViolation::RangeIntegerLabel(_) => write!(f, "constraint violation occurred building member `range_integer_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2224 + | ConstraintViolation::RangeShortLabel(_) => write!(f, "constraint violation occurred building member `range_short_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2225 + | ConstraintViolation::RangeLongLabel(_) => write!(f, "constraint violation occurred building member `range_long_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2226 + | ConstraintViolation::RangeByteLabel(_) => write!(f, "constraint violation occurred building member `range_byte_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2227 + | ConstraintViolation::MissingEnumStringLabel => write!(f, "`enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2228 + | ConstraintViolation::EnumStringLabel(_) => write!(f, "constraint violation occurred building member `enum_string_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2229 + | ConstraintViolation::MissingLengthStringHeaderMap => write!(f, "`length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2230 + | ConstraintViolation::LengthStringHeaderMap(_) => write!(f, "constraint violation occurred building member `length_string_header_map` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2231 + | ConstraintViolation::LengthStringHeader(_) => write!(f, "constraint violation occurred building member `length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2232 + | ConstraintViolation::RangeIntegerHeader(_) => write!(f, "constraint violation occurred building member `range_integer_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2233 + | ConstraintViolation::RangeShortHeader(_) => write!(f, "constraint violation occurred building member `range_short_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2234 + | ConstraintViolation::RangeLongHeader(_) => write!(f, "constraint violation occurred building member `range_long_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2235 + | ConstraintViolation::RangeByteHeader(_) => write!(f, "constraint violation occurred building member `range_byte_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2236 + | ConstraintViolation::LengthStringSetHeader(_) => write!(f, "constraint violation occurred building member `length_string_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2237 + | ConstraintViolation::ListLengthStringHeader(_) => write!(f, "constraint violation occurred building member `list_length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2238 + | ConstraintViolation::LengthListPatternStringHeader(_) => write!(f, "constraint violation occurred building member `length_list_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2239 + | ConstraintViolation::LengthSetPatternStringHeader(_) => write!(f, "constraint violation occurred building member `length_set_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2240 + | ConstraintViolation::RangeByteSetHeader(_) => write!(f, "constraint violation occurred building member `range_byte_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2241 + | ConstraintViolation::RangeShortSetHeader(_) => write!(f, "constraint violation occurred building member `range_short_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2242 + | ConstraintViolation::RangeIntegerSetHeader(_) => write!(f, "constraint violation occurred building member `range_integer_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2243 + | ConstraintViolation::RangeLongSetHeader(_) => write!(f, "constraint violation occurred building member `range_long_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2244 + | ConstraintViolation::RangeByteListHeader(_) => write!(f, "constraint violation occurred building member `range_byte_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2245 + | ConstraintViolation::RangeShortListHeader(_) => write!(f, "constraint violation occurred building member `range_short_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2246 + | ConstraintViolation::RangeIntegerListHeader(_) => write!(f, "constraint violation occurred building member `range_integer_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2247 + | ConstraintViolation::RangeLongListHeader(_) => write!(f, "constraint violation occurred building member `range_long_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2248 + | ConstraintViolation::LengthStringQuery(_) => write!(f, "constraint violation occurred building member `length_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2249 + | ConstraintViolation::RangeByteQuery(_) => write!(f, "constraint violation occurred building member `range_byte_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2250 + | ConstraintViolation::RangeShortQuery(_) => write!(f, "constraint violation occurred building member `range_short_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2251 + | ConstraintViolation::RangeIntegerQuery(_) => write!(f, "constraint violation occurred building member `range_integer_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2252 + | ConstraintViolation::RangeLongQuery(_) => write!(f, "constraint violation occurred building member `range_long_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2253 + | ConstraintViolation::EnumStringQuery(_) => write!(f, "constraint violation occurred building member `enum_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2254 + | ConstraintViolation::LengthStringListQuery(_) => write!(f, "constraint violation occurred building member `length_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2255 + | ConstraintViolation::LengthListPatternStringQuery(_) => write!(f, "constraint violation occurred building member `length_list_pattern_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2256 + | ConstraintViolation::LengthStringSetQuery(_) => write!(f, "constraint violation occurred building member `length_string_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2257 + | ConstraintViolation::RangeByteListQuery(_) => write!(f, "constraint violation occurred building member `range_byte_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2258 + | ConstraintViolation::RangeShortListQuery(_) => write!(f, "constraint violation occurred building member `range_short_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2259 + | ConstraintViolation::RangeIntegerListQuery(_) => write!(f, "constraint violation occurred building member `range_integer_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2260 + | ConstraintViolation::RangeLongListQuery(_) => write!(f, "constraint violation occurred building member `range_long_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2261 + | ConstraintViolation::RangeByteSetQuery(_) => write!(f, "constraint violation occurred building member `range_byte_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2262 + | ConstraintViolation::RangeShortSetQuery(_) => write!(f, "constraint violation occurred building member `range_short_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2263 + | ConstraintViolation::RangeIntegerSetQuery(_) => write!(f, "constraint violation occurred building member `range_integer_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2264 + | ConstraintViolation::RangeLongSetQuery(_) => write!(f, "constraint violation occurred building member `range_long_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2265 + | ConstraintViolation::EnumStringListQuery(_) => write!(f, "constraint violation occurred building member `enum_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2497 2266 | }
|
2498 2267 | }
|
2499 2268 | }
|
2500 2269 | impl ::std::error::Error for ConstraintViolation {}
|
2501 2270 | impl ConstraintViolation {
|
2502 2271 | pub(crate) fn as_validation_exception_field(
|
2503 2272 | self,
|
2504 2273 | path: ::std::string::String,
|
2505 2274 | ) -> crate::model::ValidationExceptionField {
|
2506 2275 | match self {
|
2507 - | ConstraintViolation::MapOfLengthPatternString(inner) => {
|
2508 - | inner.as_validation_exception_field(path + "/mapOfLengthPatternString")
|
2509 - | }
|
2276 + | ConstraintViolation::MissingLengthStringLabel => crate::model::ValidationExceptionField {
|
2277 + | message: format!("Value at '{}/lengthStringLabel' failed to satisfy constraint: Member must not be null", path),
|
2278 + | path: path + "/lengthStringLabel",
|
2279 + | },
|
2280 + | ConstraintViolation::LengthStringLabel(inner) => inner.as_validation_exception_field(path + "/lengthStringLabel"),
|
2281 + | ConstraintViolation::RangeIntegerLabel(inner) => inner.as_validation_exception_field(path + "/rangeIntegerLabel"),
|
2282 + | ConstraintViolation::RangeShortLabel(inner) => inner.as_validation_exception_field(path + "/rangeShortLabel"),
|
2283 + | ConstraintViolation::RangeLongLabel(inner) => inner.as_validation_exception_field(path + "/rangeLongLabel"),
|
2284 + | ConstraintViolation::RangeByteLabel(inner) => inner.as_validation_exception_field(path + "/rangeByteLabel"),
|
2285 + | ConstraintViolation::MissingEnumStringLabel => crate::model::ValidationExceptionField {
|
2286 + | message: format!("Value at '{}/enumStringLabel' failed to satisfy constraint: Member must not be null", path),
|
2287 + | path: path + "/enumStringLabel",
|
2288 + | },
|
2289 + | ConstraintViolation::EnumStringLabel(inner) => inner.as_validation_exception_field(path + "/enumStringLabel"),
|
2290 + | ConstraintViolation::MissingLengthStringHeaderMap => crate::model::ValidationExceptionField {
|
2291 + | message: format!("Value at '{}/lengthStringHeaderMap' failed to satisfy constraint: Member must not be null", path),
|
2292 + | path: path + "/lengthStringHeaderMap",
|
2293 + | },
|
2294 + | ConstraintViolation::LengthStringHeaderMap(inner) => inner.as_validation_exception_field(path + "/lengthStringHeaderMap"),
|
2295 + | ConstraintViolation::LengthStringHeader(inner) => inner.as_validation_exception_field(path + "/lengthStringHeader"),
|
2296 + | ConstraintViolation::RangeIntegerHeader(inner) => inner.as_validation_exception_field(path + "/rangeIntegerHeader"),
|
2297 + | ConstraintViolation::RangeShortHeader(inner) => inner.as_validation_exception_field(path + "/rangeShortHeader"),
|
2298 + | ConstraintViolation::RangeLongHeader(inner) => inner.as_validation_exception_field(path + "/rangeLongHeader"),
|
2299 + | ConstraintViolation::RangeByteHeader(inner) => inner.as_validation_exception_field(path + "/rangeByteHeader"),
|
2300 + | ConstraintViolation::LengthStringSetHeader(inner) => inner.as_validation_exception_field(path + "/lengthStringSetHeader"),
|
2301 + | ConstraintViolation::ListLengthStringHeader(inner) => inner.as_validation_exception_field(path + "/listLengthStringHeader"),
|
2302 + | ConstraintViolation::LengthListPatternStringHeader(inner) => inner.as_validation_exception_field(path + "/lengthListPatternStringHeader"),
|
2303 + | ConstraintViolation::LengthSetPatternStringHeader(inner) => inner.as_validation_exception_field(path + "/lengthSetPatternStringHeader"),
|
2304 + | ConstraintViolation::RangeByteSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeByteSetHeader"),
|
2305 + | ConstraintViolation::RangeShortSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeShortSetHeader"),
|
2306 + | ConstraintViolation::RangeIntegerSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeIntegerSetHeader"),
|
2307 + | ConstraintViolation::RangeLongSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeLongSetHeader"),
|
2308 + | ConstraintViolation::RangeByteListHeader(inner) => inner.as_validation_exception_field(path + "/rangeByteListHeader"),
|
2309 + | ConstraintViolation::RangeShortListHeader(inner) => inner.as_validation_exception_field(path + "/rangeShortListHeader"),
|
2310 + | ConstraintViolation::RangeIntegerListHeader(inner) => inner.as_validation_exception_field(path + "/rangeIntegerListHeader"),
|
2311 + | ConstraintViolation::RangeLongListHeader(inner) => inner.as_validation_exception_field(path + "/rangeLongListHeader"),
|
2312 + | ConstraintViolation::LengthStringQuery(inner) => inner.as_validation_exception_field(path + "/lengthStringQuery"),
|
2313 + | ConstraintViolation::RangeByteQuery(inner) => inner.as_validation_exception_field(path + "/rangeByteQuery"),
|
2314 + | ConstraintViolation::RangeShortQuery(inner) => inner.as_validation_exception_field(path + "/rangeShortQuery"),
|
2315 + | ConstraintViolation::RangeIntegerQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerQuery"),
|
2316 + | ConstraintViolation::RangeLongQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongQuery"),
|
2317 + | ConstraintViolation::EnumStringQuery(inner) => inner.as_validation_exception_field(path + "/enumStringQuery"),
|
2318 + | ConstraintViolation::LengthStringListQuery(inner) => inner.as_validation_exception_field(path + "/lengthStringListQuery"),
|
2319 + | ConstraintViolation::LengthListPatternStringQuery(inner) => inner.as_validation_exception_field(path + "/lengthListPatternStringQuery"),
|
2320 + | ConstraintViolation::LengthStringSetQuery(inner) => inner.as_validation_exception_field(path + "/lengthStringSetQuery"),
|
2321 + | ConstraintViolation::RangeByteListQuery(inner) => inner.as_validation_exception_field(path + "/rangeByteListQuery"),
|
2322 + | ConstraintViolation::RangeShortListQuery(inner) => inner.as_validation_exception_field(path + "/rangeShortListQuery"),
|
2323 + | ConstraintViolation::RangeIntegerListQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerListQuery"),
|
2324 + | ConstraintViolation::RangeLongListQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongListQuery"),
|
2325 + | ConstraintViolation::RangeByteSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeByteSetQuery"),
|
2326 + | ConstraintViolation::RangeShortSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeShortSetQuery"),
|
2327 + | ConstraintViolation::RangeIntegerSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerSetQuery"),
|
2328 + | ConstraintViolation::RangeLongSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongSetQuery"),
|
2329 + | ConstraintViolation::EnumStringListQuery(inner) => inner.as_validation_exception_field(path + "/enumStringListQuery"),
|
2510 2330 | }
|
2511 2331 | }
|
2512 2332 | }
|
2513 2333 | impl ::std::convert::From<ConstraintViolation>
|
2514 2334 | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
2515 2335 | {
|
2516 2336 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
2517 2337 | let first_validation_exception_field =
|
2518 2338 | constraint_violation.as_validation_exception_field("".to_owned());
|
2519 2339 | let validation_exception = crate::error::ValidationException {
|
2520 2340 | message: format!(
|
2521 2341 | "1 validation error detected. {}",
|
2522 2342 | &first_validation_exception_field.message
|
2523 2343 | ),
|
2524 2344 | field_list: Some(vec![first_validation_exception_field]),
|
2525 2345 | };
|
2526 2346 | Self::ConstraintViolation(
|
2527 2347 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
2528 2348 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
2529 2349 | )
|
2530 2350 | }
|
2531 2351 | }
|
2532 2352 | impl ::std::convert::From<Builder>
|
2533 2353 | for crate::constrained::MaybeConstrained<
|
2534 - | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput,
|
2354 + | crate::input::ConstrainedHttpBoundShapesOperationInput,
|
2535 2355 | >
|
2536 2356 | {
|
2537 2357 | fn from(builder: Builder) -> Self {
|
2538 2358 | Self::Unconstrained(builder)
|
2539 2359 | }
|
2540 2360 | }
|
2541 - | impl ::std::convert::TryFrom<Builder>
|
2542 - | for crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
2543 - | {
|
2361 + | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedHttpBoundShapesOperationInput {
|
2544 2362 | type Error = ConstraintViolation;
|
2545 2363 |
|
2546 2364 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2547 2365 | builder.build()
|
2548 2366 | }
|
2549 2367 | }
|
2550 - | /// A builder for [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
2368 + | /// A builder for [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
2551 2369 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2552 2370 | pub(crate) struct Builder {
|
2553 - | pub(crate) map_of_length_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_pattern_string_constrained::MapOfListOfLengthPatternStringConstrained>>,
|
2554 - | }
|
2555 - | impl Builder {
|
2556 - | #[allow(missing_docs)] // documentation missing in model
|
2557 - | pub(crate) fn set_map_of_length_pattern_string(
|
2558 - | mut self,
|
2559 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_pattern_string_constrained::MapOfListOfLengthPatternStringConstrained>>>,
|
2560 - | ) -> Self {
|
2561 - | self.map_of_length_pattern_string = input.map(|v| v.into());
|
2562 - | self
|
2563 - | }
|
2564 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
2565 - | ///
|
2566 - | /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
2567 - | ///
|
2568 - | pub fn build(
|
2569 - | self,
|
2570 - | ) -> Result<
|
2571 - | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput,
|
2572 - | ConstraintViolation,
|
2573 - | > {
|
2574 - | self.build_enforcing_all_constraints()
|
2575 - | }
|
2576 - | fn build_enforcing_all_constraints(
|
2577 - | self,
|
2578 - | ) -> Result<
|
2579 - | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput,
|
2580 - | ConstraintViolation,
|
2581 - | > {
|
2582 - | Ok(
|
2583 - | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
2584 - | map_of_length_pattern_string: self
|
2585 - | .map_of_length_pattern_string
|
2586 - | .map(|v| match v {
|
2587 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2588 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2589 - | })
|
2590 - | .map(|res| {
|
2591 - | res.map(|v| v.into())
|
2592 - | .map_err(ConstraintViolation::MapOfLengthPatternString)
|
2593 - | })
|
2594 - | .transpose()?,
|
2595 - | },
|
2596 - | )
|
2597 - | }
|
2371 + | pub(crate) length_string_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
2372 + | pub(crate) range_integer_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
2373 + | pub(crate) range_short_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
2374 + | pub(crate) range_long_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
2375 + | pub(crate) range_byte_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
2376 + | pub(crate) enum_string_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::EnumString>>,
|
2377 + | pub(crate) length_string_header_map: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>,
|
2378 + | pub(crate) length_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
2379 + | pub(crate) range_integer_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
2380 + | pub(crate) range_short_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
2381 + | pub(crate) range_long_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
2382 + | pub(crate) range_byte_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
2383 + | pub(crate) length_string_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>>,
|
2384 + | pub(crate) list_length_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>,
|
2385 + | pub(crate) length_list_pattern_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>>,
|
2386 + | pub(crate) length_set_pattern_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthSetOfPatternString>>,
|
2387 + | pub(crate) range_byte_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>>,
|
2388 + | pub(crate) range_short_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>>,
|
2389 + | pub(crate) range_integer_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>>,
|
2390 + | pub(crate) range_long_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>>,
|
2391 + | pub(crate) range_byte_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>,
|
2392 + | pub(crate) range_short_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>,
|
2393 + | pub(crate) range_integer_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>,
|
2394 + | pub(crate) range_long_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>,
|
2395 + | pub(crate) length_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
2396 + | pub(crate) range_byte_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
2397 + | pub(crate) range_short_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
2398 + | pub(crate) range_integer_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
2399 + | pub(crate) range_long_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
2400 + | pub(crate) enum_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::EnumString>>,
|
2401 + | pub(crate) length_string_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>,
|
2402 + | pub(crate) length_list_pattern_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>>,
|
2403 + | pub(crate) length_string_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>>,
|
2404 + | pub(crate) range_byte_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>,
|
2405 + | pub(crate) range_short_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>,
|
2406 + | pub(crate) range_integer_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>,
|
2407 + | pub(crate) range_long_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>,
|
2408 + | pub(crate) range_byte_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>>,
|
2409 + | pub(crate) range_short_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>>,
|
2410 + | pub(crate) range_integer_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>>,
|
2411 + | pub(crate) range_long_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>>,
|
2412 + | pub(crate) enum_string_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained>>,
|
2598 2413 | }
|
2599 - | }
|
2600 - | /// See [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
2601 - | pub mod query_params_targeting_map_of_list_of_length_pattern_string_operation_input {
|
2602 - |
|
2603 - | impl ::std::convert::From<Builder>
|
2604 - | for crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
2605 - | {
|
2606 - | fn from(builder: Builder) -> Self {
|
2607 - | builder.build()
|
2414 + | impl Builder {
|
2415 + | #[allow(missing_docs)] // documentation missing in model
|
2416 + | pub(crate) fn set_length_string_label(
|
2417 + | mut self,
|
2418 + | input: impl ::std::convert::Into<
|
2419 + | crate::constrained::MaybeConstrained<crate::model::LengthString>,
|
2420 + | >,
|
2421 + | ) -> Self {
|
2422 + | self.length_string_label = Some(input.into());
|
2423 + | self
|
2608 2424 | }
|
2425 + | #[allow(missing_docs)] // documentation missing in model
|
2426 + | pub(crate) fn set_range_integer_label(
|
2427 + | mut self,
|
2428 + | input: impl ::std::convert::Into<
|
2429 + | crate::constrained::MaybeConstrained<crate::model::RangeInteger>,
|
2430 + | >,
|
2431 + | ) -> Self {
|
2432 + | self.range_integer_label = Some(input.into());
|
2433 + | self
|
2609 2434 | }
|
2610 - | /// A builder for [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
2611 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2612 - | pub struct Builder {
|
2613 - | pub(crate) map_of_length_pattern_string: ::std::option::Option<
|
2614 - | ::std::collections::HashMap<
|
2615 - | ::std::string::String,
|
2616 - | ::std::vec::Vec<::std::string::String>,
|
2435 + | #[allow(missing_docs)] // documentation missing in model
|
2436 + | pub(crate) fn set_range_short_label(
|
2437 + | mut self,
|
2438 + | input: impl ::std::convert::Into<
|
2439 + | crate::constrained::MaybeConstrained<crate::model::RangeShort>,
|
2617 2440 | >,
|
2441 + | ) -> Self {
|
2442 + | self.range_short_label = Some(input.into());
|
2443 + | self
|
2444 + | }
|
2445 + | #[allow(missing_docs)] // documentation missing in model
|
2446 + | pub(crate) fn set_range_long_label(
|
2447 + | mut self,
|
2448 + | input: impl ::std::convert::Into<
|
2449 + | crate::constrained::MaybeConstrained<crate::model::RangeLong>,
|
2618 2450 | >,
|
2451 + | ) -> Self {
|
2452 + | self.range_long_label = Some(input.into());
|
2453 + | self
|
2619 2454 | }
|
2620 - | impl Builder {
|
2621 2455 | #[allow(missing_docs)] // documentation missing in model
|
2622 - | pub fn map_of_length_pattern_string(
|
2456 + | pub(crate) fn set_range_byte_label(
|
2623 2457 | mut self,
|
2624 - | input: ::std::option::Option<
|
2625 - | ::std::collections::HashMap<
|
2626 - | ::std::string::String,
|
2627 - | ::std::vec::Vec<::std::string::String>,
|
2458 + | input: impl ::std::convert::Into<
|
2459 + | crate::constrained::MaybeConstrained<crate::model::RangeByte>,
|
2628 2460 | >,
|
2461 + | ) -> Self {
|
2462 + | self.range_byte_label = Some(input.into());
|
2463 + | self
|
2464 + | }
|
2465 + | #[allow(missing_docs)] // documentation missing in model
|
2466 + | pub(crate) fn set_enum_string_label(
|
2467 + | mut self,
|
2468 + | input: impl ::std::convert::Into<
|
2469 + | crate::constrained::MaybeConstrained<crate::model::EnumString>,
|
2629 2470 | >,
|
2630 2471 | ) -> Self {
|
2631 - | self.map_of_length_pattern_string = input;
|
2472 + | self.enum_string_label = Some(input.into());
|
2632 2473 | self
|
2633 2474 | }
|
2634 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
2635 - | pub fn build(
|
2636 - | self,
|
2637 - | ) -> crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
2638 - | {
|
2639 - | self.build_enforcing_required_and_enum_traits()
|
2475 + | #[allow(missing_docs)] // documentation missing in model
|
2476 + | pub(crate) fn set_length_string_header_map(
|
2477 + | mut self,
|
2478 + | input: impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>,
|
2479 + | ) -> Self {
|
2480 + | self.length_string_header_map = Some(input.into());
|
2481 + | self
|
2640 2482 | }
|
2641 - | fn build_enforcing_required_and_enum_traits(
|
2642 - | self,
|
2643 - | ) -> crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
2644 - | {
|
2645 - | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
2646 - | map_of_length_pattern_string: self.map_of_length_pattern_string,
|
2483 + | #[allow(missing_docs)] // documentation missing in model
|
2484 + | pub(crate) fn set_length_string_header(
|
2485 + | mut self,
|
2486 + | input: Option<
|
2487 + | impl ::std::convert::Into<
|
2488 + | crate::constrained::MaybeConstrained<crate::model::LengthString>,
|
2489 + | >,
|
2490 + | >,
|
2491 + | ) -> Self {
|
2492 + | self.length_string_header = input.map(|v| v.into());
|
2493 + | self
|
2647 2494 | }
|
2495 + | #[allow(missing_docs)] // documentation missing in model
|
2496 + | pub(crate) fn set_range_integer_header(
|
2497 + | mut self,
|
2498 + | input: impl ::std::convert::Into<
|
2499 + | crate::constrained::MaybeConstrained<crate::model::RangeInteger>,
|
2500 + | >,
|
2501 + | ) -> Self {
|
2502 + | self.range_integer_header = Some(input.into());
|
2503 + | self
|
2648 2504 | }
|
2505 + | #[allow(missing_docs)] // documentation missing in model
|
2506 + | pub(crate) fn set_range_short_header(
|
2507 + | mut self,
|
2508 + | input: impl ::std::convert::Into<
|
2509 + | crate::constrained::MaybeConstrained<crate::model::RangeShort>,
|
2510 + | >,
|
2511 + | ) -> Self {
|
2512 + | self.range_short_header = Some(input.into());
|
2513 + | self
|
2649 2514 | }
|
2650 - | }
|
2651 - | /// See [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
2652 - | pub(crate) mod query_params_targeting_map_of_length_pattern_string_operation_input_internal {
|
2653 - |
|
2654 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2655 - | /// Holds one variant for each of the ways the builder can fail.
|
2656 - | #[non_exhaustive]
|
2657 - | #[allow(clippy::enum_variant_names)]
|
2658 - | pub(crate) enum ConstraintViolation {
|
2659 - | /// Constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfLengthPatternStringOperationInput`.
|
2660 - | #[doc(hidden)]
|
2661 - | MapOfLengthPatternString(
|
2662 - | crate::model::map_of_length_pattern_string_internal::ConstraintViolation,
|
2663 - | ),
|
2515 + | #[allow(missing_docs)] // documentation missing in model
|
2516 + | pub(crate) fn set_range_long_header(
|
2517 + | mut self,
|
2518 + | input: impl ::std::convert::Into<
|
2519 + | crate::constrained::MaybeConstrained<crate::model::RangeLong>,
|
2520 + | >,
|
2521 + | ) -> Self {
|
2522 + | self.range_long_header = Some(input.into());
|
2523 + | self
|
2664 2524 | }
|
2665 - | impl ::std::fmt::Display for ConstraintViolation {
|
2666 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2667 - | match self {
|
2668 - | ConstraintViolation::MapOfLengthPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfLengthPatternStringOperationInput`"),
|
2525 + | #[allow(missing_docs)] // documentation missing in model
|
2526 + | pub(crate) fn set_range_byte_header(
|
2527 + | mut self,
|
2528 + | input: impl ::std::convert::Into<
|
2529 + | crate::constrained::MaybeConstrained<crate::model::RangeByte>,
|
2530 + | >,
|
2531 + | ) -> Self {
|
2532 + | self.range_byte_header = Some(input.into());
|
2533 + | self
|
2669 2534 | }
|
2535 + | #[allow(missing_docs)] // documentation missing in model
|
2536 + | pub(crate) fn set_length_string_set_header(
|
2537 + | mut self,
|
2538 + | input: Option<
|
2539 + | impl ::std::convert::Into<
|
2540 + | crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>,
|
2541 + | >,
|
2542 + | >,
|
2543 + | ) -> Self {
|
2544 + | self.length_string_set_header = input.map(|v| v.into());
|
2545 + | self
|
2670 2546 | }
|
2547 + | #[allow(missing_docs)] // documentation missing in model
|
2548 + | pub(crate) fn set_list_length_string_header(
|
2549 + | mut self,
|
2550 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>>,
|
2551 + | ) -> Self {
|
2552 + | self.list_length_string_header = input.map(|v| v.into());
|
2553 + | self
|
2671 2554 | }
|
2672 - | impl ::std::error::Error for ConstraintViolation {}
|
2673 - | impl ConstraintViolation {
|
2674 - | pub(crate) fn as_validation_exception_field(
|
2675 - | self,
|
2676 - | path: ::std::string::String,
|
2677 - | ) -> crate::model::ValidationExceptionField {
|
2678 - | match self {
|
2679 - | ConstraintViolation::MapOfLengthPatternString(inner) => {
|
2680 - | inner.as_validation_exception_field(path + "/mapOfLengthPatternString")
|
2681 - | }
|
2682 - | }
|
2683 - | }
|
2684 - | }
|
2685 - | impl ::std::convert::From<ConstraintViolation>
|
2686 - | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
2687 - | {
|
2688 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
2689 - | let first_validation_exception_field =
|
2690 - | constraint_violation.as_validation_exception_field("".to_owned());
|
2691 - | let validation_exception = crate::error::ValidationException {
|
2692 - | message: format!(
|
2693 - | "1 validation error detected. {}",
|
2694 - | &first_validation_exception_field.message
|
2695 - | ),
|
2696 - | field_list: Some(vec![first_validation_exception_field]),
|
2697 - | };
|
2698 - | Self::ConstraintViolation(
|
2699 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
2700 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
2701 - | )
|
2702 - | }
|
2555 + | #[allow(missing_docs)] // documentation missing in model
|
2556 + | pub(crate) fn set_length_list_pattern_string_header(
|
2557 + | mut self,
|
2558 + | input: Option<
|
2559 + | impl ::std::convert::Into<
|
2560 + | crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>,
|
2561 + | >,
|
2562 + | >,
|
2563 + | ) -> Self {
|
2564 + | self.length_list_pattern_string_header = input.map(|v| v.into());
|
2565 + | self
|
2703 2566 | }
|
2704 - | impl ::std::convert::From<Builder>
|
2705 - | for crate::constrained::MaybeConstrained<
|
2706 - | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput,
|
2707 - | >
|
2708 - | {
|
2709 - | fn from(builder: Builder) -> Self {
|
2710 - | Self::Unconstrained(builder)
|
2567 + | #[allow(missing_docs)] // documentation missing in model
|
2568 + | pub(crate) fn set_length_set_pattern_string_header(
|
2569 + | mut self,
|
2570 + | input: Option<
|
2571 + | impl ::std::convert::Into<
|
2572 + | crate::constrained::MaybeConstrained<crate::model::LengthSetOfPatternString>,
|
2573 + | >,
|
2574 + | >,
|
2575 + | ) -> Self {
|
2576 + | self.length_set_pattern_string_header = input.map(|v| v.into());
|
2577 + | self
|
2711 2578 | }
|
2579 + | #[allow(missing_docs)] // documentation missing in model
|
2580 + | pub(crate) fn set_range_byte_set_header(
|
2581 + | mut self,
|
2582 + | input: Option<
|
2583 + | impl ::std::convert::Into<
|
2584 + | crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>,
|
2585 + | >,
|
2586 + | >,
|
2587 + | ) -> Self {
|
2588 + | self.range_byte_set_header = input.map(|v| v.into());
|
2589 + | self
|
2712 2590 | }
|
2713 - | impl ::std::convert::TryFrom<Builder>
|
2714 - | for crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput
|
2715 - | {
|
2716 - | type Error = ConstraintViolation;
|
2717 - |
|
2718 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2719 - | builder.build()
|
2591 + | #[allow(missing_docs)] // documentation missing in model
|
2592 + | pub(crate) fn set_range_short_set_header(
|
2593 + | mut self,
|
2594 + | input: Option<
|
2595 + | impl ::std::convert::Into<
|
2596 + | crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>,
|
2597 + | >,
|
2598 + | >,
|
2599 + | ) -> Self {
|
2600 + | self.range_short_set_header = input.map(|v| v.into());
|
2601 + | self
|
2720 2602 | }
|
2603 + | #[allow(missing_docs)] // documentation missing in model
|
2604 + | pub(crate) fn set_range_integer_set_header(
|
2605 + | mut self,
|
2606 + | input: Option<
|
2607 + | impl ::std::convert::Into<
|
2608 + | crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>,
|
2609 + | >,
|
2610 + | >,
|
2611 + | ) -> Self {
|
2612 + | self.range_integer_set_header = input.map(|v| v.into());
|
2613 + | self
|
2721 2614 | }
|
2722 - | /// A builder for [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
2723 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2724 - | pub(crate) struct Builder {
|
2725 - | pub(crate) map_of_length_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_pattern_string_constrained::MapOfLengthPatternStringConstrained>>,
|
2615 + | #[allow(missing_docs)] // documentation missing in model
|
2616 + | pub(crate) fn set_range_long_set_header(
|
2617 + | mut self,
|
2618 + | input: Option<
|
2619 + | impl ::std::convert::Into<
|
2620 + | crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>,
|
2621 + | >,
|
2622 + | >,
|
2623 + | ) -> Self {
|
2624 + | self.range_long_set_header = input.map(|v| v.into());
|
2625 + | self
|
2726 2626 | }
|
2727 - | impl Builder {
|
2728 2627 | #[allow(missing_docs)] // documentation missing in model
|
2729 - | pub(crate) fn set_map_of_length_pattern_string(
|
2628 + | pub(crate) fn set_range_byte_list_header(
|
2730 2629 | mut self,
|
2731 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_pattern_string_constrained::MapOfLengthPatternStringConstrained>>>,
|
2630 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>>,
|
2732 2631 | ) -> Self {
|
2733 - | self.map_of_length_pattern_string = input.map(|v| v.into());
|
2632 + | self.range_byte_list_header = input.map(|v| v.into());
|
2734 2633 | self
|
2735 2634 | }
|
2736 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
2737 - | ///
|
2738 - | /// The builder fails to construct a [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
2739 - | ///
|
2740 - | pub fn build(
|
2741 - | self,
|
2742 - | ) -> Result<
|
2743 - | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput,
|
2744 - | ConstraintViolation,
|
2745 - | > {
|
2746 - | self.build_enforcing_all_constraints()
|
2635 + | #[allow(missing_docs)] // documentation missing in model
|
2636 + | pub(crate) fn set_range_short_list_header(
|
2637 + | mut self,
|
2638 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>>,
|
2639 + | ) -> Self {
|
2640 + | self.range_short_list_header = input.map(|v| v.into());
|
2641 + | self
|
2747 2642 | }
|
2748 - | fn build_enforcing_all_constraints(
|
2749 - | self,
|
2750 - | ) -> Result<
|
2751 - | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput,
|
2752 - | ConstraintViolation,
|
2753 - | > {
|
2754 - | Ok(
|
2755 - | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
2756 - | map_of_length_pattern_string: self
|
2757 - | .map_of_length_pattern_string
|
2758 - | .map(|v| match v {
|
2759 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2760 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2761 - | })
|
2762 - | .map(|res| {
|
2763 - | res.map(|v| v.into())
|
2764 - | .map_err(ConstraintViolation::MapOfLengthPatternString)
|
2765 - | })
|
2766 - | .transpose()?,
|
2767 - | },
|
2768 - | )
|
2643 + | #[allow(missing_docs)] // documentation missing in model
|
2644 + | pub(crate) fn set_range_integer_list_header(
|
2645 + | mut self,
|
2646 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>>,
|
2647 + | ) -> Self {
|
2648 + | self.range_integer_list_header = input.map(|v| v.into());
|
2649 + | self
|
2769 2650 | }
|
2651 + | #[allow(missing_docs)] // documentation missing in model
|
2652 + | pub(crate) fn set_range_long_list_header(
|
2653 + | mut self,
|
2654 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>>,
|
2655 + | ) -> Self {
|
2656 + | self.range_long_list_header = input.map(|v| v.into());
|
2657 + | self
|
2770 2658 | }
|
2771 - | }
|
2772 - | /// See [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
2773 - | pub mod query_params_targeting_map_of_length_pattern_string_operation_input {
|
2774 - |
|
2775 - | impl ::std::convert::From<Builder>
|
2776 - | for crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput
|
2777 - | {
|
2778 - | fn from(builder: Builder) -> Self {
|
2779 - | builder.build()
|
2659 + | #[allow(missing_docs)] // documentation missing in model
|
2660 + | pub(crate) fn set_length_string_query(
|
2661 + | mut self,
|
2662 + | input: Option<
|
2663 + | impl ::std::convert::Into<
|
2664 + | crate::constrained::MaybeConstrained<crate::model::LengthString>,
|
2665 + | >,
|
2666 + | >,
|
2667 + | ) -> Self {
|
2668 + | self.length_string_query = input.map(|v| v.into());
|
2669 + | self
|
2780 2670 | }
|
2671 + | #[allow(missing_docs)] // documentation missing in model
|
2672 + | pub(crate) fn set_range_byte_query(
|
2673 + | mut self,
|
2674 + | input: impl ::std::convert::Into<
|
2675 + | crate::constrained::MaybeConstrained<crate::model::RangeByte>,
|
2676 + | >,
|
2677 + | ) -> Self {
|
2678 + | self.range_byte_query = Some(input.into());
|
2679 + | self
|
2781 2680 | }
|
2782 - | /// A builder for [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
2783 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2784 - | pub struct Builder {
|
2785 - | pub(crate) map_of_length_pattern_string: ::std::option::Option<
|
2786 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2681 + | #[allow(missing_docs)] // documentation missing in model
|
2682 + | pub(crate) fn set_range_short_query(
|
2683 + | mut self,
|
2684 + | input: impl ::std::convert::Into<
|
2685 + | crate::constrained::MaybeConstrained<crate::model::RangeShort>,
|
2787 2686 | >,
|
2687 + | ) -> Self {
|
2688 + | self.range_short_query = Some(input.into());
|
2689 + | self
|
2788 2690 | }
|
2789 - | impl Builder {
|
2790 2691 | #[allow(missing_docs)] // documentation missing in model
|
2791 - | pub fn map_of_length_pattern_string(
|
2692 + | pub(crate) fn set_range_integer_query(
|
2792 2693 | mut self,
|
2793 - | input: ::std::option::Option<
|
2794 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2694 + | input: impl ::std::convert::Into<
|
2695 + | crate::constrained::MaybeConstrained<crate::model::RangeInteger>,
|
2795 2696 | >,
|
2796 2697 | ) -> Self {
|
2797 - | self.map_of_length_pattern_string = input;
|
2698 + | self.range_integer_query = Some(input.into());
|
2798 2699 | self
|
2799 2700 | }
|
2800 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
2801 - | pub fn build(
|
2802 - | self,
|
2803 - | ) -> crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
2804 - | self.build_enforcing_required_and_enum_traits()
|
2701 + | #[allow(missing_docs)] // documentation missing in model
|
2702 + | pub(crate) fn set_range_long_query(
|
2703 + | mut self,
|
2704 + | input: impl ::std::convert::Into<
|
2705 + | crate::constrained::MaybeConstrained<crate::model::RangeLong>,
|
2706 + | >,
|
2707 + | ) -> Self {
|
2708 + | self.range_long_query = Some(input.into());
|
2709 + | self
|
2805 2710 | }
|
2806 - | fn build_enforcing_required_and_enum_traits(
|
2807 - | self,
|
2808 - | ) -> crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
2809 - | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
2810 - | map_of_length_pattern_string: self.map_of_length_pattern_string,
|
2711 + | #[allow(missing_docs)] // documentation missing in model
|
2712 + | pub(crate) fn set_enum_string_query(
|
2713 + | mut self,
|
2714 + | input: Option<
|
2715 + | impl ::std::convert::Into<
|
2716 + | crate::constrained::MaybeConstrained<crate::model::EnumString>,
|
2717 + | >,
|
2718 + | >,
|
2719 + | ) -> Self {
|
2720 + | self.enum_string_query = input.map(|v| v.into());
|
2721 + | self
|
2811 2722 | }
|
2723 + | #[allow(missing_docs)] // documentation missing in model
|
2724 + | pub(crate) fn set_length_string_list_query(
|
2725 + | mut self,
|
2726 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>>,
|
2727 + | ) -> Self {
|
2728 + | self.length_string_list_query = input.map(|v| v.into());
|
2729 + | self
|
2812 2730 | }
|
2731 + | #[allow(missing_docs)] // documentation missing in model
|
2732 + | pub(crate) fn set_length_list_pattern_string_query(
|
2733 + | mut self,
|
2734 + | input: Option<
|
2735 + | impl ::std::convert::Into<
|
2736 + | crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>,
|
2737 + | >,
|
2738 + | >,
|
2739 + | ) -> Self {
|
2740 + | self.length_list_pattern_string_query = input.map(|v| v.into());
|
2741 + | self
|
2813 2742 | }
|
2814 - | }
|
2815 - | /// See [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
2816 - | pub(crate) mod query_params_targeting_map_of_list_of_pattern_string_operation_input_internal {
|
2817 - |
|
2818 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2819 - | /// Holds one variant for each of the ways the builder can fail.
|
2820 - | #[non_exhaustive]
|
2821 - | #[allow(clippy::enum_variant_names)]
|
2822 - | pub(crate) enum ConstraintViolation {
|
2823 - | /// Constraint violation occurred building member `map_of_list_of_pattern_string` when building `QueryParamsTargetingMapOfListOfPatternStringOperationInput`.
|
2824 - | #[doc(hidden)]
|
2825 - | MapOfListOfPatternString(
|
2826 - | crate::model::map_of_list_of_pattern_string_internal::ConstraintViolation,
|
2827 - | ),
|
2828 - | }
|
2829 - | impl ::std::fmt::Display for ConstraintViolation {
|
2830 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2831 - | match self {
|
2832 - | ConstraintViolation::MapOfListOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_pattern_string` when building `QueryParamsTargetingMapOfListOfPatternStringOperationInput`"),
|
2833 - | }
|
2834 - | }
|
2835 - | }
|
2836 - | impl ::std::error::Error for ConstraintViolation {}
|
2837 - | impl ConstraintViolation {
|
2838 - | pub(crate) fn as_validation_exception_field(
|
2839 - | self,
|
2840 - | path: ::std::string::String,
|
2841 - | ) -> crate::model::ValidationExceptionField {
|
2842 - | match self {
|
2843 - | ConstraintViolation::MapOfListOfPatternString(inner) => {
|
2844 - | inner.as_validation_exception_field(path + "/mapOfListOfPatternString")
|
2845 - | }
|
2846 - | }
|
2743 + | #[allow(missing_docs)] // documentation missing in model
|
2744 + | pub(crate) fn set_length_string_set_query(
|
2745 + | mut self,
|
2746 + | input: Option<
|
2747 + | impl ::std::convert::Into<
|
2748 + | crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>,
|
2749 + | >,
|
2750 + | >,
|
2751 + | ) -> Self {
|
2752 + | self.length_string_set_query = input.map(|v| v.into());
|
2753 + | self
|
2847 2754 | }
|
2755 + | #[allow(missing_docs)] // documentation missing in model
|
2756 + | pub(crate) fn set_range_byte_list_query(
|
2757 + | mut self,
|
2758 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>>,
|
2759 + | ) -> Self {
|
2760 + | self.range_byte_list_query = input.map(|v| v.into());
|
2761 + | self
|
2848 2762 | }
|
2849 - | impl ::std::convert::From<ConstraintViolation>
|
2850 - | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
2851 - | {
|
2852 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
2853 - | let first_validation_exception_field =
|
2854 - | constraint_violation.as_validation_exception_field("".to_owned());
|
2855 - | let validation_exception = crate::error::ValidationException {
|
2856 - | message: format!(
|
2857 - | "1 validation error detected. {}",
|
2858 - | &first_validation_exception_field.message
|
2859 - | ),
|
2860 - | field_list: Some(vec![first_validation_exception_field]),
|
2861 - | };
|
2862 - | Self::ConstraintViolation(
|
2863 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
2864 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
2865 - | )
|
2763 + | #[allow(missing_docs)] // documentation missing in model
|
2764 + | pub(crate) fn set_range_short_list_query(
|
2765 + | mut self,
|
2766 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>>,
|
2767 + | ) -> Self {
|
2768 + | self.range_short_list_query = input.map(|v| v.into());
|
2769 + | self
|
2866 2770 | }
|
2771 + | #[allow(missing_docs)] // documentation missing in model
|
2772 + | pub(crate) fn set_range_integer_list_query(
|
2773 + | mut self,
|
2774 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>>,
|
2775 + | ) -> Self {
|
2776 + | self.range_integer_list_query = input.map(|v| v.into());
|
2777 + | self
|
2867 2778 | }
|
2868 - | impl ::std::convert::From<Builder>
|
2869 - | for crate::constrained::MaybeConstrained<
|
2870 - | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput,
|
2871 - | >
|
2872 - | {
|
2873 - | fn from(builder: Builder) -> Self {
|
2874 - | Self::Unconstrained(builder)
|
2779 + | #[allow(missing_docs)] // documentation missing in model
|
2780 + | pub(crate) fn set_range_long_list_query(
|
2781 + | mut self,
|
2782 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>>,
|
2783 + | ) -> Self {
|
2784 + | self.range_long_list_query = input.map(|v| v.into());
|
2785 + | self
|
2875 2786 | }
|
2787 + | #[allow(missing_docs)] // documentation missing in model
|
2788 + | pub(crate) fn set_range_byte_set_query(
|
2789 + | mut self,
|
2790 + | input: Option<
|
2791 + | impl ::std::convert::Into<
|
2792 + | crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>,
|
2793 + | >,
|
2794 + | >,
|
2795 + | ) -> Self {
|
2796 + | self.range_byte_set_query = input.map(|v| v.into());
|
2797 + | self
|
2876 2798 | }
|
2877 - | impl ::std::convert::TryFrom<Builder>
|
2878 - | for crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput
|
2879 - | {
|
2880 - | type Error = ConstraintViolation;
|
2881 - |
|
2882 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2883 - | builder.build()
|
2799 + | #[allow(missing_docs)] // documentation missing in model
|
2800 + | pub(crate) fn set_range_short_set_query(
|
2801 + | mut self,
|
2802 + | input: Option<
|
2803 + | impl ::std::convert::Into<
|
2804 + | crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>,
|
2805 + | >,
|
2806 + | >,
|
2807 + | ) -> Self {
|
2808 + | self.range_short_set_query = input.map(|v| v.into());
|
2809 + | self
|
2884 2810 | }
|
2811 + | #[allow(missing_docs)] // documentation missing in model
|
2812 + | pub(crate) fn set_range_integer_set_query(
|
2813 + | mut self,
|
2814 + | input: Option<
|
2815 + | impl ::std::convert::Into<
|
2816 + | crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>,
|
2817 + | >,
|
2818 + | >,
|
2819 + | ) -> Self {
|
2820 + | self.range_integer_set_query = input.map(|v| v.into());
|
2821 + | self
|
2885 2822 | }
|
2886 - | /// A builder for [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
2887 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2888 - | pub(crate) struct Builder {
|
2889 - | pub(crate) map_of_list_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_pattern_string_constrained::MapOfListOfPatternStringConstrained>>,
|
2823 + | #[allow(missing_docs)] // documentation missing in model
|
2824 + | pub(crate) fn set_range_long_set_query(
|
2825 + | mut self,
|
2826 + | input: Option<
|
2827 + | impl ::std::convert::Into<
|
2828 + | crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>,
|
2829 + | >,
|
2830 + | >,
|
2831 + | ) -> Self {
|
2832 + | self.range_long_set_query = input.map(|v| v.into());
|
2833 + | self
|
2890 2834 | }
|
2891 - | impl Builder {
|
2892 2835 | #[allow(missing_docs)] // documentation missing in model
|
2893 - | pub(crate) fn set_map_of_list_of_pattern_string(
|
2836 + | pub(crate) fn set_enum_string_list_query(
|
2894 2837 | mut self,
|
2895 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_pattern_string_constrained::MapOfListOfPatternStringConstrained>>>,
|
2838 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained>>>,
|
2896 2839 | ) -> Self {
|
2897 - | self.map_of_list_of_pattern_string = input.map(|v| v.into());
|
2840 + | self.enum_string_list_query = input.map(|v| v.into());
|
2898 2841 | self
|
2899 2842 | }
|
2900 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
2843 + | /// Consumes the builder and constructs a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
2901 2844 | ///
|
2902 - | /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
2845 + | /// The builder fails to construct a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput) if a [`ConstraintViolation`] occurs.
|
2903 2846 | ///
|
2847 + | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
2904 2848 | pub fn build(
|
2905 2849 | self,
|
2906 - | ) -> Result<
|
2907 - | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput,
|
2908 - | ConstraintViolation,
|
2909 - | > {
|
2850 + | ) -> Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ConstraintViolation>
|
2851 + | {
|
2910 2852 | self.build_enforcing_all_constraints()
|
2911 2853 | }
|
2912 2854 | fn build_enforcing_all_constraints(
|
2913 2855 | self,
|
2914 - | ) -> Result<
|
2915 - | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput,
|
2916 - | ConstraintViolation,
|
2917 - | > {
|
2918 - | Ok(
|
2919 - | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
2920 - | map_of_list_of_pattern_string: self
|
2921 - | .map_of_list_of_pattern_string
|
2856 + | ) -> Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ConstraintViolation>
|
2857 + | {
|
2858 + | Ok(crate::input::ConstrainedHttpBoundShapesOperationInput {
|
2859 + | length_string_label: self
|
2860 + | .length_string_label
|
2861 + | .map(|v| match v {
|
2862 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2863 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2864 + | })
|
2865 + | .map(|res| res.map_err(ConstraintViolation::LengthStringLabel))
|
2866 + | .transpose()?
|
2867 + | .map(|v: crate::model::LengthString| v.into())
|
2868 + | .ok_or(ConstraintViolation::MissingLengthStringLabel)?,
|
2869 + | range_integer_label: self
|
2870 + | .range_integer_label
|
2871 + | .map(|v| match v {
|
2872 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2873 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2874 + | })
|
2875 + | .map(|res| res.map_err(ConstraintViolation::RangeIntegerLabel))
|
2876 + | .transpose()?
|
2877 + | .map(|v: crate::model::RangeInteger| v.into())
|
2878 + | .unwrap_or(0i32),
|
2879 + | range_short_label: self
|
2880 + | .range_short_label
|
2881 + | .map(|v| match v {
|
2882 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2883 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2884 + | })
|
2885 + | .map(|res| res.map_err(ConstraintViolation::RangeShortLabel))
|
2886 + | .transpose()?
|
2887 + | .map(|v: crate::model::RangeShort| v.into())
|
2888 + | .unwrap_or(0i16),
|
2889 + | range_long_label: self
|
2890 + | .range_long_label
|
2891 + | .map(|v| match v {
|
2892 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2893 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2894 + | })
|
2895 + | .map(|res| res.map_err(ConstraintViolation::RangeLongLabel))
|
2896 + | .transpose()?
|
2897 + | .map(|v: crate::model::RangeLong| v.into())
|
2898 + | .unwrap_or(0i64),
|
2899 + | range_byte_label: self
|
2900 + | .range_byte_label
|
2901 + | .map(|v| match v {
|
2902 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2903 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2904 + | })
|
2905 + | .map(|res| res.map_err(ConstraintViolation::RangeByteLabel))
|
2906 + | .transpose()?
|
2907 + | .map(|v: crate::model::RangeByte| v.into())
|
2908 + | .unwrap_or(0i8),
|
2909 + | enum_string_label: self
|
2910 + | .enum_string_label
|
2911 + | .map(|v| match v {
|
2912 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2913 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2914 + | })
|
2915 + | .map(|res| res.map_err(ConstraintViolation::EnumStringLabel))
|
2916 + | .transpose()?
|
2917 + | .ok_or(ConstraintViolation::MissingEnumStringLabel)?,
|
2918 + | length_string_header_map: self
|
2919 + | .length_string_header_map
|
2922 2920 | .map(|v| match v {
|
2923 2921 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2924 2922 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2925 2923 | })
|
2926 2924 | .map(|res| {
|
2927 2925 | res.map(|v| v.into())
|
2928 - | .map_err(ConstraintViolation::MapOfListOfPatternString)
|
2926 + | .map_err(ConstraintViolation::LengthStringHeaderMap)
|
2929 2927 | })
|
2930 - | .transpose()?,
|
2931 - | },
|
2932 - | )
|
2933 - | }
|
2934 - | }
|
2935 - | }
|
2936 - | /// See [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
2937 - | pub mod query_params_targeting_map_of_list_of_pattern_string_operation_input {
|
2938 - |
|
2939 - | impl ::std::convert::From<Builder>
|
2940 - | for crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput
|
2941 - | {
|
2942 - | fn from(builder: Builder) -> Self {
|
2943 - | builder.build()
|
2944 - | }
|
2945 - | }
|
2946 - | /// A builder for [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
2947 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2948 - | pub struct Builder {
|
2949 - | pub(crate) map_of_list_of_pattern_string: ::std::option::Option<
|
2950 - | ::std::collections::HashMap<
|
2951 - | ::std::string::String,
|
2952 - | ::std::vec::Vec<::std::string::String>,
|
2953 - | >,
|
2954 - | >,
|
2955 - | }
|
2956 - | impl Builder {
|
2957 - | #[allow(missing_docs)] // documentation missing in model
|
2958 - | pub fn map_of_list_of_pattern_string(
|
2959 - | mut self,
|
2960 - | input: ::std::option::Option<
|
2961 - | ::std::collections::HashMap<
|
2962 - | ::std::string::String,
|
2963 - | ::std::vec::Vec<::std::string::String>,
|
2964 - | >,
|
2965 - | >,
|
2966 - | ) -> Self {
|
2967 - | self.map_of_list_of_pattern_string = input;
|
2968 - | self
|
2969 - | }
|
2970 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
2971 - | pub fn build(
|
2972 - | self,
|
2973 - | ) -> crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
2974 - | self.build_enforcing_required_and_enum_traits()
|
2975 - | }
|
2976 - | fn build_enforcing_required_and_enum_traits(
|
2977 - | self,
|
2978 - | ) -> crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
2979 - | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
2980 - | map_of_list_of_pattern_string: self.map_of_list_of_pattern_string,
|
2981 - | }
|
2982 - | }
|
2983 - | }
|
2984 - | }
|
2985 - | /// See [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
2986 - | pub(crate) mod query_params_targeting_map_of_pattern_string_operation_input_internal {
|
2987 - |
|
2988 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2989 - | /// Holds one variant for each of the ways the builder can fail.
|
2990 - | #[non_exhaustive]
|
2991 - | #[allow(clippy::enum_variant_names)]
|
2992 - | pub(crate) enum ConstraintViolation {
|
2993 - | /// Constraint violation occurred building member `map_of_pattern_string` when building `QueryParamsTargetingMapOfPatternStringOperationInput`.
|
2994 - | #[doc(hidden)]
|
2995 - | MapOfPatternString(crate::model::map_of_pattern_string_internal::ConstraintViolation),
|
2996 - | }
|
2997 - | impl ::std::fmt::Display for ConstraintViolation {
|
2998 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2999 - | match self {
|
3000 - | ConstraintViolation::MapOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_pattern_string` when building `QueryParamsTargetingMapOfPatternStringOperationInput`"),
|
3001 - | }
|
3002 - | }
|
3003 - | }
|
3004 - | impl ::std::error::Error for ConstraintViolation {}
|
3005 - | impl ConstraintViolation {
|
3006 - | pub(crate) fn as_validation_exception_field(
|
3007 - | self,
|
3008 - | path: ::std::string::String,
|
3009 - | ) -> crate::model::ValidationExceptionField {
|
3010 - | match self {
|
3011 - | ConstraintViolation::MapOfPatternString(inner) => {
|
3012 - | inner.as_validation_exception_field(path + "/mapOfPatternString")
|
3013 - | }
|
3014 - | }
|
3015 - | }
|
3016 - | }
|
3017 - | impl ::std::convert::From<ConstraintViolation>
|
3018 - | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3019 - | {
|
3020 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3021 - | let first_validation_exception_field =
|
3022 - | constraint_violation.as_validation_exception_field("".to_owned());
|
3023 - | let validation_exception = crate::error::ValidationException {
|
3024 - | message: format!(
|
3025 - | "1 validation error detected. {}",
|
3026 - | &first_validation_exception_field.message
|
3027 - | ),
|
3028 - | field_list: Some(vec![first_validation_exception_field]),
|
3029 - | };
|
3030 - | Self::ConstraintViolation(
|
3031 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
3032 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
3033 - | )
|
3034 - | }
|
3035 - | }
|
3036 - | impl ::std::convert::From<Builder>
|
3037 - | for crate::constrained::MaybeConstrained<
|
3038 - | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput,
|
3039 - | >
|
3040 - | {
|
3041 - | fn from(builder: Builder) -> Self {
|
3042 - | Self::Unconstrained(builder)
|
3043 - | }
|
3044 - | }
|
3045 - | impl ::std::convert::TryFrom<Builder>
|
3046 - | for crate::input::QueryParamsTargetingMapOfPatternStringOperationInput
|
3047 - | {
|
3048 - | type Error = ConstraintViolation;
|
3049 - |
|
3050 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3051 - | builder.build()
|
3052 - | }
|
3053 - | }
|
3054 - | /// A builder for [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
3055 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3056 - | pub(crate) struct Builder {
|
3057 - | pub(crate) map_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained>>,
|
3058 - | }
|
3059 - | impl Builder {
|
3060 - | #[allow(missing_docs)] // documentation missing in model
|
3061 - | pub(crate) fn set_map_of_pattern_string(
|
3062 - | mut self,
|
3063 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained>>>,
|
3064 - | ) -> Self {
|
3065 - | self.map_of_pattern_string = input.map(|v| v.into());
|
3066 - | self
|
3067 - | }
|
3068 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
3069 - | ///
|
3070 - | /// The builder fails to construct a [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
3071 - | ///
|
3072 - | pub fn build(
|
3073 - | self,
|
3074 - | ) -> Result<
|
3075 - | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput,
|
3076 - | ConstraintViolation,
|
3077 - | > {
|
3078 - | self.build_enforcing_all_constraints()
|
3079 - | }
|
3080 - | fn build_enforcing_all_constraints(
|
3081 - | self,
|
3082 - | ) -> Result<
|
3083 - | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput,
|
3084 - | ConstraintViolation,
|
3085 - | > {
|
3086 - | Ok(
|
3087 - | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput {
|
3088 - | map_of_pattern_string: self
|
3089 - | .map_of_pattern_string
|
3090 - | .map(|v| match v {
|
3091 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3092 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3093 - | })
|
3094 - | .map(|res| {
|
3095 - | res.map(|v| v.into())
|
3096 - | .map_err(ConstraintViolation::MapOfPatternString)
|
3097 - | })
|
3098 - | .transpose()?,
|
3099 - | },
|
3100 - | )
|
3101 - | }
|
3102 - | }
|
3103 - | }
|
3104 - | /// See [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
3105 - | pub mod query_params_targeting_map_of_pattern_string_operation_input {
|
3106 - |
|
3107 - | impl ::std::convert::From<Builder>
|
3108 - | for crate::input::QueryParamsTargetingMapOfPatternStringOperationInput
|
3109 - | {
|
3110 - | fn from(builder: Builder) -> Self {
|
3111 - | builder.build()
|
3112 - | }
|
3113 - | }
|
3114 - | /// A builder for [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
3115 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3116 - | pub struct Builder {
|
3117 - | pub(crate) map_of_pattern_string: ::std::option::Option<
|
3118 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
3119 - | >,
|
3120 - | }
|
3121 - | impl Builder {
|
3122 - | #[allow(missing_docs)] // documentation missing in model
|
3123 - | pub fn map_of_pattern_string(
|
3124 - | mut self,
|
3125 - | input: ::std::option::Option<
|
3126 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
3127 - | >,
|
3128 - | ) -> Self {
|
3129 - | self.map_of_pattern_string = input;
|
3130 - | self
|
3131 - | }
|
3132 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
3133 - | pub fn build(self) -> crate::input::QueryParamsTargetingMapOfPatternStringOperationInput {
|
3134 - | self.build_enforcing_required_and_enum_traits()
|
3135 - | }
|
3136 - | fn build_enforcing_required_and_enum_traits(
|
3137 - | self,
|
3138 - | ) -> crate::input::QueryParamsTargetingMapOfPatternStringOperationInput {
|
3139 - | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput {
|
3140 - | map_of_pattern_string: self.map_of_pattern_string,
|
3141 - | }
|
3142 - | }
|
3143 - | }
|
3144 - | }
|
3145 - | /// See [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
3146 - | pub(crate) mod query_params_targeting_map_of_list_of_enum_string_operation_input_internal {
|
3147 - |
|
3148 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3149 - | /// Holds one variant for each of the ways the builder can fail.
|
3150 - | #[non_exhaustive]
|
3151 - | #[allow(clippy::enum_variant_names)]
|
3152 - | pub(crate) enum ConstraintViolation {
|
3153 - | /// Constraint violation occurred building member `map_of_list_of_enum_string` when building `QueryParamsTargetingMapOfListOfEnumStringOperationInput`.
|
3154 - | #[doc(hidden)]
|
3155 - | MapOfListOfEnumString(
|
3156 - | crate::model::map_of_list_of_enum_string_internal::ConstraintViolation,
|
3157 - | ),
|
3158 - | }
|
3159 - | impl ::std::fmt::Display for ConstraintViolation {
|
3160 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3161 - | match self {
|
3162 - | ConstraintViolation::MapOfListOfEnumString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_enum_string` when building `QueryParamsTargetingMapOfListOfEnumStringOperationInput`"),
|
3163 - | }
|
3164 - | }
|
3165 - | }
|
3166 - | impl ::std::error::Error for ConstraintViolation {}
|
3167 - | impl ConstraintViolation {
|
3168 - | pub(crate) fn as_validation_exception_field(
|
3169 - | self,
|
3170 - | path: ::std::string::String,
|
3171 - | ) -> crate::model::ValidationExceptionField {
|
3172 - | match self {
|
3173 - | ConstraintViolation::MapOfListOfEnumString(inner) => {
|
3174 - | inner.as_validation_exception_field(path + "/mapOfListOfEnumString")
|
3175 - | }
|
3176 - | }
|
3177 - | }
|
3178 - | }
|
3179 - | impl ::std::convert::From<ConstraintViolation>
|
3180 - | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3181 - | {
|
3182 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3183 - | let first_validation_exception_field =
|
3184 - | constraint_violation.as_validation_exception_field("".to_owned());
|
3185 - | let validation_exception = crate::error::ValidationException {
|
3186 - | message: format!(
|
3187 - | "1 validation error detected. {}",
|
3188 - | &first_validation_exception_field.message
|
3189 - | ),
|
3190 - | field_list: Some(vec![first_validation_exception_field]),
|
3191 - | };
|
3192 - | Self::ConstraintViolation(
|
3193 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
3194 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
3195 - | )
|
3196 - | }
|
3197 - | }
|
3198 - | impl ::std::convert::From<Builder>
|
3199 - | for crate::constrained::MaybeConstrained<
|
3200 - | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput,
|
3201 - | >
|
3202 - | {
|
3203 - | fn from(builder: Builder) -> Self {
|
3204 - | Self::Unconstrained(builder)
|
3205 - | }
|
3206 - | }
|
3207 - | impl ::std::convert::TryFrom<Builder>
|
3208 - | for crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput
|
3209 - | {
|
3210 - | type Error = ConstraintViolation;
|
3211 - |
|
3212 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3213 - | builder.build()
|
3214 - | }
|
3215 - | }
|
3216 - | /// A builder for [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
3217 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3218 - | pub(crate) struct Builder {
|
3219 - | pub(crate) map_of_list_of_enum_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_enum_string_constrained::MapOfListOfEnumStringConstrained>>,
|
3220 - | }
|
3221 - | impl Builder {
|
3222 - | #[allow(missing_docs)] // documentation missing in model
|
3223 - | pub(crate) fn set_map_of_list_of_enum_string(
|
3224 - | mut self,
|
3225 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_enum_string_constrained::MapOfListOfEnumStringConstrained>>>,
|
3226 - | ) -> Self {
|
3227 - | self.map_of_list_of_enum_string = input.map(|v| v.into());
|
3228 - | self
|
3229 - | }
|
3230 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
3231 - | ///
|
3232 - | /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput) if a [`ConstraintViolation`] occurs.
|
3233 - | ///
|
3234 - | pub fn build(
|
3235 - | self,
|
3236 - | ) -> Result<
|
3237 - | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput,
|
3238 - | ConstraintViolation,
|
3239 - | > {
|
3240 - | self.build_enforcing_all_constraints()
|
3241 - | }
|
3242 - | fn build_enforcing_all_constraints(
|
3243 - | self,
|
3244 - | ) -> Result<
|
3245 - | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput,
|
3246 - | ConstraintViolation,
|
3247 - | > {
|
3248 - | Ok(
|
3249 - | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
3250 - | map_of_list_of_enum_string: self
|
3251 - | .map_of_list_of_enum_string
|
3252 - | .map(|v| match v {
|
3253 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3254 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3255 - | })
|
3256 - | .map(|res| {
|
3257 - | res.map(|v| v.into())
|
3258 - | .map_err(ConstraintViolation::MapOfListOfEnumString)
|
3259 - | })
|
3260 - | .transpose()?,
|
3261 - | },
|
3262 - | )
|
3263 - | }
|
3264 - | }
|
3265 - | }
|
3266 - | /// See [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
3267 - | pub mod query_params_targeting_map_of_list_of_enum_string_operation_input {
|
3268 - |
|
3269 - | impl ::std::convert::From<Builder>
|
3270 - | for crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput
|
3271 - | {
|
3272 - | fn from(builder: Builder) -> Self {
|
3273 - | builder.build()
|
3274 - | }
|
3275 - | }
|
3276 - | /// A builder for [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
3277 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3278 - | pub struct Builder {
|
3279 - | pub(crate) map_of_list_of_enum_string: ::std::option::Option<
|
3280 - | ::std::collections::HashMap<
|
3281 - | crate::model::EnumString,
|
3282 - | ::std::vec::Vec<crate::model::EnumString>,
|
3283 - | >,
|
3284 - | >,
|
3285 - | }
|
3286 - | impl Builder {
|
3287 - | #[allow(missing_docs)] // documentation missing in model
|
3288 - | pub fn map_of_list_of_enum_string(
|
3289 - | mut self,
|
3290 - | input: ::std::option::Option<
|
3291 - | ::std::collections::HashMap<
|
3292 - | crate::model::EnumString,
|
3293 - | ::std::vec::Vec<crate::model::EnumString>,
|
3294 - | >,
|
3295 - | >,
|
3296 - | ) -> Self {
|
3297 - | self.map_of_list_of_enum_string = input;
|
3298 - | self
|
3299 - | }
|
3300 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
3301 - | pub fn build(
|
3302 - | self,
|
3303 - | ) -> crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
3304 - | self.build_enforcing_required_and_enum_traits()
|
3305 - | }
|
3306 - | fn build_enforcing_required_and_enum_traits(
|
3307 - | self,
|
3308 - | ) -> crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
3309 - | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
3310 - | map_of_list_of_enum_string: self.map_of_list_of_enum_string,
|
3311 - | }
|
3312 - | }
|
3313 - | }
|
3314 - | }
|
3315 - | /// See [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
3316 - | pub(crate) mod query_params_targeting_map_of_length_list_of_pattern_string_operation_input_internal {
|
3317 - |
|
3318 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3319 - | /// Holds one variant for each of the ways the builder can fail.
|
3320 - | #[non_exhaustive]
|
3321 - | #[allow(clippy::enum_variant_names)]
|
3322 - | pub(crate) enum ConstraintViolation {
|
3323 - | /// Constraint violation occurred building member `map_of_length_list_of_pattern_string` when building `QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`.
|
3324 - | #[doc(hidden)]
|
3325 - | MapOfLengthListOfPatternString(
|
3326 - | crate::model::map_of_length_list_of_pattern_string_internal::ConstraintViolation,
|
3327 - | ),
|
3328 - | }
|
3329 - | impl ::std::fmt::Display for ConstraintViolation {
|
3330 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3331 - | match self {
|
3332 - | ConstraintViolation::MapOfLengthListOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_list_of_pattern_string` when building `QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`"),
|
3333 - | }
|
3334 - | }
|
3335 - | }
|
3336 - | impl ::std::error::Error for ConstraintViolation {}
|
3337 - | impl ConstraintViolation {
|
3338 - | pub(crate) fn as_validation_exception_field(
|
3339 - | self,
|
3340 - | path: ::std::string::String,
|
3341 - | ) -> crate::model::ValidationExceptionField {
|
3342 - | match self {
|
3343 - | ConstraintViolation::MapOfLengthListOfPatternString(inner) => {
|
3344 - | inner.as_validation_exception_field(path + "/mapOfLengthListOfPatternString")
|
3345 - | }
|
3346 - | }
|
3347 - | }
|
3348 - | }
|
3349 - | impl ::std::convert::From<ConstraintViolation>
|
3350 - | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3351 - | {
|
3352 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3353 - | let first_validation_exception_field =
|
3354 - | constraint_violation.as_validation_exception_field("".to_owned());
|
3355 - | let validation_exception = crate::error::ValidationException {
|
3356 - | message: format!(
|
3357 - | "1 validation error detected. {}",
|
3358 - | &first_validation_exception_field.message
|
3359 - | ),
|
3360 - | field_list: Some(vec![first_validation_exception_field]),
|
3361 - | };
|
3362 - | Self::ConstraintViolation(
|
3363 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
3364 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
3365 - | )
|
3366 - | }
|
3367 - | }
|
3368 - | impl ::std::convert::From<Builder>
|
3369 - | for crate::constrained::MaybeConstrained<
|
3370 - | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput,
|
3371 - | >
|
3372 - | {
|
3373 - | fn from(builder: Builder) -> Self {
|
3374 - | Self::Unconstrained(builder)
|
3375 - | }
|
3376 - | }
|
3377 - | impl ::std::convert::TryFrom<Builder>
|
3378 - | for crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
3379 - | {
|
3380 - | type Error = ConstraintViolation;
|
3381 - |
|
3382 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3383 - | builder.build()
|
3384 - | }
|
3385 - | }
|
3386 - | /// A builder for [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
3387 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3388 - | pub(crate) struct Builder {
|
3389 - | pub(crate) map_of_length_list_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_list_of_pattern_string_constrained::MapOfLengthListOfPatternStringConstrained>>,
|
3390 - | }
|
3391 - | impl Builder {
|
3392 - | #[allow(missing_docs)] // documentation missing in model
|
3393 - | pub(crate) fn set_map_of_length_list_of_pattern_string(
|
3394 - | mut self,
|
3395 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_list_of_pattern_string_constrained::MapOfLengthListOfPatternStringConstrained>>>,
|
3396 - | ) -> Self {
|
3397 - | self.map_of_length_list_of_pattern_string = input.map(|v| v.into());
|
3398 - | self
|
3399 - | }
|
3400 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
3401 - | ///
|
3402 - | /// The builder fails to construct a [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
3403 - | ///
|
3404 - | pub fn build(
|
3405 - | self,
|
3406 - | ) -> Result<
|
3407 - | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput,
|
3408 - | ConstraintViolation,
|
3409 - | > {
|
3410 - | self.build_enforcing_all_constraints()
|
3411 - | }
|
3412 - | fn build_enforcing_all_constraints(
|
3413 - | self,
|
3414 - | ) -> Result<
|
3415 - | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput,
|
3416 - | ConstraintViolation,
|
3417 - | > {
|
3418 - | Ok(
|
3419 - | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
3420 - | map_of_length_list_of_pattern_string: self
|
3421 - | .map_of_length_list_of_pattern_string
|
2928 + | .transpose()?
|
2929 + | .ok_or(ConstraintViolation::MissingLengthStringHeaderMap)?,
|
2930 + | length_string_header: self
|
2931 + | .length_string_header
|
3422 2932 | .map(|v| match v {
|
3423 2933 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3424 2934 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3425 2935 | })
|
3426 - | .map(|res| {
|
3427 - | res.map(|v| v.into())
|
3428 - | .map_err(ConstraintViolation::MapOfLengthListOfPatternString)
|
3429 - | })
|
3430 - | .transpose()?,
|
3431 - | },
|
3432 - | )
|
3433 - | }
|
3434 - | }
|
3435 - | }
|
3436 - | /// See [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
3437 - | pub mod query_params_targeting_map_of_length_list_of_pattern_string_operation_input {
|
3438 - |
|
3439 - | impl ::std::convert::From<Builder>
|
3440 - | for crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
3441 - | {
|
3442 - | fn from(builder: Builder) -> Self {
|
3443 - | builder.build()
|
3444 - | }
|
3445 - | }
|
3446 - | /// A builder for [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
3447 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3448 - | pub struct Builder {
|
3449 - | pub(crate) map_of_length_list_of_pattern_string: ::std::option::Option<
|
3450 - | ::std::collections::HashMap<
|
3451 - | ::std::string::String,
|
3452 - | ::std::vec::Vec<::std::string::String>,
|
3453 - | >,
|
3454 - | >,
|
3455 - | }
|
3456 - | impl Builder {
|
3457 - | #[allow(missing_docs)] // documentation missing in model
|
3458 - | pub fn map_of_length_list_of_pattern_string(
|
3459 - | mut self,
|
3460 - | input: ::std::option::Option<
|
3461 - | ::std::collections::HashMap<
|
3462 - | ::std::string::String,
|
3463 - | ::std::vec::Vec<::std::string::String>,
|
3464 - | >,
|
3465 - | >,
|
3466 - | ) -> Self {
|
3467 - | self.map_of_length_list_of_pattern_string = input;
|
3468 - | self
|
3469 - | }
|
3470 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
3471 - | pub fn build(
|
3472 - | self,
|
3473 - | ) -> crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
3474 - | {
|
3475 - | self.build_enforcing_required_and_enum_traits()
|
3476 - | }
|
3477 - | fn build_enforcing_required_and_enum_traits(
|
3478 - | self,
|
3479 - | ) -> crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
3480 - | {
|
3481 - | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
3482 - | map_of_length_list_of_pattern_string: self.map_of_length_list_of_pattern_string,
|
3483 - | }
|
3484 - | }
|
3485 - | }
|
3486 - | }
|
3487 - | /// See [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
3488 - | pub(crate) mod query_params_targeting_map_of_set_of_length_string_operation_input_internal {
|
3489 - |
|
3490 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3491 - | /// Holds one variant for each of the ways the builder can fail.
|
3492 - | #[non_exhaustive]
|
3493 - | #[allow(clippy::enum_variant_names)]
|
3494 - | pub(crate) enum ConstraintViolation {
|
3495 - | /// Constraint violation occurred building member `map_of_set_of_length_string` when building `QueryParamsTargetingMapOfSetOfLengthStringOperationInput`.
|
3496 - | #[doc(hidden)]
|
3497 - | MapOfSetOfLengthString(
|
3498 - | crate::model::map_of_set_of_length_string_internal::ConstraintViolation,
|
3499 - | ),
|
3500 - | }
|
3501 - | impl ::std::fmt::Display for ConstraintViolation {
|
3502 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3503 - | match self {
|
3504 - | ConstraintViolation::MapOfSetOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_set_of_length_string` when building `QueryParamsTargetingMapOfSetOfLengthStringOperationInput`"),
|
3505 - | }
|
3506 - | }
|
3507 - | }
|
3508 - | impl ::std::error::Error for ConstraintViolation {}
|
3509 - | impl ConstraintViolation {
|
3510 - | pub(crate) fn as_validation_exception_field(
|
3511 - | self,
|
3512 - | path: ::std::string::String,
|
3513 - | ) -> crate::model::ValidationExceptionField {
|
3514 - | match self {
|
3515 - | ConstraintViolation::MapOfSetOfLengthString(inner) => {
|
3516 - | inner.as_validation_exception_field(path + "/mapOfSetOfLengthString")
|
3517 - | }
|
3518 - | }
|
3519 - | }
|
3520 - | }
|
3521 - | impl ::std::convert::From<ConstraintViolation>
|
3522 - | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3523 - | {
|
3524 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3525 - | let first_validation_exception_field =
|
3526 - | constraint_violation.as_validation_exception_field("".to_owned());
|
3527 - | let validation_exception = crate::error::ValidationException {
|
3528 - | message: format!(
|
3529 - | "1 validation error detected. {}",
|
3530 - | &first_validation_exception_field.message
|
3531 - | ),
|
3532 - | field_list: Some(vec![first_validation_exception_field]),
|
3533 - | };
|
3534 - | Self::ConstraintViolation(
|
3535 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
3536 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
3537 - | )
|
3538 - | }
|
3539 - | }
|
3540 - | impl ::std::convert::From<Builder>
|
3541 - | for crate::constrained::MaybeConstrained<
|
3542 - | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput,
|
3543 - | >
|
3544 - | {
|
3545 - | fn from(builder: Builder) -> Self {
|
3546 - | Self::Unconstrained(builder)
|
3547 - | }
|
3548 - | }
|
3549 - | impl ::std::convert::TryFrom<Builder>
|
3550 - | for crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput
|
3551 - | {
|
3552 - | type Error = ConstraintViolation;
|
3553 - |
|
3554 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3555 - | builder.build()
|
3556 - | }
|
3557 - | }
|
3558 - | /// A builder for [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
3559 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3560 - | pub(crate) struct Builder {
|
3561 - | pub(crate) map_of_set_of_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_set_of_length_string_constrained::MapOfSetOfLengthStringConstrained>>,
|
3562 - | }
|
3563 - | impl Builder {
|
3564 - | #[allow(missing_docs)] // documentation missing in model
|
3565 - | pub(crate) fn set_map_of_set_of_length_string(
|
3566 - | mut self,
|
3567 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_set_of_length_string_constrained::MapOfSetOfLengthStringConstrained>>>,
|
3568 - | ) -> Self {
|
3569 - | self.map_of_set_of_length_string = input.map(|v| v.into());
|
3570 - | self
|
3571 - | }
|
3572 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
3573 - | ///
|
3574 - | /// The builder fails to construct a [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput) if a [`ConstraintViolation`] occurs.
|
3575 - | ///
|
3576 - | pub fn build(
|
3577 - | self,
|
3578 - | ) -> Result<
|
3579 - | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput,
|
3580 - | ConstraintViolation,
|
3581 - | > {
|
3582 - | self.build_enforcing_all_constraints()
|
3583 - | }
|
3584 - | fn build_enforcing_all_constraints(
|
3585 - | self,
|
3586 - | ) -> Result<
|
3587 - | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput,
|
3588 - | ConstraintViolation,
|
3589 - | > {
|
3590 - | Ok(
|
3591 - | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
3592 - | map_of_set_of_length_string: self
|
3593 - | .map_of_set_of_length_string
|
2936 + | .map(|res| res.map_err(ConstraintViolation::LengthStringHeader))
|
2937 + | .transpose()?
|
2938 + | .map(|v: crate::model::LengthString| v.into()),
|
2939 + | range_integer_header: self
|
2940 + | .range_integer_header
|
2941 + | .map(|v| match v {
|
2942 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2943 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2944 + | })
|
2945 + | .map(|res| res.map_err(ConstraintViolation::RangeIntegerHeader))
|
2946 + | .transpose()?
|
2947 + | .map(|v: crate::model::RangeInteger| v.into())
|
2948 + | .unwrap_or(0i32),
|
2949 + | range_short_header: self
|
2950 + | .range_short_header
|
2951 + | .map(|v| match v {
|
2952 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2953 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2954 + | })
|
2955 + | .map(|res| res.map_err(ConstraintViolation::RangeShortHeader))
|
2956 + | .transpose()?
|
2957 + | .map(|v: crate::model::RangeShort| v.into())
|
2958 + | .unwrap_or(0i16),
|
2959 + | range_long_header: self
|
2960 + | .range_long_header
|
2961 + | .map(|v| match v {
|
2962 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2963 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2964 + | })
|
2965 + | .map(|res| res.map_err(ConstraintViolation::RangeLongHeader))
|
2966 + | .transpose()?
|
2967 + | .map(|v: crate::model::RangeLong| v.into())
|
2968 + | .unwrap_or(0i64),
|
2969 + | range_byte_header: self
|
2970 + | .range_byte_header
|
2971 + | .map(|v| match v {
|
2972 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2973 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2974 + | })
|
2975 + | .map(|res| res.map_err(ConstraintViolation::RangeByteHeader))
|
2976 + | .transpose()?
|
2977 + | .map(|v: crate::model::RangeByte| v.into())
|
2978 + | .unwrap_or(0i8),
|
2979 + | length_string_set_header: self
|
2980 + | .length_string_set_header
|
2981 + | .map(|v| match v {
|
2982 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2983 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2984 + | })
|
2985 + | .map(|res| res.map_err(ConstraintViolation::LengthStringSetHeader))
|
2986 + | .transpose()?
|
2987 + | .map(|v: crate::model::SetOfLengthString| v.into()),
|
2988 + | list_length_string_header: self
|
2989 + | .list_length_string_header
|
3594 2990 | .map(|v| match v {
|
3595 2991 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3596 2992 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3597 2993 | })
|
3598 2994 | .map(|res| {
|
3599 2995 | res.map(|v| v.into())
|
3600 - | .map_err(ConstraintViolation::MapOfSetOfLengthString)
|
2996 + | .map_err(ConstraintViolation::ListLengthStringHeader)
|
3601 2997 | })
|
3602 2998 | .transpose()?,
|
3603 - | },
|
3604 - | )
|
3605 - | }
|
3606 - | }
|
3607 - | }
|
3608 - | /// See [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
3609 - | pub mod query_params_targeting_map_of_set_of_length_string_operation_input {
|
3610 - |
|
3611 - | impl ::std::convert::From<Builder>
|
3612 - | for crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput
|
3613 - | {
|
3614 - | fn from(builder: Builder) -> Self {
|
3615 - | builder.build()
|
3616 - | }
|
3617 - | }
|
3618 - | /// A builder for [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
3619 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3620 - | pub struct Builder {
|
3621 - | pub(crate) map_of_set_of_length_string: ::std::option::Option<
|
3622 - | ::std::collections::HashMap<
|
3623 - | ::std::string::String,
|
3624 - | ::std::vec::Vec<::std::string::String>,
|
3625 - | >,
|
3626 - | >,
|
3627 - | }
|
3628 - | impl Builder {
|
3629 - | #[allow(missing_docs)] // documentation missing in model
|
3630 - | pub fn map_of_set_of_length_string(
|
3631 - | mut self,
|
3632 - | input: ::std::option::Option<
|
3633 - | ::std::collections::HashMap<
|
3634 - | ::std::string::String,
|
3635 - | ::std::vec::Vec<::std::string::String>,
|
3636 - | >,
|
3637 - | >,
|
3638 - | ) -> Self {
|
3639 - | self.map_of_set_of_length_string = input;
|
3640 - | self
|
3641 - | }
|
3642 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
3643 - | pub fn build(
|
3644 - | self,
|
3645 - | ) -> crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
3646 - | self.build_enforcing_required_and_enum_traits()
|
3647 - | }
|
3648 - | fn build_enforcing_required_and_enum_traits(
|
3649 - | self,
|
3650 - | ) -> crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
3651 - | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
3652 - | map_of_set_of_length_string: self.map_of_set_of_length_string,
|
3653 - | }
|
3654 - | }
|
3655 - | }
|
3656 - | }
|
3657 - | /// See [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
3658 - | pub(crate) mod query_params_targeting_map_of_list_of_length_string_operation_input_internal {
|
3659 - |
|
3660 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3661 - | /// Holds one variant for each of the ways the builder can fail.
|
3662 - | #[non_exhaustive]
|
3663 - | #[allow(clippy::enum_variant_names)]
|
3664 - | pub(crate) enum ConstraintViolation {
|
3665 - | /// Constraint violation occurred building member `map_of_list_of_length_string` when building `QueryParamsTargetingMapOfListOfLengthStringOperationInput`.
|
3666 - | #[doc(hidden)]
|
3667 - | MapOfListOfLengthString(
|
3668 - | crate::model::map_of_list_of_length_string_internal::ConstraintViolation,
|
3669 - | ),
|
3670 - | }
|
3671 - | impl ::std::fmt::Display for ConstraintViolation {
|
3672 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3673 - | match self {
|
3674 - | ConstraintViolation::MapOfListOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_length_string` when building `QueryParamsTargetingMapOfListOfLengthStringOperationInput`"),
|
3675 - | }
|
3676 - | }
|
3677 - | }
|
3678 - | impl ::std::error::Error for ConstraintViolation {}
|
3679 - | impl ConstraintViolation {
|
3680 - | pub(crate) fn as_validation_exception_field(
|
3681 - | self,
|
3682 - | path: ::std::string::String,
|
3683 - | ) -> crate::model::ValidationExceptionField {
|
3684 - | match self {
|
3685 - | ConstraintViolation::MapOfListOfLengthString(inner) => {
|
3686 - | inner.as_validation_exception_field(path + "/mapOfListOfLengthString")
|
3687 - | }
|
3688 - | }
|
3689 - | }
|
3690 - | }
|
3691 - | impl ::std::convert::From<ConstraintViolation>
|
3692 - | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3693 - | {
|
3694 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3695 - | let first_validation_exception_field =
|
3696 - | constraint_violation.as_validation_exception_field("".to_owned());
|
3697 - | let validation_exception = crate::error::ValidationException {
|
3698 - | message: format!(
|
3699 - | "1 validation error detected. {}",
|
3700 - | &first_validation_exception_field.message
|
3701 - | ),
|
3702 - | field_list: Some(vec![first_validation_exception_field]),
|
3703 - | };
|
3704 - | Self::ConstraintViolation(
|
3705 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
3706 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
3707 - | )
|
3708 - | }
|
3709 - | }
|
3710 - | impl ::std::convert::From<Builder>
|
3711 - | for crate::constrained::MaybeConstrained<
|
3712 - | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput,
|
3713 - | >
|
3714 - | {
|
3715 - | fn from(builder: Builder) -> Self {
|
3716 - | Self::Unconstrained(builder)
|
3717 - | }
|
3718 - | }
|
3719 - | impl ::std::convert::TryFrom<Builder>
|
3720 - | for crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput
|
3721 - | {
|
3722 - | type Error = ConstraintViolation;
|
3723 - |
|
3724 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3725 - | builder.build()
|
3726 - | }
|
3727 - | }
|
3728 - | /// A builder for [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
3729 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3730 - | pub(crate) struct Builder {
|
3731 - | pub(crate) map_of_list_of_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_string_constrained::MapOfListOfLengthStringConstrained>>,
|
3732 - | }
|
3733 - | impl Builder {
|
3734 - | #[allow(missing_docs)] // documentation missing in model
|
3735 - | pub(crate) fn set_map_of_list_of_length_string(
|
3736 - | mut self,
|
3737 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_string_constrained::MapOfListOfLengthStringConstrained>>>,
|
3738 - | ) -> Self {
|
3739 - | self.map_of_list_of_length_string = input.map(|v| v.into());
|
3740 - | self
|
3741 - | }
|
3742 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
3743 - | ///
|
3744 - | /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput) if a [`ConstraintViolation`] occurs.
|
3745 - | ///
|
3746 - | pub fn build(
|
3747 - | self,
|
3748 - | ) -> Result<
|
3749 - | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput,
|
3750 - | ConstraintViolation,
|
3751 - | > {
|
3752 - | self.build_enforcing_all_constraints()
|
3753 - | }
|
3754 - | fn build_enforcing_all_constraints(
|
3755 - | self,
|
3756 - | ) -> Result<
|
3757 - | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput,
|
3758 - | ConstraintViolation,
|
3759 - | > {
|
3760 - | Ok(
|
3761 - | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
3762 - | map_of_list_of_length_string: self
|
3763 - | .map_of_list_of_length_string
|
2999 + | length_list_pattern_string_header: self
|
3000 + | .length_list_pattern_string_header
|
3001 + | .map(|v| match v {
|
3002 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3003 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3004 + | })
|
3005 + | .map(|res| res.map_err(ConstraintViolation::LengthListPatternStringHeader))
|
3006 + | .transpose()?
|
3007 + | .map(|v: crate::model::LengthListOfPatternString| v.into()),
|
3008 + | length_set_pattern_string_header: self
|
3009 + | .length_set_pattern_string_header
|
3010 + | .map(|v| match v {
|
3011 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3012 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3013 + | })
|
3014 + | .map(|res| res.map_err(ConstraintViolation::LengthSetPatternStringHeader))
|
3015 + | .transpose()?
|
3016 + | .map(|v: crate::model::LengthSetOfPatternString| v.into()),
|
3017 + | range_byte_set_header: self
|
3018 + | .range_byte_set_header
|
3019 + | .map(|v| match v {
|
3020 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3021 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3022 + | })
|
3023 + | .map(|res| res.map_err(ConstraintViolation::RangeByteSetHeader))
|
3024 + | .transpose()?
|
3025 + | .map(|v: crate::model::SetOfRangeByte| v.into()),
|
3026 + | range_short_set_header: self
|
3027 + | .range_short_set_header
|
3028 + | .map(|v| match v {
|
3029 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3030 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3031 + | })
|
3032 + | .map(|res| res.map_err(ConstraintViolation::RangeShortSetHeader))
|
3033 + | .transpose()?
|
3034 + | .map(|v: crate::model::SetOfRangeShort| v.into()),
|
3035 + | range_integer_set_header: self
|
3036 + | .range_integer_set_header
|
3037 + | .map(|v| match v {
|
3038 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3039 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3040 + | })
|
3041 + | .map(|res| res.map_err(ConstraintViolation::RangeIntegerSetHeader))
|
3042 + | .transpose()?
|
3043 + | .map(|v: crate::model::SetOfRangeInteger| v.into()),
|
3044 + | range_long_set_header: self
|
3045 + | .range_long_set_header
|
3046 + | .map(|v| match v {
|
3047 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3048 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3049 + | })
|
3050 + | .map(|res| res.map_err(ConstraintViolation::RangeLongSetHeader))
|
3051 + | .transpose()?
|
3052 + | .map(|v: crate::model::SetOfRangeLong| v.into()),
|
3053 + | range_byte_list_header: self
|
3054 + | .range_byte_list_header
|
3764 3055 | .map(|v| match v {
|
3765 3056 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3766 3057 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3767 3058 | })
|
3768 3059 | .map(|res| {
|
3769 3060 | res.map(|v| v.into())
|
3770 - | .map_err(ConstraintViolation::MapOfListOfLengthString)
|
3061 + | .map_err(ConstraintViolation::RangeByteListHeader)
|
3771 3062 | })
|
3772 3063 | .transpose()?,
|
3773 - | },
|
3774 - | )
|
3775 - | }
|
3776 - | }
|
3777 - | }
|
3778 - | /// See [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
3779 - | pub mod query_params_targeting_map_of_list_of_length_string_operation_input {
|
3780 - |
|
3781 - | impl ::std::convert::From<Builder>
|
3782 - | for crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput
|
3783 - | {
|
3784 - | fn from(builder: Builder) -> Self {
|
3785 - | builder.build()
|
3786 - | }
|
3787 - | }
|
3788 - | /// A builder for [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
3789 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3790 - | pub struct Builder {
|
3791 - | pub(crate) map_of_list_of_length_string: ::std::option::Option<
|
3792 - | ::std::collections::HashMap<
|
3793 - | ::std::string::String,
|
3794 - | ::std::vec::Vec<::std::string::String>,
|
3795 - | >,
|
3796 - | >,
|
3797 - | }
|
3798 - | impl Builder {
|
3799 - | #[allow(missing_docs)] // documentation missing in model
|
3800 - | pub fn map_of_list_of_length_string(
|
3801 - | mut self,
|
3802 - | input: ::std::option::Option<
|
3803 - | ::std::collections::HashMap<
|
3804 - | ::std::string::String,
|
3805 - | ::std::vec::Vec<::std::string::String>,
|
3806 - | >,
|
3807 - | >,
|
3808 - | ) -> Self {
|
3809 - | self.map_of_list_of_length_string = input;
|
3810 - | self
|
3811 - | }
|
3812 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
3813 - | pub fn build(
|
3814 - | self,
|
3815 - | ) -> crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
3816 - | self.build_enforcing_required_and_enum_traits()
|
3817 - | }
|
3818 - | fn build_enforcing_required_and_enum_traits(
|
3819 - | self,
|
3820 - | ) -> crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
3821 - | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
3822 - | map_of_list_of_length_string: self.map_of_list_of_length_string,
|
3823 - | }
|
3824 - | }
|
3825 - | }
|
3826 - | }
|
3827 - | /// See [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
3828 - | pub(crate) mod query_params_targeting_map_of_length_string_operation_input_internal {
|
3829 - |
|
3830 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3831 - | /// Holds one variant for each of the ways the builder can fail.
|
3832 - | #[non_exhaustive]
|
3833 - | #[allow(clippy::enum_variant_names)]
|
3834 - | pub(crate) enum ConstraintViolation {
|
3835 - | /// Constraint violation occurred building member `map_of_length_string` when building `QueryParamsTargetingMapOfLengthStringOperationInput`.
|
3836 - | #[doc(hidden)]
|
3837 - | MapOfLengthString(crate::model::map_of_length_string_internal::ConstraintViolation),
|
3838 - | }
|
3839 - | impl ::std::fmt::Display for ConstraintViolation {
|
3840 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3841 - | match self {
|
3842 - | ConstraintViolation::MapOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_length_string` when building `QueryParamsTargetingMapOfLengthStringOperationInput`"),
|
3843 - | }
|
3844 - | }
|
3845 - | }
|
3846 - | impl ::std::error::Error for ConstraintViolation {}
|
3847 - | impl ConstraintViolation {
|
3848 - | pub(crate) fn as_validation_exception_field(
|
3849 - | self,
|
3850 - | path: ::std::string::String,
|
3851 - | ) -> crate::model::ValidationExceptionField {
|
3852 - | match self {
|
3853 - | ConstraintViolation::MapOfLengthString(inner) => {
|
3854 - | inner.as_validation_exception_field(path + "/mapOfLengthString")
|
3855 - | }
|
3856 - | }
|
3857 - | }
|
3858 - | }
|
3859 - | impl ::std::convert::From<ConstraintViolation>
|
3860 - | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3861 - | {
|
3862 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3863 - | let first_validation_exception_field =
|
3864 - | constraint_violation.as_validation_exception_field("".to_owned());
|
3865 - | let validation_exception = crate::error::ValidationException {
|
3866 - | message: format!(
|
3867 - | "1 validation error detected. {}",
|
3868 - | &first_validation_exception_field.message
|
3869 - | ),
|
3870 - | field_list: Some(vec![first_validation_exception_field]),
|
3871 - | };
|
3872 - | Self::ConstraintViolation(
|
3873 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
3874 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
3875 - | )
|
3876 - | }
|
3877 - | }
|
3878 - | impl ::std::convert::From<Builder>
|
3879 - | for crate::constrained::MaybeConstrained<
|
3880 - | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput,
|
3881 - | >
|
3882 - | {
|
3883 - | fn from(builder: Builder) -> Self {
|
3884 - | Self::Unconstrained(builder)
|
3885 - | }
|
3886 - | }
|
3887 - | impl ::std::convert::TryFrom<Builder>
|
3888 - | for crate::input::QueryParamsTargetingMapOfLengthStringOperationInput
|
3889 - | {
|
3890 - | type Error = ConstraintViolation;
|
3891 - |
|
3892 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3893 - | builder.build()
|
3894 - | }
|
3895 - | }
|
3896 - | /// A builder for [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
3897 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3898 - | pub(crate) struct Builder {
|
3899 - | pub(crate) map_of_length_string: ::std::option::Option<
|
3900 - | crate::constrained::MaybeConstrained<
|
3901 - | crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained,
|
3902 - | >,
|
3903 - | >,
|
3904 - | }
|
3905 - | impl Builder {
|
3906 - | #[allow(missing_docs)] // documentation missing in model
|
3907 - | pub(crate) fn set_map_of_length_string(
|
3908 - | mut self,
|
3909 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>>,
|
3910 - | ) -> Self {
|
3911 - | self.map_of_length_string = input.map(|v| v.into());
|
3912 - | self
|
3913 - | }
|
3914 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
3915 - | ///
|
3916 - | /// The builder fails to construct a [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput) if a [`ConstraintViolation`] occurs.
|
3917 - | ///
|
3918 - | pub fn build(
|
3919 - | self,
|
3920 - | ) -> Result<
|
3921 - | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput,
|
3922 - | ConstraintViolation,
|
3923 - | > {
|
3924 - | self.build_enforcing_all_constraints()
|
3925 - | }
|
3926 - | fn build_enforcing_all_constraints(
|
3927 - | self,
|
3928 - | ) -> Result<
|
3929 - | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput,
|
3930 - | ConstraintViolation,
|
3931 - | > {
|
3932 - | Ok(
|
3933 - | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput {
|
3934 - | map_of_length_string: self
|
3935 - | .map_of_length_string
|
3064 + | range_short_list_header: self
|
3065 + | .range_short_list_header
|
3066 + | .map(|v| match v {
|
3067 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3068 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3069 + | })
|
3070 + | .map(|res| {
|
3071 + | res.map(|v| v.into())
|
3072 + | .map_err(ConstraintViolation::RangeShortListHeader)
|
3073 + | })
|
3074 + | .transpose()?,
|
3075 + | range_integer_list_header: self
|
3076 + | .range_integer_list_header
|
3077 + | .map(|v| match v {
|
3078 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3079 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3080 + | })
|
3081 + | .map(|res| {
|
3082 + | res.map(|v| v.into())
|
3083 + | .map_err(ConstraintViolation::RangeIntegerListHeader)
|
3084 + | })
|
3085 + | .transpose()?,
|
3086 + | range_long_list_header: self
|
3087 + | .range_long_list_header
|
3088 + | .map(|v| match v {
|
3089 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3090 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3091 + | })
|
3092 + | .map(|res| {
|
3093 + | res.map(|v| v.into())
|
3094 + | .map_err(ConstraintViolation::RangeLongListHeader)
|
3095 + | })
|
3096 + | .transpose()?,
|
3097 + | length_string_query: self
|
3098 + | .length_string_query
|
3099 + | .map(|v| match v {
|
3100 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3101 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3102 + | })
|
3103 + | .map(|res| res.map_err(ConstraintViolation::LengthStringQuery))
|
3104 + | .transpose()?
|
3105 + | .map(|v: crate::model::LengthString| v.into()),
|
3106 + | range_byte_query: self
|
3107 + | .range_byte_query
|
3108 + | .map(|v| match v {
|
3109 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3110 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3111 + | })
|
3112 + | .map(|res| res.map_err(ConstraintViolation::RangeByteQuery))
|
3113 + | .transpose()?
|
3114 + | .map(|v: crate::model::RangeByte| v.into())
|
3115 + | .unwrap_or(0i8),
|
3116 + | range_short_query: self
|
3117 + | .range_short_query
|
3118 + | .map(|v| match v {
|
3119 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3120 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3121 + | })
|
3122 + | .map(|res| res.map_err(ConstraintViolation::RangeShortQuery))
|
3123 + | .transpose()?
|
3124 + | .map(|v: crate::model::RangeShort| v.into())
|
3125 + | .unwrap_or(0i16),
|
3126 + | range_integer_query: self
|
3127 + | .range_integer_query
|
3128 + | .map(|v| match v {
|
3129 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3130 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3131 + | })
|
3132 + | .map(|res| res.map_err(ConstraintViolation::RangeIntegerQuery))
|
3133 + | .transpose()?
|
3134 + | .map(|v: crate::model::RangeInteger| v.into())
|
3135 + | .unwrap_or(0i32),
|
3136 + | range_long_query: self
|
3137 + | .range_long_query
|
3138 + | .map(|v| match v {
|
3139 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3140 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3141 + | })
|
3142 + | .map(|res| res.map_err(ConstraintViolation::RangeLongQuery))
|
3143 + | .transpose()?
|
3144 + | .map(|v: crate::model::RangeLong| v.into())
|
3145 + | .unwrap_or(0i64),
|
3146 + | enum_string_query: self
|
3147 + | .enum_string_query
|
3148 + | .map(|v| match v {
|
3149 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3150 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3151 + | })
|
3152 + | .map(|res| res.map_err(ConstraintViolation::EnumStringQuery))
|
3153 + | .transpose()?,
|
3154 + | length_string_list_query: self
|
3155 + | .length_string_list_query
|
3936 3156 | .map(|v| match v {
|
3937 3157 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3938 3158 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3939 3159 | })
|
3940 3160 | .map(|res| {
|
3941 3161 | res.map(|v| v.into())
|
3942 - | .map_err(ConstraintViolation::MapOfLengthString)
|
3162 + | .map_err(ConstraintViolation::LengthStringListQuery)
|
3943 3163 | })
|
3944 3164 | .transpose()?,
|
3945 - | },
|
3946 - | )
|
3947 - | }
|
3948 - | }
|
3949 - | }
|
3950 - | /// See [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
3951 - | pub mod query_params_targeting_map_of_length_string_operation_input {
|
3952 - |
|
3953 - | impl ::std::convert::From<Builder>
|
3954 - | for crate::input::QueryParamsTargetingMapOfLengthStringOperationInput
|
3955 - | {
|
3956 - | fn from(builder: Builder) -> Self {
|
3957 - | builder.build()
|
3958 - | }
|
3959 - | }
|
3960 - | /// A builder for [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
3961 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3962 - | pub struct Builder {
|
3963 - | pub(crate) map_of_length_string: ::std::option::Option<
|
3964 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
3965 - | >,
|
3966 - | }
|
3967 - | impl Builder {
|
3968 - | #[allow(missing_docs)] // documentation missing in model
|
3969 - | pub fn map_of_length_string(
|
3970 - | mut self,
|
3971 - | input: ::std::option::Option<
|
3972 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
3973 - | >,
|
3974 - | ) -> Self {
|
3975 - | self.map_of_length_string = input;
|
3976 - | self
|
3977 - | }
|
3978 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
3979 - | pub fn build(self) -> crate::input::QueryParamsTargetingMapOfLengthStringOperationInput {
|
3980 - | self.build_enforcing_required_and_enum_traits()
|
3981 - | }
|
3982 - | fn build_enforcing_required_and_enum_traits(
|
3983 - | self,
|
3984 - | ) -> crate::input::QueryParamsTargetingMapOfLengthStringOperationInput {
|
3985 - | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput {
|
3986 - | map_of_length_string: self.map_of_length_string,
|
3987 - | }
|
3988 - | }
|
3989 - | }
|
3990 - | }
|
3991 - | /// See [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
3992 - | pub(crate) mod query_params_targeting_length_map_operation_input_internal {
|
3993 - |
|
3994 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3995 - | /// Holds one variant for each of the ways the builder can fail.
|
3996 - | #[non_exhaustive]
|
3997 - | #[allow(clippy::enum_variant_names)]
|
3998 - | pub(crate) enum ConstraintViolation {
|
3999 - | /// Constraint violation occurred building member `length_map` when building `QueryParamsTargetingLengthMapOperationInput`.
|
4000 - | #[doc(hidden)]
|
4001 - | LengthMap(crate::model::con_b_map_internal::ConstraintViolation),
|
4002 - | }
|
4003 - | impl ::std::fmt::Display for ConstraintViolation {
|
4004 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4005 - | match self {
|
4006 - | ConstraintViolation::LengthMap(_) => write!(f, "constraint violation occurred building member `length_map` when building `QueryParamsTargetingLengthMapOperationInput`"),
|
4007 - | }
|
4008 - | }
|
4009 - | }
|
4010 - | impl ::std::error::Error for ConstraintViolation {}
|
4011 - | impl ConstraintViolation {
|
4012 - | pub(crate) fn as_validation_exception_field(
|
4013 - | self,
|
4014 - | path: ::std::string::String,
|
4015 - | ) -> crate::model::ValidationExceptionField {
|
4016 - | match self {
|
4017 - | ConstraintViolation::LengthMap(inner) => {
|
4018 - | inner.as_validation_exception_field(path + "/lengthMap")
|
4019 - | }
|
4020 - | }
|
4021 - | }
|
4022 - | }
|
4023 - | impl ::std::convert::From<ConstraintViolation>
|
4024 - | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4025 - | {
|
4026 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4027 - | let first_validation_exception_field =
|
4028 - | constraint_violation.as_validation_exception_field("".to_owned());
|
4029 - | let validation_exception = crate::error::ValidationException {
|
4030 - | message: format!(
|
4031 - | "1 validation error detected. {}",
|
4032 - | &first_validation_exception_field.message
|
4033 - | ),
|
4034 - | field_list: Some(vec![first_validation_exception_field]),
|
4035 - | };
|
4036 - | Self::ConstraintViolation(
|
4037 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4038 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4039 - | )
|
4040 - | }
|
4041 - | }
|
4042 - | impl ::std::convert::From<Builder>
|
4043 - | for crate::constrained::MaybeConstrained<
|
4044 - | crate::input::QueryParamsTargetingLengthMapOperationInput,
|
4045 - | >
|
4046 - | {
|
4047 - | fn from(builder: Builder) -> Self {
|
4048 - | Self::Unconstrained(builder)
|
4049 - | }
|
4050 - | }
|
4051 - | impl ::std::convert::TryFrom<Builder>
|
4052 - | for crate::input::QueryParamsTargetingLengthMapOperationInput
|
4053 - | {
|
4054 - | type Error = ConstraintViolation;
|
4055 - |
|
4056 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4057 - | builder.build()
|
4058 - | }
|
4059 - | }
|
4060 - | /// A builder for [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
4061 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4062 - | pub(crate) struct Builder {
|
4063 - | pub(crate) length_map:
|
4064 - | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
4065 - | }
|
4066 - | impl Builder {
|
4067 - | #[allow(missing_docs)] // documentation missing in model
|
4068 - | pub(crate) fn set_length_map(
|
4069 - | mut self,
|
4070 - | input: Option<
|
4071 - | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
4072 - | >,
|
4073 - | ) -> Self {
|
4074 - | self.length_map = input.map(|v| v.into());
|
4075 - | self
|
4076 - | }
|
4077 - | /// Consumes the builder and constructs a [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
4078 - | ///
|
4079 - | /// The builder fails to construct a [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput) if a [`ConstraintViolation`] occurs.
|
4080 - | ///
|
4081 - | pub fn build(
|
4082 - | self,
|
4083 - | ) -> Result<crate::input::QueryParamsTargetingLengthMapOperationInput, ConstraintViolation>
|
4084 - | {
|
4085 - | self.build_enforcing_all_constraints()
|
4086 - | }
|
4087 - | fn build_enforcing_all_constraints(
|
4088 - | self,
|
4089 - | ) -> Result<crate::input::QueryParamsTargetingLengthMapOperationInput, ConstraintViolation>
|
4090 - | {
|
4091 - | Ok(crate::input::QueryParamsTargetingLengthMapOperationInput {
|
4092 - | length_map: self
|
4093 - | .length_map
|
3165 + | length_list_pattern_string_query: self
|
3166 + | .length_list_pattern_string_query
|
3167 + | .map(|v| match v {
|
3168 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3169 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3170 + | })
|
3171 + | .map(|res| res.map_err(ConstraintViolation::LengthListPatternStringQuery))
|
3172 + | .transpose()?
|
3173 + | .map(|v: crate::model::LengthListOfPatternString| v.into()),
|
3174 + | length_string_set_query: self
|
3175 + | .length_string_set_query
|
3176 + | .map(|v| match v {
|
3177 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3178 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3179 + | })
|
3180 + | .map(|res| res.map_err(ConstraintViolation::LengthStringSetQuery))
|
3181 + | .transpose()?
|
3182 + | .map(|v: crate::model::SetOfLengthString| v.into()),
|
3183 + | range_byte_list_query: self
|
3184 + | .range_byte_list_query
|
3185 + | .map(|v| match v {
|
3186 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3187 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3188 + | })
|
3189 + | .map(|res| {
|
3190 + | res.map(|v| v.into())
|
3191 + | .map_err(ConstraintViolation::RangeByteListQuery)
|
3192 + | })
|
3193 + | .transpose()?,
|
3194 + | range_short_list_query: self
|
3195 + | .range_short_list_query
|
3196 + | .map(|v| match v {
|
3197 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3198 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3199 + | })
|
3200 + | .map(|res| {
|
3201 + | res.map(|v| v.into())
|
3202 + | .map_err(ConstraintViolation::RangeShortListQuery)
|
3203 + | })
|
3204 + | .transpose()?,
|
3205 + | range_integer_list_query: self
|
3206 + | .range_integer_list_query
|
3207 + | .map(|v| match v {
|
3208 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3209 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3210 + | })
|
3211 + | .map(|res| {
|
3212 + | res.map(|v| v.into())
|
3213 + | .map_err(ConstraintViolation::RangeIntegerListQuery)
|
3214 + | })
|
3215 + | .transpose()?,
|
3216 + | range_long_list_query: self
|
3217 + | .range_long_list_query
|
3218 + | .map(|v| match v {
|
3219 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3220 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3221 + | })
|
3222 + | .map(|res| {
|
3223 + | res.map(|v| v.into())
|
3224 + | .map_err(ConstraintViolation::RangeLongListQuery)
|
3225 + | })
|
3226 + | .transpose()?,
|
3227 + | range_byte_set_query: self
|
3228 + | .range_byte_set_query
|
3229 + | .map(|v| match v {
|
3230 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3231 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3232 + | })
|
3233 + | .map(|res| res.map_err(ConstraintViolation::RangeByteSetQuery))
|
3234 + | .transpose()?
|
3235 + | .map(|v: crate::model::SetOfRangeByte| v.into()),
|
3236 + | range_short_set_query: self
|
3237 + | .range_short_set_query
|
3238 + | .map(|v| match v {
|
3239 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3240 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3241 + | })
|
3242 + | .map(|res| res.map_err(ConstraintViolation::RangeShortSetQuery))
|
3243 + | .transpose()?
|
3244 + | .map(|v: crate::model::SetOfRangeShort| v.into()),
|
3245 + | range_integer_set_query: self
|
3246 + | .range_integer_set_query
|
3247 + | .map(|v| match v {
|
3248 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3249 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3250 + | })
|
3251 + | .map(|res| res.map_err(ConstraintViolation::RangeIntegerSetQuery))
|
3252 + | .transpose()?
|
3253 + | .map(|v: crate::model::SetOfRangeInteger| v.into()),
|
3254 + | range_long_set_query: self
|
3255 + | .range_long_set_query
|
3256 + | .map(|v| match v {
|
3257 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3258 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3259 + | })
|
3260 + | .map(|res| res.map_err(ConstraintViolation::RangeLongSetQuery))
|
3261 + | .transpose()?
|
3262 + | .map(|v: crate::model::SetOfRangeLong| v.into()),
|
3263 + | enum_string_list_query: self
|
3264 + | .enum_string_list_query
|
4094 3265 | .map(|v| match v {
|
4095 3266 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4096 3267 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4097 3268 | })
|
4098 - | .map(|res| res.map_err(ConstraintViolation::LengthMap))
|
4099 - | .transpose()?
|
4100 - | .map(|v: crate::model::ConBMap| v.into()),
|
3269 + | .map(|res| {
|
3270 + | res.map(|v| v.into())
|
3271 + | .map_err(ConstraintViolation::EnumStringListQuery)
|
3272 + | })
|
3273 + | .transpose()?,
|
4101 3274 | })
|
4102 3275 | }
|
4103 3276 | }
|
4104 3277 | }
|
4105 - | /// See [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
4106 - | pub mod query_params_targeting_length_map_operation_input {
|
3278 + | /// See [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
3279 + | pub mod constrained_http_bound_shapes_operation_input {
|
4107 3280 |
|
4108 - | impl ::std::convert::From<Builder> for crate::input::QueryParamsTargetingLengthMapOperationInput {
|
4109 - | fn from(builder: Builder) -> Self {
|
3281 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3282 + | /// Holds one variant for each of the ways the builder can fail.
|
3283 + | #[allow(clippy::enum_variant_names)]
|
3284 + | pub enum ConstraintViolation {
|
3285 + | /// `length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
3286 + | MissingLengthStringLabel,
|
3287 + | /// `enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
3288 + | MissingEnumStringLabel,
|
3289 + | /// `length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
3290 + | MissingLengthStringHeaderMap,
|
3291 + | }
|
3292 + | impl ::std::fmt::Display for ConstraintViolation {
|
3293 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3294 + | match self {
|
3295 + | ConstraintViolation::MissingLengthStringLabel => write!(f, "`length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3296 + | ConstraintViolation::MissingEnumStringLabel => write!(f, "`enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3297 + | ConstraintViolation::MissingLengthStringHeaderMap => write!(f, "`length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3298 + | }
|
3299 + | }
|
3300 + | }
|
3301 + | impl ::std::error::Error for ConstraintViolation {}
|
3302 + | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedHttpBoundShapesOperationInput {
|
3303 + | type Error = ConstraintViolation;
|
3304 + |
|
3305 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4110 3306 | builder.build()
|
4111 3307 | }
|
4112 3308 | }
|
4113 - | /// A builder for [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
3309 + | /// A builder for [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
4114 3310 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4115 3311 | pub struct Builder {
|
4116 - | pub(crate) length_map: ::std::option::Option<
|
3312 + | pub(crate) length_string_label: ::std::option::Option<::std::string::String>,
|
3313 + | pub(crate) range_integer_label: ::std::option::Option<i32>,
|
3314 + | pub(crate) range_short_label: ::std::option::Option<i16>,
|
3315 + | pub(crate) range_long_label: ::std::option::Option<i64>,
|
3316 + | pub(crate) range_byte_label: ::std::option::Option<i8>,
|
3317 + | pub(crate) enum_string_label: ::std::option::Option<crate::model::EnumString>,
|
3318 + | pub(crate) length_string_header_map: ::std::option::Option<
|
4117 3319 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
4118 3320 | >,
|
3321 + | pub(crate) length_string_header: ::std::option::Option<::std::string::String>,
|
3322 + | pub(crate) range_integer_header: ::std::option::Option<i32>,
|
3323 + | pub(crate) range_short_header: ::std::option::Option<i16>,
|
3324 + | pub(crate) range_long_header: ::std::option::Option<i64>,
|
3325 + | pub(crate) range_byte_header: ::std::option::Option<i8>,
|
3326 + | pub(crate) length_string_set_header:
|
3327 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
3328 + | pub(crate) list_length_string_header:
|
3329 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
3330 + | pub(crate) length_list_pattern_string_header:
|
3331 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
3332 + | pub(crate) length_set_pattern_string_header:
|
3333 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
3334 + | pub(crate) range_byte_set_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
3335 + | pub(crate) range_short_set_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
3336 + | pub(crate) range_integer_set_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
3337 + | pub(crate) range_long_set_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
3338 + | pub(crate) range_byte_list_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
3339 + | pub(crate) range_short_list_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
3340 + | pub(crate) range_integer_list_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
3341 + | pub(crate) range_long_list_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
3342 + | pub(crate) length_string_query: ::std::option::Option<::std::string::String>,
|
3343 + | pub(crate) range_byte_query: ::std::option::Option<i8>,
|
3344 + | pub(crate) range_short_query: ::std::option::Option<i16>,
|
3345 + | pub(crate) range_integer_query: ::std::option::Option<i32>,
|
3346 + | pub(crate) range_long_query: ::std::option::Option<i64>,
|
3347 + | pub(crate) enum_string_query: ::std::option::Option<crate::model::EnumString>,
|
3348 + | pub(crate) length_string_list_query:
|
3349 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
3350 + | pub(crate) length_list_pattern_string_query:
|
3351 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
3352 + | pub(crate) length_string_set_query:
|
3353 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
3354 + | pub(crate) range_byte_list_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
3355 + | pub(crate) range_short_list_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
3356 + | pub(crate) range_integer_list_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
3357 + | pub(crate) range_long_list_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
3358 + | pub(crate) range_byte_set_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
3359 + | pub(crate) range_short_set_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
3360 + | pub(crate) range_integer_set_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
3361 + | pub(crate) range_long_set_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
3362 + | pub(crate) enum_string_list_query:
|
3363 + | ::std::option::Option<::std::vec::Vec<crate::model::EnumString>>,
|
4119 3364 | }
|
4120 3365 | impl Builder {
|
4121 3366 | #[allow(missing_docs)] // documentation missing in model
|
4122 - | pub fn length_map(
|
3367 + | pub fn length_string_label(mut self, input: ::std::string::String) -> Self {
|
3368 + | self.length_string_label = Some(input);
|
3369 + | self
|
3370 + | }
|
3371 + | #[allow(missing_docs)] // documentation missing in model
|
3372 + | pub fn range_integer_label(mut self, input: i32) -> Self {
|
3373 + | self.range_integer_label = Some(input);
|
3374 + | self
|
3375 + | }
|
3376 + | #[allow(missing_docs)] // documentation missing in model
|
3377 + | pub fn range_short_label(mut self, input: i16) -> Self {
|
3378 + | self.range_short_label = Some(input);
|
3379 + | self
|
3380 + | }
|
3381 + | #[allow(missing_docs)] // documentation missing in model
|
3382 + | pub fn range_long_label(mut self, input: i64) -> Self {
|
3383 + | self.range_long_label = Some(input);
|
3384 + | self
|
3385 + | }
|
3386 + | #[allow(missing_docs)] // documentation missing in model
|
3387 + | pub fn range_byte_label(mut self, input: i8) -> Self {
|
3388 + | self.range_byte_label = Some(input);
|
3389 + | self
|
3390 + | }
|
3391 + | #[allow(missing_docs)] // documentation missing in model
|
3392 + | pub fn enum_string_label(mut self, input: crate::model::EnumString) -> Self {
|
3393 + | self.enum_string_label = Some(input);
|
3394 + | self
|
3395 + | }
|
3396 + | #[allow(missing_docs)] // documentation missing in model
|
3397 + | pub fn length_string_header_map(
|
4123 3398 | mut self,
|
4124 - | input: ::std::option::Option<
|
4125 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
4126 - | >,
|
3399 + | input: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
4127 3400 | ) -> Self {
|
4128 - | self.length_map = input;
|
3401 + | self.length_string_header_map = Some(input);
|
4129 3402 | self
|
4130 3403 | }
|
4131 - | /// Consumes the builder and constructs a [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
4132 - | pub fn build(self) -> crate::input::QueryParamsTargetingLengthMapOperationInput {
|
4133 - | self.build_enforcing_required_and_enum_traits()
|
3404 + | #[allow(missing_docs)] // documentation missing in model
|
3405 + | pub fn length_string_header(
|
3406 + | mut self,
|
3407 + | input: ::std::option::Option<::std::string::String>,
|
3408 + | ) -> Self {
|
3409 + | self.length_string_header = input;
|
3410 + | self
|
4134 3411 | }
|
4135 - | fn build_enforcing_required_and_enum_traits(
|
4136 - | self,
|
4137 - | ) -> crate::input::QueryParamsTargetingLengthMapOperationInput {
|
4138 - | crate::input::QueryParamsTargetingLengthMapOperationInput {
|
4139 - | length_map: self.length_map,
|
3412 + | #[allow(missing_docs)] // documentation missing in model
|
3413 + | pub fn range_integer_header(mut self, input: i32) -> Self {
|
3414 + | self.range_integer_header = Some(input);
|
3415 + | self
|
4140 3416 | }
|
3417 + | #[allow(missing_docs)] // documentation missing in model
|
3418 + | pub fn range_short_header(mut self, input: i16) -> Self {
|
3419 + | self.range_short_header = Some(input);
|
3420 + | self
|
4141 3421 | }
|
3422 + | #[allow(missing_docs)] // documentation missing in model
|
3423 + | pub fn range_long_header(mut self, input: i64) -> Self {
|
3424 + | self.range_long_header = Some(input);
|
3425 + | self
|
4142 3426 | }
|
4143 - | }
|
4144 - | /// See [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
4145 - | pub(crate) mod constrained_recursive_shapes_operation_input_internal {
|
4146 - |
|
4147 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4148 - | /// Holds one variant for each of the ways the builder can fail.
|
4149 - | #[non_exhaustive]
|
4150 - | #[allow(clippy::enum_variant_names)]
|
4151 - | pub(crate) enum ConstraintViolation {
|
4152 - | /// Constraint violation occurred building member `nested` when building `ConstrainedRecursiveShapesOperationInput`.
|
4153 - | #[doc(hidden)]
|
4154 - | Nested(crate::model::recursive_shapes_input_output_nested1_internal::ConstraintViolation),
|
4155 - | /// `recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`.
|
4156 - | MissingRecursiveList,
|
4157 - | /// Constraint violation occurred building member `recursive_list` when building `ConstrainedRecursiveShapesOperationInput`.
|
4158 - | #[doc(hidden)]
|
4159 - | RecursiveList(crate::model::recursive_list_internal::ConstraintViolation),
|
3427 + | #[allow(missing_docs)] // documentation missing in model
|
3428 + | pub fn range_byte_header(mut self, input: i8) -> Self {
|
3429 + | self.range_byte_header = Some(input);
|
3430 + | self
|
4160 3431 | }
|
4161 - | impl ::std::fmt::Display for ConstraintViolation {
|
4162 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4163 - | match self {
|
4164 - | ConstraintViolation::Nested(_) => write!(f, "constraint violation occurred building member `nested` when building `ConstrainedRecursiveShapesOperationInput`"),
|
4165 - | ConstraintViolation::MissingRecursiveList => write!(f, "`recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`"),
|
4166 - | ConstraintViolation::RecursiveList(_) => write!(f, "constraint violation occurred building member `recursive_list` when building `ConstrainedRecursiveShapesOperationInput`"),
|
3432 + | #[allow(missing_docs)] // documentation missing in model
|
3433 + | pub fn length_string_set_header(
|
3434 + | mut self,
|
3435 + | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
3436 + | ) -> Self {
|
3437 + | self.length_string_set_header = input;
|
3438 + | self
|
4167 3439 | }
|
3440 + | #[allow(missing_docs)] // documentation missing in model
|
3441 + | pub fn list_length_string_header(
|
3442 + | mut self,
|
3443 + | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
3444 + | ) -> Self {
|
3445 + | self.list_length_string_header = input;
|
3446 + | self
|
4168 3447 | }
|
3448 + | #[allow(missing_docs)] // documentation missing in model
|
3449 + | pub fn length_list_pattern_string_header(
|
3450 + | mut self,
|
3451 + | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
3452 + | ) -> Self {
|
3453 + | self.length_list_pattern_string_header = input;
|
3454 + | self
|
4169 3455 | }
|
4170 - | impl ::std::error::Error for ConstraintViolation {}
|
4171 - | impl ConstraintViolation {
|
4172 - | pub(crate) fn as_validation_exception_field(
|
4173 - | self,
|
4174 - | path: ::std::string::String,
|
4175 - | ) -> crate::model::ValidationExceptionField {
|
4176 - | match self {
|
4177 - | ConstraintViolation::Nested(inner) => inner.as_validation_exception_field(path + "/nested"),
|
4178 - | ConstraintViolation::MissingRecursiveList => crate::model::ValidationExceptionField {
|
4179 - | message: format!("Value at '{}/recursiveList' failed to satisfy constraint: Member must not be null", path),
|
4180 - | path: path + "/recursiveList",
|
4181 - | },
|
4182 - | ConstraintViolation::RecursiveList(inner) => inner.as_validation_exception_field(path + "/recursiveList"),
|
3456 + | #[allow(missing_docs)] // documentation missing in model
|
3457 + | pub fn length_set_pattern_string_header(
|
3458 + | mut self,
|
3459 + | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
3460 + | ) -> Self {
|
3461 + | self.length_set_pattern_string_header = input;
|
3462 + | self
|
3463 + | }
|
3464 + | #[allow(missing_docs)] // documentation missing in model
|
3465 + | pub fn range_byte_set_header(
|
3466 + | mut self,
|
3467 + | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
3468 + | ) -> Self {
|
3469 + | self.range_byte_set_header = input;
|
3470 + | self
|
3471 + | }
|
3472 + | #[allow(missing_docs)] // documentation missing in model
|
3473 + | pub fn range_short_set_header(
|
3474 + | mut self,
|
3475 + | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
3476 + | ) -> Self {
|
3477 + | self.range_short_set_header = input;
|
3478 + | self
|
3479 + | }
|
3480 + | #[allow(missing_docs)] // documentation missing in model
|
3481 + | pub fn range_integer_set_header(
|
3482 + | mut self,
|
3483 + | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
3484 + | ) -> Self {
|
3485 + | self.range_integer_set_header = input;
|
3486 + | self
|
3487 + | }
|
3488 + | #[allow(missing_docs)] // documentation missing in model
|
3489 + | pub fn range_long_set_header(
|
3490 + | mut self,
|
3491 + | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
3492 + | ) -> Self {
|
3493 + | self.range_long_set_header = input;
|
3494 + | self
|
4183 3495 | }
|
3496 + | #[allow(missing_docs)] // documentation missing in model
|
3497 + | pub fn range_byte_list_header(
|
3498 + | mut self,
|
3499 + | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
3500 + | ) -> Self {
|
3501 + | self.range_byte_list_header = input;
|
3502 + | self
|
4184 3503 | }
|
3504 + | #[allow(missing_docs)] // documentation missing in model
|
3505 + | pub fn range_short_list_header(
|
3506 + | mut self,
|
3507 + | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
3508 + | ) -> Self {
|
3509 + | self.range_short_list_header = input;
|
3510 + | self
|
4185 3511 | }
|
4186 - | impl ::std::convert::From<ConstraintViolation>
|
4187 - | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4188 - | {
|
4189 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4190 - | let first_validation_exception_field =
|
4191 - | constraint_violation.as_validation_exception_field("".to_owned());
|
4192 - | let validation_exception = crate::error::ValidationException {
|
4193 - | message: format!(
|
4194 - | "1 validation error detected. {}",
|
4195 - | &first_validation_exception_field.message
|
4196 - | ),
|
4197 - | field_list: Some(vec![first_validation_exception_field]),
|
4198 - | };
|
4199 - | Self::ConstraintViolation(
|
4200 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4201 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4202 - | )
|
3512 + | #[allow(missing_docs)] // documentation missing in model
|
3513 + | pub fn range_integer_list_header(
|
3514 + | mut self,
|
3515 + | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
3516 + | ) -> Self {
|
3517 + | self.range_integer_list_header = input;
|
3518 + | self
|
4203 3519 | }
|
3520 + | #[allow(missing_docs)] // documentation missing in model
|
3521 + | pub fn range_long_list_header(
|
3522 + | mut self,
|
3523 + | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
3524 + | ) -> Self {
|
3525 + | self.range_long_list_header = input;
|
3526 + | self
|
4204 3527 | }
|
4205 - | impl ::std::convert::From<Builder>
|
4206 - | for crate::constrained::MaybeConstrained<
|
4207 - | crate::input::ConstrainedRecursiveShapesOperationInput,
|
4208 - | >
|
4209 - | {
|
4210 - | fn from(builder: Builder) -> Self {
|
4211 - | Self::Unconstrained(builder)
|
3528 + | #[allow(missing_docs)] // documentation missing in model
|
3529 + | pub fn length_string_query(
|
3530 + | mut self,
|
3531 + | input: ::std::option::Option<::std::string::String>,
|
3532 + | ) -> Self {
|
3533 + | self.length_string_query = input;
|
3534 + | self
|
4212 3535 | }
|
3536 + | #[allow(missing_docs)] // documentation missing in model
|
3537 + | pub fn range_byte_query(mut self, input: i8) -> Self {
|
3538 + | self.range_byte_query = Some(input);
|
3539 + | self
|
4213 3540 | }
|
4214 - | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedRecursiveShapesOperationInput {
|
4215 - | type Error = ConstraintViolation;
|
4216 - |
|
4217 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4218 - | builder.build()
|
3541 + | #[allow(missing_docs)] // documentation missing in model
|
3542 + | pub fn range_short_query(mut self, input: i16) -> Self {
|
3543 + | self.range_short_query = Some(input);
|
3544 + | self
|
4219 3545 | }
|
3546 + | #[allow(missing_docs)] // documentation missing in model
|
3547 + | pub fn range_integer_query(mut self, input: i32) -> Self {
|
3548 + | self.range_integer_query = Some(input);
|
3549 + | self
|
4220 3550 | }
|
4221 - | /// A builder for [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
4222 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4223 - | pub(crate) struct Builder {
|
4224 - | pub(crate) nested: ::std::option::Option<
|
4225 - | crate::constrained::MaybeConstrained<crate::model::RecursiveShapesInputOutputNested1>,
|
4226 - | >,
|
4227 - | pub(crate) recursive_list: ::std::option::Option<
|
4228 - | crate::constrained::MaybeConstrained<
|
4229 - | crate::constrained::recursive_list_constrained::RecursiveListConstrained,
|
4230 - | >,
|
4231 - | >,
|
3551 + | #[allow(missing_docs)] // documentation missing in model
|
3552 + | pub fn range_long_query(mut self, input: i64) -> Self {
|
3553 + | self.range_long_query = Some(input);
|
3554 + | self
|
4232 3555 | }
|
4233 - | impl Builder {
|
4234 3556 | #[allow(missing_docs)] // documentation missing in model
|
4235 - | pub(crate) fn set_nested(
|
3557 + | pub fn enum_string_query(
|
4236 3558 | mut self,
|
4237 - | input: Option<
|
4238 - | impl ::std::convert::Into<
|
4239 - | crate::constrained::MaybeConstrained<
|
4240 - | crate::model::RecursiveShapesInputOutputNested1,
|
4241 - | >,
|
4242 - | >,
|
4243 - | >,
|
3559 + | input: ::std::option::Option<crate::model::EnumString>,
|
4244 3560 | ) -> Self {
|
4245 - | self.nested = input.map(|v| v.into());
|
3561 + | self.enum_string_query = input;
|
4246 3562 | self
|
4247 3563 | }
|
4248 3564 | #[allow(missing_docs)] // documentation missing in model
|
4249 - | pub(crate) fn set_recursive_list(
|
3565 + | pub fn length_string_list_query(
|
4250 3566 | mut self,
|
4251 - | input: impl ::std::convert::Into<
|
4252 - | crate::constrained::MaybeConstrained<
|
4253 - | crate::constrained::recursive_list_constrained::RecursiveListConstrained,
|
4254 - | >,
|
4255 - | >,
|
3567 + | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
4256 3568 | ) -> Self {
|
4257 - | self.recursive_list = Some(input.into());
|
3569 + | self.length_string_list_query = input;
|
4258 3570 | self
|
4259 3571 | }
|
4260 - | /// Consumes the builder and constructs a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
4261 - | ///
|
4262 - | /// The builder fails to construct a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput) if a [`ConstraintViolation`] occurs.
|
4263 - | ///
|
4264 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
4265 - | pub fn build(
|
4266 - | self,
|
4267 - | ) -> Result<crate::input::ConstrainedRecursiveShapesOperationInput, ConstraintViolation>
|
4268 - | {
|
4269 - | self.build_enforcing_all_constraints()
|
4270 - | }
|
4271 - | fn build_enforcing_all_constraints(
|
4272 - | self,
|
4273 - | ) -> Result<crate::input::ConstrainedRecursiveShapesOperationInput, ConstraintViolation>
|
4274 - | {
|
4275 - | Ok(crate::input::ConstrainedRecursiveShapesOperationInput {
|
4276 - | nested: self
|
4277 - | .nested
|
4278 - | .map(|v| match v {
|
4279 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4280 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4281 - | })
|
4282 - | .map(|res| res.map_err(ConstraintViolation::Nested))
|
4283 - | .transpose()?,
|
4284 - | recursive_list: self
|
4285 - | .recursive_list
|
4286 - | .map(|v| match v {
|
4287 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4288 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4289 - | })
|
4290 - | .map(|res| {
|
4291 - | res.map(|v| v.into())
|
4292 - | .map_err(ConstraintViolation::RecursiveList)
|
4293 - | })
|
4294 - | .transpose()?
|
4295 - | .ok_or(ConstraintViolation::MissingRecursiveList)?,
|
4296 - | })
|
3572 + | #[allow(missing_docs)] // documentation missing in model
|
3573 + | pub fn length_list_pattern_string_query(
|
3574 + | mut self,
|
3575 + | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
3576 + | ) -> Self {
|
3577 + | self.length_list_pattern_string_query = input;
|
3578 + | self
|
4297 3579 | }
|
3580 + | #[allow(missing_docs)] // documentation missing in model
|
3581 + | pub fn length_string_set_query(
|
3582 + | mut self,
|
3583 + | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
3584 + | ) -> Self {
|
3585 + | self.length_string_set_query = input;
|
3586 + | self
|
4298 3587 | }
|
4299 - | }
|
4300 - | /// See [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
4301 - | pub mod constrained_recursive_shapes_operation_input {
|
4302 - |
|
4303 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4304 - | /// Holds one variant for each of the ways the builder can fail.
|
4305 - | #[allow(clippy::enum_variant_names)]
|
4306 - | pub enum ConstraintViolation {
|
4307 - | /// `recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`.
|
4308 - | MissingRecursiveList,
|
3588 + | #[allow(missing_docs)] // documentation missing in model
|
3589 + | pub fn range_byte_list_query(
|
3590 + | mut self,
|
3591 + | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
3592 + | ) -> Self {
|
3593 + | self.range_byte_list_query = input;
|
3594 + | self
|
4309 3595 | }
|
4310 - | impl ::std::fmt::Display for ConstraintViolation {
|
4311 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4312 - | match self {
|
4313 - | ConstraintViolation::MissingRecursiveList => write!(f, "`recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`"),
|
3596 + | #[allow(missing_docs)] // documentation missing in model
|
3597 + | pub fn range_short_list_query(
|
3598 + | mut self,
|
3599 + | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
3600 + | ) -> Self {
|
3601 + | self.range_short_list_query = input;
|
3602 + | self
|
4314 3603 | }
|
3604 + | #[allow(missing_docs)] // documentation missing in model
|
3605 + | pub fn range_integer_list_query(
|
3606 + | mut self,
|
3607 + | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
3608 + | ) -> Self {
|
3609 + | self.range_integer_list_query = input;
|
3610 + | self
|
4315 3611 | }
|
3612 + | #[allow(missing_docs)] // documentation missing in model
|
3613 + | pub fn range_long_list_query(
|
3614 + | mut self,
|
3615 + | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
3616 + | ) -> Self {
|
3617 + | self.range_long_list_query = input;
|
3618 + | self
|
4316 3619 | }
|
4317 - | impl ::std::error::Error for ConstraintViolation {}
|
4318 - | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedRecursiveShapesOperationInput {
|
4319 - | type Error = ConstraintViolation;
|
4320 - |
|
4321 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4322 - | builder.build()
|
3620 + | #[allow(missing_docs)] // documentation missing in model
|
3621 + | pub fn range_byte_set_query(
|
3622 + | mut self,
|
3623 + | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
3624 + | ) -> Self {
|
3625 + | self.range_byte_set_query = input;
|
3626 + | self
|
4323 3627 | }
|
3628 + | #[allow(missing_docs)] // documentation missing in model
|
3629 + | pub fn range_short_set_query(
|
3630 + | mut self,
|
3631 + | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
3632 + | ) -> Self {
|
3633 + | self.range_short_set_query = input;
|
3634 + | self
|
4324 3635 | }
|
4325 - | /// A builder for [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
4326 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4327 - | pub struct Builder {
|
4328 - | pub(crate) nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
4329 - | pub(crate) recursive_list:
|
4330 - | ::std::option::Option<::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>>,
|
3636 + | #[allow(missing_docs)] // documentation missing in model
|
3637 + | pub fn range_integer_set_query(
|
3638 + | mut self,
|
3639 + | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
3640 + | ) -> Self {
|
3641 + | self.range_integer_set_query = input;
|
3642 + | self
|
4331 3643 | }
|
4332 - | impl Builder {
|
4333 3644 | #[allow(missing_docs)] // documentation missing in model
|
4334 - | pub fn nested(
|
3645 + | pub fn range_long_set_query(
|
4335 3646 | mut self,
|
4336 - | input: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
3647 + | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
4337 3648 | ) -> Self {
|
4338 - | self.nested = input;
|
3649 + | self.range_long_set_query = input;
|
4339 3650 | self
|
4340 3651 | }
|
4341 3652 | #[allow(missing_docs)] // documentation missing in model
|
4342 - | pub fn recursive_list(
|
3653 + | pub fn enum_string_list_query(
|
4343 3654 | mut self,
|
4344 - | input: ::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>,
|
3655 + | input: ::std::option::Option<::std::vec::Vec<crate::model::EnumString>>,
|
4345 3656 | ) -> Self {
|
4346 - | self.recursive_list = Some(input);
|
3657 + | self.enum_string_list_query = input;
|
4347 3658 | self
|
4348 3659 | }
|
4349 - | /// Consumes the builder and constructs a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
3660 + | /// Consumes the builder and constructs a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
4350 3661 | ///
|
4351 - | /// The builder fails to construct a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput) if you do not provide a value for all non-`Option`al members.
|
3662 + | /// The builder fails to construct a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput) if you do not provide a value for all non-`Option`al members.
|
4352 3663 | ///
|
4353 3664 | pub fn build(
|
4354 3665 | self,
|
4355 - | ) -> Result<crate::input::ConstrainedRecursiveShapesOperationInput, ConstraintViolation>
|
3666 + | ) -> Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ConstraintViolation>
|
4356 3667 | {
|
4357 3668 | self.build_enforcing_required_and_enum_traits()
|
4358 3669 | }
|
4359 3670 | fn build_enforcing_required_and_enum_traits(
|
4360 3671 | self,
|
4361 - | ) -> Result<crate::input::ConstrainedRecursiveShapesOperationInput, ConstraintViolation>
|
3672 + | ) -> Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ConstraintViolation>
|
4362 3673 | {
|
4363 - | Ok(crate::input::ConstrainedRecursiveShapesOperationInput {
|
4364 - | nested: self.nested,
|
4365 - | recursive_list: self
|
4366 - | .recursive_list
|
4367 - | .ok_or(ConstraintViolation::MissingRecursiveList)?,
|
3674 + | Ok(crate::input::ConstrainedHttpBoundShapesOperationInput {
|
3675 + | length_string_label: self
|
3676 + | .length_string_label
|
3677 + | .ok_or(ConstraintViolation::MissingLengthStringLabel)?,
|
3678 + | range_integer_label: self.range_integer_label.unwrap_or(0i32),
|
3679 + | range_short_label: self.range_short_label.unwrap_or(0i16),
|
3680 + | range_long_label: self.range_long_label.unwrap_or(0i64),
|
3681 + | range_byte_label: self.range_byte_label.unwrap_or(0i8),
|
3682 + | enum_string_label: self
|
3683 + | .enum_string_label
|
3684 + | .ok_or(ConstraintViolation::MissingEnumStringLabel)?,
|
3685 + | length_string_header_map: self
|
3686 + | .length_string_header_map
|
3687 + | .ok_or(ConstraintViolation::MissingLengthStringHeaderMap)?,
|
3688 + | length_string_header: self.length_string_header,
|
3689 + | range_integer_header: self.range_integer_header.unwrap_or(0i32),
|
3690 + | range_short_header: self.range_short_header.unwrap_or(0i16),
|
3691 + | range_long_header: self.range_long_header.unwrap_or(0i64),
|
3692 + | range_byte_header: self.range_byte_header.unwrap_or(0i8),
|
3693 + | length_string_set_header: self.length_string_set_header,
|
3694 + | list_length_string_header: self.list_length_string_header,
|
3695 + | length_list_pattern_string_header: self.length_list_pattern_string_header,
|
3696 + | length_set_pattern_string_header: self.length_set_pattern_string_header,
|
3697 + | range_byte_set_header: self.range_byte_set_header,
|
3698 + | range_short_set_header: self.range_short_set_header,
|
3699 + | range_integer_set_header: self.range_integer_set_header,
|
3700 + | range_long_set_header: self.range_long_set_header,
|
3701 + | range_byte_list_header: self.range_byte_list_header,
|
3702 + | range_short_list_header: self.range_short_list_header,
|
3703 + | range_integer_list_header: self.range_integer_list_header,
|
3704 + | range_long_list_header: self.range_long_list_header,
|
3705 + | length_string_query: self.length_string_query,
|
3706 + | range_byte_query: self.range_byte_query.unwrap_or(0i8),
|
3707 + | range_short_query: self.range_short_query.unwrap_or(0i16),
|
3708 + | range_integer_query: self.range_integer_query.unwrap_or(0i32),
|
3709 + | range_long_query: self.range_long_query.unwrap_or(0i64),
|
3710 + | enum_string_query: self.enum_string_query,
|
3711 + | length_string_list_query: self.length_string_list_query,
|
3712 + | length_list_pattern_string_query: self.length_list_pattern_string_query,
|
3713 + | length_string_set_query: self.length_string_set_query,
|
3714 + | range_byte_list_query: self.range_byte_list_query,
|
3715 + | range_short_list_query: self.range_short_list_query,
|
3716 + | range_integer_list_query: self.range_integer_list_query,
|
3717 + | range_long_list_query: self.range_long_list_query,
|
3718 + | range_byte_set_query: self.range_byte_set_query,
|
3719 + | range_short_set_query: self.range_short_set_query,
|
3720 + | range_integer_set_query: self.range_integer_set_query,
|
3721 + | range_long_set_query: self.range_long_set_query,
|
3722 + | enum_string_list_query: self.enum_string_list_query,
|
4368 3723 | })
|
4369 3724 | }
|
4370 3725 | }
|
4371 3726 | }
|
4372 3727 | /// See [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
4373 3728 | pub(crate) mod constrained_http_payload_bound_shape_operation_input_internal {
|
4374 3729 |
|
4375 3730 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4376 3731 | /// Holds one variant for each of the ways the builder can fail.
|
4377 3732 | #[non_exhaustive]
|
4546 3901 | Ok(
|
4547 3902 | crate::input::ConstrainedHttpPayloadBoundShapeOperationInput {
|
4548 3903 | http_payload_bound_constrained_shape: self
|
4549 3904 | .http_payload_bound_constrained_shape
|
4550 3905 | .ok_or(ConstraintViolation::MissingHttpPayloadBoundConstrainedShape)?,
|
4551 3906 | },
|
4552 3907 | )
|
4553 3908 | }
|
4554 3909 | }
|
4555 3910 | }
|
4556 - | /// See [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
4557 - | pub(crate) mod constrained_http_bound_shapes_operation_input_internal {
|
3911 + | /// See [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
3912 + | pub(crate) mod constrained_recursive_shapes_operation_input_internal {
|
4558 3913 |
|
4559 3914 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4560 3915 | /// Holds one variant for each of the ways the builder can fail.
|
4561 3916 | #[non_exhaustive]
|
4562 3917 | #[allow(clippy::enum_variant_names)]
|
4563 3918 | pub(crate) enum ConstraintViolation {
|
4564 - | /// `length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
4565 - | MissingLengthStringLabel,
|
4566 - | /// Constraint violation occurred building member `length_string_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4567 - | #[doc(hidden)]
|
4568 - | LengthStringLabel(crate::model::length_string_internal::ConstraintViolation),
|
4569 - | /// Constraint violation occurred building member `range_integer_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4570 - | #[doc(hidden)]
|
4571 - | RangeIntegerLabel(crate::model::range_integer_internal::ConstraintViolation),
|
4572 - | /// Constraint violation occurred building member `range_short_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4573 - | #[doc(hidden)]
|
4574 - | RangeShortLabel(crate::model::range_short_internal::ConstraintViolation),
|
4575 - | /// Constraint violation occurred building member `range_long_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4576 - | #[doc(hidden)]
|
4577 - | RangeLongLabel(crate::model::range_long_internal::ConstraintViolation),
|
4578 - | /// Constraint violation occurred building member `range_byte_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4579 - | #[doc(hidden)]
|
4580 - | RangeByteLabel(crate::model::range_byte_internal::ConstraintViolation),
|
4581 - | /// `enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
4582 - | MissingEnumStringLabel,
|
4583 - | /// Constraint violation occurred building member `enum_string_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4584 - | #[doc(hidden)]
|
4585 - | EnumStringLabel(crate::model::enum_string_internal::ConstraintViolation),
|
4586 - | /// `length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
4587 - | MissingLengthStringHeaderMap,
|
4588 - | /// Constraint violation occurred building member `length_string_header_map` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4589 - | #[doc(hidden)]
|
4590 - | LengthStringHeaderMap(crate::model::map_of_length_string_internal::ConstraintViolation),
|
4591 - | /// Constraint violation occurred building member `length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4592 - | #[doc(hidden)]
|
4593 - | LengthStringHeader(crate::model::length_string_internal::ConstraintViolation),
|
4594 - | /// Constraint violation occurred building member `range_integer_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4595 - | #[doc(hidden)]
|
4596 - | RangeIntegerHeader(crate::model::range_integer_internal::ConstraintViolation),
|
4597 - | /// Constraint violation occurred building member `range_short_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4598 - | #[doc(hidden)]
|
4599 - | RangeShortHeader(crate::model::range_short_internal::ConstraintViolation),
|
4600 - | /// Constraint violation occurred building member `range_long_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4601 - | #[doc(hidden)]
|
4602 - | RangeLongHeader(crate::model::range_long_internal::ConstraintViolation),
|
4603 - | /// Constraint violation occurred building member `range_byte_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4604 - | #[doc(hidden)]
|
4605 - | RangeByteHeader(crate::model::range_byte_internal::ConstraintViolation),
|
4606 - | /// Constraint violation occurred building member `length_string_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4607 - | #[doc(hidden)]
|
4608 - | LengthStringSetHeader(crate::model::set_of_length_string_internal::ConstraintViolation),
|
4609 - | /// Constraint violation occurred building member `list_length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4610 - | #[doc(hidden)]
|
4611 - | ListLengthStringHeader(crate::model::list_of_length_string_internal::ConstraintViolation),
|
4612 - | /// Constraint violation occurred building member `length_list_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4613 - | #[doc(hidden)]
|
4614 - | LengthListPatternStringHeader(
|
4615 - | crate::model::length_list_of_pattern_string_internal::ConstraintViolation,
|
4616 - | ),
|
4617 - | /// Constraint violation occurred building member `length_set_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4618 - | #[doc(hidden)]
|
4619 - | LengthSetPatternStringHeader(
|
4620 - | crate::model::length_set_of_pattern_string_internal::ConstraintViolation,
|
4621 - | ),
|
4622 - | /// Constraint violation occurred building member `range_byte_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4623 - | #[doc(hidden)]
|
4624 - | RangeByteSetHeader(crate::model::set_of_range_byte_internal::ConstraintViolation),
|
4625 - | /// Constraint violation occurred building member `range_short_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4626 - | #[doc(hidden)]
|
4627 - | RangeShortSetHeader(crate::model::set_of_range_short_internal::ConstraintViolation),
|
4628 - | /// Constraint violation occurred building member `range_integer_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4629 - | #[doc(hidden)]
|
4630 - | RangeIntegerSetHeader(crate::model::set_of_range_integer_internal::ConstraintViolation),
|
4631 - | /// Constraint violation occurred building member `range_long_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4632 - | #[doc(hidden)]
|
4633 - | RangeLongSetHeader(crate::model::set_of_range_long_internal::ConstraintViolation),
|
4634 - | /// Constraint violation occurred building member `range_byte_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4635 - | #[doc(hidden)]
|
4636 - | RangeByteListHeader(crate::model::list_of_range_byte_internal::ConstraintViolation),
|
4637 - | /// Constraint violation occurred building member `range_short_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4638 - | #[doc(hidden)]
|
4639 - | RangeShortListHeader(crate::model::list_of_range_short_internal::ConstraintViolation),
|
4640 - | /// Constraint violation occurred building member `range_integer_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4641 - | #[doc(hidden)]
|
4642 - | RangeIntegerListHeader(crate::model::list_of_range_integer_internal::ConstraintViolation),
|
4643 - | /// Constraint violation occurred building member `range_long_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4644 - | #[doc(hidden)]
|
4645 - | RangeLongListHeader(crate::model::list_of_range_long_internal::ConstraintViolation),
|
4646 - | /// Constraint violation occurred building member `length_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4647 - | #[doc(hidden)]
|
4648 - | LengthStringQuery(crate::model::length_string_internal::ConstraintViolation),
|
4649 - | /// Constraint violation occurred building member `range_byte_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4650 - | #[doc(hidden)]
|
4651 - | RangeByteQuery(crate::model::range_byte_internal::ConstraintViolation),
|
4652 - | /// Constraint violation occurred building member `range_short_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4653 - | #[doc(hidden)]
|
4654 - | RangeShortQuery(crate::model::range_short_internal::ConstraintViolation),
|
4655 - | /// Constraint violation occurred building member `range_integer_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4656 - | #[doc(hidden)]
|
4657 - | RangeIntegerQuery(crate::model::range_integer_internal::ConstraintViolation),
|
4658 - | /// Constraint violation occurred building member `range_long_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4659 - | #[doc(hidden)]
|
4660 - | RangeLongQuery(crate::model::range_long_internal::ConstraintViolation),
|
4661 - | /// Constraint violation occurred building member `enum_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4662 - | #[doc(hidden)]
|
4663 - | EnumStringQuery(crate::model::enum_string_internal::ConstraintViolation),
|
4664 - | /// Constraint violation occurred building member `length_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4665 - | #[doc(hidden)]
|
4666 - | LengthStringListQuery(crate::model::list_of_length_string_internal::ConstraintViolation),
|
4667 - | /// Constraint violation occurred building member `length_list_pattern_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4668 - | #[doc(hidden)]
|
4669 - | LengthListPatternStringQuery(
|
4670 - | crate::model::length_list_of_pattern_string_internal::ConstraintViolation,
|
4671 - | ),
|
4672 - | /// Constraint violation occurred building member `length_string_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4673 - | #[doc(hidden)]
|
4674 - | LengthStringSetQuery(crate::model::set_of_length_string_internal::ConstraintViolation),
|
4675 - | /// Constraint violation occurred building member `range_byte_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4676 - | #[doc(hidden)]
|
4677 - | RangeByteListQuery(crate::model::list_of_range_byte_internal::ConstraintViolation),
|
4678 - | /// Constraint violation occurred building member `range_short_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4679 - | #[doc(hidden)]
|
4680 - | RangeShortListQuery(crate::model::list_of_range_short_internal::ConstraintViolation),
|
4681 - | /// Constraint violation occurred building member `range_integer_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4682 - | #[doc(hidden)]
|
4683 - | RangeIntegerListQuery(crate::model::list_of_range_integer_internal::ConstraintViolation),
|
4684 - | /// Constraint violation occurred building member `range_long_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4685 - | #[doc(hidden)]
|
4686 - | RangeLongListQuery(crate::model::list_of_range_long_internal::ConstraintViolation),
|
4687 - | /// Constraint violation occurred building member `range_byte_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4688 - | #[doc(hidden)]
|
4689 - | RangeByteSetQuery(crate::model::set_of_range_byte_internal::ConstraintViolation),
|
4690 - | /// Constraint violation occurred building member `range_short_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4691 - | #[doc(hidden)]
|
4692 - | RangeShortSetQuery(crate::model::set_of_range_short_internal::ConstraintViolation),
|
4693 - | /// Constraint violation occurred building member `range_integer_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4694 - | #[doc(hidden)]
|
4695 - | RangeIntegerSetQuery(crate::model::set_of_range_integer_internal::ConstraintViolation),
|
4696 - | /// Constraint violation occurred building member `range_long_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3919 + | /// Constraint violation occurred building member `nested` when building `ConstrainedRecursiveShapesOperationInput`.
|
4697 3920 | #[doc(hidden)]
|
4698 - | RangeLongSetQuery(crate::model::set_of_range_long_internal::ConstraintViolation),
|
4699 - | /// Constraint violation occurred building member `enum_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3921 + | Nested(crate::model::recursive_shapes_input_output_nested1_internal::ConstraintViolation),
|
3922 + | /// `recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`.
|
3923 + | MissingRecursiveList,
|
3924 + | /// Constraint violation occurred building member `recursive_list` when building `ConstrainedRecursiveShapesOperationInput`.
|
4700 3925 | #[doc(hidden)]
|
4701 - | EnumStringListQuery(crate::model::list_of_enum_string_internal::ConstraintViolation),
|
3926 + | RecursiveList(crate::model::recursive_list_internal::ConstraintViolation),
|
4702 3927 | }
|
4703 3928 | impl ::std::fmt::Display for ConstraintViolation {
|
4704 3929 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4705 3930 | match self {
|
4706 - | ConstraintViolation::MissingLengthStringLabel => write!(f, "`length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4707 - | ConstraintViolation::LengthStringLabel(_) => write!(f, "constraint violation occurred building member `length_string_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4708 - | ConstraintViolation::RangeIntegerLabel(_) => write!(f, "constraint violation occurred building member `range_integer_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4709 - | ConstraintViolation::RangeShortLabel(_) => write!(f, "constraint violation occurred building member `range_short_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4710 - | ConstraintViolation::RangeLongLabel(_) => write!(f, "constraint violation occurred building member `range_long_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4711 - | ConstraintViolation::RangeByteLabel(_) => write!(f, "constraint violation occurred building member `range_byte_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4712 - | ConstraintViolation::MissingEnumStringLabel => write!(f, "`enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4713 - | ConstraintViolation::EnumStringLabel(_) => write!(f, "constraint violation occurred building member `enum_string_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4714 - | ConstraintViolation::MissingLengthStringHeaderMap => write!(f, "`length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4715 - | ConstraintViolation::LengthStringHeaderMap(_) => write!(f, "constraint violation occurred building member `length_string_header_map` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4716 - | ConstraintViolation::LengthStringHeader(_) => write!(f, "constraint violation occurred building member `length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4717 - | ConstraintViolation::RangeIntegerHeader(_) => write!(f, "constraint violation occurred building member `range_integer_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4718 - | ConstraintViolation::RangeShortHeader(_) => write!(f, "constraint violation occurred building member `range_short_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4719 - | ConstraintViolation::RangeLongHeader(_) => write!(f, "constraint violation occurred building member `range_long_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4720 - | ConstraintViolation::RangeByteHeader(_) => write!(f, "constraint violation occurred building member `range_byte_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4721 - | ConstraintViolation::LengthStringSetHeader(_) => write!(f, "constraint violation occurred building member `length_string_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4722 - | ConstraintViolation::ListLengthStringHeader(_) => write!(f, "constraint violation occurred building member `list_length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4723 - | ConstraintViolation::LengthListPatternStringHeader(_) => write!(f, "constraint violation occurred building member `length_list_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4724 - | ConstraintViolation::LengthSetPatternStringHeader(_) => write!(f, "constraint violation occurred building member `length_set_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4725 - | ConstraintViolation::RangeByteSetHeader(_) => write!(f, "constraint violation occurred building member `range_byte_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4726 - | ConstraintViolation::RangeShortSetHeader(_) => write!(f, "constraint violation occurred building member `range_short_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4727 - | ConstraintViolation::RangeIntegerSetHeader(_) => write!(f, "constraint violation occurred building member `range_integer_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4728 - | ConstraintViolation::RangeLongSetHeader(_) => write!(f, "constraint violation occurred building member `range_long_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4729 - | ConstraintViolation::RangeByteListHeader(_) => write!(f, "constraint violation occurred building member `range_byte_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4730 - | ConstraintViolation::RangeShortListHeader(_) => write!(f, "constraint violation occurred building member `range_short_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4731 - | ConstraintViolation::RangeIntegerListHeader(_) => write!(f, "constraint violation occurred building member `range_integer_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4732 - | ConstraintViolation::RangeLongListHeader(_) => write!(f, "constraint violation occurred building member `range_long_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4733 - | ConstraintViolation::LengthStringQuery(_) => write!(f, "constraint violation occurred building member `length_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4734 - | ConstraintViolation::RangeByteQuery(_) => write!(f, "constraint violation occurred building member `range_byte_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4735 - | ConstraintViolation::RangeShortQuery(_) => write!(f, "constraint violation occurred building member `range_short_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4736 - | ConstraintViolation::RangeIntegerQuery(_) => write!(f, "constraint violation occurred building member `range_integer_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4737 - | ConstraintViolation::RangeLongQuery(_) => write!(f, "constraint violation occurred building member `range_long_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4738 - | ConstraintViolation::EnumStringQuery(_) => write!(f, "constraint violation occurred building member `enum_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4739 - | ConstraintViolation::LengthStringListQuery(_) => write!(f, "constraint violation occurred building member `length_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4740 - | ConstraintViolation::LengthListPatternStringQuery(_) => write!(f, "constraint violation occurred building member `length_list_pattern_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4741 - | ConstraintViolation::LengthStringSetQuery(_) => write!(f, "constraint violation occurred building member `length_string_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4742 - | ConstraintViolation::RangeByteListQuery(_) => write!(f, "constraint violation occurred building member `range_byte_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4743 - | ConstraintViolation::RangeShortListQuery(_) => write!(f, "constraint violation occurred building member `range_short_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4744 - | ConstraintViolation::RangeIntegerListQuery(_) => write!(f, "constraint violation occurred building member `range_integer_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4745 - | ConstraintViolation::RangeLongListQuery(_) => write!(f, "constraint violation occurred building member `range_long_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4746 - | ConstraintViolation::RangeByteSetQuery(_) => write!(f, "constraint violation occurred building member `range_byte_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4747 - | ConstraintViolation::RangeShortSetQuery(_) => write!(f, "constraint violation occurred building member `range_short_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4748 - | ConstraintViolation::RangeIntegerSetQuery(_) => write!(f, "constraint violation occurred building member `range_integer_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4749 - | ConstraintViolation::RangeLongSetQuery(_) => write!(f, "constraint violation occurred building member `range_long_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4750 - | ConstraintViolation::EnumStringListQuery(_) => write!(f, "constraint violation occurred building member `enum_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3931 + | ConstraintViolation::Nested(_) => write!(f, "constraint violation occurred building member `nested` when building `ConstrainedRecursiveShapesOperationInput`"),
|
3932 + | ConstraintViolation::MissingRecursiveList => write!(f, "`recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`"),
|
3933 + | ConstraintViolation::RecursiveList(_) => write!(f, "constraint violation occurred building member `recursive_list` when building `ConstrainedRecursiveShapesOperationInput`"),
|
4751 3934 | }
|
4752 3935 | }
|
4753 3936 | }
|
4754 3937 | impl ::std::error::Error for ConstraintViolation {}
|
4755 3938 | impl ConstraintViolation {
|
4756 3939 | pub(crate) fn as_validation_exception_field(
|
4757 3940 | self,
|
4758 3941 | path: ::std::string::String,
|
4759 3942 | ) -> crate::model::ValidationExceptionField {
|
4760 3943 | match self {
|
4761 - | ConstraintViolation::MissingLengthStringLabel => crate::model::ValidationExceptionField {
|
4762 - | message: format!("Value at '{}/lengthStringLabel' failed to satisfy constraint: Member must not be null", path),
|
4763 - | path: path + "/lengthStringLabel",
|
4764 - | },
|
4765 - | ConstraintViolation::LengthStringLabel(inner) => inner.as_validation_exception_field(path + "/lengthStringLabel"),
|
4766 - | ConstraintViolation::RangeIntegerLabel(inner) => inner.as_validation_exception_field(path + "/rangeIntegerLabel"),
|
4767 - | ConstraintViolation::RangeShortLabel(inner) => inner.as_validation_exception_field(path + "/rangeShortLabel"),
|
4768 - | ConstraintViolation::RangeLongLabel(inner) => inner.as_validation_exception_field(path + "/rangeLongLabel"),
|
4769 - | ConstraintViolation::RangeByteLabel(inner) => inner.as_validation_exception_field(path + "/rangeByteLabel"),
|
4770 - | ConstraintViolation::MissingEnumStringLabel => crate::model::ValidationExceptionField {
|
4771 - | message: format!("Value at '{}/enumStringLabel' failed to satisfy constraint: Member must not be null", path),
|
4772 - | path: path + "/enumStringLabel",
|
4773 - | },
|
4774 - | ConstraintViolation::EnumStringLabel(inner) => inner.as_validation_exception_field(path + "/enumStringLabel"),
|
4775 - | ConstraintViolation::MissingLengthStringHeaderMap => crate::model::ValidationExceptionField {
|
4776 - | message: format!("Value at '{}/lengthStringHeaderMap' failed to satisfy constraint: Member must not be null", path),
|
4777 - | path: path + "/lengthStringHeaderMap",
|
3944 + | ConstraintViolation::Nested(inner) => inner.as_validation_exception_field(path + "/nested"),
|
3945 + | ConstraintViolation::MissingRecursiveList => crate::model::ValidationExceptionField {
|
3946 + | message: format!("Value at '{}/recursiveList' failed to satisfy constraint: Member must not be null", path),
|
3947 + | path: path + "/recursiveList",
|
4778 3948 | },
|
4779 - | ConstraintViolation::LengthStringHeaderMap(inner) => inner.as_validation_exception_field(path + "/lengthStringHeaderMap"),
|
4780 - | ConstraintViolation::LengthStringHeader(inner) => inner.as_validation_exception_field(path + "/lengthStringHeader"),
|
4781 - | ConstraintViolation::RangeIntegerHeader(inner) => inner.as_validation_exception_field(path + "/rangeIntegerHeader"),
|
4782 - | ConstraintViolation::RangeShortHeader(inner) => inner.as_validation_exception_field(path + "/rangeShortHeader"),
|
4783 - | ConstraintViolation::RangeLongHeader(inner) => inner.as_validation_exception_field(path + "/rangeLongHeader"),
|
4784 - | ConstraintViolation::RangeByteHeader(inner) => inner.as_validation_exception_field(path + "/rangeByteHeader"),
|
4785 - | ConstraintViolation::LengthStringSetHeader(inner) => inner.as_validation_exception_field(path + "/lengthStringSetHeader"),
|
4786 - | ConstraintViolation::ListLengthStringHeader(inner) => inner.as_validation_exception_field(path + "/listLengthStringHeader"),
|
4787 - | ConstraintViolation::LengthListPatternStringHeader(inner) => inner.as_validation_exception_field(path + "/lengthListPatternStringHeader"),
|
4788 - | ConstraintViolation::LengthSetPatternStringHeader(inner) => inner.as_validation_exception_field(path + "/lengthSetPatternStringHeader"),
|
4789 - | ConstraintViolation::RangeByteSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeByteSetHeader"),
|
4790 - | ConstraintViolation::RangeShortSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeShortSetHeader"),
|
4791 - | ConstraintViolation::RangeIntegerSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeIntegerSetHeader"),
|
4792 - | ConstraintViolation::RangeLongSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeLongSetHeader"),
|
4793 - | ConstraintViolation::RangeByteListHeader(inner) => inner.as_validation_exception_field(path + "/rangeByteListHeader"),
|
4794 - | ConstraintViolation::RangeShortListHeader(inner) => inner.as_validation_exception_field(path + "/rangeShortListHeader"),
|
4795 - | ConstraintViolation::RangeIntegerListHeader(inner) => inner.as_validation_exception_field(path + "/rangeIntegerListHeader"),
|
4796 - | ConstraintViolation::RangeLongListHeader(inner) => inner.as_validation_exception_field(path + "/rangeLongListHeader"),
|
4797 - | ConstraintViolation::LengthStringQuery(inner) => inner.as_validation_exception_field(path + "/lengthStringQuery"),
|
4798 - | ConstraintViolation::RangeByteQuery(inner) => inner.as_validation_exception_field(path + "/rangeByteQuery"),
|
4799 - | ConstraintViolation::RangeShortQuery(inner) => inner.as_validation_exception_field(path + "/rangeShortQuery"),
|
4800 - | ConstraintViolation::RangeIntegerQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerQuery"),
|
4801 - | ConstraintViolation::RangeLongQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongQuery"),
|
4802 - | ConstraintViolation::EnumStringQuery(inner) => inner.as_validation_exception_field(path + "/enumStringQuery"),
|
4803 - | ConstraintViolation::LengthStringListQuery(inner) => inner.as_validation_exception_field(path + "/lengthStringListQuery"),
|
4804 - | ConstraintViolation::LengthListPatternStringQuery(inner) => inner.as_validation_exception_field(path + "/lengthListPatternStringQuery"),
|
4805 - | ConstraintViolation::LengthStringSetQuery(inner) => inner.as_validation_exception_field(path + "/lengthStringSetQuery"),
|
4806 - | ConstraintViolation::RangeByteListQuery(inner) => inner.as_validation_exception_field(path + "/rangeByteListQuery"),
|
4807 - | ConstraintViolation::RangeShortListQuery(inner) => inner.as_validation_exception_field(path + "/rangeShortListQuery"),
|
4808 - | ConstraintViolation::RangeIntegerListQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerListQuery"),
|
4809 - | ConstraintViolation::RangeLongListQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongListQuery"),
|
4810 - | ConstraintViolation::RangeByteSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeByteSetQuery"),
|
4811 - | ConstraintViolation::RangeShortSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeShortSetQuery"),
|
4812 - | ConstraintViolation::RangeIntegerSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerSetQuery"),
|
4813 - | ConstraintViolation::RangeLongSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongSetQuery"),
|
4814 - | ConstraintViolation::EnumStringListQuery(inner) => inner.as_validation_exception_field(path + "/enumStringListQuery"),
|
3949 + | ConstraintViolation::RecursiveList(inner) => inner.as_validation_exception_field(path + "/recursiveList"),
|
4815 3950 | }
|
4816 3951 | }
|
4817 3952 | }
|
4818 3953 | impl ::std::convert::From<ConstraintViolation>
|
4819 3954 | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4820 3955 | {
|
4821 3956 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4822 3957 | let first_validation_exception_field =
|
4823 3958 | constraint_violation.as_validation_exception_field("".to_owned());
|
4824 3959 | let validation_exception = crate::error::ValidationException {
|
4825 3960 | message: format!(
|
4826 3961 | "1 validation error detected. {}",
|
4827 3962 | &first_validation_exception_field.message
|
4828 3963 | ),
|
4829 3964 | field_list: Some(vec![first_validation_exception_field]),
|
4830 3965 | };
|
4831 3966 | Self::ConstraintViolation(
|
4832 3967 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4833 3968 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4834 3969 | )
|
4835 3970 | }
|
4836 3971 | }
|
4837 3972 | impl ::std::convert::From<Builder>
|
4838 3973 | for crate::constrained::MaybeConstrained<
|
4839 - | crate::input::ConstrainedHttpBoundShapesOperationInput,
|
3974 + | crate::input::ConstrainedRecursiveShapesOperationInput,
|
4840 3975 | >
|
4841 3976 | {
|
4842 3977 | fn from(builder: Builder) -> Self {
|
4843 3978 | Self::Unconstrained(builder)
|
4844 3979 | }
|
4845 3980 | }
|
4846 - | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedHttpBoundShapesOperationInput {
|
4847 - | type Error = ConstraintViolation;
|
4848 - |
|
4849 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4850 - | builder.build()
|
4851 - | }
|
4852 - | }
|
4853 - | /// A builder for [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
4854 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4855 - | pub(crate) struct Builder {
|
4856 - | pub(crate) length_string_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
4857 - | pub(crate) range_integer_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
4858 - | pub(crate) range_short_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
4859 - | pub(crate) range_long_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
4860 - | pub(crate) range_byte_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
4861 - | pub(crate) enum_string_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::EnumString>>,
|
4862 - | pub(crate) length_string_header_map: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>,
|
4863 - | pub(crate) length_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
4864 - | pub(crate) range_integer_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
4865 - | pub(crate) range_short_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
4866 - | pub(crate) range_long_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
4867 - | pub(crate) range_byte_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
4868 - | pub(crate) length_string_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>>,
|
4869 - | pub(crate) list_length_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>,
|
4870 - | pub(crate) length_list_pattern_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>>,
|
4871 - | pub(crate) length_set_pattern_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthSetOfPatternString>>,
|
4872 - | pub(crate) range_byte_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>>,
|
4873 - | pub(crate) range_short_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>>,
|
4874 - | pub(crate) range_integer_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>>,
|
4875 - | pub(crate) range_long_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>>,
|
4876 - | pub(crate) range_byte_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>,
|
4877 - | pub(crate) range_short_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>,
|
4878 - | pub(crate) range_integer_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>,
|
4879 - | pub(crate) range_long_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>,
|
4880 - | pub(crate) length_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
4881 - | pub(crate) range_byte_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
4882 - | pub(crate) range_short_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
4883 - | pub(crate) range_integer_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
4884 - | pub(crate) range_long_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
4885 - | pub(crate) enum_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::EnumString>>,
|
4886 - | pub(crate) length_string_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>,
|
4887 - | pub(crate) length_list_pattern_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>>,
|
4888 - | pub(crate) length_string_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>>,
|
4889 - | pub(crate) range_byte_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>,
|
4890 - | pub(crate) range_short_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>,
|
4891 - | pub(crate) range_integer_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>,
|
4892 - | pub(crate) range_long_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>,
|
4893 - | pub(crate) range_byte_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>>,
|
4894 - | pub(crate) range_short_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>>,
|
4895 - | pub(crate) range_integer_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>>,
|
4896 - | pub(crate) range_long_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>>,
|
4897 - | pub(crate) enum_string_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained>>,
|
4898 - | }
|
4899 - | impl Builder {
|
4900 - | #[allow(missing_docs)] // documentation missing in model
|
4901 - | pub(crate) fn set_length_string_label(
|
4902 - | mut self,
|
4903 - | input: impl ::std::convert::Into<
|
4904 - | crate::constrained::MaybeConstrained<crate::model::LengthString>,
|
4905 - | >,
|
4906 - | ) -> Self {
|
4907 - | self.length_string_label = Some(input.into());
|
4908 - | self
|
4909 - | }
|
4910 - | #[allow(missing_docs)] // documentation missing in model
|
4911 - | pub(crate) fn set_range_integer_label(
|
4912 - | mut self,
|
4913 - | input: impl ::std::convert::Into<
|
4914 - | crate::constrained::MaybeConstrained<crate::model::RangeInteger>,
|
4915 - | >,
|
4916 - | ) -> Self {
|
4917 - | self.range_integer_label = Some(input.into());
|
4918 - | self
|
4919 - | }
|
4920 - | #[allow(missing_docs)] // documentation missing in model
|
4921 - | pub(crate) fn set_range_short_label(
|
4922 - | mut self,
|
4923 - | input: impl ::std::convert::Into<
|
4924 - | crate::constrained::MaybeConstrained<crate::model::RangeShort>,
|
4925 - | >,
|
4926 - | ) -> Self {
|
4927 - | self.range_short_label = Some(input.into());
|
4928 - | self
|
4929 - | }
|
4930 - | #[allow(missing_docs)] // documentation missing in model
|
4931 - | pub(crate) fn set_range_long_label(
|
4932 - | mut self,
|
4933 - | input: impl ::std::convert::Into<
|
4934 - | crate::constrained::MaybeConstrained<crate::model::RangeLong>,
|
4935 - | >,
|
4936 - | ) -> Self {
|
4937 - | self.range_long_label = Some(input.into());
|
4938 - | self
|
4939 - | }
|
4940 - | #[allow(missing_docs)] // documentation missing in model
|
4941 - | pub(crate) fn set_range_byte_label(
|
4942 - | mut self,
|
4943 - | input: impl ::std::convert::Into<
|
4944 - | crate::constrained::MaybeConstrained<crate::model::RangeByte>,
|
4945 - | >,
|
4946 - | ) -> Self {
|
4947 - | self.range_byte_label = Some(input.into());
|
4948 - | self
|
4949 - | }
|
4950 - | #[allow(missing_docs)] // documentation missing in model
|
4951 - | pub(crate) fn set_enum_string_label(
|
4952 - | mut self,
|
4953 - | input: impl ::std::convert::Into<
|
4954 - | crate::constrained::MaybeConstrained<crate::model::EnumString>,
|
4955 - | >,
|
4956 - | ) -> Self {
|
4957 - | self.enum_string_label = Some(input.into());
|
4958 - | self
|
4959 - | }
|
4960 - | #[allow(missing_docs)] // documentation missing in model
|
4961 - | pub(crate) fn set_length_string_header_map(
|
4962 - | mut self,
|
4963 - | input: impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>,
|
4964 - | ) -> Self {
|
4965 - | self.length_string_header_map = Some(input.into());
|
4966 - | self
|
4967 - | }
|
4968 - | #[allow(missing_docs)] // documentation missing in model
|
4969 - | pub(crate) fn set_length_string_header(
|
4970 - | mut self,
|
4971 - | input: Option<
|
4972 - | impl ::std::convert::Into<
|
4973 - | crate::constrained::MaybeConstrained<crate::model::LengthString>,
|
4974 - | >,
|
4975 - | >,
|
4976 - | ) -> Self {
|
4977 - | self.length_string_header = input.map(|v| v.into());
|
4978 - | self
|
4979 - | }
|
4980 - | #[allow(missing_docs)] // documentation missing in model
|
4981 - | pub(crate) fn set_range_integer_header(
|
4982 - | mut self,
|
4983 - | input: impl ::std::convert::Into<
|
4984 - | crate::constrained::MaybeConstrained<crate::model::RangeInteger>,
|
4985 - | >,
|
4986 - | ) -> Self {
|
4987 - | self.range_integer_header = Some(input.into());
|
4988 - | self
|
4989 - | }
|
4990 - | #[allow(missing_docs)] // documentation missing in model
|
4991 - | pub(crate) fn set_range_short_header(
|
4992 - | mut self,
|
4993 - | input: impl ::std::convert::Into<
|
4994 - | crate::constrained::MaybeConstrained<crate::model::RangeShort>,
|
4995 - | >,
|
4996 - | ) -> Self {
|
4997 - | self.range_short_header = Some(input.into());
|
4998 - | self
|
4999 - | }
|
5000 - | #[allow(missing_docs)] // documentation missing in model
|
5001 - | pub(crate) fn set_range_long_header(
|
5002 - | mut self,
|
5003 - | input: impl ::std::convert::Into<
|
5004 - | crate::constrained::MaybeConstrained<crate::model::RangeLong>,
|
5005 - | >,
|
5006 - | ) -> Self {
|
5007 - | self.range_long_header = Some(input.into());
|
5008 - | self
|
5009 - | }
|
5010 - | #[allow(missing_docs)] // documentation missing in model
|
5011 - | pub(crate) fn set_range_byte_header(
|
5012 - | mut self,
|
5013 - | input: impl ::std::convert::Into<
|
5014 - | crate::constrained::MaybeConstrained<crate::model::RangeByte>,
|
5015 - | >,
|
5016 - | ) -> Self {
|
5017 - | self.range_byte_header = Some(input.into());
|
5018 - | self
|
5019 - | }
|
5020 - | #[allow(missing_docs)] // documentation missing in model
|
5021 - | pub(crate) fn set_length_string_set_header(
|
5022 - | mut self,
|
5023 - | input: Option<
|
5024 - | impl ::std::convert::Into<
|
5025 - | crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>,
|
5026 - | >,
|
5027 - | >,
|
5028 - | ) -> Self {
|
5029 - | self.length_string_set_header = input.map(|v| v.into());
|
5030 - | self
|
5031 - | }
|
5032 - | #[allow(missing_docs)] // documentation missing in model
|
5033 - | pub(crate) fn set_list_length_string_header(
|
5034 - | mut self,
|
5035 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>>,
|
5036 - | ) -> Self {
|
5037 - | self.list_length_string_header = input.map(|v| v.into());
|
5038 - | self
|
3981 + | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedRecursiveShapesOperationInput {
|
3982 + | type Error = ConstraintViolation;
|
3983 + |
|
3984 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3985 + | builder.build()
|
5039 3986 | }
|
5040 - | #[allow(missing_docs)] // documentation missing in model
|
5041 - | pub(crate) fn set_length_list_pattern_string_header(
|
5042 - | mut self,
|
5043 - | input: Option<
|
5044 - | impl ::std::convert::Into<
|
5045 - | crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>,
|
5046 - | >,
|
5047 - | >,
|
5048 - | ) -> Self {
|
5049 - | self.length_list_pattern_string_header = input.map(|v| v.into());
|
5050 - | self
|
5051 3987 | }
|
5052 - | #[allow(missing_docs)] // documentation missing in model
|
5053 - | pub(crate) fn set_length_set_pattern_string_header(
|
5054 - | mut self,
|
5055 - | input: Option<
|
5056 - | impl ::std::convert::Into<
|
5057 - | crate::constrained::MaybeConstrained<crate::model::LengthSetOfPatternString>,
|
5058 - | >,
|
3988 + | /// A builder for [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
3989 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3990 + | pub(crate) struct Builder {
|
3991 + | pub(crate) nested: ::std::option::Option<
|
3992 + | crate::constrained::MaybeConstrained<crate::model::RecursiveShapesInputOutputNested1>,
|
5059 3993 | >,
|
5060 - | ) -> Self {
|
5061 - | self.length_set_pattern_string_header = input.map(|v| v.into());
|
5062 - | self
|
5063 - | }
|
5064 - | #[allow(missing_docs)] // documentation missing in model
|
5065 - | pub(crate) fn set_range_byte_set_header(
|
5066 - | mut self,
|
5067 - | input: Option<
|
5068 - | impl ::std::convert::Into<
|
5069 - | crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>,
|
3994 + | pub(crate) recursive_list: ::std::option::Option<
|
3995 + | crate::constrained::MaybeConstrained<
|
3996 + | crate::constrained::recursive_list_constrained::RecursiveListConstrained,
|
5070 3997 | >,
|
5071 3998 | >,
|
5072 - | ) -> Self {
|
5073 - | self.range_byte_set_header = input.map(|v| v.into());
|
5074 - | self
|
5075 3999 | }
|
4000 + | impl Builder {
|
5076 4001 | #[allow(missing_docs)] // documentation missing in model
|
5077 - | pub(crate) fn set_range_short_set_header(
|
4002 + | pub(crate) fn set_nested(
|
5078 4003 | mut self,
|
5079 4004 | input: Option<
|
5080 4005 | impl ::std::convert::Into<
|
5081 - | crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>,
|
5082 - | >,
|
4006 + | crate::constrained::MaybeConstrained<
|
4007 + | crate::model::RecursiveShapesInputOutputNested1,
|
5083 4008 | >,
|
5084 - | ) -> Self {
|
5085 - | self.range_short_set_header = input.map(|v| v.into());
|
5086 - | self
|
5087 - | }
|
5088 - | #[allow(missing_docs)] // documentation missing in model
|
5089 - | pub(crate) fn set_range_integer_set_header(
|
5090 - | mut self,
|
5091 - | input: Option<
|
5092 - | impl ::std::convert::Into<
|
5093 - | crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>,
|
5094 4009 | >,
|
5095 4010 | >,
|
5096 4011 | ) -> Self {
|
5097 - | self.range_integer_set_header = input.map(|v| v.into());
|
4012 + | self.nested = input.map(|v| v.into());
|
5098 4013 | self
|
5099 4014 | }
|
5100 4015 | #[allow(missing_docs)] // documentation missing in model
|
5101 - | pub(crate) fn set_range_long_set_header(
|
4016 + | pub(crate) fn set_recursive_list(
|
5102 4017 | mut self,
|
5103 - | input: Option<
|
5104 - | impl ::std::convert::Into<
|
5105 - | crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>,
|
4018 + | input: impl ::std::convert::Into<
|
4019 + | crate::constrained::MaybeConstrained<
|
4020 + | crate::constrained::recursive_list_constrained::RecursiveListConstrained,
|
5106 4021 | >,
|
5107 4022 | >,
|
5108 4023 | ) -> Self {
|
5109 - | self.range_long_set_header = input.map(|v| v.into());
|
4024 + | self.recursive_list = Some(input.into());
|
5110 4025 | self
|
5111 4026 | }
|
5112 - | #[allow(missing_docs)] // documentation missing in model
|
5113 - | pub(crate) fn set_range_byte_list_header(
|
5114 - | mut self,
|
5115 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>>,
|
5116 - | ) -> Self {
|
5117 - | self.range_byte_list_header = input.map(|v| v.into());
|
5118 - | self
|
4027 + | /// Consumes the builder and constructs a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
4028 + | ///
|
4029 + | /// The builder fails to construct a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput) if a [`ConstraintViolation`] occurs.
|
4030 + | ///
|
4031 + | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
4032 + | pub fn build(
|
4033 + | self,
|
4034 + | ) -> Result<crate::input::ConstrainedRecursiveShapesOperationInput, ConstraintViolation>
|
4035 + | {
|
4036 + | self.build_enforcing_all_constraints()
|
4037 + | }
|
4038 + | fn build_enforcing_all_constraints(
|
4039 + | self,
|
4040 + | ) -> Result<crate::input::ConstrainedRecursiveShapesOperationInput, ConstraintViolation>
|
4041 + | {
|
4042 + | Ok(crate::input::ConstrainedRecursiveShapesOperationInput {
|
4043 + | nested: self
|
4044 + | .nested
|
4045 + | .map(|v| match v {
|
4046 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4047 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4048 + | })
|
4049 + | .map(|res| res.map_err(ConstraintViolation::Nested))
|
4050 + | .transpose()?,
|
4051 + | recursive_list: self
|
4052 + | .recursive_list
|
4053 + | .map(|v| match v {
|
4054 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4055 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4056 + | })
|
4057 + | .map(|res| {
|
4058 + | res.map(|v| v.into())
|
4059 + | .map_err(ConstraintViolation::RecursiveList)
|
4060 + | })
|
4061 + | .transpose()?
|
4062 + | .ok_or(ConstraintViolation::MissingRecursiveList)?,
|
4063 + | })
|
4064 + | }
|
4065 + | }
|
4066 + | }
|
4067 + | /// See [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
4068 + | pub mod constrained_recursive_shapes_operation_input {
|
4069 + |
|
4070 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4071 + | /// Holds one variant for each of the ways the builder can fail.
|
4072 + | #[allow(clippy::enum_variant_names)]
|
4073 + | pub enum ConstraintViolation {
|
4074 + | /// `recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`.
|
4075 + | MissingRecursiveList,
|
4076 + | }
|
4077 + | impl ::std::fmt::Display for ConstraintViolation {
|
4078 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4079 + | match self {
|
4080 + | ConstraintViolation::MissingRecursiveList => write!(f, "`recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`"),
|
4081 + | }
|
4082 + | }
|
4083 + | }
|
4084 + | impl ::std::error::Error for ConstraintViolation {}
|
4085 + | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedRecursiveShapesOperationInput {
|
4086 + | type Error = ConstraintViolation;
|
4087 + |
|
4088 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4089 + | builder.build()
|
4090 + | }
|
5119 4091 | }
|
4092 + | /// A builder for [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
4093 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4094 + | pub struct Builder {
|
4095 + | pub(crate) nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
4096 + | pub(crate) recursive_list:
|
4097 + | ::std::option::Option<::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>>,
|
4098 + | }
|
4099 + | impl Builder {
|
5120 4100 | #[allow(missing_docs)] // documentation missing in model
|
5121 - | pub(crate) fn set_range_short_list_header(
|
4101 + | pub fn nested(
|
5122 4102 | mut self,
|
5123 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>>,
|
4103 + | input: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
5124 4104 | ) -> Self {
|
5125 - | self.range_short_list_header = input.map(|v| v.into());
|
4105 + | self.nested = input;
|
5126 4106 | self
|
5127 4107 | }
|
5128 4108 | #[allow(missing_docs)] // documentation missing in model
|
5129 - | pub(crate) fn set_range_integer_list_header(
|
4109 + | pub fn recursive_list(
|
5130 4110 | mut self,
|
5131 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>>,
|
4111 + | input: ::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>,
|
5132 4112 | ) -> Self {
|
5133 - | self.range_integer_list_header = input.map(|v| v.into());
|
4113 + | self.recursive_list = Some(input);
|
5134 4114 | self
|
5135 4115 | }
|
5136 - | #[allow(missing_docs)] // documentation missing in model
|
5137 - | pub(crate) fn set_range_long_list_header(
|
5138 - | mut self,
|
5139 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>>,
|
5140 - | ) -> Self {
|
5141 - | self.range_long_list_header = input.map(|v| v.into());
|
5142 - | self
|
4116 + | /// Consumes the builder and constructs a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
4117 + | ///
|
4118 + | /// The builder fails to construct a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput) if you do not provide a value for all non-`Option`al members.
|
4119 + | ///
|
4120 + | pub fn build(
|
4121 + | self,
|
4122 + | ) -> Result<crate::input::ConstrainedRecursiveShapesOperationInput, ConstraintViolation>
|
4123 + | {
|
4124 + | self.build_enforcing_required_and_enum_traits()
|
4125 + | }
|
4126 + | fn build_enforcing_required_and_enum_traits(
|
4127 + | self,
|
4128 + | ) -> Result<crate::input::ConstrainedRecursiveShapesOperationInput, ConstraintViolation>
|
4129 + | {
|
4130 + | Ok(crate::input::ConstrainedRecursiveShapesOperationInput {
|
4131 + | nested: self.nested,
|
4132 + | recursive_list: self
|
4133 + | .recursive_list
|
4134 + | .ok_or(ConstraintViolation::MissingRecursiveList)?,
|
4135 + | })
|
4136 + | }
|
4137 + | }
|
4138 + | }
|
4139 + | /// See [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
4140 + | pub(crate) mod query_params_targeting_length_map_operation_input_internal {
|
4141 + |
|
4142 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4143 + | /// Holds one variant for each of the ways the builder can fail.
|
4144 + | #[non_exhaustive]
|
4145 + | #[allow(clippy::enum_variant_names)]
|
4146 + | pub(crate) enum ConstraintViolation {
|
4147 + | /// Constraint violation occurred building member `length_map` when building `QueryParamsTargetingLengthMapOperationInput`.
|
4148 + | #[doc(hidden)]
|
4149 + | LengthMap(crate::model::con_b_map_internal::ConstraintViolation),
|
4150 + | }
|
4151 + | impl ::std::fmt::Display for ConstraintViolation {
|
4152 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4153 + | match self {
|
4154 + | ConstraintViolation::LengthMap(_) => write!(f, "constraint violation occurred building member `length_map` when building `QueryParamsTargetingLengthMapOperationInput`"),
|
4155 + | }
|
4156 + | }
|
4157 + | }
|
4158 + | impl ::std::error::Error for ConstraintViolation {}
|
4159 + | impl ConstraintViolation {
|
4160 + | pub(crate) fn as_validation_exception_field(
|
4161 + | self,
|
4162 + | path: ::std::string::String,
|
4163 + | ) -> crate::model::ValidationExceptionField {
|
4164 + | match self {
|
4165 + | ConstraintViolation::LengthMap(inner) => {
|
4166 + | inner.as_validation_exception_field(path + "/lengthMap")
|
4167 + | }
|
4168 + | }
|
4169 + | }
|
4170 + | }
|
4171 + | impl ::std::convert::From<ConstraintViolation>
|
4172 + | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4173 + | {
|
4174 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4175 + | let first_validation_exception_field =
|
4176 + | constraint_violation.as_validation_exception_field("".to_owned());
|
4177 + | let validation_exception = crate::error::ValidationException {
|
4178 + | message: format!(
|
4179 + | "1 validation error detected. {}",
|
4180 + | &first_validation_exception_field.message
|
4181 + | ),
|
4182 + | field_list: Some(vec![first_validation_exception_field]),
|
4183 + | };
|
4184 + | Self::ConstraintViolation(
|
4185 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4186 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4187 + | )
|
4188 + | }
|
4189 + | }
|
4190 + | impl ::std::convert::From<Builder>
|
4191 + | for crate::constrained::MaybeConstrained<
|
4192 + | crate::input::QueryParamsTargetingLengthMapOperationInput,
|
4193 + | >
|
4194 + | {
|
4195 + | fn from(builder: Builder) -> Self {
|
4196 + | Self::Unconstrained(builder)
|
4197 + | }
|
4198 + | }
|
4199 + | impl ::std::convert::TryFrom<Builder>
|
4200 + | for crate::input::QueryParamsTargetingLengthMapOperationInput
|
4201 + | {
|
4202 + | type Error = ConstraintViolation;
|
4203 + |
|
4204 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4205 + | builder.build()
|
4206 + | }
|
4207 + | }
|
4208 + | /// A builder for [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
4209 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4210 + | pub(crate) struct Builder {
|
4211 + | pub(crate) length_map:
|
4212 + | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
5143 4213 | }
|
4214 + | impl Builder {
|
5144 4215 | #[allow(missing_docs)] // documentation missing in model
|
5145 - | pub(crate) fn set_length_string_query(
|
4216 + | pub(crate) fn set_length_map(
|
5146 4217 | mut self,
|
5147 4218 | input: Option<
|
5148 - | impl ::std::convert::Into<
|
5149 - | crate::constrained::MaybeConstrained<crate::model::LengthString>,
|
5150 - | >,
|
4219 + | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
5151 4220 | >,
|
5152 4221 | ) -> Self {
|
5153 - | self.length_string_query = input.map(|v| v.into());
|
4222 + | self.length_map = input.map(|v| v.into());
|
5154 4223 | self
|
5155 4224 | }
|
5156 - | #[allow(missing_docs)] // documentation missing in model
|
5157 - | pub(crate) fn set_range_byte_query(
|
5158 - | mut self,
|
5159 - | input: impl ::std::convert::Into<
|
5160 - | crate::constrained::MaybeConstrained<crate::model::RangeByte>,
|
5161 - | >,
|
5162 - | ) -> Self {
|
5163 - | self.range_byte_query = Some(input.into());
|
5164 - | self
|
4225 + | /// Consumes the builder and constructs a [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
4226 + | ///
|
4227 + | /// The builder fails to construct a [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput) if a [`ConstraintViolation`] occurs.
|
4228 + | ///
|
4229 + | pub fn build(
|
4230 + | self,
|
4231 + | ) -> Result<crate::input::QueryParamsTargetingLengthMapOperationInput, ConstraintViolation>
|
4232 + | {
|
4233 + | self.build_enforcing_all_constraints()
|
5165 4234 | }
|
5166 - | #[allow(missing_docs)] // documentation missing in model
|
5167 - | pub(crate) fn set_range_short_query(
|
5168 - | mut self,
|
5169 - | input: impl ::std::convert::Into<
|
5170 - | crate::constrained::MaybeConstrained<crate::model::RangeShort>,
|
5171 - | >,
|
5172 - | ) -> Self {
|
5173 - | self.range_short_query = Some(input.into());
|
5174 - | self
|
4235 + | fn build_enforcing_all_constraints(
|
4236 + | self,
|
4237 + | ) -> Result<crate::input::QueryParamsTargetingLengthMapOperationInput, ConstraintViolation>
|
4238 + | {
|
4239 + | Ok(crate::input::QueryParamsTargetingLengthMapOperationInput {
|
4240 + | length_map: self
|
4241 + | .length_map
|
4242 + | .map(|v| match v {
|
4243 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4244 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4245 + | })
|
4246 + | .map(|res| res.map_err(ConstraintViolation::LengthMap))
|
4247 + | .transpose()?
|
4248 + | .map(|v: crate::model::ConBMap| v.into()),
|
4249 + | })
|
5175 4250 | }
|
5176 - | #[allow(missing_docs)] // documentation missing in model
|
5177 - | pub(crate) fn set_range_integer_query(
|
5178 - | mut self,
|
5179 - | input: impl ::std::convert::Into<
|
5180 - | crate::constrained::MaybeConstrained<crate::model::RangeInteger>,
|
5181 - | >,
|
5182 - | ) -> Self {
|
5183 - | self.range_integer_query = Some(input.into());
|
5184 - | self
|
5185 4251 | }
|
5186 - | #[allow(missing_docs)] // documentation missing in model
|
5187 - | pub(crate) fn set_range_long_query(
|
5188 - | mut self,
|
5189 - | input: impl ::std::convert::Into<
|
5190 - | crate::constrained::MaybeConstrained<crate::model::RangeLong>,
|
4252 + | }
|
4253 + | /// See [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
4254 + | pub mod query_params_targeting_length_map_operation_input {
|
4255 + |
|
4256 + | impl ::std::convert::From<Builder> for crate::input::QueryParamsTargetingLengthMapOperationInput {
|
4257 + | fn from(builder: Builder) -> Self {
|
4258 + | builder.build()
|
4259 + | }
|
4260 + | }
|
4261 + | /// A builder for [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
4262 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4263 + | pub struct Builder {
|
4264 + | pub(crate) length_map: ::std::option::Option<
|
4265 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
5191 4266 | >,
|
5192 - | ) -> Self {
|
5193 - | self.range_long_query = Some(input.into());
|
5194 - | self
|
5195 4267 | }
|
4268 + | impl Builder {
|
5196 4269 | #[allow(missing_docs)] // documentation missing in model
|
5197 - | pub(crate) fn set_enum_string_query(
|
4270 + | pub fn length_map(
|
5198 4271 | mut self,
|
5199 - | input: Option<
|
5200 - | impl ::std::convert::Into<
|
5201 - | crate::constrained::MaybeConstrained<crate::model::EnumString>,
|
5202 - | >,
|
4272 + | input: ::std::option::Option<
|
4273 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
5203 4274 | >,
|
5204 4275 | ) -> Self {
|
5205 - | self.enum_string_query = input.map(|v| v.into());
|
4276 + | self.length_map = input;
|
5206 4277 | self
|
5207 4278 | }
|
5208 - | #[allow(missing_docs)] // documentation missing in model
|
5209 - | pub(crate) fn set_length_string_list_query(
|
5210 - | mut self,
|
5211 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>>,
|
5212 - | ) -> Self {
|
5213 - | self.length_string_list_query = input.map(|v| v.into());
|
5214 - | self
|
4279 + | /// Consumes the builder and constructs a [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
4280 + | pub fn build(self) -> crate::input::QueryParamsTargetingLengthMapOperationInput {
|
4281 + | self.build_enforcing_required_and_enum_traits()
|
5215 4282 | }
|
5216 - | #[allow(missing_docs)] // documentation missing in model
|
5217 - | pub(crate) fn set_length_list_pattern_string_query(
|
5218 - | mut self,
|
5219 - | input: Option<
|
5220 - | impl ::std::convert::Into<
|
5221 - | crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>,
|
5222 - | >,
|
5223 - | >,
|
5224 - | ) -> Self {
|
5225 - | self.length_list_pattern_string_query = input.map(|v| v.into());
|
5226 - | self
|
4283 + | fn build_enforcing_required_and_enum_traits(
|
4284 + | self,
|
4285 + | ) -> crate::input::QueryParamsTargetingLengthMapOperationInput {
|
4286 + | crate::input::QueryParamsTargetingLengthMapOperationInput {
|
4287 + | length_map: self.length_map,
|
5227 4288 | }
|
5228 - | #[allow(missing_docs)] // documentation missing in model
|
5229 - | pub(crate) fn set_length_string_set_query(
|
5230 - | mut self,
|
5231 - | input: Option<
|
5232 - | impl ::std::convert::Into<
|
5233 - | crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>,
|
5234 - | >,
|
5235 - | >,
|
5236 - | ) -> Self {
|
5237 - | self.length_string_set_query = input.map(|v| v.into());
|
5238 - | self
|
5239 4289 | }
|
5240 - | #[allow(missing_docs)] // documentation missing in model
|
5241 - | pub(crate) fn set_range_byte_list_query(
|
5242 - | mut self,
|
5243 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>>,
|
5244 - | ) -> Self {
|
5245 - | self.range_byte_list_query = input.map(|v| v.into());
|
5246 - | self
|
5247 4290 | }
|
5248 - | #[allow(missing_docs)] // documentation missing in model
|
5249 - | pub(crate) fn set_range_short_list_query(
|
5250 - | mut self,
|
5251 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>>,
|
5252 - | ) -> Self {
|
5253 - | self.range_short_list_query = input.map(|v| v.into());
|
5254 - | self
|
4291 + | }
|
4292 + | /// See [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
4293 + | pub(crate) mod query_params_targeting_map_of_length_string_operation_input_internal {
|
4294 + |
|
4295 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4296 + | /// Holds one variant for each of the ways the builder can fail.
|
4297 + | #[non_exhaustive]
|
4298 + | #[allow(clippy::enum_variant_names)]
|
4299 + | pub(crate) enum ConstraintViolation {
|
4300 + | /// Constraint violation occurred building member `map_of_length_string` when building `QueryParamsTargetingMapOfLengthStringOperationInput`.
|
4301 + | #[doc(hidden)]
|
4302 + | MapOfLengthString(crate::model::map_of_length_string_internal::ConstraintViolation),
|
5255 4303 | }
|
5256 - | #[allow(missing_docs)] // documentation missing in model
|
5257 - | pub(crate) fn set_range_integer_list_query(
|
5258 - | mut self,
|
5259 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>>,
|
5260 - | ) -> Self {
|
5261 - | self.range_integer_list_query = input.map(|v| v.into());
|
5262 - | self
|
4304 + | impl ::std::fmt::Display for ConstraintViolation {
|
4305 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4306 + | match self {
|
4307 + | ConstraintViolation::MapOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_length_string` when building `QueryParamsTargetingMapOfLengthStringOperationInput`"),
|
5263 4308 | }
|
5264 - | #[allow(missing_docs)] // documentation missing in model
|
5265 - | pub(crate) fn set_range_long_list_query(
|
5266 - | mut self,
|
5267 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>>,
|
5268 - | ) -> Self {
|
5269 - | self.range_long_list_query = input.map(|v| v.into());
|
5270 - | self
|
5271 4309 | }
|
5272 - | #[allow(missing_docs)] // documentation missing in model
|
5273 - | pub(crate) fn set_range_byte_set_query(
|
5274 - | mut self,
|
5275 - | input: Option<
|
5276 - | impl ::std::convert::Into<
|
5277 - | crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>,
|
5278 - | >,
|
5279 - | >,
|
5280 - | ) -> Self {
|
5281 - | self.range_byte_set_query = input.map(|v| v.into());
|
5282 - | self
|
5283 4310 | }
|
5284 - | #[allow(missing_docs)] // documentation missing in model
|
5285 - | pub(crate) fn set_range_short_set_query(
|
5286 - | mut self,
|
5287 - | input: Option<
|
5288 - | impl ::std::convert::Into<
|
5289 - | crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>,
|
5290 - | >,
|
5291 - | >,
|
5292 - | ) -> Self {
|
5293 - | self.range_short_set_query = input.map(|v| v.into());
|
5294 - | self
|
4311 + | impl ::std::error::Error for ConstraintViolation {}
|
4312 + | impl ConstraintViolation {
|
4313 + | pub(crate) fn as_validation_exception_field(
|
4314 + | self,
|
4315 + | path: ::std::string::String,
|
4316 + | ) -> crate::model::ValidationExceptionField {
|
4317 + | match self {
|
4318 + | ConstraintViolation::MapOfLengthString(inner) => {
|
4319 + | inner.as_validation_exception_field(path + "/mapOfLengthString")
|
4320 + | }
|
4321 + | }
|
4322 + | }
|
4323 + | }
|
4324 + | impl ::std::convert::From<ConstraintViolation>
|
4325 + | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4326 + | {
|
4327 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4328 + | let first_validation_exception_field =
|
4329 + | constraint_violation.as_validation_exception_field("".to_owned());
|
4330 + | let validation_exception = crate::error::ValidationException {
|
4331 + | message: format!(
|
4332 + | "1 validation error detected. {}",
|
4333 + | &first_validation_exception_field.message
|
4334 + | ),
|
4335 + | field_list: Some(vec![first_validation_exception_field]),
|
4336 + | };
|
4337 + | Self::ConstraintViolation(
|
4338 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4339 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4340 + | )
|
4341 + | }
|
4342 + | }
|
4343 + | impl ::std::convert::From<Builder>
|
4344 + | for crate::constrained::MaybeConstrained<
|
4345 + | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput,
|
4346 + | >
|
4347 + | {
|
4348 + | fn from(builder: Builder) -> Self {
|
4349 + | Self::Unconstrained(builder)
|
4350 + | }
|
4351 + | }
|
4352 + | impl ::std::convert::TryFrom<Builder>
|
4353 + | for crate::input::QueryParamsTargetingMapOfLengthStringOperationInput
|
4354 + | {
|
4355 + | type Error = ConstraintViolation;
|
4356 + |
|
4357 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4358 + | builder.build()
|
5295 4359 | }
|
5296 - | #[allow(missing_docs)] // documentation missing in model
|
5297 - | pub(crate) fn set_range_integer_set_query(
|
5298 - | mut self,
|
5299 - | input: Option<
|
5300 - | impl ::std::convert::Into<
|
5301 - | crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>,
|
5302 - | >,
|
5303 - | >,
|
5304 - | ) -> Self {
|
5305 - | self.range_integer_set_query = input.map(|v| v.into());
|
5306 - | self
|
5307 4360 | }
|
5308 - | #[allow(missing_docs)] // documentation missing in model
|
5309 - | pub(crate) fn set_range_long_set_query(
|
5310 - | mut self,
|
5311 - | input: Option<
|
5312 - | impl ::std::convert::Into<
|
5313 - | crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>,
|
4361 + | /// A builder for [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
4362 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4363 + | pub(crate) struct Builder {
|
4364 + | pub(crate) map_of_length_string: ::std::option::Option<
|
4365 + | crate::constrained::MaybeConstrained<
|
4366 + | crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained,
|
5314 4367 | >,
|
5315 4368 | >,
|
5316 - | ) -> Self {
|
5317 - | self.range_long_set_query = input.map(|v| v.into());
|
5318 - | self
|
5319 4369 | }
|
4370 + | impl Builder {
|
5320 4371 | #[allow(missing_docs)] // documentation missing in model
|
5321 - | pub(crate) fn set_enum_string_list_query(
|
4372 + | pub(crate) fn set_map_of_length_string(
|
5322 4373 | mut self,
|
5323 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained>>>,
|
4374 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>>,
|
5324 4375 | ) -> Self {
|
5325 - | self.enum_string_list_query = input.map(|v| v.into());
|
4376 + | self.map_of_length_string = input.map(|v| v.into());
|
5326 4377 | self
|
5327 4378 | }
|
5328 - | /// Consumes the builder and constructs a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
4379 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
5329 4380 | ///
|
5330 - | /// The builder fails to construct a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput) if a [`ConstraintViolation`] occurs.
|
4381 + | /// The builder fails to construct a [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput) if a [`ConstraintViolation`] occurs.
|
5331 4382 | ///
|
5332 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
5333 4383 | pub fn build(
|
5334 4384 | self,
|
5335 - | ) -> Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ConstraintViolation>
|
5336 - | {
|
4385 + | ) -> Result<
|
4386 + | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput,
|
4387 + | ConstraintViolation,
|
4388 + | > {
|
5337 4389 | self.build_enforcing_all_constraints()
|
5338 4390 | }
|
5339 - | fn build_enforcing_all_constraints(
|
5340 - | self,
|
5341 - | ) -> Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ConstraintViolation>
|
5342 - | {
|
5343 - | Ok(crate::input::ConstrainedHttpBoundShapesOperationInput {
|
5344 - | length_string_label: self
|
5345 - | .length_string_label
|
5346 - | .map(|v| match v {
|
5347 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5348 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5349 - | })
|
5350 - | .map(|res| res.map_err(ConstraintViolation::LengthStringLabel))
|
5351 - | .transpose()?
|
5352 - | .map(|v: crate::model::LengthString| v.into())
|
5353 - | .ok_or(ConstraintViolation::MissingLengthStringLabel)?,
|
5354 - | range_integer_label: self
|
5355 - | .range_integer_label
|
5356 - | .map(|v| match v {
|
5357 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5358 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5359 - | })
|
5360 - | .map(|res| res.map_err(ConstraintViolation::RangeIntegerLabel))
|
5361 - | .transpose()?
|
5362 - | .map(|v: crate::model::RangeInteger| v.into())
|
5363 - | .unwrap_or(0i32),
|
5364 - | range_short_label: self
|
5365 - | .range_short_label
|
5366 - | .map(|v| match v {
|
5367 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5368 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5369 - | })
|
5370 - | .map(|res| res.map_err(ConstraintViolation::RangeShortLabel))
|
5371 - | .transpose()?
|
5372 - | .map(|v: crate::model::RangeShort| v.into())
|
5373 - | .unwrap_or(0i16),
|
5374 - | range_long_label: self
|
5375 - | .range_long_label
|
5376 - | .map(|v| match v {
|
5377 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5378 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5379 - | })
|
5380 - | .map(|res| res.map_err(ConstraintViolation::RangeLongLabel))
|
5381 - | .transpose()?
|
5382 - | .map(|v: crate::model::RangeLong| v.into())
|
5383 - | .unwrap_or(0i64),
|
5384 - | range_byte_label: self
|
5385 - | .range_byte_label
|
5386 - | .map(|v| match v {
|
5387 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5388 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5389 - | })
|
5390 - | .map(|res| res.map_err(ConstraintViolation::RangeByteLabel))
|
5391 - | .transpose()?
|
5392 - | .map(|v: crate::model::RangeByte| v.into())
|
5393 - | .unwrap_or(0i8),
|
5394 - | enum_string_label: self
|
5395 - | .enum_string_label
|
5396 - | .map(|v| match v {
|
5397 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5398 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5399 - | })
|
5400 - | .map(|res| res.map_err(ConstraintViolation::EnumStringLabel))
|
5401 - | .transpose()?
|
5402 - | .ok_or(ConstraintViolation::MissingEnumStringLabel)?,
|
5403 - | length_string_header_map: self
|
5404 - | .length_string_header_map
|
5405 - | .map(|v| match v {
|
5406 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5407 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5408 - | })
|
5409 - | .map(|res| {
|
5410 - | res.map(|v| v.into())
|
5411 - | .map_err(ConstraintViolation::LengthStringHeaderMap)
|
5412 - | })
|
5413 - | .transpose()?
|
5414 - | .ok_or(ConstraintViolation::MissingLengthStringHeaderMap)?,
|
5415 - | length_string_header: self
|
5416 - | .length_string_header
|
5417 - | .map(|v| match v {
|
5418 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5419 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5420 - | })
|
5421 - | .map(|res| res.map_err(ConstraintViolation::LengthStringHeader))
|
5422 - | .transpose()?
|
5423 - | .map(|v: crate::model::LengthString| v.into()),
|
5424 - | range_integer_header: self
|
5425 - | .range_integer_header
|
5426 - | .map(|v| match v {
|
5427 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5428 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5429 - | })
|
5430 - | .map(|res| res.map_err(ConstraintViolation::RangeIntegerHeader))
|
5431 - | .transpose()?
|
5432 - | .map(|v: crate::model::RangeInteger| v.into())
|
5433 - | .unwrap_or(0i32),
|
5434 - | range_short_header: self
|
5435 - | .range_short_header
|
5436 - | .map(|v| match v {
|
5437 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5438 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5439 - | })
|
5440 - | .map(|res| res.map_err(ConstraintViolation::RangeShortHeader))
|
5441 - | .transpose()?
|
5442 - | .map(|v: crate::model::RangeShort| v.into())
|
5443 - | .unwrap_or(0i16),
|
5444 - | range_long_header: self
|
5445 - | .range_long_header
|
5446 - | .map(|v| match v {
|
5447 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5448 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5449 - | })
|
5450 - | .map(|res| res.map_err(ConstraintViolation::RangeLongHeader))
|
5451 - | .transpose()?
|
5452 - | .map(|v: crate::model::RangeLong| v.into())
|
5453 - | .unwrap_or(0i64),
|
5454 - | range_byte_header: self
|
5455 - | .range_byte_header
|
5456 - | .map(|v| match v {
|
5457 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5458 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5459 - | })
|
5460 - | .map(|res| res.map_err(ConstraintViolation::RangeByteHeader))
|
5461 - | .transpose()?
|
5462 - | .map(|v: crate::model::RangeByte| v.into())
|
5463 - | .unwrap_or(0i8),
|
5464 - | length_string_set_header: self
|
5465 - | .length_string_set_header
|
5466 - | .map(|v| match v {
|
5467 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5468 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5469 - | })
|
5470 - | .map(|res| res.map_err(ConstraintViolation::LengthStringSetHeader))
|
5471 - | .transpose()?
|
5472 - | .map(|v: crate::model::SetOfLengthString| v.into()),
|
5473 - | list_length_string_header: self
|
5474 - | .list_length_string_header
|
5475 - | .map(|v| match v {
|
5476 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5477 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5478 - | })
|
5479 - | .map(|res| {
|
5480 - | res.map(|v| v.into())
|
5481 - | .map_err(ConstraintViolation::ListLengthStringHeader)
|
5482 - | })
|
5483 - | .transpose()?,
|
5484 - | length_list_pattern_string_header: self
|
5485 - | .length_list_pattern_string_header
|
5486 - | .map(|v| match v {
|
5487 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5488 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5489 - | })
|
5490 - | .map(|res| res.map_err(ConstraintViolation::LengthListPatternStringHeader))
|
5491 - | .transpose()?
|
5492 - | .map(|v: crate::model::LengthListOfPatternString| v.into()),
|
5493 - | length_set_pattern_string_header: self
|
5494 - | .length_set_pattern_string_header
|
5495 - | .map(|v| match v {
|
5496 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5497 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5498 - | })
|
5499 - | .map(|res| res.map_err(ConstraintViolation::LengthSetPatternStringHeader))
|
5500 - | .transpose()?
|
5501 - | .map(|v: crate::model::LengthSetOfPatternString| v.into()),
|
5502 - | range_byte_set_header: self
|
5503 - | .range_byte_set_header
|
5504 - | .map(|v| match v {
|
5505 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5506 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5507 - | })
|
5508 - | .map(|res| res.map_err(ConstraintViolation::RangeByteSetHeader))
|
5509 - | .transpose()?
|
5510 - | .map(|v: crate::model::SetOfRangeByte| v.into()),
|
5511 - | range_short_set_header: self
|
5512 - | .range_short_set_header
|
5513 - | .map(|v| match v {
|
5514 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5515 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5516 - | })
|
5517 - | .map(|res| res.map_err(ConstraintViolation::RangeShortSetHeader))
|
5518 - | .transpose()?
|
5519 - | .map(|v: crate::model::SetOfRangeShort| v.into()),
|
5520 - | range_integer_set_header: self
|
5521 - | .range_integer_set_header
|
5522 - | .map(|v| match v {
|
5523 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5524 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5525 - | })
|
5526 - | .map(|res| res.map_err(ConstraintViolation::RangeIntegerSetHeader))
|
5527 - | .transpose()?
|
5528 - | .map(|v: crate::model::SetOfRangeInteger| v.into()),
|
5529 - | range_long_set_header: self
|
5530 - | .range_long_set_header
|
5531 - | .map(|v| match v {
|
5532 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5533 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5534 - | })
|
5535 - | .map(|res| res.map_err(ConstraintViolation::RangeLongSetHeader))
|
5536 - | .transpose()?
|
5537 - | .map(|v: crate::model::SetOfRangeLong| v.into()),
|
5538 - | range_byte_list_header: self
|
5539 - | .range_byte_list_header
|
5540 - | .map(|v| match v {
|
5541 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5542 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5543 - | })
|
5544 - | .map(|res| {
|
5545 - | res.map(|v| v.into())
|
5546 - | .map_err(ConstraintViolation::RangeByteListHeader)
|
5547 - | })
|
5548 - | .transpose()?,
|
5549 - | range_short_list_header: self
|
5550 - | .range_short_list_header
|
4391 + | fn build_enforcing_all_constraints(
|
4392 + | self,
|
4393 + | ) -> Result<
|
4394 + | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput,
|
4395 + | ConstraintViolation,
|
4396 + | > {
|
4397 + | Ok(
|
4398 + | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput {
|
4399 + | map_of_length_string: self
|
4400 + | .map_of_length_string
|
5551 4401 | .map(|v| match v {
|
5552 4402 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5553 4403 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5554 4404 | })
|
5555 4405 | .map(|res| {
|
5556 4406 | res.map(|v| v.into())
|
5557 - | .map_err(ConstraintViolation::RangeShortListHeader)
|
4407 + | .map_err(ConstraintViolation::MapOfLengthString)
|
5558 4408 | })
|
5559 4409 | .transpose()?,
|
5560 - | range_integer_list_header: self
|
5561 - | .range_integer_list_header
|
4410 + | },
|
4411 + | )
|
4412 + | }
|
4413 + | }
|
4414 + | }
|
4415 + | /// See [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
4416 + | pub mod query_params_targeting_map_of_length_string_operation_input {
|
4417 + |
|
4418 + | impl ::std::convert::From<Builder>
|
4419 + | for crate::input::QueryParamsTargetingMapOfLengthStringOperationInput
|
4420 + | {
|
4421 + | fn from(builder: Builder) -> Self {
|
4422 + | builder.build()
|
4423 + | }
|
4424 + | }
|
4425 + | /// A builder for [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
4426 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4427 + | pub struct Builder {
|
4428 + | pub(crate) map_of_length_string: ::std::option::Option<
|
4429 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
4430 + | >,
|
4431 + | }
|
4432 + | impl Builder {
|
4433 + | #[allow(missing_docs)] // documentation missing in model
|
4434 + | pub fn map_of_length_string(
|
4435 + | mut self,
|
4436 + | input: ::std::option::Option<
|
4437 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
4438 + | >,
|
4439 + | ) -> Self {
|
4440 + | self.map_of_length_string = input;
|
4441 + | self
|
4442 + | }
|
4443 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
4444 + | pub fn build(self) -> crate::input::QueryParamsTargetingMapOfLengthStringOperationInput {
|
4445 + | self.build_enforcing_required_and_enum_traits()
|
4446 + | }
|
4447 + | fn build_enforcing_required_and_enum_traits(
|
4448 + | self,
|
4449 + | ) -> crate::input::QueryParamsTargetingMapOfLengthStringOperationInput {
|
4450 + | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput {
|
4451 + | map_of_length_string: self.map_of_length_string,
|
4452 + | }
|
4453 + | }
|
4454 + | }
|
4455 + | }
|
4456 + | /// See [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
4457 + | pub(crate) mod query_params_targeting_map_of_list_of_length_string_operation_input_internal {
|
4458 + |
|
4459 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4460 + | /// Holds one variant for each of the ways the builder can fail.
|
4461 + | #[non_exhaustive]
|
4462 + | #[allow(clippy::enum_variant_names)]
|
4463 + | pub(crate) enum ConstraintViolation {
|
4464 + | /// Constraint violation occurred building member `map_of_list_of_length_string` when building `QueryParamsTargetingMapOfListOfLengthStringOperationInput`.
|
4465 + | #[doc(hidden)]
|
4466 + | MapOfListOfLengthString(
|
4467 + | crate::model::map_of_list_of_length_string_internal::ConstraintViolation,
|
4468 + | ),
|
4469 + | }
|
4470 + | impl ::std::fmt::Display for ConstraintViolation {
|
4471 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4472 + | match self {
|
4473 + | ConstraintViolation::MapOfListOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_length_string` when building `QueryParamsTargetingMapOfListOfLengthStringOperationInput`"),
|
4474 + | }
|
4475 + | }
|
4476 + | }
|
4477 + | impl ::std::error::Error for ConstraintViolation {}
|
4478 + | impl ConstraintViolation {
|
4479 + | pub(crate) fn as_validation_exception_field(
|
4480 + | self,
|
4481 + | path: ::std::string::String,
|
4482 + | ) -> crate::model::ValidationExceptionField {
|
4483 + | match self {
|
4484 + | ConstraintViolation::MapOfListOfLengthString(inner) => {
|
4485 + | inner.as_validation_exception_field(path + "/mapOfListOfLengthString")
|
4486 + | }
|
4487 + | }
|
4488 + | }
|
4489 + | }
|
4490 + | impl ::std::convert::From<ConstraintViolation>
|
4491 + | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4492 + | {
|
4493 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4494 + | let first_validation_exception_field =
|
4495 + | constraint_violation.as_validation_exception_field("".to_owned());
|
4496 + | let validation_exception = crate::error::ValidationException {
|
4497 + | message: format!(
|
4498 + | "1 validation error detected. {}",
|
4499 + | &first_validation_exception_field.message
|
4500 + | ),
|
4501 + | field_list: Some(vec![first_validation_exception_field]),
|
4502 + | };
|
4503 + | Self::ConstraintViolation(
|
4504 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4505 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4506 + | )
|
4507 + | }
|
4508 + | }
|
4509 + | impl ::std::convert::From<Builder>
|
4510 + | for crate::constrained::MaybeConstrained<
|
4511 + | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput,
|
4512 + | >
|
4513 + | {
|
4514 + | fn from(builder: Builder) -> Self {
|
4515 + | Self::Unconstrained(builder)
|
4516 + | }
|
4517 + | }
|
4518 + | impl ::std::convert::TryFrom<Builder>
|
4519 + | for crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput
|
4520 + | {
|
4521 + | type Error = ConstraintViolation;
|
4522 + |
|
4523 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4524 + | builder.build()
|
4525 + | }
|
4526 + | }
|
4527 + | /// A builder for [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
4528 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4529 + | pub(crate) struct Builder {
|
4530 + | pub(crate) map_of_list_of_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_string_constrained::MapOfListOfLengthStringConstrained>>,
|
4531 + | }
|
4532 + | impl Builder {
|
4533 + | #[allow(missing_docs)] // documentation missing in model
|
4534 + | pub(crate) fn set_map_of_list_of_length_string(
|
4535 + | mut self,
|
4536 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_string_constrained::MapOfListOfLengthStringConstrained>>>,
|
4537 + | ) -> Self {
|
4538 + | self.map_of_list_of_length_string = input.map(|v| v.into());
|
4539 + | self
|
4540 + | }
|
4541 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
4542 + | ///
|
4543 + | /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput) if a [`ConstraintViolation`] occurs.
|
4544 + | ///
|
4545 + | pub fn build(
|
4546 + | self,
|
4547 + | ) -> Result<
|
4548 + | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput,
|
4549 + | ConstraintViolation,
|
4550 + | > {
|
4551 + | self.build_enforcing_all_constraints()
|
4552 + | }
|
4553 + | fn build_enforcing_all_constraints(
|
4554 + | self,
|
4555 + | ) -> Result<
|
4556 + | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput,
|
4557 + | ConstraintViolation,
|
4558 + | > {
|
4559 + | Ok(
|
4560 + | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
4561 + | map_of_list_of_length_string: self
|
4562 + | .map_of_list_of_length_string
|
5562 4563 | .map(|v| match v {
|
5563 4564 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5564 4565 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5565 4566 | })
|
5566 4567 | .map(|res| {
|
5567 4568 | res.map(|v| v.into())
|
5568 - | .map_err(ConstraintViolation::RangeIntegerListHeader)
|
4569 + | .map_err(ConstraintViolation::MapOfListOfLengthString)
|
5569 4570 | })
|
5570 4571 | .transpose()?,
|
5571 - | range_long_list_header: self
|
5572 - | .range_long_list_header
|
4572 + | },
|
4573 + | )
|
4574 + | }
|
4575 + | }
|
4576 + | }
|
4577 + | /// See [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
4578 + | pub mod query_params_targeting_map_of_list_of_length_string_operation_input {
|
4579 + |
|
4580 + | impl ::std::convert::From<Builder>
|
4581 + | for crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput
|
4582 + | {
|
4583 + | fn from(builder: Builder) -> Self {
|
4584 + | builder.build()
|
4585 + | }
|
4586 + | }
|
4587 + | /// A builder for [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
4588 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4589 + | pub struct Builder {
|
4590 + | pub(crate) map_of_list_of_length_string: ::std::option::Option<
|
4591 + | ::std::collections::HashMap<
|
4592 + | ::std::string::String,
|
4593 + | ::std::vec::Vec<::std::string::String>,
|
4594 + | >,
|
4595 + | >,
|
4596 + | }
|
4597 + | impl Builder {
|
4598 + | #[allow(missing_docs)] // documentation missing in model
|
4599 + | pub fn map_of_list_of_length_string(
|
4600 + | mut self,
|
4601 + | input: ::std::option::Option<
|
4602 + | ::std::collections::HashMap<
|
4603 + | ::std::string::String,
|
4604 + | ::std::vec::Vec<::std::string::String>,
|
4605 + | >,
|
4606 + | >,
|
4607 + | ) -> Self {
|
4608 + | self.map_of_list_of_length_string = input;
|
4609 + | self
|
4610 + | }
|
4611 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
4612 + | pub fn build(
|
4613 + | self,
|
4614 + | ) -> crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
4615 + | self.build_enforcing_required_and_enum_traits()
|
4616 + | }
|
4617 + | fn build_enforcing_required_and_enum_traits(
|
4618 + | self,
|
4619 + | ) -> crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
4620 + | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
4621 + | map_of_list_of_length_string: self.map_of_list_of_length_string,
|
4622 + | }
|
4623 + | }
|
4624 + | }
|
4625 + | }
|
4626 + | /// See [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
4627 + | pub(crate) mod query_params_targeting_map_of_set_of_length_string_operation_input_internal {
|
4628 + |
|
4629 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4630 + | /// Holds one variant for each of the ways the builder can fail.
|
4631 + | #[non_exhaustive]
|
4632 + | #[allow(clippy::enum_variant_names)]
|
4633 + | pub(crate) enum ConstraintViolation {
|
4634 + | /// Constraint violation occurred building member `map_of_set_of_length_string` when building `QueryParamsTargetingMapOfSetOfLengthStringOperationInput`.
|
4635 + | #[doc(hidden)]
|
4636 + | MapOfSetOfLengthString(
|
4637 + | crate::model::map_of_set_of_length_string_internal::ConstraintViolation,
|
4638 + | ),
|
4639 + | }
|
4640 + | impl ::std::fmt::Display for ConstraintViolation {
|
4641 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4642 + | match self {
|
4643 + | ConstraintViolation::MapOfSetOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_set_of_length_string` when building `QueryParamsTargetingMapOfSetOfLengthStringOperationInput`"),
|
4644 + | }
|
4645 + | }
|
4646 + | }
|
4647 + | impl ::std::error::Error for ConstraintViolation {}
|
4648 + | impl ConstraintViolation {
|
4649 + | pub(crate) fn as_validation_exception_field(
|
4650 + | self,
|
4651 + | path: ::std::string::String,
|
4652 + | ) -> crate::model::ValidationExceptionField {
|
4653 + | match self {
|
4654 + | ConstraintViolation::MapOfSetOfLengthString(inner) => {
|
4655 + | inner.as_validation_exception_field(path + "/mapOfSetOfLengthString")
|
4656 + | }
|
4657 + | }
|
4658 + | }
|
4659 + | }
|
4660 + | impl ::std::convert::From<ConstraintViolation>
|
4661 + | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4662 + | {
|
4663 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4664 + | let first_validation_exception_field =
|
4665 + | constraint_violation.as_validation_exception_field("".to_owned());
|
4666 + | let validation_exception = crate::error::ValidationException {
|
4667 + | message: format!(
|
4668 + | "1 validation error detected. {}",
|
4669 + | &first_validation_exception_field.message
|
4670 + | ),
|
4671 + | field_list: Some(vec![first_validation_exception_field]),
|
4672 + | };
|
4673 + | Self::ConstraintViolation(
|
4674 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4675 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4676 + | )
|
4677 + | }
|
4678 + | }
|
4679 + | impl ::std::convert::From<Builder>
|
4680 + | for crate::constrained::MaybeConstrained<
|
4681 + | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput,
|
4682 + | >
|
4683 + | {
|
4684 + | fn from(builder: Builder) -> Self {
|
4685 + | Self::Unconstrained(builder)
|
4686 + | }
|
4687 + | }
|
4688 + | impl ::std::convert::TryFrom<Builder>
|
4689 + | for crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput
|
4690 + | {
|
4691 + | type Error = ConstraintViolation;
|
4692 + |
|
4693 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4694 + | builder.build()
|
4695 + | }
|
4696 + | }
|
4697 + | /// A builder for [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
4698 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4699 + | pub(crate) struct Builder {
|
4700 + | pub(crate) map_of_set_of_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_set_of_length_string_constrained::MapOfSetOfLengthStringConstrained>>,
|
4701 + | }
|
4702 + | impl Builder {
|
4703 + | #[allow(missing_docs)] // documentation missing in model
|
4704 + | pub(crate) fn set_map_of_set_of_length_string(
|
4705 + | mut self,
|
4706 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_set_of_length_string_constrained::MapOfSetOfLengthStringConstrained>>>,
|
4707 + | ) -> Self {
|
4708 + | self.map_of_set_of_length_string = input.map(|v| v.into());
|
4709 + | self
|
4710 + | }
|
4711 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
4712 + | ///
|
4713 + | /// The builder fails to construct a [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput) if a [`ConstraintViolation`] occurs.
|
4714 + | ///
|
4715 + | pub fn build(
|
4716 + | self,
|
4717 + | ) -> Result<
|
4718 + | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput,
|
4719 + | ConstraintViolation,
|
4720 + | > {
|
4721 + | self.build_enforcing_all_constraints()
|
4722 + | }
|
4723 + | fn build_enforcing_all_constraints(
|
4724 + | self,
|
4725 + | ) -> Result<
|
4726 + | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput,
|
4727 + | ConstraintViolation,
|
4728 + | > {
|
4729 + | Ok(
|
4730 + | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
4731 + | map_of_set_of_length_string: self
|
4732 + | .map_of_set_of_length_string
|
5573 4733 | .map(|v| match v {
|
5574 4734 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5575 4735 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5576 4736 | })
|
5577 4737 | .map(|res| {
|
5578 4738 | res.map(|v| v.into())
|
5579 - | .map_err(ConstraintViolation::RangeLongListHeader)
|
5580 - | })
|
5581 - | .transpose()?,
|
5582 - | length_string_query: self
|
5583 - | .length_string_query
|
5584 - | .map(|v| match v {
|
5585 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5586 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5587 - | })
|
5588 - | .map(|res| res.map_err(ConstraintViolation::LengthStringQuery))
|
5589 - | .transpose()?
|
5590 - | .map(|v: crate::model::LengthString| v.into()),
|
5591 - | range_byte_query: self
|
5592 - | .range_byte_query
|
5593 - | .map(|v| match v {
|
5594 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5595 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5596 - | })
|
5597 - | .map(|res| res.map_err(ConstraintViolation::RangeByteQuery))
|
5598 - | .transpose()?
|
5599 - | .map(|v: crate::model::RangeByte| v.into())
|
5600 - | .unwrap_or(0i8),
|
5601 - | range_short_query: self
|
5602 - | .range_short_query
|
5603 - | .map(|v| match v {
|
5604 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5605 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5606 - | })
|
5607 - | .map(|res| res.map_err(ConstraintViolation::RangeShortQuery))
|
5608 - | .transpose()?
|
5609 - | .map(|v: crate::model::RangeShort| v.into())
|
5610 - | .unwrap_or(0i16),
|
5611 - | range_integer_query: self
|
5612 - | .range_integer_query
|
5613 - | .map(|v| match v {
|
5614 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5615 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5616 - | })
|
5617 - | .map(|res| res.map_err(ConstraintViolation::RangeIntegerQuery))
|
5618 - | .transpose()?
|
5619 - | .map(|v: crate::model::RangeInteger| v.into())
|
5620 - | .unwrap_or(0i32),
|
5621 - | range_long_query: self
|
5622 - | .range_long_query
|
5623 - | .map(|v| match v {
|
5624 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5625 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5626 - | })
|
5627 - | .map(|res| res.map_err(ConstraintViolation::RangeLongQuery))
|
5628 - | .transpose()?
|
5629 - | .map(|v: crate::model::RangeLong| v.into())
|
5630 - | .unwrap_or(0i64),
|
5631 - | enum_string_query: self
|
5632 - | .enum_string_query
|
5633 - | .map(|v| match v {
|
5634 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5635 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4739 + | .map_err(ConstraintViolation::MapOfSetOfLengthString)
|
5636 4740 | })
|
5637 - | .map(|res| res.map_err(ConstraintViolation::EnumStringQuery))
|
5638 4741 | .transpose()?,
|
5639 - | length_string_list_query: self
|
5640 - | .length_string_list_query
|
4742 + | },
|
4743 + | )
|
4744 + | }
|
4745 + | }
|
4746 + | }
|
4747 + | /// See [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
4748 + | pub mod query_params_targeting_map_of_set_of_length_string_operation_input {
|
4749 + |
|
4750 + | impl ::std::convert::From<Builder>
|
4751 + | for crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput
|
4752 + | {
|
4753 + | fn from(builder: Builder) -> Self {
|
4754 + | builder.build()
|
4755 + | }
|
4756 + | }
|
4757 + | /// A builder for [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
4758 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4759 + | pub struct Builder {
|
4760 + | pub(crate) map_of_set_of_length_string: ::std::option::Option<
|
4761 + | ::std::collections::HashMap<
|
4762 + | ::std::string::String,
|
4763 + | ::std::vec::Vec<::std::string::String>,
|
4764 + | >,
|
4765 + | >,
|
4766 + | }
|
4767 + | impl Builder {
|
4768 + | #[allow(missing_docs)] // documentation missing in model
|
4769 + | pub fn map_of_set_of_length_string(
|
4770 + | mut self,
|
4771 + | input: ::std::option::Option<
|
4772 + | ::std::collections::HashMap<
|
4773 + | ::std::string::String,
|
4774 + | ::std::vec::Vec<::std::string::String>,
|
4775 + | >,
|
4776 + | >,
|
4777 + | ) -> Self {
|
4778 + | self.map_of_set_of_length_string = input;
|
4779 + | self
|
4780 + | }
|
4781 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
4782 + | pub fn build(
|
4783 + | self,
|
4784 + | ) -> crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
4785 + | self.build_enforcing_required_and_enum_traits()
|
4786 + | }
|
4787 + | fn build_enforcing_required_and_enum_traits(
|
4788 + | self,
|
4789 + | ) -> crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
4790 + | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
4791 + | map_of_set_of_length_string: self.map_of_set_of_length_string,
|
4792 + | }
|
4793 + | }
|
4794 + | }
|
4795 + | }
|
4796 + | /// See [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
4797 + | pub(crate) mod query_params_targeting_map_of_length_list_of_pattern_string_operation_input_internal {
|
4798 + |
|
4799 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4800 + | /// Holds one variant for each of the ways the builder can fail.
|
4801 + | #[non_exhaustive]
|
4802 + | #[allow(clippy::enum_variant_names)]
|
4803 + | pub(crate) enum ConstraintViolation {
|
4804 + | /// Constraint violation occurred building member `map_of_length_list_of_pattern_string` when building `QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`.
|
4805 + | #[doc(hidden)]
|
4806 + | MapOfLengthListOfPatternString(
|
4807 + | crate::model::map_of_length_list_of_pattern_string_internal::ConstraintViolation,
|
4808 + | ),
|
4809 + | }
|
4810 + | impl ::std::fmt::Display for ConstraintViolation {
|
4811 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4812 + | match self {
|
4813 + | ConstraintViolation::MapOfLengthListOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_list_of_pattern_string` when building `QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`"),
|
4814 + | }
|
4815 + | }
|
4816 + | }
|
4817 + | impl ::std::error::Error for ConstraintViolation {}
|
4818 + | impl ConstraintViolation {
|
4819 + | pub(crate) fn as_validation_exception_field(
|
4820 + | self,
|
4821 + | path: ::std::string::String,
|
4822 + | ) -> crate::model::ValidationExceptionField {
|
4823 + | match self {
|
4824 + | ConstraintViolation::MapOfLengthListOfPatternString(inner) => {
|
4825 + | inner.as_validation_exception_field(path + "/mapOfLengthListOfPatternString")
|
4826 + | }
|
4827 + | }
|
4828 + | }
|
4829 + | }
|
4830 + | impl ::std::convert::From<ConstraintViolation>
|
4831 + | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4832 + | {
|
4833 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4834 + | let first_validation_exception_field =
|
4835 + | constraint_violation.as_validation_exception_field("".to_owned());
|
4836 + | let validation_exception = crate::error::ValidationException {
|
4837 + | message: format!(
|
4838 + | "1 validation error detected. {}",
|
4839 + | &first_validation_exception_field.message
|
4840 + | ),
|
4841 + | field_list: Some(vec![first_validation_exception_field]),
|
4842 + | };
|
4843 + | Self::ConstraintViolation(
|
4844 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4845 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4846 + | )
|
4847 + | }
|
4848 + | }
|
4849 + | impl ::std::convert::From<Builder>
|
4850 + | for crate::constrained::MaybeConstrained<
|
4851 + | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput,
|
4852 + | >
|
4853 + | {
|
4854 + | fn from(builder: Builder) -> Self {
|
4855 + | Self::Unconstrained(builder)
|
4856 + | }
|
4857 + | }
|
4858 + | impl ::std::convert::TryFrom<Builder>
|
4859 + | for crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
4860 + | {
|
4861 + | type Error = ConstraintViolation;
|
4862 + |
|
4863 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4864 + | builder.build()
|
4865 + | }
|
4866 + | }
|
4867 + | /// A builder for [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
4868 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4869 + | pub(crate) struct Builder {
|
4870 + | pub(crate) map_of_length_list_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_list_of_pattern_string_constrained::MapOfLengthListOfPatternStringConstrained>>,
|
4871 + | }
|
4872 + | impl Builder {
|
4873 + | #[allow(missing_docs)] // documentation missing in model
|
4874 + | pub(crate) fn set_map_of_length_list_of_pattern_string(
|
4875 + | mut self,
|
4876 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_list_of_pattern_string_constrained::MapOfLengthListOfPatternStringConstrained>>>,
|
4877 + | ) -> Self {
|
4878 + | self.map_of_length_list_of_pattern_string = input.map(|v| v.into());
|
4879 + | self
|
4880 + | }
|
4881 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
4882 + | ///
|
4883 + | /// The builder fails to construct a [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
4884 + | ///
|
4885 + | pub fn build(
|
4886 + | self,
|
4887 + | ) -> Result<
|
4888 + | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput,
|
4889 + | ConstraintViolation,
|
4890 + | > {
|
4891 + | self.build_enforcing_all_constraints()
|
4892 + | }
|
4893 + | fn build_enforcing_all_constraints(
|
4894 + | self,
|
4895 + | ) -> Result<
|
4896 + | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput,
|
4897 + | ConstraintViolation,
|
4898 + | > {
|
4899 + | Ok(
|
4900 + | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
4901 + | map_of_length_list_of_pattern_string: self
|
4902 + | .map_of_length_list_of_pattern_string
|
5641 4903 | .map(|v| match v {
|
5642 4904 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5643 4905 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5644 4906 | })
|
5645 4907 | .map(|res| {
|
5646 4908 | res.map(|v| v.into())
|
5647 - | .map_err(ConstraintViolation::LengthStringListQuery)
|
4909 + | .map_err(ConstraintViolation::MapOfLengthListOfPatternString)
|
5648 4910 | })
|
5649 4911 | .transpose()?,
|
5650 - | length_list_pattern_string_query: self
|
5651 - | .length_list_pattern_string_query
|
5652 - | .map(|v| match v {
|
5653 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5654 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5655 - | })
|
5656 - | .map(|res| res.map_err(ConstraintViolation::LengthListPatternStringQuery))
|
5657 - | .transpose()?
|
5658 - | .map(|v: crate::model::LengthListOfPatternString| v.into()),
|
5659 - | length_string_set_query: self
|
5660 - | .length_string_set_query
|
5661 - | .map(|v| match v {
|
5662 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5663 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5664 - | })
|
5665 - | .map(|res| res.map_err(ConstraintViolation::LengthStringSetQuery))
|
5666 - | .transpose()?
|
5667 - | .map(|v: crate::model::SetOfLengthString| v.into()),
|
5668 - | range_byte_list_query: self
|
5669 - | .range_byte_list_query
|
4912 + | },
|
4913 + | )
|
4914 + | }
|
4915 + | }
|
4916 + | }
|
4917 + | /// See [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
4918 + | pub mod query_params_targeting_map_of_length_list_of_pattern_string_operation_input {
|
4919 + |
|
4920 + | impl ::std::convert::From<Builder>
|
4921 + | for crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
4922 + | {
|
4923 + | fn from(builder: Builder) -> Self {
|
4924 + | builder.build()
|
4925 + | }
|
4926 + | }
|
4927 + | /// A builder for [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
4928 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4929 + | pub struct Builder {
|
4930 + | pub(crate) map_of_length_list_of_pattern_string: ::std::option::Option<
|
4931 + | ::std::collections::HashMap<
|
4932 + | ::std::string::String,
|
4933 + | ::std::vec::Vec<::std::string::String>,
|
4934 + | >,
|
4935 + | >,
|
4936 + | }
|
4937 + | impl Builder {
|
4938 + | #[allow(missing_docs)] // documentation missing in model
|
4939 + | pub fn map_of_length_list_of_pattern_string(
|
4940 + | mut self,
|
4941 + | input: ::std::option::Option<
|
4942 + | ::std::collections::HashMap<
|
4943 + | ::std::string::String,
|
4944 + | ::std::vec::Vec<::std::string::String>,
|
4945 + | >,
|
4946 + | >,
|
4947 + | ) -> Self {
|
4948 + | self.map_of_length_list_of_pattern_string = input;
|
4949 + | self
|
4950 + | }
|
4951 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
4952 + | pub fn build(
|
4953 + | self,
|
4954 + | ) -> crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
4955 + | {
|
4956 + | self.build_enforcing_required_and_enum_traits()
|
4957 + | }
|
4958 + | fn build_enforcing_required_and_enum_traits(
|
4959 + | self,
|
4960 + | ) -> crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
4961 + | {
|
4962 + | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
4963 + | map_of_length_list_of_pattern_string: self.map_of_length_list_of_pattern_string,
|
4964 + | }
|
4965 + | }
|
4966 + | }
|
4967 + | }
|
4968 + | /// See [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
4969 + | pub(crate) mod query_params_targeting_map_of_list_of_enum_string_operation_input_internal {
|
4970 + |
|
4971 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4972 + | /// Holds one variant for each of the ways the builder can fail.
|
4973 + | #[non_exhaustive]
|
4974 + | #[allow(clippy::enum_variant_names)]
|
4975 + | pub(crate) enum ConstraintViolation {
|
4976 + | /// Constraint violation occurred building member `map_of_list_of_enum_string` when building `QueryParamsTargetingMapOfListOfEnumStringOperationInput`.
|
4977 + | #[doc(hidden)]
|
4978 + | MapOfListOfEnumString(
|
4979 + | crate::model::map_of_list_of_enum_string_internal::ConstraintViolation,
|
4980 + | ),
|
4981 + | }
|
4982 + | impl ::std::fmt::Display for ConstraintViolation {
|
4983 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4984 + | match self {
|
4985 + | ConstraintViolation::MapOfListOfEnumString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_enum_string` when building `QueryParamsTargetingMapOfListOfEnumStringOperationInput`"),
|
4986 + | }
|
4987 + | }
|
4988 + | }
|
4989 + | impl ::std::error::Error for ConstraintViolation {}
|
4990 + | impl ConstraintViolation {
|
4991 + | pub(crate) fn as_validation_exception_field(
|
4992 + | self,
|
4993 + | path: ::std::string::String,
|
4994 + | ) -> crate::model::ValidationExceptionField {
|
4995 + | match self {
|
4996 + | ConstraintViolation::MapOfListOfEnumString(inner) => {
|
4997 + | inner.as_validation_exception_field(path + "/mapOfListOfEnumString")
|
4998 + | }
|
4999 + | }
|
5000 + | }
|
5001 + | }
|
5002 + | impl ::std::convert::From<ConstraintViolation>
|
5003 + | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
5004 + | {
|
5005 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
5006 + | let first_validation_exception_field =
|
5007 + | constraint_violation.as_validation_exception_field("".to_owned());
|
5008 + | let validation_exception = crate::error::ValidationException {
|
5009 + | message: format!(
|
5010 + | "1 validation error detected. {}",
|
5011 + | &first_validation_exception_field.message
|
5012 + | ),
|
5013 + | field_list: Some(vec![first_validation_exception_field]),
|
5014 + | };
|
5015 + | Self::ConstraintViolation(
|
5016 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
5017 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
5018 + | )
|
5019 + | }
|
5020 + | }
|
5021 + | impl ::std::convert::From<Builder>
|
5022 + | for crate::constrained::MaybeConstrained<
|
5023 + | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput,
|
5024 + | >
|
5025 + | {
|
5026 + | fn from(builder: Builder) -> Self {
|
5027 + | Self::Unconstrained(builder)
|
5028 + | }
|
5029 + | }
|
5030 + | impl ::std::convert::TryFrom<Builder>
|
5031 + | for crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput
|
5032 + | {
|
5033 + | type Error = ConstraintViolation;
|
5034 + |
|
5035 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5036 + | builder.build()
|
5037 + | }
|
5038 + | }
|
5039 + | /// A builder for [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
5040 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5041 + | pub(crate) struct Builder {
|
5042 + | pub(crate) map_of_list_of_enum_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_enum_string_constrained::MapOfListOfEnumStringConstrained>>,
|
5043 + | }
|
5044 + | impl Builder {
|
5045 + | #[allow(missing_docs)] // documentation missing in model
|
5046 + | pub(crate) fn set_map_of_list_of_enum_string(
|
5047 + | mut self,
|
5048 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_enum_string_constrained::MapOfListOfEnumStringConstrained>>>,
|
5049 + | ) -> Self {
|
5050 + | self.map_of_list_of_enum_string = input.map(|v| v.into());
|
5051 + | self
|
5052 + | }
|
5053 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
5054 + | ///
|
5055 + | /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput) if a [`ConstraintViolation`] occurs.
|
5056 + | ///
|
5057 + | pub fn build(
|
5058 + | self,
|
5059 + | ) -> Result<
|
5060 + | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput,
|
5061 + | ConstraintViolation,
|
5062 + | > {
|
5063 + | self.build_enforcing_all_constraints()
|
5064 + | }
|
5065 + | fn build_enforcing_all_constraints(
|
5066 + | self,
|
5067 + | ) -> Result<
|
5068 + | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput,
|
5069 + | ConstraintViolation,
|
5070 + | > {
|
5071 + | Ok(
|
5072 + | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
5073 + | map_of_list_of_enum_string: self
|
5074 + | .map_of_list_of_enum_string
|
5670 5075 | .map(|v| match v {
|
5671 5076 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5672 5077 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5673 5078 | })
|
5674 5079 | .map(|res| {
|
5675 5080 | res.map(|v| v.into())
|
5676 - | .map_err(ConstraintViolation::RangeByteListQuery)
|
5081 + | .map_err(ConstraintViolation::MapOfListOfEnumString)
|
5677 5082 | })
|
5678 5083 | .transpose()?,
|
5679 - | range_short_list_query: self
|
5680 - | .range_short_list_query
|
5084 + | },
|
5085 + | )
|
5086 + | }
|
5087 + | }
|
5088 + | }
|
5089 + | /// See [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
5090 + | pub mod query_params_targeting_map_of_list_of_enum_string_operation_input {
|
5091 + |
|
5092 + | impl ::std::convert::From<Builder>
|
5093 + | for crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput
|
5094 + | {
|
5095 + | fn from(builder: Builder) -> Self {
|
5096 + | builder.build()
|
5097 + | }
|
5098 + | }
|
5099 + | /// A builder for [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
5100 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5101 + | pub struct Builder {
|
5102 + | pub(crate) map_of_list_of_enum_string: ::std::option::Option<
|
5103 + | ::std::collections::HashMap<
|
5104 + | crate::model::EnumString,
|
5105 + | ::std::vec::Vec<crate::model::EnumString>,
|
5106 + | >,
|
5107 + | >,
|
5108 + | }
|
5109 + | impl Builder {
|
5110 + | #[allow(missing_docs)] // documentation missing in model
|
5111 + | pub fn map_of_list_of_enum_string(
|
5112 + | mut self,
|
5113 + | input: ::std::option::Option<
|
5114 + | ::std::collections::HashMap<
|
5115 + | crate::model::EnumString,
|
5116 + | ::std::vec::Vec<crate::model::EnumString>,
|
5117 + | >,
|
5118 + | >,
|
5119 + | ) -> Self {
|
5120 + | self.map_of_list_of_enum_string = input;
|
5121 + | self
|
5122 + | }
|
5123 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
5124 + | pub fn build(
|
5125 + | self,
|
5126 + | ) -> crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
5127 + | self.build_enforcing_required_and_enum_traits()
|
5128 + | }
|
5129 + | fn build_enforcing_required_and_enum_traits(
|
5130 + | self,
|
5131 + | ) -> crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
5132 + | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
5133 + | map_of_list_of_enum_string: self.map_of_list_of_enum_string,
|
5134 + | }
|
5135 + | }
|
5136 + | }
|
5137 + | }
|
5138 + | /// See [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
5139 + | pub(crate) mod query_params_targeting_map_of_pattern_string_operation_input_internal {
|
5140 + |
|
5141 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5142 + | /// Holds one variant for each of the ways the builder can fail.
|
5143 + | #[non_exhaustive]
|
5144 + | #[allow(clippy::enum_variant_names)]
|
5145 + | pub(crate) enum ConstraintViolation {
|
5146 + | /// Constraint violation occurred building member `map_of_pattern_string` when building `QueryParamsTargetingMapOfPatternStringOperationInput`.
|
5147 + | #[doc(hidden)]
|
5148 + | MapOfPatternString(crate::model::map_of_pattern_string_internal::ConstraintViolation),
|
5149 + | }
|
5150 + | impl ::std::fmt::Display for ConstraintViolation {
|
5151 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
5152 + | match self {
|
5153 + | ConstraintViolation::MapOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_pattern_string` when building `QueryParamsTargetingMapOfPatternStringOperationInput`"),
|
5154 + | }
|
5155 + | }
|
5156 + | }
|
5157 + | impl ::std::error::Error for ConstraintViolation {}
|
5158 + | impl ConstraintViolation {
|
5159 + | pub(crate) fn as_validation_exception_field(
|
5160 + | self,
|
5161 + | path: ::std::string::String,
|
5162 + | ) -> crate::model::ValidationExceptionField {
|
5163 + | match self {
|
5164 + | ConstraintViolation::MapOfPatternString(inner) => {
|
5165 + | inner.as_validation_exception_field(path + "/mapOfPatternString")
|
5166 + | }
|
5167 + | }
|
5168 + | }
|
5169 + | }
|
5170 + | impl ::std::convert::From<ConstraintViolation>
|
5171 + | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
5172 + | {
|
5173 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
5174 + | let first_validation_exception_field =
|
5175 + | constraint_violation.as_validation_exception_field("".to_owned());
|
5176 + | let validation_exception = crate::error::ValidationException {
|
5177 + | message: format!(
|
5178 + | "1 validation error detected. {}",
|
5179 + | &first_validation_exception_field.message
|
5180 + | ),
|
5181 + | field_list: Some(vec![first_validation_exception_field]),
|
5182 + | };
|
5183 + | Self::ConstraintViolation(
|
5184 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
5185 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
5186 + | )
|
5187 + | }
|
5188 + | }
|
5189 + | impl ::std::convert::From<Builder>
|
5190 + | for crate::constrained::MaybeConstrained<
|
5191 + | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput,
|
5192 + | >
|
5193 + | {
|
5194 + | fn from(builder: Builder) -> Self {
|
5195 + | Self::Unconstrained(builder)
|
5196 + | }
|
5197 + | }
|
5198 + | impl ::std::convert::TryFrom<Builder>
|
5199 + | for crate::input::QueryParamsTargetingMapOfPatternStringOperationInput
|
5200 + | {
|
5201 + | type Error = ConstraintViolation;
|
5202 + |
|
5203 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5204 + | builder.build()
|
5205 + | }
|
5206 + | }
|
5207 + | /// A builder for [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
5208 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5209 + | pub(crate) struct Builder {
|
5210 + | pub(crate) map_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained>>,
|
5211 + | }
|
5212 + | impl Builder {
|
5213 + | #[allow(missing_docs)] // documentation missing in model
|
5214 + | pub(crate) fn set_map_of_pattern_string(
|
5215 + | mut self,
|
5216 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained>>>,
|
5217 + | ) -> Self {
|
5218 + | self.map_of_pattern_string = input.map(|v| v.into());
|
5219 + | self
|
5220 + | }
|
5221 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
5222 + | ///
|
5223 + | /// The builder fails to construct a [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
5224 + | ///
|
5225 + | pub fn build(
|
5226 + | self,
|
5227 + | ) -> Result<
|
5228 + | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput,
|
5229 + | ConstraintViolation,
|
5230 + | > {
|
5231 + | self.build_enforcing_all_constraints()
|
5232 + | }
|
5233 + | fn build_enforcing_all_constraints(
|
5234 + | self,
|
5235 + | ) -> Result<
|
5236 + | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput,
|
5237 + | ConstraintViolation,
|
5238 + | > {
|
5239 + | Ok(
|
5240 + | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput {
|
5241 + | map_of_pattern_string: self
|
5242 + | .map_of_pattern_string
|
5681 5243 | .map(|v| match v {
|
5682 5244 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5683 5245 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5684 5246 | })
|
5685 5247 | .map(|res| {
|
5686 5248 | res.map(|v| v.into())
|
5687 - | .map_err(ConstraintViolation::RangeShortListQuery)
|
5249 + | .map_err(ConstraintViolation::MapOfPatternString)
|
5688 5250 | })
|
5689 5251 | .transpose()?,
|
5690 - | range_integer_list_query: self
|
5691 - | .range_integer_list_query
|
5252 + | },
|
5253 + | )
|
5254 + | }
|
5255 + | }
|
5256 + | }
|
5257 + | /// See [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
5258 + | pub mod query_params_targeting_map_of_pattern_string_operation_input {
|
5259 + |
|
5260 + | impl ::std::convert::From<Builder>
|
5261 + | for crate::input::QueryParamsTargetingMapOfPatternStringOperationInput
|
5262 + | {
|
5263 + | fn from(builder: Builder) -> Self {
|
5264 + | builder.build()
|
5265 + | }
|
5266 + | }
|
5267 + | /// A builder for [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
5268 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5269 + | pub struct Builder {
|
5270 + | pub(crate) map_of_pattern_string: ::std::option::Option<
|
5271 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
5272 + | >,
|
5273 + | }
|
5274 + | impl Builder {
|
5275 + | #[allow(missing_docs)] // documentation missing in model
|
5276 + | pub fn map_of_pattern_string(
|
5277 + | mut self,
|
5278 + | input: ::std::option::Option<
|
5279 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
5280 + | >,
|
5281 + | ) -> Self {
|
5282 + | self.map_of_pattern_string = input;
|
5283 + | self
|
5284 + | }
|
5285 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
5286 + | pub fn build(self) -> crate::input::QueryParamsTargetingMapOfPatternStringOperationInput {
|
5287 + | self.build_enforcing_required_and_enum_traits()
|
5288 + | }
|
5289 + | fn build_enforcing_required_and_enum_traits(
|
5290 + | self,
|
5291 + | ) -> crate::input::QueryParamsTargetingMapOfPatternStringOperationInput {
|
5292 + | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput {
|
5293 + | map_of_pattern_string: self.map_of_pattern_string,
|
5294 + | }
|
5295 + | }
|
5296 + | }
|
5297 + | }
|
5298 + | /// See [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
5299 + | pub(crate) mod query_params_targeting_map_of_list_of_pattern_string_operation_input_internal {
|
5300 + |
|
5301 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5302 + | /// Holds one variant for each of the ways the builder can fail.
|
5303 + | #[non_exhaustive]
|
5304 + | #[allow(clippy::enum_variant_names)]
|
5305 + | pub(crate) enum ConstraintViolation {
|
5306 + | /// Constraint violation occurred building member `map_of_list_of_pattern_string` when building `QueryParamsTargetingMapOfListOfPatternStringOperationInput`.
|
5307 + | #[doc(hidden)]
|
5308 + | MapOfListOfPatternString(
|
5309 + | crate::model::map_of_list_of_pattern_string_internal::ConstraintViolation,
|
5310 + | ),
|
5311 + | }
|
5312 + | impl ::std::fmt::Display for ConstraintViolation {
|
5313 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
5314 + | match self {
|
5315 + | ConstraintViolation::MapOfListOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_pattern_string` when building `QueryParamsTargetingMapOfListOfPatternStringOperationInput`"),
|
5316 + | }
|
5317 + | }
|
5318 + | }
|
5319 + | impl ::std::error::Error for ConstraintViolation {}
|
5320 + | impl ConstraintViolation {
|
5321 + | pub(crate) fn as_validation_exception_field(
|
5322 + | self,
|
5323 + | path: ::std::string::String,
|
5324 + | ) -> crate::model::ValidationExceptionField {
|
5325 + | match self {
|
5326 + | ConstraintViolation::MapOfListOfPatternString(inner) => {
|
5327 + | inner.as_validation_exception_field(path + "/mapOfListOfPatternString")
|
5328 + | }
|
5329 + | }
|
5330 + | }
|
5331 + | }
|
5332 + | impl ::std::convert::From<ConstraintViolation>
|
5333 + | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
5334 + | {
|
5335 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
5336 + | let first_validation_exception_field =
|
5337 + | constraint_violation.as_validation_exception_field("".to_owned());
|
5338 + | let validation_exception = crate::error::ValidationException {
|
5339 + | message: format!(
|
5340 + | "1 validation error detected. {}",
|
5341 + | &first_validation_exception_field.message
|
5342 + | ),
|
5343 + | field_list: Some(vec![first_validation_exception_field]),
|
5344 + | };
|
5345 + | Self::ConstraintViolation(
|
5346 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
5347 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
5348 + | )
|
5349 + | }
|
5350 + | }
|
5351 + | impl ::std::convert::From<Builder>
|
5352 + | for crate::constrained::MaybeConstrained<
|
5353 + | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput,
|
5354 + | >
|
5355 + | {
|
5356 + | fn from(builder: Builder) -> Self {
|
5357 + | Self::Unconstrained(builder)
|
5358 + | }
|
5359 + | }
|
5360 + | impl ::std::convert::TryFrom<Builder>
|
5361 + | for crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput
|
5362 + | {
|
5363 + | type Error = ConstraintViolation;
|
5364 + |
|
5365 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5366 + | builder.build()
|
5367 + | }
|
5368 + | }
|
5369 + | /// A builder for [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
5370 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5371 + | pub(crate) struct Builder {
|
5372 + | pub(crate) map_of_list_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_pattern_string_constrained::MapOfListOfPatternStringConstrained>>,
|
5373 + | }
|
5374 + | impl Builder {
|
5375 + | #[allow(missing_docs)] // documentation missing in model
|
5376 + | pub(crate) fn set_map_of_list_of_pattern_string(
|
5377 + | mut self,
|
5378 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_pattern_string_constrained::MapOfListOfPatternStringConstrained>>>,
|
5379 + | ) -> Self {
|
5380 + | self.map_of_list_of_pattern_string = input.map(|v| v.into());
|
5381 + | self
|
5382 + | }
|
5383 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
5384 + | ///
|
5385 + | /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
5386 + | ///
|
5387 + | pub fn build(
|
5388 + | self,
|
5389 + | ) -> Result<
|
5390 + | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput,
|
5391 + | ConstraintViolation,
|
5392 + | > {
|
5393 + | self.build_enforcing_all_constraints()
|
5394 + | }
|
5395 + | fn build_enforcing_all_constraints(
|
5396 + | self,
|
5397 + | ) -> Result<
|
5398 + | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput,
|
5399 + | ConstraintViolation,
|
5400 + | > {
|
5401 + | Ok(
|
5402 + | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
5403 + | map_of_list_of_pattern_string: self
|
5404 + | .map_of_list_of_pattern_string
|
5692 5405 | .map(|v| match v {
|
5693 5406 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5694 5407 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5695 5408 | })
|
5696 5409 | .map(|res| {
|
5697 5410 | res.map(|v| v.into())
|
5698 - | .map_err(ConstraintViolation::RangeIntegerListQuery)
|
5411 + | .map_err(ConstraintViolation::MapOfListOfPatternString)
|
5699 5412 | })
|
5700 5413 | .transpose()?,
|
5701 - | range_long_list_query: self
|
5702 - | .range_long_list_query
|
5414 + | },
|
5415 + | )
|
5416 + | }
|
5417 + | }
|
5418 + | }
|
5419 + | /// See [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
5420 + | pub mod query_params_targeting_map_of_list_of_pattern_string_operation_input {
|
5421 + |
|
5422 + | impl ::std::convert::From<Builder>
|
5423 + | for crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput
|
5424 + | {
|
5425 + | fn from(builder: Builder) -> Self {
|
5426 + | builder.build()
|
5427 + | }
|
5428 + | }
|
5429 + | /// A builder for [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
5430 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5431 + | pub struct Builder {
|
5432 + | pub(crate) map_of_list_of_pattern_string: ::std::option::Option<
|
5433 + | ::std::collections::HashMap<
|
5434 + | ::std::string::String,
|
5435 + | ::std::vec::Vec<::std::string::String>,
|
5436 + | >,
|
5437 + | >,
|
5438 + | }
|
5439 + | impl Builder {
|
5440 + | #[allow(missing_docs)] // documentation missing in model
|
5441 + | pub fn map_of_list_of_pattern_string(
|
5442 + | mut self,
|
5443 + | input: ::std::option::Option<
|
5444 + | ::std::collections::HashMap<
|
5445 + | ::std::string::String,
|
5446 + | ::std::vec::Vec<::std::string::String>,
|
5447 + | >,
|
5448 + | >,
|
5449 + | ) -> Self {
|
5450 + | self.map_of_list_of_pattern_string = input;
|
5451 + | self
|
5452 + | }
|
5453 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
5454 + | pub fn build(
|
5455 + | self,
|
5456 + | ) -> crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
5457 + | self.build_enforcing_required_and_enum_traits()
|
5458 + | }
|
5459 + | fn build_enforcing_required_and_enum_traits(
|
5460 + | self,
|
5461 + | ) -> crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
5462 + | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
5463 + | map_of_list_of_pattern_string: self.map_of_list_of_pattern_string,
|
5464 + | }
|
5465 + | }
|
5466 + | }
|
5467 + | }
|
5468 + | /// See [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
5469 + | pub(crate) mod query_params_targeting_map_of_length_pattern_string_operation_input_internal {
|
5470 + |
|
5471 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5472 + | /// Holds one variant for each of the ways the builder can fail.
|
5473 + | #[non_exhaustive]
|
5474 + | #[allow(clippy::enum_variant_names)]
|
5475 + | pub(crate) enum ConstraintViolation {
|
5476 + | /// Constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfLengthPatternStringOperationInput`.
|
5477 + | #[doc(hidden)]
|
5478 + | MapOfLengthPatternString(
|
5479 + | crate::model::map_of_length_pattern_string_internal::ConstraintViolation,
|
5480 + | ),
|
5481 + | }
|
5482 + | impl ::std::fmt::Display for ConstraintViolation {
|
5483 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
5484 + | match self {
|
5485 + | ConstraintViolation::MapOfLengthPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfLengthPatternStringOperationInput`"),
|
5486 + | }
|
5487 + | }
|
5488 + | }
|
5489 + | impl ::std::error::Error for ConstraintViolation {}
|
5490 + | impl ConstraintViolation {
|
5491 + | pub(crate) fn as_validation_exception_field(
|
5492 + | self,
|
5493 + | path: ::std::string::String,
|
5494 + | ) -> crate::model::ValidationExceptionField {
|
5495 + | match self {
|
5496 + | ConstraintViolation::MapOfLengthPatternString(inner) => {
|
5497 + | inner.as_validation_exception_field(path + "/mapOfLengthPatternString")
|
5498 + | }
|
5499 + | }
|
5500 + | }
|
5501 + | }
|
5502 + | impl ::std::convert::From<ConstraintViolation>
|
5503 + | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
5504 + | {
|
5505 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
5506 + | let first_validation_exception_field =
|
5507 + | constraint_violation.as_validation_exception_field("".to_owned());
|
5508 + | let validation_exception = crate::error::ValidationException {
|
5509 + | message: format!(
|
5510 + | "1 validation error detected. {}",
|
5511 + | &first_validation_exception_field.message
|
5512 + | ),
|
5513 + | field_list: Some(vec![first_validation_exception_field]),
|
5514 + | };
|
5515 + | Self::ConstraintViolation(
|
5516 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
5517 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
5518 + | )
|
5519 + | }
|
5520 + | }
|
5521 + | impl ::std::convert::From<Builder>
|
5522 + | for crate::constrained::MaybeConstrained<
|
5523 + | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput,
|
5524 + | >
|
5525 + | {
|
5526 + | fn from(builder: Builder) -> Self {
|
5527 + | Self::Unconstrained(builder)
|
5528 + | }
|
5529 + | }
|
5530 + | impl ::std::convert::TryFrom<Builder>
|
5531 + | for crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput
|
5532 + | {
|
5533 + | type Error = ConstraintViolation;
|
5534 + |
|
5535 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5536 + | builder.build()
|
5537 + | }
|
5538 + | }
|
5539 + | /// A builder for [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
5540 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5541 + | pub(crate) struct Builder {
|
5542 + | pub(crate) map_of_length_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_pattern_string_constrained::MapOfLengthPatternStringConstrained>>,
|
5543 + | }
|
5544 + | impl Builder {
|
5545 + | #[allow(missing_docs)] // documentation missing in model
|
5546 + | pub(crate) fn set_map_of_length_pattern_string(
|
5547 + | mut self,
|
5548 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_pattern_string_constrained::MapOfLengthPatternStringConstrained>>>,
|
5549 + | ) -> Self {
|
5550 + | self.map_of_length_pattern_string = input.map(|v| v.into());
|
5551 + | self
|
5552 + | }
|
5553 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
5554 + | ///
|
5555 + | /// The builder fails to construct a [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
5556 + | ///
|
5557 + | pub fn build(
|
5558 + | self,
|
5559 + | ) -> Result<
|
5560 + | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput,
|
5561 + | ConstraintViolation,
|
5562 + | > {
|
5563 + | self.build_enforcing_all_constraints()
|
5564 + | }
|
5565 + | fn build_enforcing_all_constraints(
|
5566 + | self,
|
5567 + | ) -> Result<
|
5568 + | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput,
|
5569 + | ConstraintViolation,
|
5570 + | > {
|
5571 + | Ok(
|
5572 + | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
5573 + | map_of_length_pattern_string: self
|
5574 + | .map_of_length_pattern_string
|
5703 5575 | .map(|v| match v {
|
5704 5576 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5705 5577 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5706 5578 | })
|
5707 5579 | .map(|res| {
|
5708 5580 | res.map(|v| v.into())
|
5709 - | .map_err(ConstraintViolation::RangeLongListQuery)
|
5581 + | .map_err(ConstraintViolation::MapOfLengthPatternString)
|
5710 5582 | })
|
5711 5583 | .transpose()?,
|
5712 - | range_byte_set_query: self
|
5713 - | .range_byte_set_query
|
5714 - | .map(|v| match v {
|
5715 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5716 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5717 - | })
|
5718 - | .map(|res| res.map_err(ConstraintViolation::RangeByteSetQuery))
|
5719 - | .transpose()?
|
5720 - | .map(|v: crate::model::SetOfRangeByte| v.into()),
|
5721 - | range_short_set_query: self
|
5722 - | .range_short_set_query
|
5723 - | .map(|v| match v {
|
5724 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5725 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5726 - | })
|
5727 - | .map(|res| res.map_err(ConstraintViolation::RangeShortSetQuery))
|
5728 - | .transpose()?
|
5729 - | .map(|v: crate::model::SetOfRangeShort| v.into()),
|
5730 - | range_integer_set_query: self
|
5731 - | .range_integer_set_query
|
5732 - | .map(|v| match v {
|
5733 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5734 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5735 - | })
|
5736 - | .map(|res| res.map_err(ConstraintViolation::RangeIntegerSetQuery))
|
5737 - | .transpose()?
|
5738 - | .map(|v: crate::model::SetOfRangeInteger| v.into()),
|
5739 - | range_long_set_query: self
|
5740 - | .range_long_set_query
|
5741 - | .map(|v| match v {
|
5742 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5743 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5744 - | })
|
5745 - | .map(|res| res.map_err(ConstraintViolation::RangeLongSetQuery))
|
5746 - | .transpose()?
|
5747 - | .map(|v: crate::model::SetOfRangeLong| v.into()),
|
5748 - | enum_string_list_query: self
|
5749 - | .enum_string_list_query
|
5584 + | },
|
5585 + | )
|
5586 + | }
|
5587 + | }
|
5588 + | }
|
5589 + | /// See [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
5590 + | pub mod query_params_targeting_map_of_length_pattern_string_operation_input {
|
5591 + |
|
5592 + | impl ::std::convert::From<Builder>
|
5593 + | for crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput
|
5594 + | {
|
5595 + | fn from(builder: Builder) -> Self {
|
5596 + | builder.build()
|
5597 + | }
|
5598 + | }
|
5599 + | /// A builder for [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
5600 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5601 + | pub struct Builder {
|
5602 + | pub(crate) map_of_length_pattern_string: ::std::option::Option<
|
5603 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
5604 + | >,
|
5605 + | }
|
5606 + | impl Builder {
|
5607 + | #[allow(missing_docs)] // documentation missing in model
|
5608 + | pub fn map_of_length_pattern_string(
|
5609 + | mut self,
|
5610 + | input: ::std::option::Option<
|
5611 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
5612 + | >,
|
5613 + | ) -> Self {
|
5614 + | self.map_of_length_pattern_string = input;
|
5615 + | self
|
5616 + | }
|
5617 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
5618 + | pub fn build(
|
5619 + | self,
|
5620 + | ) -> crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
5621 + | self.build_enforcing_required_and_enum_traits()
|
5622 + | }
|
5623 + | fn build_enforcing_required_and_enum_traits(
|
5624 + | self,
|
5625 + | ) -> crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
5626 + | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
5627 + | map_of_length_pattern_string: self.map_of_length_pattern_string,
|
5628 + | }
|
5629 + | }
|
5630 + | }
|
5631 + | }
|
5632 + | /// See [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
5633 + | pub(crate) mod query_params_targeting_map_of_list_of_length_pattern_string_operation_input_internal {
|
5634 + |
|
5635 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5636 + | /// Holds one variant for each of the ways the builder can fail.
|
5637 + | #[non_exhaustive]
|
5638 + | #[allow(clippy::enum_variant_names)]
|
5639 + | pub(crate) enum ConstraintViolation {
|
5640 + | /// Constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`.
|
5641 + | #[doc(hidden)]
|
5642 + | MapOfLengthPatternString(
|
5643 + | crate::model::map_of_list_of_length_pattern_string_internal::ConstraintViolation,
|
5644 + | ),
|
5645 + | }
|
5646 + | impl ::std::fmt::Display for ConstraintViolation {
|
5647 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
5648 + | match self {
|
5649 + | ConstraintViolation::MapOfLengthPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`"),
|
5650 + | }
|
5651 + | }
|
5652 + | }
|
5653 + | impl ::std::error::Error for ConstraintViolation {}
|
5654 + | impl ConstraintViolation {
|
5655 + | pub(crate) fn as_validation_exception_field(
|
5656 + | self,
|
5657 + | path: ::std::string::String,
|
5658 + | ) -> crate::model::ValidationExceptionField {
|
5659 + | match self {
|
5660 + | ConstraintViolation::MapOfLengthPatternString(inner) => {
|
5661 + | inner.as_validation_exception_field(path + "/mapOfLengthPatternString")
|
5662 + | }
|
5663 + | }
|
5664 + | }
|
5665 + | }
|
5666 + | impl ::std::convert::From<ConstraintViolation>
|
5667 + | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
5668 + | {
|
5669 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
5670 + | let first_validation_exception_field =
|
5671 + | constraint_violation.as_validation_exception_field("".to_owned());
|
5672 + | let validation_exception = crate::error::ValidationException {
|
5673 + | message: format!(
|
5674 + | "1 validation error detected. {}",
|
5675 + | &first_validation_exception_field.message
|
5676 + | ),
|
5677 + | field_list: Some(vec![first_validation_exception_field]),
|
5678 + | };
|
5679 + | Self::ConstraintViolation(
|
5680 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
5681 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
5682 + | )
|
5683 + | }
|
5684 + | }
|
5685 + | impl ::std::convert::From<Builder>
|
5686 + | for crate::constrained::MaybeConstrained<
|
5687 + | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput,
|
5688 + | >
|
5689 + | {
|
5690 + | fn from(builder: Builder) -> Self {
|
5691 + | Self::Unconstrained(builder)
|
5692 + | }
|
5693 + | }
|
5694 + | impl ::std::convert::TryFrom<Builder>
|
5695 + | for crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
5696 + | {
|
5697 + | type Error = ConstraintViolation;
|
5698 + |
|
5699 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5700 + | builder.build()
|
5701 + | }
|
5702 + | }
|
5703 + | /// A builder for [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
5704 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5705 + | pub(crate) struct Builder {
|
5706 + | pub(crate) map_of_length_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_pattern_string_constrained::MapOfListOfLengthPatternStringConstrained>>,
|
5707 + | }
|
5708 + | impl Builder {
|
5709 + | #[allow(missing_docs)] // documentation missing in model
|
5710 + | pub(crate) fn set_map_of_length_pattern_string(
|
5711 + | mut self,
|
5712 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_pattern_string_constrained::MapOfListOfLengthPatternStringConstrained>>>,
|
5713 + | ) -> Self {
|
5714 + | self.map_of_length_pattern_string = input.map(|v| v.into());
|
5715 + | self
|
5716 + | }
|
5717 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
5718 + | ///
|
5719 + | /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
5720 + | ///
|
5721 + | pub fn build(
|
5722 + | self,
|
5723 + | ) -> Result<
|
5724 + | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput,
|
5725 + | ConstraintViolation,
|
5726 + | > {
|
5727 + | self.build_enforcing_all_constraints()
|
5728 + | }
|
5729 + | fn build_enforcing_all_constraints(
|
5730 + | self,
|
5731 + | ) -> Result<
|
5732 + | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput,
|
5733 + | ConstraintViolation,
|
5734 + | > {
|
5735 + | Ok(
|
5736 + | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
5737 + | map_of_length_pattern_string: self
|
5738 + | .map_of_length_pattern_string
|
5750 5739 | .map(|v| match v {
|
5751 5740 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5752 5741 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5753 5742 | })
|
5754 5743 | .map(|res| {
|
5755 5744 | res.map(|v| v.into())
|
5756 - | .map_err(ConstraintViolation::EnumStringListQuery)
|
5745 + | .map_err(ConstraintViolation::MapOfLengthPatternString)
|
5757 5746 | })
|
5758 5747 | .transpose()?,
|
5759 - | })
|
5748 + | },
|
5749 + | )
|
5760 5750 | }
|
5761 5751 | }
|
5762 5752 | }
|
5763 - | /// See [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
5764 - | pub mod constrained_http_bound_shapes_operation_input {
|
5753 + | /// See [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
5754 + | pub mod query_params_targeting_map_of_list_of_length_pattern_string_operation_input {
|
5755 + |
|
5756 + | impl ::std::convert::From<Builder>
|
5757 + | for crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
5758 + | {
|
5759 + | fn from(builder: Builder) -> Self {
|
5760 + | builder.build()
|
5761 + | }
|
5762 + | }
|
5763 + | /// A builder for [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
5764 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5765 + | pub struct Builder {
|
5766 + | pub(crate) map_of_length_pattern_string: ::std::option::Option<
|
5767 + | ::std::collections::HashMap<
|
5768 + | ::std::string::String,
|
5769 + | ::std::vec::Vec<::std::string::String>,
|
5770 + | >,
|
5771 + | >,
|
5772 + | }
|
5773 + | impl Builder {
|
5774 + | #[allow(missing_docs)] // documentation missing in model
|
5775 + | pub fn map_of_length_pattern_string(
|
5776 + | mut self,
|
5777 + | input: ::std::option::Option<
|
5778 + | ::std::collections::HashMap<
|
5779 + | ::std::string::String,
|
5780 + | ::std::vec::Vec<::std::string::String>,
|
5781 + | >,
|
5782 + | >,
|
5783 + | ) -> Self {
|
5784 + | self.map_of_length_pattern_string = input;
|
5785 + | self
|
5786 + | }
|
5787 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
5788 + | pub fn build(
|
5789 + | self,
|
5790 + | ) -> crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
5791 + | {
|
5792 + | self.build_enforcing_required_and_enum_traits()
|
5793 + | }
|
5794 + | fn build_enforcing_required_and_enum_traits(
|
5795 + | self,
|
5796 + | ) -> crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
5797 + | {
|
5798 + | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
5799 + | map_of_length_pattern_string: self.map_of_length_pattern_string,
|
5800 + | }
|
5801 + | }
|
5802 + | }
|
5803 + | }
|
5804 + | /// See [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
5805 + | pub(crate) mod http_prefix_headers_targeting_length_map_operation_input_internal {
|
5765 5806 |
|
5766 5807 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5767 5808 | /// Holds one variant for each of the ways the builder can fail.
|
5809 + | #[non_exhaustive]
|
5768 5810 | #[allow(clippy::enum_variant_names)]
|
5769 - | pub enum ConstraintViolation {
|
5770 - | /// `length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
5771 - | MissingLengthStringLabel,
|
5772 - | /// `enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
5773 - | MissingEnumStringLabel,
|
5774 - | /// `length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
5775 - | MissingLengthStringHeaderMap,
|
5811 + | pub(crate) enum ConstraintViolation {
|
5812 + | /// Constraint violation occurred building member `length_map` when building `HttpPrefixHeadersTargetingLengthMapOperationInput`.
|
5813 + | #[doc(hidden)]
|
5814 + | LengthMap(crate::model::con_b_map_internal::ConstraintViolation),
|
5776 5815 | }
|
5777 5816 | impl ::std::fmt::Display for ConstraintViolation {
|
5778 5817 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
5779 5818 | match self {
|
5780 - | ConstraintViolation::MissingLengthStringLabel => write!(f, "`length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5781 - | ConstraintViolation::MissingEnumStringLabel => write!(f, "`enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5782 - | ConstraintViolation::MissingLengthStringHeaderMap => write!(f, "`length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5819 + | ConstraintViolation::LengthMap(_) => write!(f, "constraint violation occurred building member `length_map` when building `HttpPrefixHeadersTargetingLengthMapOperationInput`"),
|
5820 + | }
|
5821 + | }
|
5822 + | }
|
5823 + | impl ::std::error::Error for ConstraintViolation {}
|
5824 + | impl ConstraintViolation {
|
5825 + | pub(crate) fn as_validation_exception_field(
|
5826 + | self,
|
5827 + | path: ::std::string::String,
|
5828 + | ) -> crate::model::ValidationExceptionField {
|
5829 + | match self {
|
5830 + | ConstraintViolation::LengthMap(inner) => {
|
5831 + | inner.as_validation_exception_field(path + "/lengthMap")
|
5832 + | }
|
5833 + | }
|
5834 + | }
|
5835 + | }
|
5836 + | impl ::std::convert::From<ConstraintViolation>
|
5837 + | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
5838 + | {
|
5839 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
5840 + | let first_validation_exception_field =
|
5841 + | constraint_violation.as_validation_exception_field("".to_owned());
|
5842 + | let validation_exception = crate::error::ValidationException {
|
5843 + | message: format!(
|
5844 + | "1 validation error detected. {}",
|
5845 + | &first_validation_exception_field.message
|
5846 + | ),
|
5847 + | field_list: Some(vec![first_validation_exception_field]),
|
5848 + | };
|
5849 + | Self::ConstraintViolation(
|
5850 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
5851 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
5852 + | )
|
5783 5853 | }
|
5784 5854 | }
|
5855 + | impl ::std::convert::From<Builder>
|
5856 + | for crate::constrained::MaybeConstrained<
|
5857 + | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput,
|
5858 + | >
|
5859 + | {
|
5860 + | fn from(builder: Builder) -> Self {
|
5861 + | Self::Unconstrained(builder)
|
5862 + | }
|
5785 5863 | }
|
5786 - | impl ::std::error::Error for ConstraintViolation {}
|
5787 - | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedHttpBoundShapesOperationInput {
|
5864 + | impl ::std::convert::TryFrom<Builder>
|
5865 + | for crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput
|
5866 + | {
|
5788 5867 | type Error = ConstraintViolation;
|
5789 5868 |
|
5790 5869 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5791 5870 | builder.build()
|
5792 5871 | }
|
5793 5872 | }
|
5794 - | /// A builder for [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
5873 + | /// A builder for [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
5795 5874 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5796 - | pub struct Builder {
|
5797 - | pub(crate) length_string_label: ::std::option::Option<::std::string::String>,
|
5798 - | pub(crate) range_integer_label: ::std::option::Option<i32>,
|
5799 - | pub(crate) range_short_label: ::std::option::Option<i16>,
|
5800 - | pub(crate) range_long_label: ::std::option::Option<i64>,
|
5801 - | pub(crate) range_byte_label: ::std::option::Option<i8>,
|
5802 - | pub(crate) enum_string_label: ::std::option::Option<crate::model::EnumString>,
|
5803 - | pub(crate) length_string_header_map: ::std::option::Option<
|
5804 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
5805 - | >,
|
5806 - | pub(crate) length_string_header: ::std::option::Option<::std::string::String>,
|
5807 - | pub(crate) range_integer_header: ::std::option::Option<i32>,
|
5808 - | pub(crate) range_short_header: ::std::option::Option<i16>,
|
5809 - | pub(crate) range_long_header: ::std::option::Option<i64>,
|
5810 - | pub(crate) range_byte_header: ::std::option::Option<i8>,
|
5811 - | pub(crate) length_string_set_header:
|
5812 - | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5813 - | pub(crate) list_length_string_header:
|
5814 - | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5815 - | pub(crate) length_list_pattern_string_header:
|
5816 - | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5817 - | pub(crate) length_set_pattern_string_header:
|
5818 - | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5819 - | pub(crate) range_byte_set_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
5820 - | pub(crate) range_short_set_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
5821 - | pub(crate) range_integer_set_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
5822 - | pub(crate) range_long_set_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
5823 - | pub(crate) range_byte_list_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
5824 - | pub(crate) range_short_list_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
5825 - | pub(crate) range_integer_list_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
5826 - | pub(crate) range_long_list_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
5827 - | pub(crate) length_string_query: ::std::option::Option<::std::string::String>,
|
5828 - | pub(crate) range_byte_query: ::std::option::Option<i8>,
|
5829 - | pub(crate) range_short_query: ::std::option::Option<i16>,
|
5830 - | pub(crate) range_integer_query: ::std::option::Option<i32>,
|
5831 - | pub(crate) range_long_query: ::std::option::Option<i64>,
|
5832 - | pub(crate) enum_string_query: ::std::option::Option<crate::model::EnumString>,
|
5833 - | pub(crate) length_string_list_query:
|
5834 - | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5835 - | pub(crate) length_list_pattern_string_query:
|
5836 - | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5837 - | pub(crate) length_string_set_query:
|
5838 - | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5839 - | pub(crate) range_byte_list_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
5840 - | pub(crate) range_short_list_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
5841 - | pub(crate) range_integer_list_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
5842 - | pub(crate) range_long_list_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
5843 - | pub(crate) range_byte_set_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
5844 - | pub(crate) range_short_set_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
5845 - | pub(crate) range_integer_set_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
5846 - | pub(crate) range_long_set_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
5847 - | pub(crate) enum_string_list_query:
|
5848 - | ::std::option::Option<::std::vec::Vec<crate::model::EnumString>>,
|
5875 + | pub(crate) struct Builder {
|
5876 + | pub(crate) length_map:
|
5877 + | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
5849 5878 | }
|
5850 5879 | impl Builder {
|
5851 5880 | #[allow(missing_docs)] // documentation missing in model
|
5852 - | pub fn length_string_label(mut self, input: ::std::string::String) -> Self {
|
5853 - | self.length_string_label = Some(input);
|
5881 + | pub(crate) fn set_length_map(
|
5882 + | mut self,
|
5883 + | input: Option<
|
5884 + | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
5885 + | >,
|
5886 + | ) -> Self {
|
5887 + | self.length_map = input.map(|v| v.into());
|
5854 5888 | self
|
5855 5889 | }
|
5856 - | #[allow(missing_docs)] // documentation missing in model
|
5857 - | pub fn range_integer_label(mut self, input: i32) -> Self {
|
5858 - | self.range_integer_label = Some(input);
|
5859 - | self
|
5890 + | /// Consumes the builder and constructs a [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
5891 + | ///
|
5892 + | /// The builder fails to construct a [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput) if a [`ConstraintViolation`] occurs.
|
5893 + | ///
|
5894 + | pub fn build(
|
5895 + | self,
|
5896 + | ) -> Result<
|
5897 + | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput,
|
5898 + | ConstraintViolation,
|
5899 + | > {
|
5900 + | self.build_enforcing_all_constraints()
|
5860 5901 | }
|
5861 - | #[allow(missing_docs)] // documentation missing in model
|
5862 - | pub fn range_short_label(mut self, input: i16) -> Self {
|
5863 - | self.range_short_label = Some(input);
|
5864 - | self
|
5902 + | fn build_enforcing_all_constraints(
|
5903 + | self,
|
5904 + | ) -> Result<
|
5905 + | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput,
|
5906 + | ConstraintViolation,
|
5907 + | > {
|
5908 + | Ok(
|
5909 + | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput {
|
5910 + | length_map: self
|
5911 + | .length_map
|
5912 + | .map(|v| match v {
|
5913 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5914 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5915 + | })
|
5916 + | .map(|res| res.map_err(ConstraintViolation::LengthMap))
|
5917 + | .transpose()?
|
5918 + | .map(|v: crate::model::ConBMap| v.into()),
|
5919 + | },
|
5920 + | )
|
5865 5921 | }
|
5866 - | #[allow(missing_docs)] // documentation missing in model
|
5867 - | pub fn range_long_label(mut self, input: i64) -> Self {
|
5868 - | self.range_long_label = Some(input);
|
5869 - | self
|
5870 5922 | }
|
5871 - | #[allow(missing_docs)] // documentation missing in model
|
5872 - | pub fn range_byte_label(mut self, input: i8) -> Self {
|
5873 - | self.range_byte_label = Some(input);
|
5874 - | self
|
5923 + | }
|
5924 + | /// See [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
5925 + | pub mod http_prefix_headers_targeting_length_map_operation_input {
|
5926 + |
|
5927 + | impl ::std::convert::From<Builder>
|
5928 + | for crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput
|
5929 + | {
|
5930 + | fn from(builder: Builder) -> Self {
|
5931 + | builder.build()
|
5875 5932 | }
|
5876 - | #[allow(missing_docs)] // documentation missing in model
|
5877 - | pub fn enum_string_label(mut self, input: crate::model::EnumString) -> Self {
|
5878 - | self.enum_string_label = Some(input);
|
5879 - | self
|
5880 5933 | }
|
5881 - | #[allow(missing_docs)] // documentation missing in model
|
5882 - | pub fn length_string_header_map(
|
5883 - | mut self,
|
5884 - | input: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
5885 - | ) -> Self {
|
5886 - | self.length_string_header_map = Some(input);
|
5887 - | self
|
5934 + | /// A builder for [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
5935 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5936 + | pub struct Builder {
|
5937 + | pub(crate) length_map: ::std::option::Option<
|
5938 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
5939 + | >,
|
5888 5940 | }
|
5941 + | impl Builder {
|
5889 5942 | #[allow(missing_docs)] // documentation missing in model
|
5890 - | pub fn length_string_header(
|
5943 + | pub fn length_map(
|
5891 5944 | mut self,
|
5892 - | input: ::std::option::Option<::std::string::String>,
|
5945 + | input: ::std::option::Option<
|
5946 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
5947 + | >,
|
5893 5948 | ) -> Self {
|
5894 - | self.length_string_header = input;
|
5949 + | self.length_map = input;
|
5895 5950 | self
|
5896 5951 | }
|
5897 - | #[allow(missing_docs)] // documentation missing in model
|
5898 - | pub fn range_integer_header(mut self, input: i32) -> Self {
|
5899 - | self.range_integer_header = Some(input);
|
5900 - | self
|
5952 + | /// Consumes the builder and constructs a [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
5953 + | pub fn build(self) -> crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput {
|
5954 + | self.build_enforcing_required_and_enum_traits()
|
5901 5955 | }
|
5902 - | #[allow(missing_docs)] // documentation missing in model
|
5903 - | pub fn range_short_header(mut self, input: i16) -> Self {
|
5904 - | self.range_short_header = Some(input);
|
5905 - | self
|
5956 + | fn build_enforcing_required_and_enum_traits(
|
5957 + | self,
|
5958 + | ) -> crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput {
|
5959 + | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput {
|
5960 + | length_map: self.length_map,
|
5906 5961 | }
|
5907 - | #[allow(missing_docs)] // documentation missing in model
|
5908 - | pub fn range_long_header(mut self, input: i64) -> Self {
|
5909 - | self.range_long_header = Some(input);
|
5910 - | self
|
5911 5962 | }
|
5912 - | #[allow(missing_docs)] // documentation missing in model
|
5913 - | pub fn range_byte_header(mut self, input: i8) -> Self {
|
5914 - | self.range_byte_header = Some(input);
|
5915 - | self
|
5916 5963 | }
|
5917 - | #[allow(missing_docs)] // documentation missing in model
|
5918 - | pub fn length_string_set_header(
|
5919 - | mut self,
|
5920 - | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5921 - | ) -> Self {
|
5922 - | self.length_string_set_header = input;
|
5923 - | self
|
5964 + | }
|
5965 + | /// See [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
5966 + | pub(crate) mod query_params_targeting_map_of_enum_string_operation_input_internal {
|
5967 + |
|
5968 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5969 + | /// Holds one variant for each of the ways the builder can fail.
|
5970 + | #[non_exhaustive]
|
5971 + | #[allow(clippy::enum_variant_names)]
|
5972 + | pub(crate) enum ConstraintViolation {
|
5973 + | /// Constraint violation occurred building member `map_of_enum_string` when building `QueryParamsTargetingMapOfEnumStringOperationInput`.
|
5974 + | #[doc(hidden)]
|
5975 + | MapOfEnumString(crate::model::map_of_enum_string_internal::ConstraintViolation),
|
5924 5976 | }
|
5925 - | #[allow(missing_docs)] // documentation missing in model
|
5926 - | pub fn list_length_string_header(
|
5927 - | mut self,
|
5928 - | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5929 - | ) -> Self {
|
5930 - | self.list_length_string_header = input;
|
5931 - | self
|
5977 + | impl ::std::fmt::Display for ConstraintViolation {
|
5978 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
5979 + | match self {
|
5980 + | ConstraintViolation::MapOfEnumString(_) => write!(f, "constraint violation occurred building member `map_of_enum_string` when building `QueryParamsTargetingMapOfEnumStringOperationInput`"),
|
5932 5981 | }
|
5933 - | #[allow(missing_docs)] // documentation missing in model
|
5934 - | pub fn length_list_pattern_string_header(
|
5935 - | mut self,
|
5936 - | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5937 - | ) -> Self {
|
5938 - | self.length_list_pattern_string_header = input;
|
5939 - | self
|
5940 5982 | }
|
5941 - | #[allow(missing_docs)] // documentation missing in model
|
5942 - | pub fn length_set_pattern_string_header(
|
5943 - | mut self,
|
5944 - | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5945 - | ) -> Self {
|
5946 - | self.length_set_pattern_string_header = input;
|
5947 - | self
|
5948 5983 | }
|
5949 - | #[allow(missing_docs)] // documentation missing in model
|
5950 - | pub fn range_byte_set_header(
|
5951 - | mut self,
|
5952 - | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
5953 - | ) -> Self {
|
5954 - | self.range_byte_set_header = input;
|
5955 - | self
|
5984 + | impl ::std::error::Error for ConstraintViolation {}
|
5985 + | impl ConstraintViolation {
|
5986 + | pub(crate) fn as_validation_exception_field(
|
5987 + | self,
|
5988 + | path: ::std::string::String,
|
5989 + | ) -> crate::model::ValidationExceptionField {
|
5990 + | match self {
|
5991 + | ConstraintViolation::MapOfEnumString(inner) => {
|
5992 + | inner.as_validation_exception_field(path + "/mapOfEnumString")
|
5993 + | }
|
5994 + | }
|
5995 + | }
|
5996 + | }
|
5997 + | impl ::std::convert::From<ConstraintViolation>
|
5998 + | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
5999 + | {
|
6000 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
6001 + | let first_validation_exception_field =
|
6002 + | constraint_violation.as_validation_exception_field("".to_owned());
|
6003 + | let validation_exception = crate::error::ValidationException {
|
6004 + | message: format!(
|
6005 + | "1 validation error detected. {}",
|
6006 + | &first_validation_exception_field.message
|
6007 + | ),
|
6008 + | field_list: Some(vec![first_validation_exception_field]),
|
6009 + | };
|
6010 + | Self::ConstraintViolation(
|
6011 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
6012 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
6013 + | )
|
5956 6014 | }
|
5957 - | #[allow(missing_docs)] // documentation missing in model
|
5958 - | pub fn range_short_set_header(
|
5959 - | mut self,
|
5960 - | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
5961 - | ) -> Self {
|
5962 - | self.range_short_set_header = input;
|
5963 - | self
|
5964 6015 | }
|
5965 - | #[allow(missing_docs)] // documentation missing in model
|
5966 - | pub fn range_integer_set_header(
|
5967 - | mut self,
|
5968 - | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
5969 - | ) -> Self {
|
5970 - | self.range_integer_set_header = input;
|
5971 - | self
|
6016 + | impl ::std::convert::From<Builder>
|
6017 + | for crate::constrained::MaybeConstrained<
|
6018 + | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput,
|
6019 + | >
|
6020 + | {
|
6021 + | fn from(builder: Builder) -> Self {
|
6022 + | Self::Unconstrained(builder)
|
5972 6023 | }
|
5973 - | #[allow(missing_docs)] // documentation missing in model
|
5974 - | pub fn range_long_set_header(
|
5975 - | mut self,
|
5976 - | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
5977 - | ) -> Self {
|
5978 - | self.range_long_set_header = input;
|
5979 - | self
|
5980 6024 | }
|
5981 - | #[allow(missing_docs)] // documentation missing in model
|
5982 - | pub fn range_byte_list_header(
|
5983 - | mut self,
|
5984 - | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
5985 - | ) -> Self {
|
5986 - | self.range_byte_list_header = input;
|
5987 - | self
|
6025 + | impl ::std::convert::TryFrom<Builder>
|
6026 + | for crate::input::QueryParamsTargetingMapOfEnumStringOperationInput
|
6027 + | {
|
6028 + | type Error = ConstraintViolation;
|
6029 + |
|
6030 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
6031 + | builder.build()
|
5988 6032 | }
|
5989 - | #[allow(missing_docs)] // documentation missing in model
|
5990 - | pub fn range_short_list_header(
|
5991 - | mut self,
|
5992 - | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
5993 - | ) -> Self {
|
5994 - | self.range_short_list_header = input;
|
5995 - | self
|
5996 6033 | }
|
5997 - | #[allow(missing_docs)] // documentation missing in model
|
5998 - | pub fn range_integer_list_header(
|
5999 - | mut self,
|
6000 - | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
6001 - | ) -> Self {
|
6002 - | self.range_integer_list_header = input;
|
6003 - | self
|
6034 + | /// A builder for [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
6035 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6036 + | pub(crate) struct Builder {
|
6037 + | pub(crate) map_of_enum_string: ::std::option::Option<
|
6038 + | crate::constrained::MaybeConstrained<
|
6039 + | crate::constrained::map_of_enum_string_constrained::MapOfEnumStringConstrained,
|
6040 + | >,
|
6041 + | >,
|
6004 6042 | }
|
6043 + | impl Builder {
|
6005 6044 | #[allow(missing_docs)] // documentation missing in model
|
6006 - | pub fn range_long_list_header(
|
6045 + | pub(crate) fn set_map_of_enum_string(
|
6007 6046 | mut self,
|
6008 - | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
6047 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_enum_string_constrained::MapOfEnumStringConstrained>>>,
|
6009 6048 | ) -> Self {
|
6010 - | self.range_long_list_header = input;
|
6049 + | self.map_of_enum_string = input.map(|v| v.into());
|
6011 6050 | self
|
6012 6051 | }
|
6013 - | #[allow(missing_docs)] // documentation missing in model
|
6014 - | pub fn length_string_query(
|
6015 - | mut self,
|
6016 - | input: ::std::option::Option<::std::string::String>,
|
6017 - | ) -> Self {
|
6018 - | self.length_string_query = input;
|
6019 - | self
|
6052 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
6053 + | ///
|
6054 + | /// The builder fails to construct a [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput) if a [`ConstraintViolation`] occurs.
|
6055 + | ///
|
6056 + | pub fn build(
|
6057 + | self,
|
6058 + | ) -> Result<
|
6059 + | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput,
|
6060 + | ConstraintViolation,
|
6061 + | > {
|
6062 + | self.build_enforcing_all_constraints()
|
6020 6063 | }
|
6021 - | #[allow(missing_docs)] // documentation missing in model
|
6022 - | pub fn range_byte_query(mut self, input: i8) -> Self {
|
6023 - | self.range_byte_query = Some(input);
|
6024 - | self
|
6064 + | fn build_enforcing_all_constraints(
|
6065 + | self,
|
6066 + | ) -> Result<
|
6067 + | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput,
|
6068 + | ConstraintViolation,
|
6069 + | > {
|
6070 + | Ok(
|
6071 + | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput {
|
6072 + | map_of_enum_string: self
|
6073 + | .map_of_enum_string
|
6074 + | .map(|v| match v {
|
6075 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
6076 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
6077 + | })
|
6078 + | .map(|res| {
|
6079 + | res.map(|v| v.into())
|
6080 + | .map_err(ConstraintViolation::MapOfEnumString)
|
6081 + | })
|
6082 + | .transpose()?,
|
6083 + | },
|
6084 + | )
|
6025 6085 | }
|
6026 - | #[allow(missing_docs)] // documentation missing in model
|
6027 - | pub fn range_short_query(mut self, input: i16) -> Self {
|
6028 - | self.range_short_query = Some(input);
|
6029 - | self
|
6030 6086 | }
|
6031 - | #[allow(missing_docs)] // documentation missing in model
|
6032 - | pub fn range_integer_query(mut self, input: i32) -> Self {
|
6033 - | self.range_integer_query = Some(input);
|
6034 - | self
|
6087 + | }
|
6088 + | /// See [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
6089 + | pub mod query_params_targeting_map_of_enum_string_operation_input {
|
6090 + |
|
6091 + | impl ::std::convert::From<Builder>
|
6092 + | for crate::input::QueryParamsTargetingMapOfEnumStringOperationInput
|
6093 + | {
|
6094 + | fn from(builder: Builder) -> Self {
|
6095 + | builder.build()
|
6035 6096 | }
|
6036 - | #[allow(missing_docs)] // documentation missing in model
|
6037 - | pub fn range_long_query(mut self, input: i64) -> Self {
|
6038 - | self.range_long_query = Some(input);
|
6039 - | self
|
6040 6097 | }
|
6041 - | #[allow(missing_docs)] // documentation missing in model
|
6042 - | pub fn enum_string_query(
|
6043 - | mut self,
|
6044 - | input: ::std::option::Option<crate::model::EnumString>,
|
6045 - | ) -> Self {
|
6046 - | self.enum_string_query = input;
|
6047 - | self
|
6098 + | /// A builder for [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
6099 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6100 + | pub struct Builder {
|
6101 + | pub(crate) map_of_enum_string: ::std::option::Option<
|
6102 + | ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
6103 + | >,
|
6048 6104 | }
|
6105 + | impl Builder {
|
6049 6106 | #[allow(missing_docs)] // documentation missing in model
|
6050 - | pub fn length_string_list_query(
|
6107 + | pub fn map_of_enum_string(
|
6051 6108 | mut self,
|
6052 - | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
6109 + | input: ::std::option::Option<
|
6110 + | ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
6111 + | >,
|
6053 6112 | ) -> Self {
|
6054 - | self.length_string_list_query = input;
|
6113 + | self.map_of_enum_string = input;
|
6055 6114 | self
|
6056 6115 | }
|
6057 - | #[allow(missing_docs)] // documentation missing in model
|
6058 - | pub fn length_list_pattern_string_query(
|
6059 - | mut self,
|
6060 - | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
6061 - | ) -> Self {
|
6062 - | self.length_list_pattern_string_query = input;
|
6063 - | self
|
6116 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
6117 + | pub fn build(self) -> crate::input::QueryParamsTargetingMapOfEnumStringOperationInput {
|
6118 + | self.build_enforcing_required_and_enum_traits()
|
6064 6119 | }
|
6065 - | #[allow(missing_docs)] // documentation missing in model
|
6066 - | pub fn length_string_set_query(
|
6067 - | mut self,
|
6068 - | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
6069 - | ) -> Self {
|
6070 - | self.length_string_set_query = input;
|
6071 - | self
|
6120 + | fn build_enforcing_required_and_enum_traits(
|
6121 + | self,
|
6122 + | ) -> crate::input::QueryParamsTargetingMapOfEnumStringOperationInput {
|
6123 + | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput {
|
6124 + | map_of_enum_string: self.map_of_enum_string,
|
6072 6125 | }
|
6073 - | #[allow(missing_docs)] // documentation missing in model
|
6074 - | pub fn range_byte_list_query(
|
6075 - | mut self,
|
6076 - | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
6077 - | ) -> Self {
|
6078 - | self.range_byte_list_query = input;
|
6079 - | self
|
6080 6126 | }
|
6081 - | #[allow(missing_docs)] // documentation missing in model
|
6082 - | pub fn range_short_list_query(
|
6083 - | mut self,
|
6084 - | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
6085 - | ) -> Self {
|
6086 - | self.range_short_list_query = input;
|
6087 - | self
|
6088 6127 | }
|
6089 - | #[allow(missing_docs)] // documentation missing in model
|
6090 - | pub fn range_integer_list_query(
|
6091 - | mut self,
|
6092 - | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
6093 - | ) -> Self {
|
6094 - | self.range_integer_list_query = input;
|
6095 - | self
|
6128 + | }
|
6129 + | /// See [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
6130 + | pub(crate) mod non_streaming_blob_operation_input_internal {
|
6131 + |
|
6132 + | impl ::std::convert::From<Builder> for crate::input::NonStreamingBlobOperationInput {
|
6133 + | fn from(builder: Builder) -> Self {
|
6134 + | builder.build()
|
6096 6135 | }
|
6097 - | #[allow(missing_docs)] // documentation missing in model
|
6098 - | pub fn range_long_list_query(
|
6099 - | mut self,
|
6100 - | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
6101 - | ) -> Self {
|
6102 - | self.range_long_list_query = input;
|
6103 - | self
|
6104 6136 | }
|
6105 - | #[allow(missing_docs)] // documentation missing in model
|
6106 - | pub fn range_byte_set_query(
|
6107 - | mut self,
|
6108 - | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
6109 - | ) -> Self {
|
6110 - | self.range_byte_set_query = input;
|
6111 - | self
|
6137 + | /// A builder for [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
6138 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6139 + | pub(crate) struct Builder {
|
6140 + | pub(crate) non_streaming_blob:
|
6141 + | ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
6112 6142 | }
|
6143 + | impl Builder {
|
6113 6144 | #[allow(missing_docs)] // documentation missing in model
|
6114 - | pub fn range_short_set_query(
|
6145 + | pub(crate) fn set_non_streaming_blob(
|
6115 6146 | mut self,
|
6116 - | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
6147 + | input: Option<impl ::std::convert::Into<::aws_smithy_http_server_python::types::Blob>>,
|
6117 6148 | ) -> Self {
|
6118 - | self.range_short_set_query = input;
|
6149 + | self.non_streaming_blob = input.map(|v| v.into());
|
6119 6150 | self
|
6120 6151 | }
|
6121 - | #[allow(missing_docs)] // documentation missing in model
|
6122 - | pub fn range_integer_set_query(
|
6123 - | mut self,
|
6124 - | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
6125 - | ) -> Self {
|
6126 - | self.range_integer_set_query = input;
|
6127 - | self
|
6152 + | /// Consumes the builder and constructs a [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
6153 + | pub fn build(self) -> crate::input::NonStreamingBlobOperationInput {
|
6154 + | self.build_enforcing_all_constraints()
|
6155 + | }
|
6156 + | fn build_enforcing_all_constraints(self) -> crate::input::NonStreamingBlobOperationInput {
|
6157 + | crate::input::NonStreamingBlobOperationInput {
|
6158 + | non_streaming_blob: self.non_streaming_blob,
|
6159 + | }
|
6160 + | }
|
6161 + | }
|
6162 + | }
|
6163 + | /// See [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
6164 + | pub mod non_streaming_blob_operation_input {
|
6165 + |
|
6166 + | impl ::std::convert::From<Builder> for crate::input::NonStreamingBlobOperationInput {
|
6167 + | fn from(builder: Builder) -> Self {
|
6168 + | builder.build()
|
6128 6169 | }
|
6129 - | #[allow(missing_docs)] // documentation missing in model
|
6130 - | pub fn range_long_set_query(
|
6131 - | mut self,
|
6132 - | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
6133 - | ) -> Self {
|
6134 - | self.range_long_set_query = input;
|
6135 - | self
|
6136 6170 | }
|
6171 + | /// A builder for [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
6172 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6173 + | pub struct Builder {
|
6174 + | pub(crate) non_streaming_blob:
|
6175 + | ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
6176 + | }
|
6177 + | impl Builder {
|
6137 6178 | #[allow(missing_docs)] // documentation missing in model
|
6138 - | pub fn enum_string_list_query(
|
6179 + | pub fn non_streaming_blob(
|
6139 6180 | mut self,
|
6140 - | input: ::std::option::Option<::std::vec::Vec<crate::model::EnumString>>,
|
6181 + | input: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
6141 6182 | ) -> Self {
|
6142 - | self.enum_string_list_query = input;
|
6183 + | self.non_streaming_blob = input;
|
6143 6184 | self
|
6144 6185 | }
|
6145 - | /// Consumes the builder and constructs a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
6146 - | ///
|
6147 - | /// The builder fails to construct a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput) if you do not provide a value for all non-`Option`al members.
|
6148 - | ///
|
6149 - | pub fn build(
|
6150 - | self,
|
6151 - | ) -> Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ConstraintViolation>
|
6152 - | {
|
6186 + | /// Consumes the builder and constructs a [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
6187 + | pub fn build(self) -> crate::input::NonStreamingBlobOperationInput {
|
6153 6188 | self.build_enforcing_required_and_enum_traits()
|
6154 6189 | }
|
6155 6190 | fn build_enforcing_required_and_enum_traits(
|
6156 6191 | self,
|
6157 - | ) -> Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ConstraintViolation>
|
6158 - | {
|
6159 - | Ok(crate::input::ConstrainedHttpBoundShapesOperationInput {
|
6160 - | length_string_label: self
|
6161 - | .length_string_label
|
6162 - | .ok_or(ConstraintViolation::MissingLengthStringLabel)?,
|
6163 - | range_integer_label: self.range_integer_label.unwrap_or(0i32),
|
6164 - | range_short_label: self.range_short_label.unwrap_or(0i16),
|
6165 - | range_long_label: self.range_long_label.unwrap_or(0i64),
|
6166 - | range_byte_label: self.range_byte_label.unwrap_or(0i8),
|
6167 - | enum_string_label: self
|
6168 - | .enum_string_label
|
6169 - | .ok_or(ConstraintViolation::MissingEnumStringLabel)?,
|
6170 - | length_string_header_map: self
|
6171 - | .length_string_header_map
|
6172 - | .ok_or(ConstraintViolation::MissingLengthStringHeaderMap)?,
|
6173 - | length_string_header: self.length_string_header,
|
6174 - | range_integer_header: self.range_integer_header.unwrap_or(0i32),
|
6175 - | range_short_header: self.range_short_header.unwrap_or(0i16),
|
6176 - | range_long_header: self.range_long_header.unwrap_or(0i64),
|
6177 - | range_byte_header: self.range_byte_header.unwrap_or(0i8),
|
6178 - | length_string_set_header: self.length_string_set_header,
|
6179 - | list_length_string_header: self.list_length_string_header,
|
6180 - | length_list_pattern_string_header: self.length_list_pattern_string_header,
|
6181 - | length_set_pattern_string_header: self.length_set_pattern_string_header,
|
6182 - | range_byte_set_header: self.range_byte_set_header,
|
6183 - | range_short_set_header: self.range_short_set_header,
|
6184 - | range_integer_set_header: self.range_integer_set_header,
|
6185 - | range_long_set_header: self.range_long_set_header,
|
6186 - | range_byte_list_header: self.range_byte_list_header,
|
6187 - | range_short_list_header: self.range_short_list_header,
|
6188 - | range_integer_list_header: self.range_integer_list_header,
|
6189 - | range_long_list_header: self.range_long_list_header,
|
6190 - | length_string_query: self.length_string_query,
|
6191 - | range_byte_query: self.range_byte_query.unwrap_or(0i8),
|
6192 - | range_short_query: self.range_short_query.unwrap_or(0i16),
|
6193 - | range_integer_query: self.range_integer_query.unwrap_or(0i32),
|
6194 - | range_long_query: self.range_long_query.unwrap_or(0i64),
|
6195 - | enum_string_query: self.enum_string_query,
|
6196 - | length_string_list_query: self.length_string_list_query,
|
6197 - | length_list_pattern_string_query: self.length_list_pattern_string_query,
|
6198 - | length_string_set_query: self.length_string_set_query,
|
6199 - | range_byte_list_query: self.range_byte_list_query,
|
6200 - | range_short_list_query: self.range_short_list_query,
|
6201 - | range_integer_list_query: self.range_integer_list_query,
|
6202 - | range_long_list_query: self.range_long_list_query,
|
6203 - | range_byte_set_query: self.range_byte_set_query,
|
6204 - | range_short_set_query: self.range_short_set_query,
|
6205 - | range_integer_set_query: self.range_integer_set_query,
|
6206 - | range_long_set_query: self.range_long_set_query,
|
6207 - | enum_string_list_query: self.enum_string_list_query,
|
6208 - | })
|
6192 + | ) -> crate::input::NonStreamingBlobOperationInput {
|
6193 + | crate::input::NonStreamingBlobOperationInput {
|
6194 + | non_streaming_blob: self.non_streaming_blob,
|
6195 + | }
|
6209 6196 | }
|
6210 6197 | }
|
6211 6198 | }
|
6212 - | /// See [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
6213 - | pub(crate) mod constrained_shapes_only_in_output_operation_input_internal {
|
6199 + | /// See [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
6200 + | pub(crate) mod streaming_blob_operation_input_internal {
|
6214 6201 |
|
6215 - | impl ::std::convert::From<Builder> for crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
6202 + | impl ::std::convert::From<Builder> for crate::input::StreamingBlobOperationInput {
|
6216 6203 | fn from(builder: Builder) -> Self {
|
6217 6204 | builder.build()
|
6218 6205 | }
|
6219 6206 | }
|
6220 - | /// A builder for [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
6207 + | /// A builder for [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
6221 6208 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6222 - | pub(crate) struct Builder {}
|
6209 + | pub(crate) struct Builder {
|
6210 + | pub(crate) streaming_blob:
|
6211 + | ::std::option::Option<::aws_smithy_http_server_python::types::ByteStream>,
|
6212 + | }
|
6223 6213 | impl Builder {
|
6224 - | /// Consumes the builder and constructs a [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
6225 - | pub fn build(self) -> crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
6214 + | #[allow(missing_docs)] // documentation missing in model
|
6215 + | pub(crate) fn set_streaming_blob(
|
6216 + | mut self,
|
6217 + | input: impl ::std::convert::Into<::aws_smithy_http_server_python::types::ByteStream>,
|
6218 + | ) -> Self {
|
6219 + | self.streaming_blob = Some(input.into());
|
6220 + | self
|
6221 + | }
|
6222 + | /// Consumes the builder and constructs a [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
6223 + | pub fn build(self) -> crate::input::StreamingBlobOperationInput {
|
6226 6224 | self.build_enforcing_all_constraints()
|
6227 6225 | }
|
6228 - | fn build_enforcing_all_constraints(
|
6229 - | self,
|
6230 - | ) -> crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
6231 - | crate::input::ConstrainedShapesOnlyInOutputOperationInput {}
|
6226 + | fn build_enforcing_all_constraints(self) -> crate::input::StreamingBlobOperationInput {
|
6227 + | crate::input::StreamingBlobOperationInput {
|
6228 + | streaming_blob: self.streaming_blob.unwrap_or_default(),
|
6229 + | }
|
6232 6230 | }
|
6233 6231 | }
|
6234 6232 | }
|
6235 - | /// See [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
6236 - | pub mod constrained_shapes_only_in_output_operation_input {
|
6233 + | /// See [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
6234 + | pub mod streaming_blob_operation_input {
|
6237 6235 |
|
6238 - | impl ::std::convert::From<Builder> for crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
6236 + | impl ::std::convert::From<Builder> for crate::input::StreamingBlobOperationInput {
|
6239 6237 | fn from(builder: Builder) -> Self {
|
6240 6238 | builder.build()
|
6241 6239 | }
|
6242 6240 | }
|
6243 - | /// A builder for [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
6241 + | /// A builder for [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
6244 6242 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6245 - | pub struct Builder {}
|
6243 + | pub struct Builder {
|
6244 + | pub(crate) streaming_blob:
|
6245 + | ::std::option::Option<::aws_smithy_http_server_python::types::ByteStream>,
|
6246 + | }
|
6246 6247 | impl Builder {
|
6247 - | /// Consumes the builder and constructs a [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
6248 - | pub fn build(self) -> crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
6248 + | #[allow(missing_docs)] // documentation missing in model
|
6249 + | pub fn streaming_blob(
|
6250 + | mut self,
|
6251 + | input: ::aws_smithy_http_server_python::types::ByteStream,
|
6252 + | ) -> Self {
|
6253 + | self.streaming_blob = Some(input);
|
6254 + | self
|
6255 + | }
|
6256 + | /// Consumes the builder and constructs a [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
6257 + | pub fn build(self) -> crate::input::StreamingBlobOperationInput {
|
6249 6258 | self.build_enforcing_required_and_enum_traits()
|
6250 6259 | }
|
6251 6260 | fn build_enforcing_required_and_enum_traits(
|
6252 6261 | self,
|
6253 - | ) -> crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
6254 - | crate::input::ConstrainedShapesOnlyInOutputOperationInput {}
|
6262 + | ) -> crate::input::StreamingBlobOperationInput {
|
6263 + | crate::input::StreamingBlobOperationInput {
|
6264 + | streaming_blob: self.streaming_blob.unwrap_or_default(),
|
6265 + | }
|
6255 6266 | }
|
6256 6267 | }
|
6257 6268 | }
|
6258 - | /// See [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
6259 - | pub(crate) mod constrained_shapes_operation_input_internal {
|
6269 + | /// See [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
6270 + | pub(crate) mod event_streams_operation_input_internal {
|
6260 6271 |
|
6261 6272 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
6262 6273 | /// Holds one variant for each of the ways the builder can fail.
|
6263 6274 | #[non_exhaustive]
|
6264 6275 | #[allow(clippy::enum_variant_names)]
|
6265 6276 | pub(crate) enum ConstraintViolation {
|
6266 - | /// `con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`.
|
6267 - | MissingConA,
|
6268 - | /// Constraint violation occurred building member `con_a` when building `ConstrainedShapesOperationInput`.
|
6269 - | #[doc(hidden)]
|
6270 - | ConA(crate::model::con_a_internal::ConstraintViolation),
|
6277 + | /// `events` was not provided but it is required when building `EventStreamsOperationInput`.
|
6278 + | MissingEvents,
|
6271 6279 | }
|
6272 6280 | impl ::std::fmt::Display for ConstraintViolation {
|
6273 6281 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
6274 6282 | match self {
|
6275 - | ConstraintViolation::MissingConA => write!(f, "`con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`"),
|
6276 - | ConstraintViolation::ConA(_) => write!(f, "constraint violation occurred building member `con_a` when building `ConstrainedShapesOperationInput`"),
|
6283 + | ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `EventStreamsOperationInput`"),
|
6277 6284 | }
|
6278 6285 | }
|
6279 6286 | }
|
6280 6287 | impl ::std::error::Error for ConstraintViolation {}
|
6281 6288 | impl ConstraintViolation {
|
6282 6289 | pub(crate) fn as_validation_exception_field(
|
6283 6290 | self,
|
6284 6291 | path: ::std::string::String,
|
6285 6292 | ) -> crate::model::ValidationExceptionField {
|
6286 6293 | match self {
|
6287 - | ConstraintViolation::MissingConA => crate::model::ValidationExceptionField {
|
6288 - | message: format!(
|
6289 - | "Value at '{}/conA' failed to satisfy constraint: Member must not be null",
|
6290 - | path
|
6291 - | ),
|
6292 - | path: path + "/conA",
|
6294 + | ConstraintViolation::MissingEvents => crate::model::ValidationExceptionField {
|
6295 + | message: format!("Value at '{}/events' failed to satisfy constraint: Member must not be null", path),
|
6296 + | path: path + "/events",
|
6293 6297 | },
|
6294 - | ConstraintViolation::ConA(inner) => {
|
6295 - | inner.as_validation_exception_field(path + "/conA")
|
6296 - | }
|
6297 6298 | }
|
6298 6299 | }
|
6299 6300 | }
|
6300 6301 | impl ::std::convert::From<ConstraintViolation>
|
6301 6302 | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
6302 6303 | {
|
6303 6304 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
6304 6305 | let first_validation_exception_field =
|
6305 6306 | constraint_violation.as_validation_exception_field("".to_owned());
|
6306 6307 | let validation_exception = crate::error::ValidationException {
|
6307 6308 | message: format!(
|
6308 6309 | "1 validation error detected. {}",
|
6309 6310 | &first_validation_exception_field.message
|
6310 6311 | ),
|
6311 6312 | field_list: Some(vec![first_validation_exception_field]),
|
6312 6313 | };
|
6313 6314 | Self::ConstraintViolation(
|
6314 6315 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
6315 6316 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
6316 6317 | )
|
6317 6318 | }
|
6318 6319 | }
|
6319 6320 | impl ::std::convert::From<Builder>
|
6320 - | for crate::constrained::MaybeConstrained<crate::input::ConstrainedShapesOperationInput>
|
6321 + | for crate::constrained::MaybeConstrained<crate::input::EventStreamsOperationInput>
|
6321 6322 | {
|
6322 6323 | fn from(builder: Builder) -> Self {
|
6323 6324 | Self::Unconstrained(builder)
|
6324 6325 | }
|
6325 6326 | }
|
6326 - | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedShapesOperationInput {
|
6327 + | impl ::std::convert::TryFrom<Builder> for crate::input::EventStreamsOperationInput {
|
6327 6328 | type Error = ConstraintViolation;
|
6328 6329 |
|
6329 6330 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
6330 6331 | builder.build()
|
6331 6332 | }
|
6332 6333 | }
|
6333 - | /// A builder for [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
6334 + | /// A builder for [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
6334 6335 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6335 6336 | pub(crate) struct Builder {
|
6336 - | pub(crate) con_a:
|
6337 - | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConA>>,
|
6337 + | pub(crate) events: ::std::option::Option<
|
6338 + | crate::python_event_stream::EventStreamsOperationInputEventsReceiver,
|
6339 + | >,
|
6338 6340 | }
|
6339 6341 | impl Builder {
|
6340 6342 | #[allow(missing_docs)] // documentation missing in model
|
6341 - | pub(crate) fn set_con_a(
|
6343 + | pub(crate) fn set_events(
|
6342 6344 | mut self,
|
6343 - | input: impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConA>>,
|
6345 + | input: impl ::std::convert::Into<
|
6346 + | crate::python_event_stream::EventStreamsOperationInputEventsReceiver,
|
6347 + | >,
|
6344 6348 | ) -> Self {
|
6345 - | self.con_a = Some(input.into());
|
6349 + | self.events = Some(input.into());
|
6346 6350 | self
|
6347 6351 | }
|
6348 - | /// Consumes the builder and constructs a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
6352 + | /// Consumes the builder and constructs a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
6349 6353 | ///
|
6350 - | /// The builder fails to construct a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput) if a [`ConstraintViolation`] occurs.
|
6354 + | /// The builder fails to construct a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput) if a [`ConstraintViolation`] occurs.
|
6351 6355 | ///
|
6352 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
6353 6356 | pub fn build(
|
6354 6357 | self,
|
6355 - | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
6358 + | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
6356 6359 | self.build_enforcing_all_constraints()
|
6357 6360 | }
|
6358 6361 | fn build_enforcing_all_constraints(
|
6359 6362 | self,
|
6360 - | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
6361 - | Ok(crate::input::ConstrainedShapesOperationInput {
|
6362 - | con_a: self
|
6363 - | .con_a
|
6364 - | .map(|v| match v {
|
6365 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
6366 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
6367 - | })
|
6368 - | .map(|res| res.map_err(ConstraintViolation::ConA))
|
6369 - | .transpose()?
|
6370 - | .ok_or(ConstraintViolation::MissingConA)?,
|
6363 + | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
6364 + | Ok(crate::input::EventStreamsOperationInput {
|
6365 + | events: self.events.ok_or(ConstraintViolation::MissingEvents)?,
|
6371 6366 | })
|
6372 6367 | }
|
6373 6368 | }
|
6374 6369 | }
|
6375 - | /// See [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
6376 - | pub mod constrained_shapes_operation_input {
|
6370 + | /// See [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
6371 + | pub mod event_streams_operation_input {
|
6377 6372 |
|
6378 6373 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
6379 6374 | /// Holds one variant for each of the ways the builder can fail.
|
6380 6375 | #[allow(clippy::enum_variant_names)]
|
6381 6376 | pub enum ConstraintViolation {
|
6382 - | /// `con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`.
|
6383 - | MissingConA,
|
6377 + | /// `events` was not provided but it is required when building `EventStreamsOperationInput`.
|
6378 + | MissingEvents,
|
6384 6379 | }
|
6385 6380 | impl ::std::fmt::Display for ConstraintViolation {
|
6386 6381 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
6387 6382 | match self {
|
6388 - | ConstraintViolation::MissingConA => write!(f, "`con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`"),
|
6383 + | ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `EventStreamsOperationInput`"),
|
6389 6384 | }
|
6390 6385 | }
|
6391 6386 | }
|
6392 6387 | impl ::std::error::Error for ConstraintViolation {}
|
6393 - | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedShapesOperationInput {
|
6388 + | impl ::std::convert::TryFrom<Builder> for crate::input::EventStreamsOperationInput {
|
6394 6389 | type Error = ConstraintViolation;
|
6395 6390 |
|
6396 6391 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
6397 6392 | builder.build()
|
6398 6393 | }
|
6399 6394 | }
|
6400 - | /// A builder for [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
6395 + | /// A builder for [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
6401 6396 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6402 6397 | pub struct Builder {
|
6403 - | pub(crate) con_a: ::std::option::Option<crate::model::ConA>,
|
6398 + | pub(crate) events: ::std::option::Option<
|
6399 + | crate::python_event_stream::EventStreamsOperationInputEventsReceiver,
|
6400 + | >,
|
6404 6401 | }
|
6405 6402 | impl Builder {
|
6406 6403 | #[allow(missing_docs)] // documentation missing in model
|
6407 - | pub fn con_a(mut self, input: crate::model::ConA) -> Self {
|
6408 - | self.con_a = Some(input);
|
6404 + | pub fn events(
|
6405 + | mut self,
|
6406 + | input: crate::python_event_stream::EventStreamsOperationInputEventsReceiver,
|
6407 + | ) -> Self {
|
6408 + | self.events = Some(input);
|
6409 6409 | self
|
6410 6410 | }
|
6411 - | /// Consumes the builder and constructs a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
6411 + | /// Consumes the builder and constructs a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
6412 6412 | ///
|
6413 - | /// The builder fails to construct a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput) if you do not provide a value for all non-`Option`al members.
|
6413 + | /// The builder fails to construct a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput) if you do not provide a value for all non-`Option`al members.
|
6414 6414 | ///
|
6415 6415 | pub fn build(
|
6416 6416 | self,
|
6417 - | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
6417 + | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
6418 6418 | self.build_enforcing_required_and_enum_traits()
|
6419 6419 | }
|
6420 6420 | fn build_enforcing_required_and_enum_traits(
|
6421 6421 | self,
|
6422 - | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
6423 - | Ok(crate::input::ConstrainedShapesOperationInput {
|
6424 - | con_a: self.con_a.ok_or(ConstraintViolation::MissingConA)?,
|
6422 + | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
6423 + | Ok(crate::input::EventStreamsOperationInput {
|
6424 + | events: self.events.ok_or(ConstraintViolation::MissingEvents)?,
|
6425 6425 | })
|
6426 6426 | }
|
6427 6427 | }
|
6428 6428 | }
|