1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 2 | #[allow(missing_docs)] // documentation missing in model
|
3 - | #[derive(::std::fmt::Debug)]
|
4 - | pub struct EventStreamsOperationInput {
|
5 - | #[allow(missing_docs)] // documentation missing in model
|
6 - | pub events:
|
7 - | ::aws_smithy_http::event_stream::Receiver<crate::model::Event, crate::error::EventError>,
|
8 - | }
|
9 - | impl EventStreamsOperationInput {
|
10 - | #[allow(missing_docs)] // documentation missing in model
|
11 - | pub fn events(
|
12 - | &self,
|
13 - | ) -> &::aws_smithy_http::event_stream::Receiver<crate::model::Event, crate::error::EventError>
|
14 - | {
|
15 - | &self.events
|
16 - | }
|
17 - | }
|
18 - | impl crate::constrained::Constrained for crate::input::EventStreamsOperationInput {
|
19 - | type Unconstrained = crate::input::event_streams_operation_input_internal::Builder;
|
20 - | }
|
21 - | impl EventStreamsOperationInput {
|
22 - | /// Creates a new builder-style object to manufacture [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
23 - | pub fn builder() -> crate::input::event_streams_operation_input::Builder {
|
24 - | crate::input::event_streams_operation_input::Builder::default()
|
25 - | }
|
26 - | }
|
27 - |
|
28 - | #[allow(missing_docs)] // documentation missing in model
|
29 - | #[derive(::std::fmt::Debug)]
|
30 - | pub struct StreamingBlobOperationInput {
|
3 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4 + | pub struct ConstrainedShapesOperationInput {
|
31 5 | #[allow(missing_docs)] // documentation missing in model
|
32 - | pub streaming_blob: ::aws_smithy_types::byte_stream::ByteStream,
|
6 + | pub con_a: crate::model::ConA,
|
33 7 | }
|
34 - | impl StreamingBlobOperationInput {
|
8 + | impl ConstrainedShapesOperationInput {
|
35 9 | #[allow(missing_docs)] // documentation missing in model
|
36 - | pub fn streaming_blob(&self) -> &::aws_smithy_types::byte_stream::ByteStream {
|
37 - | &self.streaming_blob
|
10 + | pub fn con_a(&self) -> &crate::model::ConA {
|
11 + | &self.con_a
|
38 12 | }
|
39 13 | }
|
40 - | impl crate::constrained::Constrained for crate::input::StreamingBlobOperationInput {
|
41 - | type Unconstrained = crate::input::streaming_blob_operation_input_internal::Builder;
|
14 + | impl crate::constrained::Constrained for crate::input::ConstrainedShapesOperationInput {
|
15 + | type Unconstrained = crate::input::constrained_shapes_operation_input_internal::Builder;
|
42 16 | }
|
43 - | impl StreamingBlobOperationInput {
|
44 - | /// Creates a new builder-style object to manufacture [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
45 - | pub fn builder() -> crate::input::streaming_blob_operation_input::Builder {
|
46 - | crate::input::streaming_blob_operation_input::Builder::default()
|
17 + | impl ConstrainedShapesOperationInput {
|
18 + | /// Creates a new builder-style object to manufacture [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
19 + | pub fn builder() -> crate::input::constrained_shapes_operation_input::Builder {
|
20 + | crate::input::constrained_shapes_operation_input::Builder::default()
|
47 21 | }
|
48 22 | }
|
49 23 |
|
50 24 | #[allow(missing_docs)] // documentation missing in model
|
51 25 | #[derive(
|
52 26 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
53 27 | )]
|
54 - | pub struct NonStreamingBlobOperationInput {
|
55 - | #[allow(missing_docs)] // documentation missing in model
|
56 - | pub non_streaming_blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
57 - | }
|
58 - | impl NonStreamingBlobOperationInput {
|
59 - | #[allow(missing_docs)] // documentation missing in model
|
60 - | pub fn non_streaming_blob(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
|
61 - | self.non_streaming_blob.as_ref()
|
62 - | }
|
63 - | }
|
64 - | impl crate::constrained::Constrained for crate::input::NonStreamingBlobOperationInput {
|
65 - | type Unconstrained = crate::input::non_streaming_blob_operation_input_internal::Builder;
|
28 + | pub struct ConstrainedShapesOnlyInOutputOperationInput {}
|
29 + | impl crate::constrained::Constrained for crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
30 + | type Unconstrained =
|
31 + | crate::input::constrained_shapes_only_in_output_operation_input_internal::Builder;
|
66 32 | }
|
67 - | impl NonStreamingBlobOperationInput {
|
68 - | /// Creates a new builder-style object to manufacture [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
69 - | pub fn builder() -> crate::input::non_streaming_blob_operation_input::Builder {
|
70 - | crate::input::non_streaming_blob_operation_input::Builder::default()
|
33 + | impl ConstrainedShapesOnlyInOutputOperationInput {
|
34 + | /// Creates a new builder-style object to manufacture [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
35 + | pub fn builder() -> crate::input::constrained_shapes_only_in_output_operation_input::Builder {
|
36 + | crate::input::constrained_shapes_only_in_output_operation_input::Builder::default()
|
71 37 | }
|
72 38 | }
|
73 39 |
|
74 40 | #[allow(missing_docs)] // documentation missing in model
|
75 41 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
76 - | pub struct QueryParamsTargetingMapOfEnumStringOperationInput {
|
42 + | pub struct ConstrainedHttpBoundShapesOperationInput {
|
77 43 | #[allow(missing_docs)] // documentation missing in model
|
78 - | pub map_of_enum_string: ::std::option::Option<
|
79 - | ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
80 - | >,
|
81 - | }
|
82 - | impl QueryParamsTargetingMapOfEnumStringOperationInput {
|
44 + | pub length_string_label: ::std::string::String,
|
83 45 | #[allow(missing_docs)] // documentation missing in model
|
84 - | pub fn map_of_enum_string(
|
85 - | &self,
|
86 - | ) -> ::std::option::Option<
|
87 - | &::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
88 - | > {
|
89 - | self.map_of_enum_string.as_ref()
|
90 - | }
|
91 - | }
|
92 - | impl crate::constrained::Constrained
|
93 - | for crate::input::QueryParamsTargetingMapOfEnumStringOperationInput
|
94 - | {
|
95 - | type Unconstrained =
|
96 - | crate::input::query_params_targeting_map_of_enum_string_operation_input_internal::Builder;
|
97 - | }
|
98 - | impl QueryParamsTargetingMapOfEnumStringOperationInput {
|
99 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
100 - | pub fn builder(
|
101 - | ) -> crate::input::query_params_targeting_map_of_enum_string_operation_input::Builder {
|
102 - | crate::input::query_params_targeting_map_of_enum_string_operation_input::Builder::default()
|
103 - | }
|
104 - | }
|
105 - |
|
106 - | #[allow(missing_docs)] // documentation missing in model
|
107 - | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
108 - | pub struct HttpPrefixHeadersTargetingLengthMapOperationInput {
|
46 + | pub range_integer_label: i32,
|
109 47 | #[allow(missing_docs)] // documentation missing in model
|
110 - | pub length_map: ::std::option::Option<
|
111 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
112 - | >,
|
113 - | }
|
114 - | impl HttpPrefixHeadersTargetingLengthMapOperationInput {
|
48 + | pub range_short_label: i16,
|
115 49 | #[allow(missing_docs)] // documentation missing in model
|
116 - | pub fn length_map(
|
117 - | &self,
|
118 - | ) -> ::std::option::Option<
|
119 - | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
120 - | > {
|
121 - | self.length_map.as_ref()
|
122 - | }
|
123 - | }
|
124 - | impl crate::constrained::Constrained
|
125 - | for crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput
|
126 - | {
|
127 - | type Unconstrained =
|
128 - | crate::input::http_prefix_headers_targeting_length_map_operation_input_internal::Builder;
|
129 - | }
|
130 - | impl HttpPrefixHeadersTargetingLengthMapOperationInput {
|
131 - | /// Creates a new builder-style object to manufacture [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
132 - | pub fn builder(
|
133 - | ) -> crate::input::http_prefix_headers_targeting_length_map_operation_input::Builder {
|
134 - | crate::input::http_prefix_headers_targeting_length_map_operation_input::Builder::default()
|
135 - | }
|
136 - | }
|
137 - |
|
138 - | #[allow(missing_docs)] // documentation missing in model
|
139 - | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
140 - | pub struct QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
50 + | pub range_long_label: i64,
|
141 51 | #[allow(missing_docs)] // documentation missing in model
|
142 - | pub map_of_length_pattern_string: ::std::option::Option<
|
143 - | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
144 - | >,
|
145 - | }
|
146 - | impl QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
52 + | pub range_byte_label: i8,
|
147 53 | #[allow(missing_docs)] // documentation missing in model
|
148 - | pub fn map_of_length_pattern_string(
|
149 - | &self,
|
150 - | ) -> ::std::option::Option<
|
151 - | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
152 - | > {
|
153 - | self.map_of_length_pattern_string.as_ref()
|
154 - | }
|
155 - | }
|
156 - | impl crate::constrained::Constrained
|
157 - | for crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
158 - | {
|
159 - | type Unconstrained = crate::input::query_params_targeting_map_of_list_of_length_pattern_string_operation_input_internal::Builder;
|
160 - | }
|
161 - | impl QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
162 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
163 - | pub fn builder() -> crate::input::query_params_targeting_map_of_list_of_length_pattern_string_operation_input::Builder{
|
164 - | crate::input::query_params_targeting_map_of_list_of_length_pattern_string_operation_input::Builder::default()
|
165 - | }
|
166 - | }
|
167 - |
|
168 - | #[allow(missing_docs)] // documentation missing in model
|
169 - | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
170 - | pub struct QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
54 + | pub enum_string_label: crate::model::EnumString,
|
171 55 | #[allow(missing_docs)] // documentation missing in model
|
172 - | pub map_of_length_pattern_string: ::std::option::Option<
|
56 + | pub length_string_header_map:
|
173 57 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
174 - | >,
|
175 - | }
|
176 - | impl QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
177 58 | #[allow(missing_docs)] // documentation missing in model
|
178 - | pub fn map_of_length_pattern_string(
|
179 - | &self,
|
180 - | ) -> ::std::option::Option<
|
181 - | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
182 - | > {
|
183 - | self.map_of_length_pattern_string.as_ref()
|
184 - | }
|
185 - | }
|
186 - | impl crate::constrained::Constrained
|
187 - | for crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput
|
188 - | {
|
189 - | type Unconstrained = crate::input::query_params_targeting_map_of_length_pattern_string_operation_input_internal::Builder;
|
190 - | }
|
191 - | impl QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
192 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
193 - | pub fn builder(
|
194 - | ) -> crate::input::query_params_targeting_map_of_length_pattern_string_operation_input::Builder
|
195 - | {
|
196 - | crate::input::query_params_targeting_map_of_length_pattern_string_operation_input::Builder::default()
|
197 - | }
|
198 - | }
|
199 - |
|
200 - | #[allow(missing_docs)] // documentation missing in model
|
201 - | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
202 - | pub struct QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
59 + | pub length_string_header: ::std::option::Option<::std::string::String>,
|
203 60 | #[allow(missing_docs)] // documentation missing in model
|
204 - | pub map_of_list_of_pattern_string: ::std::option::Option<
|
205 - | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
206 - | >,
|
207 - | }
|
208 - | impl QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
61 + | pub range_integer_header: i32,
|
209 62 | #[allow(missing_docs)] // documentation missing in model
|
210 - | pub fn map_of_list_of_pattern_string(
|
211 - | &self,
|
212 - | ) -> ::std::option::Option<
|
213 - | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
214 - | > {
|
215 - | self.map_of_list_of_pattern_string.as_ref()
|
216 - | }
|
217 - | }
|
218 - | impl crate::constrained::Constrained
|
219 - | for crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput
|
220 - | {
|
221 - | type Unconstrained = crate::input::query_params_targeting_map_of_list_of_pattern_string_operation_input_internal::Builder;
|
222 - | }
|
223 - | impl QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
224 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
225 - | pub fn builder(
|
226 - | ) -> crate::input::query_params_targeting_map_of_list_of_pattern_string_operation_input::Builder
|
227 - | {
|
228 - | crate::input::query_params_targeting_map_of_list_of_pattern_string_operation_input::Builder::default()
|
229 - | }
|
230 - | }
|
231 - |
|
232 - | #[allow(missing_docs)] // documentation missing in model
|
233 - | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
234 - | pub struct QueryParamsTargetingMapOfPatternStringOperationInput {
|
63 + | pub range_short_header: i16,
|
235 64 | #[allow(missing_docs)] // documentation missing in model
|
236 - | pub map_of_pattern_string: ::std::option::Option<
|
237 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
238 - | >,
|
239 - | }
|
240 - | impl QueryParamsTargetingMapOfPatternStringOperationInput {
|
65 + | pub range_long_header: i64,
|
241 66 | #[allow(missing_docs)] // documentation missing in model
|
242 - | pub fn map_of_pattern_string(
|
243 - | &self,
|
244 - | ) -> ::std::option::Option<
|
245 - | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
246 - | > {
|
247 - | self.map_of_pattern_string.as_ref()
|
248 - | }
|
249 - | }
|
250 - | impl crate::constrained::Constrained
|
251 - | for crate::input::QueryParamsTargetingMapOfPatternStringOperationInput
|
252 - | {
|
253 - | type Unconstrained = crate::input::query_params_targeting_map_of_pattern_string_operation_input_internal::Builder;
|
254 - | }
|
255 - | impl QueryParamsTargetingMapOfPatternStringOperationInput {
|
256 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
257 - | pub fn builder(
|
258 - | ) -> crate::input::query_params_targeting_map_of_pattern_string_operation_input::Builder {
|
259 - | crate::input::query_params_targeting_map_of_pattern_string_operation_input::Builder::default(
|
260 - | )
|
261 - | }
|
262 - | }
|
263 - |
|
264 - | #[allow(missing_docs)] // documentation missing in model
|
265 - | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
266 - | pub struct QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
67 + | pub range_byte_header: i8,
|
267 68 | #[allow(missing_docs)] // documentation missing in model
|
268 - | pub map_of_list_of_enum_string: ::std::option::Option<
|
269 - | ::std::collections::HashMap<
|
270 - | crate::model::EnumString,
|
271 - | ::std::vec::Vec<crate::model::EnumString>,
|
272 - | >,
|
273 - | >,
|
69 + | pub length_string_set_header: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
70 + | #[allow(missing_docs)] // documentation missing in model
|
71 + | pub list_length_string_header: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
72 + | #[allow(missing_docs)] // documentation missing in model
|
73 + | pub length_list_pattern_string_header:
|
74 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
75 + | #[allow(missing_docs)] // documentation missing in model
|
76 + | pub length_set_pattern_string_header:
|
77 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
78 + | #[allow(missing_docs)] // documentation missing in model
|
79 + | pub range_byte_set_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
80 + | #[allow(missing_docs)] // documentation missing in model
|
81 + | pub range_short_set_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
82 + | #[allow(missing_docs)] // documentation missing in model
|
83 + | pub range_integer_set_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
84 + | #[allow(missing_docs)] // documentation missing in model
|
85 + | pub range_long_set_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
86 + | #[allow(missing_docs)] // documentation missing in model
|
87 + | pub range_byte_list_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
88 + | #[allow(missing_docs)] // documentation missing in model
|
89 + | pub range_short_list_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
90 + | #[allow(missing_docs)] // documentation missing in model
|
91 + | pub range_integer_list_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
92 + | #[allow(missing_docs)] // documentation missing in model
|
93 + | pub range_long_list_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
94 + | #[allow(missing_docs)] // documentation missing in model
|
95 + | pub length_string_query: ::std::option::Option<::std::string::String>,
|
96 + | #[allow(missing_docs)] // documentation missing in model
|
97 + | pub range_byte_query: i8,
|
98 + | #[allow(missing_docs)] // documentation missing in model
|
99 + | pub range_short_query: i16,
|
100 + | #[allow(missing_docs)] // documentation missing in model
|
101 + | pub range_integer_query: i32,
|
102 + | #[allow(missing_docs)] // documentation missing in model
|
103 + | pub range_long_query: i64,
|
104 + | #[allow(missing_docs)] // documentation missing in model
|
105 + | pub enum_string_query: ::std::option::Option<crate::model::EnumString>,
|
106 + | #[allow(missing_docs)] // documentation missing in model
|
107 + | pub length_string_list_query: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
108 + | #[allow(missing_docs)] // documentation missing in model
|
109 + | pub length_list_pattern_string_query:
|
110 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
111 + | #[allow(missing_docs)] // documentation missing in model
|
112 + | pub length_string_set_query: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
113 + | #[allow(missing_docs)] // documentation missing in model
|
114 + | pub range_byte_list_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
115 + | #[allow(missing_docs)] // documentation missing in model
|
116 + | pub range_short_list_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
117 + | #[allow(missing_docs)] // documentation missing in model
|
118 + | pub range_integer_list_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
119 + | #[allow(missing_docs)] // documentation missing in model
|
120 + | pub range_long_list_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
121 + | #[allow(missing_docs)] // documentation missing in model
|
122 + | pub range_byte_set_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
123 + | #[allow(missing_docs)] // documentation missing in model
|
124 + | pub range_short_set_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
125 + | #[allow(missing_docs)] // documentation missing in model
|
126 + | pub range_integer_set_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
127 + | #[allow(missing_docs)] // documentation missing in model
|
128 + | pub range_long_set_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
129 + | #[allow(missing_docs)] // documentation missing in model
|
130 + | pub enum_string_list_query: ::std::option::Option<::std::vec::Vec<crate::model::EnumString>>,
|
274 131 | }
|
275 - | impl QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
132 + | impl ConstrainedHttpBoundShapesOperationInput {
|
276 133 | #[allow(missing_docs)] // documentation missing in model
|
277 - | pub fn map_of_list_of_enum_string(
|
278 - | &self,
|
279 - | ) -> ::std::option::Option<
|
280 - | &::std::collections::HashMap<
|
281 - | crate::model::EnumString,
|
282 - | ::std::vec::Vec<crate::model::EnumString>,
|
283 - | >,
|
284 - | > {
|
285 - | self.map_of_list_of_enum_string.as_ref()
|
134 + | pub fn length_string_label(&self) -> &str {
|
135 + | use std::ops::Deref;
|
136 + | self.length_string_label.deref()
|
286 137 | }
|
287 - | }
|
288 - | impl crate::constrained::Constrained
|
289 - | for crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput
|
290 - | {
|
291 - | type Unconstrained = crate::input::query_params_targeting_map_of_list_of_enum_string_operation_input_internal::Builder;
|
292 - | }
|
293 - | impl QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
294 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
295 - | pub fn builder(
|
296 - | ) -> crate::input::query_params_targeting_map_of_list_of_enum_string_operation_input::Builder
|
297 - | {
|
298 - | crate::input::query_params_targeting_map_of_list_of_enum_string_operation_input::Builder::default()
|
138 + | #[allow(missing_docs)] // documentation missing in model
|
139 + | pub fn range_integer_label(&self) -> i32 {
|
140 + | self.range_integer_label
|
299 141 | }
|
300 - | }
|
301 - |
|
302 - | #[allow(missing_docs)] // documentation missing in model
|
303 - | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
304 - | pub struct QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
305 142 | #[allow(missing_docs)] // documentation missing in model
|
306 - | pub map_of_length_list_of_pattern_string: ::std::option::Option<
|
307 - | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
308 - | >,
|
309 - | }
|
310 - | impl QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
143 + | pub fn range_short_label(&self) -> i16 {
|
144 + | self.range_short_label
|
145 + | }
|
311 146 | #[allow(missing_docs)] // documentation missing in model
|
312 - | pub fn map_of_length_list_of_pattern_string(
|
313 - | &self,
|
314 - | ) -> ::std::option::Option<
|
315 - | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
316 - | > {
|
317 - | self.map_of_length_list_of_pattern_string.as_ref()
|
147 + | pub fn range_long_label(&self) -> i64 {
|
148 + | self.range_long_label
|
318 149 | }
|
319 - | }
|
320 - | impl crate::constrained::Constrained
|
321 - | for crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
322 - | {
|
323 - | type Unconstrained = crate::input::query_params_targeting_map_of_length_list_of_pattern_string_operation_input_internal::Builder;
|
324 - | }
|
325 - | impl QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
326 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
327 - | pub fn builder() -> crate::input::query_params_targeting_map_of_length_list_of_pattern_string_operation_input::Builder{
|
328 - | crate::input::query_params_targeting_map_of_length_list_of_pattern_string_operation_input::Builder::default()
|
150 + | #[allow(missing_docs)] // documentation missing in model
|
151 + | pub fn range_byte_label(&self) -> i8 {
|
152 + | self.range_byte_label
|
329 153 | }
|
330 - | }
|
331 - |
|
332 - | #[allow(missing_docs)] // documentation missing in model
|
333 - | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
334 - | pub struct QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
335 154 | #[allow(missing_docs)] // documentation missing in model
|
336 - | pub map_of_set_of_length_string: ::std::option::Option<
|
337 - | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
338 - | >,
|
339 - | }
|
340 - | impl QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
155 + | pub fn enum_string_label(&self) -> &crate::model::EnumString {
|
156 + | &self.enum_string_label
|
157 + | }
|
341 158 | #[allow(missing_docs)] // documentation missing in model
|
342 - | pub fn map_of_set_of_length_string(
|
159 + | pub fn length_string_header_map(
|
343 160 | &self,
|
344 - | ) -> ::std::option::Option<
|
345 - | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
346 - | > {
|
347 - | self.map_of_set_of_length_string.as_ref()
|
161 + | ) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> {
|
162 + | &self.length_string_header_map
|
348 163 | }
|
349 - | }
|
350 - | impl crate::constrained::Constrained
|
351 - | for crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput
|
352 - | {
|
353 - | type Unconstrained = crate::input::query_params_targeting_map_of_set_of_length_string_operation_input_internal::Builder;
|
354 - | }
|
355 - | impl QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
356 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
357 - | pub fn builder(
|
358 - | ) -> crate::input::query_params_targeting_map_of_set_of_length_string_operation_input::Builder
|
359 - | {
|
360 - | crate::input::query_params_targeting_map_of_set_of_length_string_operation_input::Builder::default()
|
164 + | #[allow(missing_docs)] // documentation missing in model
|
165 + | pub fn length_string_header(&self) -> ::std::option::Option<&str> {
|
166 + | self.length_string_header.as_deref()
|
361 167 | }
|
362 - | }
|
363 - |
|
364 - | #[allow(missing_docs)] // documentation missing in model
|
365 - | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
366 - | pub struct QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
367 168 | #[allow(missing_docs)] // documentation missing in model
|
368 - | pub map_of_list_of_length_string: ::std::option::Option<
|
369 - | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
370 - | >,
|
371 - | }
|
372 - | impl QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
169 + | pub fn range_integer_header(&self) -> i32 {
|
170 + | self.range_integer_header
|
171 + | }
|
373 172 | #[allow(missing_docs)] // documentation missing in model
|
374 - | pub fn map_of_list_of_length_string(
|
375 - | &self,
|
376 - | ) -> ::std::option::Option<
|
377 - | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
378 - | > {
|
379 - | self.map_of_list_of_length_string.as_ref()
|
173 + | pub fn range_short_header(&self) -> i16 {
|
174 + | self.range_short_header
|
380 175 | }
|
381 - | }
|
382 - | impl crate::constrained::Constrained
|
383 - | for crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput
|
384 - | {
|
385 - | type Unconstrained = crate::input::query_params_targeting_map_of_list_of_length_string_operation_input_internal::Builder;
|
386 - | }
|
387 - | impl QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
388 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
389 - | pub fn builder(
|
390 - | ) -> crate::input::query_params_targeting_map_of_list_of_length_string_operation_input::Builder
|
391 - | {
|
392 - | crate::input::query_params_targeting_map_of_list_of_length_string_operation_input::Builder::default()
|
176 + | #[allow(missing_docs)] // documentation missing in model
|
177 + | pub fn range_long_header(&self) -> i64 {
|
178 + | self.range_long_header
|
393 179 | }
|
394 - | }
|
395 - |
|
396 - | #[allow(missing_docs)] // documentation missing in model
|
397 - | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
398 - | pub struct QueryParamsTargetingMapOfLengthStringOperationInput {
|
399 180 | #[allow(missing_docs)] // documentation missing in model
|
400 - | pub map_of_length_string: ::std::option::Option<
|
401 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
402 - | >,
|
403 - | }
|
404 - | impl QueryParamsTargetingMapOfLengthStringOperationInput {
|
181 + | pub fn range_byte_header(&self) -> i8 {
|
182 + | self.range_byte_header
|
183 + | }
|
405 184 | #[allow(missing_docs)] // documentation missing in model
|
406 - | pub fn map_of_length_string(
|
185 + | pub fn length_string_set_header(
|
407 186 | &self,
|
408 - | ) -> ::std::option::Option<
|
409 - | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
410 - | > {
|
411 - | self.map_of_length_string.as_ref()
|
187 + | ) -> ::std::option::Option<&::std::vec::Vec<::std::string::String>> {
|
188 + | self.length_string_set_header.as_ref()
|
412 189 | }
|
413 - | }
|
414 - | impl crate::constrained::Constrained
|
415 - | for crate::input::QueryParamsTargetingMapOfLengthStringOperationInput
|
416 - | {
|
417 - | type Unconstrained =
|
418 - | crate::input::query_params_targeting_map_of_length_string_operation_input_internal::Builder;
|
419 - | }
|
420 - | impl QueryParamsTargetingMapOfLengthStringOperationInput {
|
421 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
422 - | pub fn builder(
|
423 - | ) -> crate::input::query_params_targeting_map_of_length_string_operation_input::Builder {
|
424 - | crate::input::query_params_targeting_map_of_length_string_operation_input::Builder::default(
|
425 - | )
|
426 - | }
|
427 - | }
|
428 - |
|
429 - | #[allow(missing_docs)] // documentation missing in model
|
430 - | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
431 - | pub struct QueryParamsTargetingLengthMapOperationInput {
|
432 - | #[allow(missing_docs)] // documentation missing in model
|
433 - | pub length_map: ::std::option::Option<
|
434 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
435 - | >,
|
436 - | }
|
437 - | impl QueryParamsTargetingLengthMapOperationInput {
|
438 - | #[allow(missing_docs)] // documentation missing in model
|
439 - | pub fn length_map(
|
440 - | &self,
|
441 - | ) -> ::std::option::Option<
|
442 - | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
443 - | > {
|
444 - | self.length_map.as_ref()
|
445 - | }
|
446 - | }
|
447 - | impl crate::constrained::Constrained for crate::input::QueryParamsTargetingLengthMapOperationInput {
|
448 - | type Unconstrained =
|
449 - | crate::input::query_params_targeting_length_map_operation_input_internal::Builder;
|
450 - | }
|
451 - | impl QueryParamsTargetingLengthMapOperationInput {
|
452 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
453 - | pub fn builder() -> crate::input::query_params_targeting_length_map_operation_input::Builder {
|
454 - | crate::input::query_params_targeting_length_map_operation_input::Builder::default()
|
455 - | }
|
456 - | }
|
457 - |
|
458 - | #[allow(missing_docs)] // documentation missing in model
|
459 - | #[derive(
|
460 - | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
461 - | )]
|
462 - | pub struct ConstrainedRecursiveShapesOperationInput {
|
463 - | #[allow(missing_docs)] // documentation missing in model
|
464 - | pub nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
465 - | #[allow(missing_docs)] // documentation missing in model
|
466 - | pub recursive_list: ::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>,
|
467 - | }
|
468 - | impl ConstrainedRecursiveShapesOperationInput {
|
469 - | #[allow(missing_docs)] // documentation missing in model
|
470 - | pub fn nested(
|
471 - | &self,
|
472 - | ) -> ::std::option::Option<&crate::model::RecursiveShapesInputOutputNested1> {
|
473 - | self.nested.as_ref()
|
474 - | }
|
475 - | #[allow(missing_docs)] // documentation missing in model
|
476 - | pub fn recursive_list(&self) -> &[crate::model::RecursiveShapesInputOutputNested1] {
|
477 - | use std::ops::Deref;
|
478 - | self.recursive_list.deref()
|
479 - | }
|
480 - | }
|
481 - | impl crate::constrained::Constrained for crate::input::ConstrainedRecursiveShapesOperationInput {
|
482 - | type Unconstrained =
|
483 - | crate::input::constrained_recursive_shapes_operation_input_internal::Builder;
|
484 - | }
|
485 - | impl ConstrainedRecursiveShapesOperationInput {
|
486 - | /// Creates a new builder-style object to manufacture [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
487 - | pub fn builder() -> crate::input::constrained_recursive_shapes_operation_input::Builder {
|
488 - | crate::input::constrained_recursive_shapes_operation_input::Builder::default()
|
489 - | }
|
490 - | }
|
491 - |
|
492 - | #[allow(missing_docs)] // documentation missing in model
|
493 - | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
494 - | pub struct ConstrainedHttpPayloadBoundShapeOperationInput {
|
495 - | #[allow(missing_docs)] // documentation missing in model
|
496 - | pub http_payload_bound_constrained_shape: crate::model::ConA,
|
497 - | }
|
498 - | impl ConstrainedHttpPayloadBoundShapeOperationInput {
|
499 - | #[allow(missing_docs)] // documentation missing in model
|
500 - | pub fn http_payload_bound_constrained_shape(&self) -> &crate::model::ConA {
|
501 - | &self.http_payload_bound_constrained_shape
|
502 - | }
|
503 - | }
|
504 - | impl crate::constrained::Constrained
|
505 - | for crate::input::ConstrainedHttpPayloadBoundShapeOperationInput
|
506 - | {
|
507 - | type Unconstrained =
|
508 - | crate::input::constrained_http_payload_bound_shape_operation_input_internal::Builder;
|
509 - | }
|
510 - | impl ConstrainedHttpPayloadBoundShapeOperationInput {
|
511 - | /// Creates a new builder-style object to manufacture [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
512 - | pub fn builder() -> crate::input::constrained_http_payload_bound_shape_operation_input::Builder
|
513 - | {
|
514 - | crate::input::constrained_http_payload_bound_shape_operation_input::Builder::default()
|
515 - | }
|
516 - | }
|
517 - |
|
518 - | #[allow(missing_docs)] // documentation missing in model
|
519 - | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
520 - | pub struct ConstrainedHttpBoundShapesOperationInput {
|
521 - | #[allow(missing_docs)] // documentation missing in model
|
522 - | pub length_string_label: ::std::string::String,
|
523 - | #[allow(missing_docs)] // documentation missing in model
|
524 - | pub range_integer_label: i32,
|
525 - | #[allow(missing_docs)] // documentation missing in model
|
526 - | pub range_short_label: i16,
|
527 - | #[allow(missing_docs)] // documentation missing in model
|
528 - | pub range_long_label: i64,
|
529 - | #[allow(missing_docs)] // documentation missing in model
|
530 - | pub range_byte_label: i8,
|
531 - | #[allow(missing_docs)] // documentation missing in model
|
532 - | pub enum_string_label: crate::model::EnumString,
|
533 - | #[allow(missing_docs)] // documentation missing in model
|
534 - | pub length_string_header_map:
|
535 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
536 - | #[allow(missing_docs)] // documentation missing in model
|
537 - | pub length_string_header: ::std::option::Option<::std::string::String>,
|
538 - | #[allow(missing_docs)] // documentation missing in model
|
539 - | pub range_integer_header: i32,
|
540 - | #[allow(missing_docs)] // documentation missing in model
|
541 - | pub range_short_header: i16,
|
542 - | #[allow(missing_docs)] // documentation missing in model
|
543 - | pub range_long_header: i64,
|
544 - | #[allow(missing_docs)] // documentation missing in model
|
545 - | pub range_byte_header: i8,
|
546 - | #[allow(missing_docs)] // documentation missing in model
|
547 - | pub length_string_set_header: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
548 - | #[allow(missing_docs)] // documentation missing in model
|
549 - | pub list_length_string_header: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
550 - | #[allow(missing_docs)] // documentation missing in model
|
551 - | pub length_list_pattern_string_header:
|
552 - | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
553 - | #[allow(missing_docs)] // documentation missing in model
|
554 - | pub length_set_pattern_string_header:
|
555 - | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
556 - | #[allow(missing_docs)] // documentation missing in model
|
557 - | pub range_byte_set_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
558 - | #[allow(missing_docs)] // documentation missing in model
|
559 - | pub range_short_set_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
560 - | #[allow(missing_docs)] // documentation missing in model
|
561 - | pub range_integer_set_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
562 - | #[allow(missing_docs)] // documentation missing in model
|
563 - | pub range_long_set_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
564 - | #[allow(missing_docs)] // documentation missing in model
|
565 - | pub range_byte_list_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
566 - | #[allow(missing_docs)] // documentation missing in model
|
567 - | pub range_short_list_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
568 - | #[allow(missing_docs)] // documentation missing in model
|
569 - | pub range_integer_list_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
570 - | #[allow(missing_docs)] // documentation missing in model
|
571 - | pub range_long_list_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
572 - | #[allow(missing_docs)] // documentation missing in model
|
573 - | pub length_string_query: ::std::option::Option<::std::string::String>,
|
574 - | #[allow(missing_docs)] // documentation missing in model
|
575 - | pub range_byte_query: i8,
|
576 - | #[allow(missing_docs)] // documentation missing in model
|
577 - | pub range_short_query: i16,
|
578 - | #[allow(missing_docs)] // documentation missing in model
|
579 - | pub range_integer_query: i32,
|
580 - | #[allow(missing_docs)] // documentation missing in model
|
581 - | pub range_long_query: i64,
|
582 - | #[allow(missing_docs)] // documentation missing in model
|
583 - | pub enum_string_query: ::std::option::Option<crate::model::EnumString>,
|
584 - | #[allow(missing_docs)] // documentation missing in model
|
585 - | pub length_string_list_query: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
586 - | #[allow(missing_docs)] // documentation missing in model
|
587 - | pub length_list_pattern_string_query:
|
588 - | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
589 - | #[allow(missing_docs)] // documentation missing in model
|
590 - | pub length_string_set_query: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
591 - | #[allow(missing_docs)] // documentation missing in model
|
592 - | pub range_byte_list_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
593 - | #[allow(missing_docs)] // documentation missing in model
|
594 - | pub range_short_list_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
595 - | #[allow(missing_docs)] // documentation missing in model
|
596 - | pub range_integer_list_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
597 - | #[allow(missing_docs)] // documentation missing in model
|
598 - | pub range_long_list_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
599 - | #[allow(missing_docs)] // documentation missing in model
|
600 - | pub range_byte_set_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
601 - | #[allow(missing_docs)] // documentation missing in model
|
602 - | pub range_short_set_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
603 - | #[allow(missing_docs)] // documentation missing in model
|
604 - | pub range_integer_set_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
605 - | #[allow(missing_docs)] // documentation missing in model
|
606 - | pub range_long_set_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
607 - | #[allow(missing_docs)] // documentation missing in model
|
608 - | pub enum_string_list_query: ::std::option::Option<::std::vec::Vec<crate::model::EnumString>>,
|
609 - | }
|
610 - | impl ConstrainedHttpBoundShapesOperationInput {
|
611 - | #[allow(missing_docs)] // documentation missing in model
|
612 - | pub fn length_string_label(&self) -> &str {
|
613 - | use std::ops::Deref;
|
614 - | self.length_string_label.deref()
|
615 - | }
|
616 - | #[allow(missing_docs)] // documentation missing in model
|
617 - | pub fn range_integer_label(&self) -> i32 {
|
618 - | self.range_integer_label
|
619 - | }
|
620 - | #[allow(missing_docs)] // documentation missing in model
|
621 - | pub fn range_short_label(&self) -> i16 {
|
622 - | self.range_short_label
|
623 - | }
|
624 - | #[allow(missing_docs)] // documentation missing in model
|
625 - | pub fn range_long_label(&self) -> i64 {
|
626 - | self.range_long_label
|
627 - | }
|
628 - | #[allow(missing_docs)] // documentation missing in model
|
629 - | pub fn range_byte_label(&self) -> i8 {
|
630 - | self.range_byte_label
|
631 - | }
|
632 - | #[allow(missing_docs)] // documentation missing in model
|
633 - | pub fn enum_string_label(&self) -> &crate::model::EnumString {
|
634 - | &self.enum_string_label
|
635 - | }
|
636 - | #[allow(missing_docs)] // documentation missing in model
|
637 - | pub fn length_string_header_map(
|
638 - | &self,
|
639 - | ) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> {
|
640 - | &self.length_string_header_map
|
641 - | }
|
642 - | #[allow(missing_docs)] // documentation missing in model
|
643 - | pub fn length_string_header(&self) -> ::std::option::Option<&str> {
|
644 - | self.length_string_header.as_deref()
|
645 - | }
|
646 - | #[allow(missing_docs)] // documentation missing in model
|
647 - | pub fn range_integer_header(&self) -> i32 {
|
648 - | self.range_integer_header
|
649 - | }
|
650 - | #[allow(missing_docs)] // documentation missing in model
|
651 - | pub fn range_short_header(&self) -> i16 {
|
652 - | self.range_short_header
|
653 - | }
|
654 - | #[allow(missing_docs)] // documentation missing in model
|
655 - | pub fn range_long_header(&self) -> i64 {
|
656 - | self.range_long_header
|
657 - | }
|
658 - | #[allow(missing_docs)] // documentation missing in model
|
659 - | pub fn range_byte_header(&self) -> i8 {
|
660 - | self.range_byte_header
|
661 - | }
|
662 - | #[allow(missing_docs)] // documentation missing in model
|
663 - | pub fn length_string_set_header(
|
664 - | &self,
|
665 - | ) -> ::std::option::Option<&::std::vec::Vec<::std::string::String>> {
|
666 - | self.length_string_set_header.as_ref()
|
667 - | }
|
668 - | #[allow(missing_docs)] // documentation missing in model
|
669 - | pub fn list_length_string_header(&self) -> ::std::option::Option<&[::std::string::String]> {
|
670 - | self.list_length_string_header.as_deref()
|
190 + | #[allow(missing_docs)] // documentation missing in model
|
191 + | pub fn list_length_string_header(&self) -> ::std::option::Option<&[::std::string::String]> {
|
192 + | self.list_length_string_header.as_deref()
|
671 193 | }
|
672 194 | #[allow(missing_docs)] // documentation missing in model
|
673 195 | pub fn length_list_pattern_string_header(
|
674 196 | &self,
|
675 197 | ) -> ::std::option::Option<&[::std::string::String]> {
|
676 198 | self.length_list_pattern_string_header.as_deref()
|
677 199 | }
|
678 200 | #[allow(missing_docs)] // documentation missing in model
|
679 201 | pub fn length_set_pattern_string_header(
|
680 202 | &self,
|
794 316 | type Unconstrained =
|
795 317 | crate::input::constrained_http_bound_shapes_operation_input_internal::Builder;
|
796 318 | }
|
797 319 | impl ConstrainedHttpBoundShapesOperationInput {
|
798 320 | /// Creates a new builder-style object to manufacture [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
799 321 | pub fn builder() -> crate::input::constrained_http_bound_shapes_operation_input::Builder {
|
800 322 | crate::input::constrained_http_bound_shapes_operation_input::Builder::default()
|
801 323 | }
|
802 324 | }
|
803 325 |
|
804 - | #[allow(missing_docs)] // documentation missing in model
|
805 - | #[derive(
|
806 - | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
807 - | )]
|
808 - | pub struct ConstrainedShapesOnlyInOutputOperationInput {}
|
809 - | impl crate::constrained::Constrained for crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
810 - | type Unconstrained =
|
811 - | crate::input::constrained_shapes_only_in_output_operation_input_internal::Builder;
|
812 - | }
|
813 - | impl ConstrainedShapesOnlyInOutputOperationInput {
|
814 - | /// Creates a new builder-style object to manufacture [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
815 - | pub fn builder() -> crate::input::constrained_shapes_only_in_output_operation_input::Builder {
|
816 - | crate::input::constrained_shapes_only_in_output_operation_input::Builder::default()
|
817 - | }
|
818 - | }
|
819 - |
|
820 326 | #[allow(missing_docs)] // documentation missing in model
|
821 327 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
822 - | pub struct ConstrainedShapesOperationInput {
|
328 + | pub struct ConstrainedHttpPayloadBoundShapeOperationInput {
|
823 329 | #[allow(missing_docs)] // documentation missing in model
|
824 - | pub con_a: crate::model::ConA,
|
330 + | pub http_payload_bound_constrained_shape: crate::model::ConA,
|
825 331 | }
|
826 - | impl ConstrainedShapesOperationInput {
|
332 + | impl ConstrainedHttpPayloadBoundShapeOperationInput {
|
827 333 | #[allow(missing_docs)] // documentation missing in model
|
828 - | pub fn con_a(&self) -> &crate::model::ConA {
|
829 - | &self.con_a
|
334 + | pub fn http_payload_bound_constrained_shape(&self) -> &crate::model::ConA {
|
335 + | &self.http_payload_bound_constrained_shape
|
830 336 | }
|
831 337 | }
|
832 - | impl crate::constrained::Constrained for crate::input::ConstrainedShapesOperationInput {
|
833 - | type Unconstrained = crate::input::constrained_shapes_operation_input_internal::Builder;
|
338 + | impl crate::constrained::Constrained
|
339 + | for crate::input::ConstrainedHttpPayloadBoundShapeOperationInput
|
340 + | {
|
341 + | type Unconstrained =
|
342 + | crate::input::constrained_http_payload_bound_shape_operation_input_internal::Builder;
|
834 343 | }
|
835 - | impl ConstrainedShapesOperationInput {
|
836 - | /// Creates a new builder-style object to manufacture [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
837 - | pub fn builder() -> crate::input::constrained_shapes_operation_input::Builder {
|
838 - | crate::input::constrained_shapes_operation_input::Builder::default()
|
344 + | impl ConstrainedHttpPayloadBoundShapeOperationInput {
|
345 + | /// Creates a new builder-style object to manufacture [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
346 + | pub fn builder() -> crate::input::constrained_http_payload_bound_shape_operation_input::Builder
|
347 + | {
|
348 + | crate::input::constrained_http_payload_bound_shape_operation_input::Builder::default()
|
839 349 | }
|
840 350 | }
|
841 - | /// See [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
842 - | pub(crate) mod event_streams_operation_input_internal {
|
843 351 |
|
844 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
845 - | /// Holds one variant for each of the ways the builder can fail.
|
846 - | #[non_exhaustive]
|
847 - | #[allow(clippy::enum_variant_names)]
|
848 - | pub(crate) enum ConstraintViolation {
|
849 - | /// `events` was not provided but it is required when building `EventStreamsOperationInput`.
|
850 - | MissingEvents,
|
851 - | }
|
852 - | impl ::std::fmt::Display for ConstraintViolation {
|
853 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
854 - | match self {
|
855 - | ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `EventStreamsOperationInput`"),
|
352 + | #[allow(missing_docs)] // documentation missing in model
|
353 + | #[derive(
|
354 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
355 + | )]
|
356 + | pub struct ConstrainedRecursiveShapesOperationInput {
|
357 + | #[allow(missing_docs)] // documentation missing in model
|
358 + | pub nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
359 + | #[allow(missing_docs)] // documentation missing in model
|
360 + | pub recursive_list: ::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>,
|
361 + | }
|
362 + | impl ConstrainedRecursiveShapesOperationInput {
|
363 + | #[allow(missing_docs)] // documentation missing in model
|
364 + | pub fn nested(
|
365 + | &self,
|
366 + | ) -> ::std::option::Option<&crate::model::RecursiveShapesInputOutputNested1> {
|
367 + | self.nested.as_ref()
|
856 368 | }
|
369 + | #[allow(missing_docs)] // documentation missing in model
|
370 + | pub fn recursive_list(&self) -> &[crate::model::RecursiveShapesInputOutputNested1] {
|
371 + | use std::ops::Deref;
|
372 + | self.recursive_list.deref()
|
857 373 | }
|
374 + | }
|
375 + | impl crate::constrained::Constrained for crate::input::ConstrainedRecursiveShapesOperationInput {
|
376 + | type Unconstrained =
|
377 + | crate::input::constrained_recursive_shapes_operation_input_internal::Builder;
|
378 + | }
|
379 + | impl ConstrainedRecursiveShapesOperationInput {
|
380 + | /// Creates a new builder-style object to manufacture [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
381 + | pub fn builder() -> crate::input::constrained_recursive_shapes_operation_input::Builder {
|
382 + | crate::input::constrained_recursive_shapes_operation_input::Builder::default()
|
858 383 | }
|
859 - | impl ::std::error::Error for ConstraintViolation {}
|
860 - | impl ConstraintViolation {
|
861 - | pub(crate) fn as_validation_exception_field(
|
862 - | self,
|
863 - | path: ::std::string::String,
|
864 - | ) -> crate::model::ValidationExceptionField {
|
865 - | match self {
|
866 - | ConstraintViolation::MissingEvents => crate::model::ValidationExceptionField {
|
867 - | message: format!("Value at '{}/events' failed to satisfy constraint: Member must not be null", path),
|
868 - | path: path + "/events",
|
869 - | },
|
384 + | }
|
385 + |
|
386 + | #[allow(missing_docs)] // documentation missing in model
|
387 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
388 + | pub struct QueryParamsTargetingLengthMapOperationInput {
|
389 + | #[allow(missing_docs)] // documentation missing in model
|
390 + | pub length_map: ::std::option::Option<
|
391 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
392 + | >,
|
393 + | }
|
394 + | impl QueryParamsTargetingLengthMapOperationInput {
|
395 + | #[allow(missing_docs)] // documentation missing in model
|
396 + | pub fn length_map(
|
397 + | &self,
|
398 + | ) -> ::std::option::Option<
|
399 + | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
400 + | > {
|
401 + | self.length_map.as_ref()
|
870 402 | }
|
403 + | }
|
404 + | impl crate::constrained::Constrained for crate::input::QueryParamsTargetingLengthMapOperationInput {
|
405 + | type Unconstrained =
|
406 + | crate::input::query_params_targeting_length_map_operation_input_internal::Builder;
|
407 + | }
|
408 + | impl QueryParamsTargetingLengthMapOperationInput {
|
409 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
410 + | pub fn builder() -> crate::input::query_params_targeting_length_map_operation_input::Builder {
|
411 + | crate::input::query_params_targeting_length_map_operation_input::Builder::default()
|
871 412 | }
|
413 + | }
|
414 + |
|
415 + | #[allow(missing_docs)] // documentation missing in model
|
416 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
417 + | pub struct QueryParamsTargetingMapOfLengthStringOperationInput {
|
418 + | #[allow(missing_docs)] // documentation missing in model
|
419 + | pub map_of_length_string: ::std::option::Option<
|
420 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
421 + | >,
|
422 + | }
|
423 + | impl QueryParamsTargetingMapOfLengthStringOperationInput {
|
424 + | #[allow(missing_docs)] // documentation missing in model
|
425 + | pub fn map_of_length_string(
|
426 + | &self,
|
427 + | ) -> ::std::option::Option<
|
428 + | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
429 + | > {
|
430 + | self.map_of_length_string.as_ref()
|
872 431 | }
|
873 - | impl ::std::convert::From<ConstraintViolation>
|
874 - | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
875 - | {
|
876 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
877 - | let first_validation_exception_field =
|
878 - | constraint_violation.as_validation_exception_field("".to_owned());
|
879 - | let validation_exception = crate::error::ValidationException {
|
880 - | message: format!(
|
881 - | "1 validation error detected. {}",
|
882 - | &first_validation_exception_field.message
|
883 - | ),
|
884 - | field_list: Some(vec![first_validation_exception_field]),
|
885 - | };
|
886 - | Self::ConstraintViolation(
|
887 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
888 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
432 + | }
|
433 + | impl crate::constrained::Constrained
|
434 + | for crate::input::QueryParamsTargetingMapOfLengthStringOperationInput
|
435 + | {
|
436 + | type Unconstrained =
|
437 + | crate::input::query_params_targeting_map_of_length_string_operation_input_internal::Builder;
|
438 + | }
|
439 + | impl QueryParamsTargetingMapOfLengthStringOperationInput {
|
440 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
441 + | pub fn builder(
|
442 + | ) -> crate::input::query_params_targeting_map_of_length_string_operation_input::Builder {
|
443 + | crate::input::query_params_targeting_map_of_length_string_operation_input::Builder::default(
|
889 444 | )
|
890 445 | }
|
446 + | }
|
447 + |
|
448 + | #[allow(missing_docs)] // documentation missing in model
|
449 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
450 + | pub struct QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
451 + | #[allow(missing_docs)] // documentation missing in model
|
452 + | pub map_of_list_of_length_string: ::std::option::Option<
|
453 + | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
454 + | >,
|
455 + | }
|
456 + | impl QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
457 + | #[allow(missing_docs)] // documentation missing in model
|
458 + | pub fn map_of_list_of_length_string(
|
459 + | &self,
|
460 + | ) -> ::std::option::Option<
|
461 + | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
462 + | > {
|
463 + | self.map_of_list_of_length_string.as_ref()
|
891 464 | }
|
892 - | impl ::std::convert::From<Builder>
|
893 - | for crate::constrained::MaybeConstrained<crate::input::EventStreamsOperationInput>
|
465 + | }
|
466 + | impl crate::constrained::Constrained
|
467 + | for crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput
|
468 + | {
|
469 + | type Unconstrained = crate::input::query_params_targeting_map_of_list_of_length_string_operation_input_internal::Builder;
|
470 + | }
|
471 + | impl QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
472 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
473 + | pub fn builder(
|
474 + | ) -> crate::input::query_params_targeting_map_of_list_of_length_string_operation_input::Builder
|
894 475 | {
|
895 - | fn from(builder: Builder) -> Self {
|
896 - | Self::Unconstrained(builder)
|
897 - | }
|
476 + | crate::input::query_params_targeting_map_of_list_of_length_string_operation_input::Builder::default()
|
898 477 | }
|
899 - | impl ::std::convert::TryFrom<Builder> for crate::input::EventStreamsOperationInput {
|
900 - | type Error = ConstraintViolation;
|
478 + | }
|
901 479 |
|
902 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
903 - | builder.build()
|
904 - | }
|
905 - | }
|
906 - | /// A builder for [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
907 - | #[derive(::std::default::Default, ::std::fmt::Debug)]
|
908 - | pub(crate) struct Builder {
|
909 - | pub(crate) events: ::std::option::Option<
|
910 - | ::aws_smithy_http::event_stream::Receiver<
|
911 - | crate::model::Event,
|
912 - | crate::error::EventError,
|
913 - | >,
|
914 - | >,
|
915 - | }
|
916 - | impl Builder {
|
480 + | #[allow(missing_docs)] // documentation missing in model
|
481 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
482 + | pub struct QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
917 483 | #[allow(missing_docs)] // documentation missing in model
|
918 - | pub(crate) fn set_events(
|
919 - | mut self,
|
920 - | input: impl ::std::convert::Into<
|
921 - | ::aws_smithy_http::event_stream::Receiver<
|
922 - | crate::model::Event,
|
923 - | crate::error::EventError,
|
924 - | >,
|
484 + | pub map_of_set_of_length_string: ::std::option::Option<
|
485 + | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
925 486 | >,
|
926 - | ) -> Self {
|
927 - | self.events = Some(input.into());
|
928 - | self
|
929 - | }
|
930 - | /// Consumes the builder and constructs a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
931 - | ///
|
932 - | /// The builder fails to construct a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput) if a [`ConstraintViolation`] occurs.
|
933 - | ///
|
934 - | pub fn build(
|
935 - | self,
|
936 - | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
937 - | self.build_enforcing_all_constraints()
|
938 - | }
|
939 - | fn build_enforcing_all_constraints(
|
940 - | self,
|
941 - | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
942 - | Ok(crate::input::EventStreamsOperationInput {
|
943 - | events: self.events.ok_or(ConstraintViolation::MissingEvents)?,
|
944 - | })
|
487 + | }
|
488 + | impl QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
489 + | #[allow(missing_docs)] // documentation missing in model
|
490 + | pub fn map_of_set_of_length_string(
|
491 + | &self,
|
492 + | ) -> ::std::option::Option<
|
493 + | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
494 + | > {
|
495 + | self.map_of_set_of_length_string.as_ref()
|
945 496 | }
|
497 + | }
|
498 + | impl crate::constrained::Constrained
|
499 + | for crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput
|
500 + | {
|
501 + | type Unconstrained = crate::input::query_params_targeting_map_of_set_of_length_string_operation_input_internal::Builder;
|
502 + | }
|
503 + | impl QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
504 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
505 + | pub fn builder(
|
506 + | ) -> crate::input::query_params_targeting_map_of_set_of_length_string_operation_input::Builder
|
507 + | {
|
508 + | crate::input::query_params_targeting_map_of_set_of_length_string_operation_input::Builder::default()
|
946 509 | }
|
947 510 | }
|
948 - | /// See [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
949 - | pub mod event_streams_operation_input {
|
950 511 |
|
951 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
952 - | /// Holds one variant for each of the ways the builder can fail.
|
953 - | #[allow(clippy::enum_variant_names)]
|
954 - | pub enum ConstraintViolation {
|
955 - | /// `events` was not provided but it is required when building `EventStreamsOperationInput`.
|
956 - | MissingEvents,
|
957 - | }
|
958 - | impl ::std::fmt::Display for ConstraintViolation {
|
959 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
960 - | match self {
|
961 - | ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `EventStreamsOperationInput`"),
|
962 - | }
|
512 + | #[allow(missing_docs)] // documentation missing in model
|
513 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
514 + | pub struct QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
515 + | #[allow(missing_docs)] // documentation missing in model
|
516 + | pub map_of_length_list_of_pattern_string: ::std::option::Option<
|
517 + | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
518 + | >,
|
519 + | }
|
520 + | impl QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
521 + | #[allow(missing_docs)] // documentation missing in model
|
522 + | pub fn map_of_length_list_of_pattern_string(
|
523 + | &self,
|
524 + | ) -> ::std::option::Option<
|
525 + | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
526 + | > {
|
527 + | self.map_of_length_list_of_pattern_string.as_ref()
|
963 528 | }
|
529 + | }
|
530 + | impl crate::constrained::Constrained
|
531 + | for crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
532 + | {
|
533 + | type Unconstrained = crate::input::query_params_targeting_map_of_length_list_of_pattern_string_operation_input_internal::Builder;
|
534 + | }
|
535 + | impl QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
536 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
537 + | pub fn builder() -> crate::input::query_params_targeting_map_of_length_list_of_pattern_string_operation_input::Builder{
|
538 + | crate::input::query_params_targeting_map_of_length_list_of_pattern_string_operation_input::Builder::default()
|
964 539 | }
|
965 - | impl ::std::error::Error for ConstraintViolation {}
|
966 - | impl ::std::convert::TryFrom<Builder> for crate::input::EventStreamsOperationInput {
|
967 - | type Error = ConstraintViolation;
|
540 + | }
|
968 541 |
|
969 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
970 - | builder.build()
|
971 - | }
|
972 - | }
|
973 - | /// A builder for [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
974 - | #[derive(::std::default::Default, ::std::fmt::Debug)]
|
975 - | pub struct Builder {
|
976 - | pub(crate) events: ::std::option::Option<
|
977 - | ::aws_smithy_http::event_stream::Receiver<
|
978 - | crate::model::Event,
|
979 - | crate::error::EventError,
|
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 QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
545 + | #[allow(missing_docs)] // documentation missing in model
|
546 + | pub map_of_list_of_enum_string: ::std::option::Option<
|
547 + | ::std::collections::HashMap<
|
548 + | crate::model::EnumString,
|
549 + | ::std::vec::Vec<crate::model::EnumString>,
|
980 550 | >,
|
981 551 | >,
|
982 - | }
|
983 - | impl Builder {
|
552 + | }
|
553 + | impl QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
984 554 | #[allow(missing_docs)] // documentation missing in model
|
985 - | pub fn events(
|
986 - | mut self,
|
987 - | input: ::aws_smithy_http::event_stream::Receiver<
|
988 - | crate::model::Event,
|
989 - | crate::error::EventError,
|
555 + | pub fn map_of_list_of_enum_string(
|
556 + | &self,
|
557 + | ) -> ::std::option::Option<
|
558 + | &::std::collections::HashMap<
|
559 + | crate::model::EnumString,
|
560 + | ::std::vec::Vec<crate::model::EnumString>,
|
990 561 | >,
|
991 - | ) -> Self {
|
992 - | self.events = Some(input);
|
993 - | self
|
994 - | }
|
995 - | /// Consumes the builder and constructs a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
996 - | ///
|
997 - | /// The builder fails to construct a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput) if you do not provide a value for all non-`Option`al members.
|
998 - | ///
|
999 - | pub fn build(
|
1000 - | self,
|
1001 - | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
1002 - | self.build_enforcing_required_and_enum_traits()
|
1003 - | }
|
1004 - | fn build_enforcing_required_and_enum_traits(
|
1005 - | self,
|
1006 - | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
1007 - | Ok(crate::input::EventStreamsOperationInput {
|
1008 - | events: self.events.ok_or(ConstraintViolation::MissingEvents)?,
|
1009 - | })
|
562 + | > {
|
563 + | self.map_of_list_of_enum_string.as_ref()
|
1010 564 | }
|
565 + | }
|
566 + | impl crate::constrained::Constrained
|
567 + | for crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput
|
568 + | {
|
569 + | type Unconstrained = crate::input::query_params_targeting_map_of_list_of_enum_string_operation_input_internal::Builder;
|
570 + | }
|
571 + | impl QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
572 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
573 + | pub fn builder(
|
574 + | ) -> crate::input::query_params_targeting_map_of_list_of_enum_string_operation_input::Builder
|
575 + | {
|
576 + | crate::input::query_params_targeting_map_of_list_of_enum_string_operation_input::Builder::default()
|
1011 577 | }
|
1012 578 | }
|
1013 - | /// See [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
1014 - | pub(crate) mod streaming_blob_operation_input_internal {
|
1015 579 |
|
1016 - | impl ::std::convert::From<Builder> for crate::input::StreamingBlobOperationInput {
|
1017 - | fn from(builder: Builder) -> Self {
|
1018 - | builder.build()
|
1019 - | }
|
1020 - | }
|
1021 - | /// A builder for [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
1022 - | #[derive(::std::default::Default, ::std::fmt::Debug)]
|
1023 - | pub(crate) struct Builder {
|
1024 - | pub(crate) streaming_blob:
|
1025 - | ::std::option::Option<::aws_smithy_types::byte_stream::ByteStream>,
|
1026 - | }
|
1027 - | impl Builder {
|
580 + | #[allow(missing_docs)] // documentation missing in model
|
581 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
582 + | pub struct QueryParamsTargetingMapOfPatternStringOperationInput {
|
1028 583 | #[allow(missing_docs)] // documentation missing in model
|
1029 - | pub(crate) fn set_streaming_blob(
|
1030 - | mut self,
|
1031 - | input: impl ::std::convert::Into<::aws_smithy_types::byte_stream::ByteStream>,
|
1032 - | ) -> Self {
|
1033 - | self.streaming_blob = Some(input.into());
|
1034 - | self
|
1035 - | }
|
1036 - | /// Consumes the builder and constructs a [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
1037 - | pub fn build(self) -> crate::input::StreamingBlobOperationInput {
|
1038 - | self.build_enforcing_all_constraints()
|
1039 - | }
|
1040 - | fn build_enforcing_all_constraints(self) -> crate::input::StreamingBlobOperationInput {
|
1041 - | crate::input::StreamingBlobOperationInput {
|
1042 - | streaming_blob: self.streaming_blob.unwrap_or_default(),
|
1043 - | }
|
1044 - | }
|
1045 - | }
|
584 + | pub map_of_pattern_string: ::std::option::Option<
|
585 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
586 + | >,
|
1046 587 | }
|
1047 - | /// See [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
1048 - | pub mod streaming_blob_operation_input {
|
1049 - |
|
1050 - | impl ::std::convert::From<Builder> for crate::input::StreamingBlobOperationInput {
|
1051 - | fn from(builder: Builder) -> Self {
|
1052 - | builder.build()
|
1053 - | }
|
1054 - | }
|
1055 - | /// A builder for [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
1056 - | #[derive(::std::default::Default, ::std::fmt::Debug)]
|
1057 - | pub struct Builder {
|
1058 - | pub(crate) streaming_blob:
|
1059 - | ::std::option::Option<::aws_smithy_types::byte_stream::ByteStream>,
|
1060 - | }
|
1061 - | impl Builder {
|
588 + | impl QueryParamsTargetingMapOfPatternStringOperationInput {
|
1062 589 | #[allow(missing_docs)] // documentation missing in model
|
1063 - | pub fn streaming_blob(
|
1064 - | mut self,
|
1065 - | input: ::aws_smithy_types::byte_stream::ByteStream,
|
1066 - | ) -> Self {
|
1067 - | self.streaming_blob = Some(input);
|
1068 - | self
|
1069 - | }
|
1070 - | /// Consumes the builder and constructs a [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
1071 - | pub fn build(self) -> crate::input::StreamingBlobOperationInput {
|
1072 - | self.build_enforcing_required_and_enum_traits()
|
1073 - | }
|
1074 - | fn build_enforcing_required_and_enum_traits(
|
1075 - | self,
|
1076 - | ) -> crate::input::StreamingBlobOperationInput {
|
1077 - | crate::input::StreamingBlobOperationInput {
|
1078 - | streaming_blob: self.streaming_blob.unwrap_or_default(),
|
1079 - | }
|
590 + | pub fn map_of_pattern_string(
|
591 + | &self,
|
592 + | ) -> ::std::option::Option<
|
593 + | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
594 + | > {
|
595 + | self.map_of_pattern_string.as_ref()
|
1080 596 | }
|
597 + | }
|
598 + | impl crate::constrained::Constrained
|
599 + | for crate::input::QueryParamsTargetingMapOfPatternStringOperationInput
|
600 + | {
|
601 + | type Unconstrained = crate::input::query_params_targeting_map_of_pattern_string_operation_input_internal::Builder;
|
602 + | }
|
603 + | impl QueryParamsTargetingMapOfPatternStringOperationInput {
|
604 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
605 + | pub fn builder(
|
606 + | ) -> crate::input::query_params_targeting_map_of_pattern_string_operation_input::Builder {
|
607 + | crate::input::query_params_targeting_map_of_pattern_string_operation_input::Builder::default(
|
608 + | )
|
1081 609 | }
|
1082 610 | }
|
1083 - | /// See [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
1084 - | pub(crate) mod non_streaming_blob_operation_input_internal {
|
1085 611 |
|
1086 - | impl ::std::convert::From<Builder> for crate::input::NonStreamingBlobOperationInput {
|
1087 - | fn from(builder: Builder) -> Self {
|
1088 - | builder.build()
|
1089 - | }
|
1090 - | }
|
1091 - | /// A builder for [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
1092 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1093 - | pub(crate) struct Builder {
|
1094 - | pub(crate) non_streaming_blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
1095 - | }
|
1096 - | impl Builder {
|
612 + | #[allow(missing_docs)] // documentation missing in model
|
613 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
614 + | pub struct QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
1097 615 | #[allow(missing_docs)] // documentation missing in model
|
1098 - | pub(crate) fn set_non_streaming_blob(
|
1099 - | mut self,
|
1100 - | input: Option<impl ::std::convert::Into<::aws_smithy_types::Blob>>,
|
1101 - | ) -> Self {
|
1102 - | self.non_streaming_blob = input.map(|v| v.into());
|
1103 - | self
|
1104 - | }
|
1105 - | /// Consumes the builder and constructs a [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
1106 - | pub fn build(self) -> crate::input::NonStreamingBlobOperationInput {
|
1107 - | self.build_enforcing_all_constraints()
|
1108 - | }
|
1109 - | fn build_enforcing_all_constraints(self) -> crate::input::NonStreamingBlobOperationInput {
|
1110 - | crate::input::NonStreamingBlobOperationInput {
|
1111 - | non_streaming_blob: self.non_streaming_blob,
|
1112 - | }
|
616 + | pub map_of_list_of_pattern_string: ::std::option::Option<
|
617 + | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
618 + | >,
|
619 + | }
|
620 + | impl QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
621 + | #[allow(missing_docs)] // documentation missing in model
|
622 + | pub fn map_of_list_of_pattern_string(
|
623 + | &self,
|
624 + | ) -> ::std::option::Option<
|
625 + | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
626 + | > {
|
627 + | self.map_of_list_of_pattern_string.as_ref()
|
1113 628 | }
|
629 + | }
|
630 + | impl crate::constrained::Constrained
|
631 + | for crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput
|
632 + | {
|
633 + | type Unconstrained = crate::input::query_params_targeting_map_of_list_of_pattern_string_operation_input_internal::Builder;
|
634 + | }
|
635 + | impl QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
636 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
637 + | pub fn builder(
|
638 + | ) -> crate::input::query_params_targeting_map_of_list_of_pattern_string_operation_input::Builder
|
639 + | {
|
640 + | crate::input::query_params_targeting_map_of_list_of_pattern_string_operation_input::Builder::default()
|
1114 641 | }
|
1115 642 | }
|
1116 - | /// See [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
1117 - | pub mod non_streaming_blob_operation_input {
|
1118 643 |
|
1119 - | impl ::std::convert::From<Builder> for crate::input::NonStreamingBlobOperationInput {
|
1120 - | fn from(builder: Builder) -> Self {
|
1121 - | builder.build()
|
644 + | #[allow(missing_docs)] // documentation missing in model
|
645 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
646 + | pub struct QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
647 + | #[allow(missing_docs)] // documentation missing in model
|
648 + | pub map_of_length_pattern_string: ::std::option::Option<
|
649 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
650 + | >,
|
651 + | }
|
652 + | impl QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
653 + | #[allow(missing_docs)] // documentation missing in model
|
654 + | pub fn map_of_length_pattern_string(
|
655 + | &self,
|
656 + | ) -> ::std::option::Option<
|
657 + | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
658 + | > {
|
659 + | self.map_of_length_pattern_string.as_ref()
|
1122 660 | }
|
661 + | }
|
662 + | impl crate::constrained::Constrained
|
663 + | for crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput
|
664 + | {
|
665 + | type Unconstrained = crate::input::query_params_targeting_map_of_length_pattern_string_operation_input_internal::Builder;
|
666 + | }
|
667 + | impl QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
668 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
669 + | pub fn builder(
|
670 + | ) -> crate::input::query_params_targeting_map_of_length_pattern_string_operation_input::Builder
|
671 + | {
|
672 + | crate::input::query_params_targeting_map_of_length_pattern_string_operation_input::Builder::default()
|
1123 673 | }
|
1124 - | /// A builder for [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
1125 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1126 - | pub struct Builder {
|
1127 - | pub(crate) non_streaming_blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
674 + | }
|
675 + |
|
676 + | #[allow(missing_docs)] // documentation missing in model
|
677 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
678 + | pub struct QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
679 + | #[allow(missing_docs)] // documentation missing in model
|
680 + | pub map_of_length_pattern_string: ::std::option::Option<
|
681 + | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
682 + | >,
|
683 + | }
|
684 + | impl QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
685 + | #[allow(missing_docs)] // documentation missing in model
|
686 + | pub fn map_of_length_pattern_string(
|
687 + | &self,
|
688 + | ) -> ::std::option::Option<
|
689 + | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
690 + | > {
|
691 + | self.map_of_length_pattern_string.as_ref()
|
1128 692 | }
|
1129 - | impl Builder {
|
693 + | }
|
694 + | impl crate::constrained::Constrained
|
695 + | for crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
696 + | {
|
697 + | type Unconstrained = crate::input::query_params_targeting_map_of_list_of_length_pattern_string_operation_input_internal::Builder;
|
698 + | }
|
699 + | impl QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
700 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
701 + | pub fn builder() -> crate::input::query_params_targeting_map_of_list_of_length_pattern_string_operation_input::Builder{
|
702 + | crate::input::query_params_targeting_map_of_list_of_length_pattern_string_operation_input::Builder::default()
|
703 + | }
|
704 + | }
|
705 + |
|
706 + | #[allow(missing_docs)] // documentation missing in model
|
707 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
708 + | pub struct HttpPrefixHeadersTargetingLengthMapOperationInput {
|
1130 709 | #[allow(missing_docs)] // documentation missing in model
|
1131 - | pub fn non_streaming_blob(
|
1132 - | mut self,
|
1133 - | input: ::std::option::Option<::aws_smithy_types::Blob>,
|
1134 - | ) -> Self {
|
1135 - | self.non_streaming_blob = input;
|
1136 - | self
|
710 + | pub length_map: ::std::option::Option<
|
711 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
712 + | >,
|
713 + | }
|
714 + | impl HttpPrefixHeadersTargetingLengthMapOperationInput {
|
715 + | #[allow(missing_docs)] // documentation missing in model
|
716 + | pub fn length_map(
|
717 + | &self,
|
718 + | ) -> ::std::option::Option<
|
719 + | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
720 + | > {
|
721 + | self.length_map.as_ref()
|
1137 722 | }
|
1138 - | /// Consumes the builder and constructs a [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
1139 - | pub fn build(self) -> crate::input::NonStreamingBlobOperationInput {
|
1140 - | self.build_enforcing_required_and_enum_traits()
|
723 + | }
|
724 + | impl crate::constrained::Constrained
|
725 + | for crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput
|
726 + | {
|
727 + | type Unconstrained =
|
728 + | crate::input::http_prefix_headers_targeting_length_map_operation_input_internal::Builder;
|
729 + | }
|
730 + | impl HttpPrefixHeadersTargetingLengthMapOperationInput {
|
731 + | /// Creates a new builder-style object to manufacture [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
732 + | pub fn builder(
|
733 + | ) -> crate::input::http_prefix_headers_targeting_length_map_operation_input::Builder {
|
734 + | crate::input::http_prefix_headers_targeting_length_map_operation_input::Builder::default()
|
1141 735 | }
|
1142 - | fn build_enforcing_required_and_enum_traits(
|
1143 - | self,
|
1144 - | ) -> crate::input::NonStreamingBlobOperationInput {
|
1145 - | crate::input::NonStreamingBlobOperationInput {
|
1146 - | non_streaming_blob: self.non_streaming_blob,
|
736 + | }
|
737 + |
|
738 + | #[allow(missing_docs)] // documentation missing in model
|
739 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
740 + | pub struct QueryParamsTargetingMapOfEnumStringOperationInput {
|
741 + | #[allow(missing_docs)] // documentation missing in model
|
742 + | pub map_of_enum_string: ::std::option::Option<
|
743 + | ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
744 + | >,
|
745 + | }
|
746 + | impl QueryParamsTargetingMapOfEnumStringOperationInput {
|
747 + | #[allow(missing_docs)] // documentation missing in model
|
748 + | pub fn map_of_enum_string(
|
749 + | &self,
|
750 + | ) -> ::std::option::Option<
|
751 + | &::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
752 + | > {
|
753 + | self.map_of_enum_string.as_ref()
|
754 + | }
|
755 + | }
|
756 + | impl crate::constrained::Constrained
|
757 + | for crate::input::QueryParamsTargetingMapOfEnumStringOperationInput
|
758 + | {
|
759 + | type Unconstrained =
|
760 + | crate::input::query_params_targeting_map_of_enum_string_operation_input_internal::Builder;
|
761 + | }
|
762 + | impl QueryParamsTargetingMapOfEnumStringOperationInput {
|
763 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
764 + | pub fn builder(
|
765 + | ) -> crate::input::query_params_targeting_map_of_enum_string_operation_input::Builder {
|
766 + | crate::input::query_params_targeting_map_of_enum_string_operation_input::Builder::default()
|
767 + | }
|
768 + | }
|
769 + |
|
770 + | #[allow(missing_docs)] // documentation missing in model
|
771 + | #[derive(
|
772 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
773 + | )]
|
774 + | pub struct NonStreamingBlobOperationInput {
|
775 + | #[allow(missing_docs)] // documentation missing in model
|
776 + | pub non_streaming_blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
777 + | }
|
778 + | impl NonStreamingBlobOperationInput {
|
779 + | #[allow(missing_docs)] // documentation missing in model
|
780 + | pub fn non_streaming_blob(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
|
781 + | self.non_streaming_blob.as_ref()
|
782 + | }
|
783 + | }
|
784 + | impl crate::constrained::Constrained for crate::input::NonStreamingBlobOperationInput {
|
785 + | type Unconstrained = crate::input::non_streaming_blob_operation_input_internal::Builder;
|
786 + | }
|
787 + | impl NonStreamingBlobOperationInput {
|
788 + | /// Creates a new builder-style object to manufacture [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
789 + | pub fn builder() -> crate::input::non_streaming_blob_operation_input::Builder {
|
790 + | crate::input::non_streaming_blob_operation_input::Builder::default()
|
1147 791 | }
|
792 + | }
|
793 + |
|
794 + | #[allow(missing_docs)] // documentation missing in model
|
795 + | #[derive(::std::fmt::Debug)]
|
796 + | pub struct StreamingBlobOperationInput {
|
797 + | #[allow(missing_docs)] // documentation missing in model
|
798 + | pub streaming_blob: ::aws_smithy_types::byte_stream::ByteStream,
|
799 + | }
|
800 + | impl StreamingBlobOperationInput {
|
801 + | #[allow(missing_docs)] // documentation missing in model
|
802 + | pub fn streaming_blob(&self) -> &::aws_smithy_types::byte_stream::ByteStream {
|
803 + | &self.streaming_blob
|
1148 804 | }
|
805 + | }
|
806 + | impl crate::constrained::Constrained for crate::input::StreamingBlobOperationInput {
|
807 + | type Unconstrained = crate::input::streaming_blob_operation_input_internal::Builder;
|
808 + | }
|
809 + | impl StreamingBlobOperationInput {
|
810 + | /// Creates a new builder-style object to manufacture [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
811 + | pub fn builder() -> crate::input::streaming_blob_operation_input::Builder {
|
812 + | crate::input::streaming_blob_operation_input::Builder::default()
|
1149 813 | }
|
1150 814 | }
|
1151 - | /// See [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
1152 - | pub(crate) mod query_params_targeting_map_of_enum_string_operation_input_internal {
|
815 + |
|
816 + | #[allow(missing_docs)] // documentation missing in model
|
817 + | #[derive(::std::fmt::Debug)]
|
818 + | pub struct EventStreamsOperationInput {
|
819 + | #[allow(missing_docs)] // documentation missing in model
|
820 + | pub events:
|
821 + | ::aws_smithy_http::event_stream::Receiver<crate::model::Event, crate::error::EventError>,
|
822 + | }
|
823 + | impl EventStreamsOperationInput {
|
824 + | #[allow(missing_docs)] // documentation missing in model
|
825 + | pub fn events(
|
826 + | &self,
|
827 + | ) -> &::aws_smithy_http::event_stream::Receiver<crate::model::Event, crate::error::EventError>
|
828 + | {
|
829 + | &self.events
|
830 + | }
|
831 + | }
|
832 + | impl crate::constrained::Constrained for crate::input::EventStreamsOperationInput {
|
833 + | type Unconstrained = crate::input::event_streams_operation_input_internal::Builder;
|
834 + | }
|
835 + | impl EventStreamsOperationInput {
|
836 + | /// Creates a new builder-style object to manufacture [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
837 + | pub fn builder() -> crate::input::event_streams_operation_input::Builder {
|
838 + | crate::input::event_streams_operation_input::Builder::default()
|
839 + | }
|
840 + | }
|
841 + | /// See [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
842 + | pub(crate) mod constrained_shapes_operation_input_internal {
|
1153 843 |
|
1154 844 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1155 845 | /// Holds one variant for each of the ways the builder can fail.
|
1156 846 | #[non_exhaustive]
|
1157 847 | #[allow(clippy::enum_variant_names)]
|
1158 848 | pub(crate) enum ConstraintViolation {
|
1159 - | /// Constraint violation occurred building member `map_of_enum_string` when building `QueryParamsTargetingMapOfEnumStringOperationInput`.
|
849 + | /// `con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`.
|
850 + | MissingConA,
|
851 + | /// Constraint violation occurred building member `con_a` when building `ConstrainedShapesOperationInput`.
|
1160 852 | #[doc(hidden)]
|
1161 - | MapOfEnumString(crate::model::map_of_enum_string_internal::ConstraintViolation),
|
853 + | ConA(crate::model::con_a_internal::ConstraintViolation),
|
1162 854 | }
|
1163 855 | impl ::std::fmt::Display for ConstraintViolation {
|
1164 856 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1165 857 | match self {
|
1166 - | ConstraintViolation::MapOfEnumString(_) => write!(f, "constraint violation occurred building member `map_of_enum_string` when building `QueryParamsTargetingMapOfEnumStringOperationInput`"),
|
858 + | ConstraintViolation::MissingConA => write!(f, "`con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`"),
|
859 + | ConstraintViolation::ConA(_) => write!(f, "constraint violation occurred building member `con_a` when building `ConstrainedShapesOperationInput`"),
|
1167 860 | }
|
1168 861 | }
|
1169 862 | }
|
1170 863 | impl ::std::error::Error for ConstraintViolation {}
|
1171 864 | impl ConstraintViolation {
|
1172 865 | pub(crate) fn as_validation_exception_field(
|
1173 866 | self,
|
1174 867 | path: ::std::string::String,
|
1175 868 | ) -> crate::model::ValidationExceptionField {
|
1176 869 | match self {
|
1177 - | ConstraintViolation::MapOfEnumString(inner) => {
|
1178 - | inner.as_validation_exception_field(path + "/mapOfEnumString")
|
870 + | ConstraintViolation::MissingConA => crate::model::ValidationExceptionField {
|
871 + | message: format!(
|
872 + | "Value at '{}/conA' failed to satisfy constraint: Member must not be null",
|
873 + | path
|
874 + | ),
|
875 + | path: path + "/conA",
|
876 + | },
|
877 + | ConstraintViolation::ConA(inner) => {
|
878 + | inner.as_validation_exception_field(path + "/conA")
|
1179 879 | }
|
1180 880 | }
|
1181 881 | }
|
1182 882 | }
|
1183 883 | impl ::std::convert::From<ConstraintViolation>
|
1184 884 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
1185 885 | {
|
1186 886 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
1187 887 | let first_validation_exception_field =
|
1188 888 | constraint_violation.as_validation_exception_field("".to_owned());
|
1189 889 | let validation_exception = crate::error::ValidationException {
|
1190 890 | message: format!(
|
1191 891 | "1 validation error detected. {}",
|
1192 892 | &first_validation_exception_field.message
|
1193 893 | ),
|
1194 894 | field_list: Some(vec![first_validation_exception_field]),
|
1195 895 | };
|
1196 896 | Self::ConstraintViolation(
|
1197 897 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
1198 898 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
1199 899 | )
|
1200 900 | }
|
1201 901 | }
|
1202 902 | impl ::std::convert::From<Builder>
|
1203 - | for crate::constrained::MaybeConstrained<
|
1204 - | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput,
|
1205 - | >
|
903 + | for crate::constrained::MaybeConstrained<crate::input::ConstrainedShapesOperationInput>
|
1206 904 | {
|
1207 905 | fn from(builder: Builder) -> Self {
|
1208 906 | Self::Unconstrained(builder)
|
1209 907 | }
|
1210 908 | }
|
1211 - | impl ::std::convert::TryFrom<Builder>
|
1212 - | for crate::input::QueryParamsTargetingMapOfEnumStringOperationInput
|
1213 - | {
|
909 + | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedShapesOperationInput {
|
1214 910 | type Error = ConstraintViolation;
|
1215 911 |
|
1216 912 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1217 913 | builder.build()
|
1218 914 | }
|
1219 915 | }
|
1220 - | /// A builder for [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
916 + | /// A builder for [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
1221 917 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1222 918 | pub(crate) struct Builder {
|
1223 - | pub(crate) map_of_enum_string: ::std::option::Option<
|
1224 - | crate::constrained::MaybeConstrained<
|
1225 - | crate::constrained::map_of_enum_string_constrained::MapOfEnumStringConstrained,
|
1226 - | >,
|
1227 - | >,
|
919 + | pub(crate) con_a:
|
920 + | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConA>>,
|
1228 921 | }
|
1229 922 | impl Builder {
|
1230 923 | #[allow(missing_docs)] // documentation missing in model
|
1231 - | pub(crate) fn set_map_of_enum_string(
|
924 + | pub(crate) fn set_con_a(
|
1232 925 | mut self,
|
1233 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_enum_string_constrained::MapOfEnumStringConstrained>>>,
|
926 + | input: impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConA>>,
|
1234 927 | ) -> Self {
|
1235 - | self.map_of_enum_string = input.map(|v| v.into());
|
928 + | self.con_a = Some(input.into());
|
1236 929 | self
|
1237 930 | }
|
1238 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
931 + | /// Consumes the builder and constructs a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
1239 932 | ///
|
1240 - | /// The builder fails to construct a [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput) if a [`ConstraintViolation`] occurs.
|
933 + | /// The builder fails to construct a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput) if a [`ConstraintViolation`] occurs.
|
1241 934 | ///
|
935 + | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
1242 936 | pub fn build(
|
1243 937 | self,
|
1244 - | ) -> Result<
|
1245 - | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput,
|
1246 - | ConstraintViolation,
|
1247 - | > {
|
938 + | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
1248 939 | self.build_enforcing_all_constraints()
|
1249 940 | }
|
1250 941 | fn build_enforcing_all_constraints(
|
1251 942 | self,
|
1252 - | ) -> Result<
|
1253 - | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput,
|
1254 - | ConstraintViolation,
|
1255 - | > {
|
1256 - | Ok(
|
1257 - | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput {
|
1258 - | map_of_enum_string: self
|
1259 - | .map_of_enum_string
|
943 + | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
944 + | Ok(crate::input::ConstrainedShapesOperationInput {
|
945 + | con_a: self
|
946 + | .con_a
|
1260 947 | .map(|v| match v {
|
1261 948 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1262 949 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1263 950 | })
|
1264 - | .map(|res| {
|
1265 - | res.map(|v| v.into())
|
1266 - | .map_err(ConstraintViolation::MapOfEnumString)
|
951 + | .map(|res| res.map_err(ConstraintViolation::ConA))
|
952 + | .transpose()?
|
953 + | .ok_or(ConstraintViolation::MissingConA)?,
|
1267 954 | })
|
1268 - | .transpose()?,
|
1269 - | },
|
1270 - | )
|
1271 - | }
|
1272 - | }
|
1273 - | }
|
1274 - | /// See [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
1275 - | pub mod query_params_targeting_map_of_enum_string_operation_input {
|
1276 - |
|
1277 - | impl ::std::convert::From<Builder>
|
1278 - | for crate::input::QueryParamsTargetingMapOfEnumStringOperationInput
|
1279 - | {
|
1280 - | fn from(builder: Builder) -> Self {
|
1281 - | builder.build()
|
1282 - | }
|
1283 - | }
|
1284 - | /// A builder for [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
1285 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1286 - | pub struct Builder {
|
1287 - | pub(crate) map_of_enum_string: ::std::option::Option<
|
1288 - | ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
1289 - | >,
|
1290 - | }
|
1291 - | impl Builder {
|
1292 - | #[allow(missing_docs)] // documentation missing in model
|
1293 - | pub fn map_of_enum_string(
|
1294 - | mut self,
|
1295 - | input: ::std::option::Option<
|
1296 - | ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
1297 - | >,
|
1298 - | ) -> Self {
|
1299 - | self.map_of_enum_string = input;
|
1300 - | self
|
1301 - | }
|
1302 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
1303 - | pub fn build(self) -> crate::input::QueryParamsTargetingMapOfEnumStringOperationInput {
|
1304 - | self.build_enforcing_required_and_enum_traits()
|
1305 - | }
|
1306 - | fn build_enforcing_required_and_enum_traits(
|
1307 - | self,
|
1308 - | ) -> crate::input::QueryParamsTargetingMapOfEnumStringOperationInput {
|
1309 - | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput {
|
1310 - | map_of_enum_string: self.map_of_enum_string,
|
1311 - | }
|
1312 955 | }
|
1313 956 | }
|
1314 957 | }
|
1315 - | /// See [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
1316 - | pub(crate) mod http_prefix_headers_targeting_length_map_operation_input_internal {
|
958 + | /// See [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
959 + | pub mod constrained_shapes_operation_input {
|
1317 960 |
|
1318 961 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1319 962 | /// Holds one variant for each of the ways the builder can fail.
|
1320 - | #[non_exhaustive]
|
1321 963 | #[allow(clippy::enum_variant_names)]
|
1322 - | pub(crate) enum ConstraintViolation {
|
1323 - | /// Constraint violation occurred building member `length_map` when building `HttpPrefixHeadersTargetingLengthMapOperationInput`.
|
1324 - | #[doc(hidden)]
|
1325 - | LengthMap(crate::model::con_b_map_internal::ConstraintViolation),
|
964 + | pub enum ConstraintViolation {
|
965 + | /// `con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`.
|
966 + | MissingConA,
|
1326 967 | }
|
1327 968 | impl ::std::fmt::Display for ConstraintViolation {
|
1328 969 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1329 970 | match self {
|
1330 - | ConstraintViolation::LengthMap(_) => write!(f, "constraint violation occurred building member `length_map` when building `HttpPrefixHeadersTargetingLengthMapOperationInput`"),
|
971 + | ConstraintViolation::MissingConA => write!(f, "`con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`"),
|
1331 972 | }
|
1332 973 | }
|
1333 974 | }
|
1334 975 | impl ::std::error::Error for ConstraintViolation {}
|
1335 - | impl ConstraintViolation {
|
1336 - | pub(crate) fn as_validation_exception_field(
|
1337 - | self,
|
1338 - | path: ::std::string::String,
|
1339 - | ) -> crate::model::ValidationExceptionField {
|
1340 - | match self {
|
1341 - | ConstraintViolation::LengthMap(inner) => {
|
1342 - | inner.as_validation_exception_field(path + "/lengthMap")
|
1343 - | }
|
1344 - | }
|
1345 - | }
|
1346 - | }
|
1347 - | impl ::std::convert::From<ConstraintViolation>
|
1348 - | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
1349 - | {
|
1350 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
1351 - | let first_validation_exception_field =
|
1352 - | constraint_violation.as_validation_exception_field("".to_owned());
|
1353 - | let validation_exception = crate::error::ValidationException {
|
1354 - | message: format!(
|
1355 - | "1 validation error detected. {}",
|
1356 - | &first_validation_exception_field.message
|
1357 - | ),
|
1358 - | field_list: Some(vec![first_validation_exception_field]),
|
1359 - | };
|
1360 - | Self::ConstraintViolation(
|
1361 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
1362 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
1363 - | )
|
1364 - | }
|
1365 - | }
|
1366 - | impl ::std::convert::From<Builder>
|
1367 - | for crate::constrained::MaybeConstrained<
|
1368 - | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput,
|
1369 - | >
|
1370 - | {
|
1371 - | fn from(builder: Builder) -> Self {
|
1372 - | Self::Unconstrained(builder)
|
1373 - | }
|
1374 - | }
|
1375 - | impl ::std::convert::TryFrom<Builder>
|
1376 - | for crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput
|
1377 - | {
|
976 + | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedShapesOperationInput {
|
1378 977 | type Error = ConstraintViolation;
|
1379 978 |
|
1380 979 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1381 980 | builder.build()
|
1382 981 | }
|
1383 982 | }
|
1384 - | /// A builder for [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
983 + | /// A builder for [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
1385 984 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1386 - | pub(crate) struct Builder {
|
1387 - | pub(crate) length_map:
|
1388 - | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
985 + | pub struct Builder {
|
986 + | pub(crate) con_a: ::std::option::Option<crate::model::ConA>,
|
1389 987 | }
|
1390 988 | impl Builder {
|
1391 989 | #[allow(missing_docs)] // documentation missing in model
|
1392 - | pub(crate) fn set_length_map(
|
1393 - | mut self,
|
1394 - | input: Option<
|
1395 - | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
1396 - | >,
|
1397 - | ) -> Self {
|
1398 - | self.length_map = input.map(|v| v.into());
|
990 + | pub fn con_a(mut self, input: crate::model::ConA) -> Self {
|
991 + | self.con_a = Some(input);
|
1399 992 | self
|
1400 993 | }
|
1401 - | /// Consumes the builder and constructs a [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
994 + | /// Consumes the builder and constructs a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
1402 995 | ///
|
1403 - | /// The builder fails to construct a [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput) if a [`ConstraintViolation`] occurs.
|
996 + | /// The builder fails to construct a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput) if you do not provide a value for all non-`Option`al members.
|
1404 997 | ///
|
1405 998 | pub fn build(
|
1406 999 | self,
|
1407 - | ) -> Result<
|
1408 - | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput,
|
1409 - | ConstraintViolation,
|
1410 - | > {
|
1411 - | self.build_enforcing_all_constraints()
|
1000 + | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
1001 + | self.build_enforcing_required_and_enum_traits()
|
1412 1002 | }
|
1413 - | fn build_enforcing_all_constraints(
|
1003 + | fn build_enforcing_required_and_enum_traits(
|
1414 1004 | self,
|
1415 - | ) -> Result<
|
1416 - | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput,
|
1417 - | ConstraintViolation,
|
1418 - | > {
|
1419 - | Ok(
|
1420 - | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput {
|
1421 - | length_map: self
|
1422 - | .length_map
|
1423 - | .map(|v| match v {
|
1424 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1425 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1005 + | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
1006 + | Ok(crate::input::ConstrainedShapesOperationInput {
|
1007 + | con_a: self.con_a.ok_or(ConstraintViolation::MissingConA)?,
|
1426 1008 | })
|
1427 - | .map(|res| res.map_err(ConstraintViolation::LengthMap))
|
1428 - | .transpose()?
|
1429 - | .map(|v: crate::model::ConBMap| v.into()),
|
1430 - | },
|
1431 - | )
|
1432 1009 | }
|
1433 1010 | }
|
1434 1011 | }
|
1435 - | /// See [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
1436 - | pub mod http_prefix_headers_targeting_length_map_operation_input {
|
1012 + | /// See [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
1013 + | pub(crate) mod constrained_shapes_only_in_output_operation_input_internal {
|
1437 1014 |
|
1438 - | impl ::std::convert::From<Builder>
|
1439 - | for crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput
|
1440 - | {
|
1015 + | impl ::std::convert::From<Builder> for crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
1441 1016 | fn from(builder: Builder) -> Self {
|
1442 1017 | builder.build()
|
1443 1018 | }
|
1444 1019 | }
|
1445 - | /// A builder for [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
1020 + | /// A builder for [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
1446 1021 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1447 - | pub struct Builder {
|
1448 - | pub(crate) length_map: ::std::option::Option<
|
1449 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1450 - | >,
|
1451 - | }
|
1022 + | pub(crate) struct Builder {}
|
1452 1023 | impl Builder {
|
1453 - | #[allow(missing_docs)] // documentation missing in model
|
1454 - | pub fn length_map(
|
1455 - | mut self,
|
1456 - | input: ::std::option::Option<
|
1457 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1458 - | >,
|
1459 - | ) -> Self {
|
1460 - | self.length_map = input;
|
1461 - | self
|
1024 + | /// Consumes the builder and constructs a [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
1025 + | pub fn build(self) -> crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
1026 + | self.build_enforcing_all_constraints()
|
1462 1027 | }
|
1463 - | /// Consumes the builder and constructs a [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
1464 - | pub fn build(self) -> crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput {
|
1028 + | fn build_enforcing_all_constraints(
|
1029 + | self,
|
1030 + | ) -> crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
1031 + | crate::input::ConstrainedShapesOnlyInOutputOperationInput {}
|
1032 + | }
|
1033 + | }
|
1034 + | }
|
1035 + | /// See [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
1036 + | pub mod constrained_shapes_only_in_output_operation_input {
|
1037 + |
|
1038 + | impl ::std::convert::From<Builder> for crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
1039 + | fn from(builder: Builder) -> Self {
|
1040 + | builder.build()
|
1041 + | }
|
1042 + | }
|
1043 + | /// A builder for [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
1044 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1045 + | pub struct Builder {}
|
1046 + | impl Builder {
|
1047 + | /// Consumes the builder and constructs a [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
1048 + | pub fn build(self) -> crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
1465 1049 | self.build_enforcing_required_and_enum_traits()
|
1466 1050 | }
|
1467 1051 | fn build_enforcing_required_and_enum_traits(
|
1468 1052 | self,
|
1469 - | ) -> crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput {
|
1470 - | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput {
|
1471 - | length_map: self.length_map,
|
1472 - | }
|
1053 + | ) -> crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
1054 + | crate::input::ConstrainedShapesOnlyInOutputOperationInput {}
|
1473 1055 | }
|
1474 1056 | }
|
1475 1057 | }
|
1476 - | /// See [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
1477 - | pub(crate) mod query_params_targeting_map_of_list_of_length_pattern_string_operation_input_internal {
|
1058 + | /// See [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
1059 + | pub(crate) mod constrained_http_bound_shapes_operation_input_internal {
|
1478 1060 |
|
1479 1061 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1480 1062 | /// Holds one variant for each of the ways the builder can fail.
|
1481 1063 | #[non_exhaustive]
|
1482 1064 | #[allow(clippy::enum_variant_names)]
|
1483 1065 | pub(crate) enum ConstraintViolation {
|
1484 - | /// Constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`.
|
1066 + | /// `length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
1067 + | MissingLengthStringLabel,
|
1068 + | /// Constraint violation occurred building member `length_string_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1485 1069 | #[doc(hidden)]
|
1486 - | MapOfLengthPatternString(
|
1487 - | crate::model::map_of_list_of_length_pattern_string_internal::ConstraintViolation,
|
1488 - | ),
|
1489 - | }
|
1490 - | impl ::std::fmt::Display for ConstraintViolation {
|
1491 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1492 - | match self {
|
1493 - | ConstraintViolation::MapOfLengthPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`"),
|
1494 - | }
|
1495 - | }
|
1496 - | }
|
1497 - | impl ::std::error::Error for ConstraintViolation {}
|
1498 - | impl ConstraintViolation {
|
1499 - | pub(crate) fn as_validation_exception_field(
|
1070 + | LengthStringLabel(crate::model::length_string_internal::ConstraintViolation),
|
1071 + | /// Constraint violation occurred building member `range_integer_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1072 + | #[doc(hidden)]
|
1073 + | RangeIntegerLabel(crate::model::range_integer_internal::ConstraintViolation),
|
1074 + | /// Constraint violation occurred building member `range_short_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1075 + | #[doc(hidden)]
|
1076 + | RangeShortLabel(crate::model::range_short_internal::ConstraintViolation),
|
1077 + | /// Constraint violation occurred building member `range_long_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1078 + | #[doc(hidden)]
|
1079 + | RangeLongLabel(crate::model::range_long_internal::ConstraintViolation),
|
1080 + | /// Constraint violation occurred building member `range_byte_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1081 + | #[doc(hidden)]
|
1082 + | RangeByteLabel(crate::model::range_byte_internal::ConstraintViolation),
|
1083 + | /// `enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
1084 + | MissingEnumStringLabel,
|
1085 + | /// Constraint violation occurred building member `enum_string_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1086 + | #[doc(hidden)]
|
1087 + | EnumStringLabel(crate::model::enum_string_internal::ConstraintViolation),
|
1088 + | /// `length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
1089 + | MissingLengthStringHeaderMap,
|
1090 + | /// Constraint violation occurred building member `length_string_header_map` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1091 + | #[doc(hidden)]
|
1092 + | LengthStringHeaderMap(crate::model::map_of_length_string_internal::ConstraintViolation),
|
1093 + | /// Constraint violation occurred building member `length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1094 + | #[doc(hidden)]
|
1095 + | LengthStringHeader(crate::model::length_string_internal::ConstraintViolation),
|
1096 + | /// Constraint violation occurred building member `range_integer_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1097 + | #[doc(hidden)]
|
1098 + | RangeIntegerHeader(crate::model::range_integer_internal::ConstraintViolation),
|
1099 + | /// Constraint violation occurred building member `range_short_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1100 + | #[doc(hidden)]
|
1101 + | RangeShortHeader(crate::model::range_short_internal::ConstraintViolation),
|
1102 + | /// Constraint violation occurred building member `range_long_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1103 + | #[doc(hidden)]
|
1104 + | RangeLongHeader(crate::model::range_long_internal::ConstraintViolation),
|
1105 + | /// Constraint violation occurred building member `range_byte_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1106 + | #[doc(hidden)]
|
1107 + | RangeByteHeader(crate::model::range_byte_internal::ConstraintViolation),
|
1108 + | /// Constraint violation occurred building member `length_string_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1109 + | #[doc(hidden)]
|
1110 + | LengthStringSetHeader(crate::model::set_of_length_string_internal::ConstraintViolation),
|
1111 + | /// Constraint violation occurred building member `list_length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1112 + | #[doc(hidden)]
|
1113 + | ListLengthStringHeader(crate::model::list_of_length_string_internal::ConstraintViolation),
|
1114 + | /// Constraint violation occurred building member `length_list_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1115 + | #[doc(hidden)]
|
1116 + | LengthListPatternStringHeader(
|
1117 + | crate::model::length_list_of_pattern_string_internal::ConstraintViolation,
|
1118 + | ),
|
1119 + | /// Constraint violation occurred building member `length_set_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1120 + | #[doc(hidden)]
|
1121 + | LengthSetPatternStringHeader(
|
1122 + | crate::model::length_set_of_pattern_string_internal::ConstraintViolation,
|
1123 + | ),
|
1124 + | /// Constraint violation occurred building member `range_byte_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1125 + | #[doc(hidden)]
|
1126 + | RangeByteSetHeader(crate::model::set_of_range_byte_internal::ConstraintViolation),
|
1127 + | /// Constraint violation occurred building member `range_short_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1128 + | #[doc(hidden)]
|
1129 + | RangeShortSetHeader(crate::model::set_of_range_short_internal::ConstraintViolation),
|
1130 + | /// Constraint violation occurred building member `range_integer_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1131 + | #[doc(hidden)]
|
1132 + | RangeIntegerSetHeader(crate::model::set_of_range_integer_internal::ConstraintViolation),
|
1133 + | /// Constraint violation occurred building member `range_long_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1134 + | #[doc(hidden)]
|
1135 + | RangeLongSetHeader(crate::model::set_of_range_long_internal::ConstraintViolation),
|
1136 + | /// Constraint violation occurred building member `range_byte_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1137 + | #[doc(hidden)]
|
1138 + | RangeByteListHeader(crate::model::list_of_range_byte_internal::ConstraintViolation),
|
1139 + | /// Constraint violation occurred building member `range_short_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1140 + | #[doc(hidden)]
|
1141 + | RangeShortListHeader(crate::model::list_of_range_short_internal::ConstraintViolation),
|
1142 + | /// Constraint violation occurred building member `range_integer_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1143 + | #[doc(hidden)]
|
1144 + | RangeIntegerListHeader(crate::model::list_of_range_integer_internal::ConstraintViolation),
|
1145 + | /// Constraint violation occurred building member `range_long_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1146 + | #[doc(hidden)]
|
1147 + | RangeLongListHeader(crate::model::list_of_range_long_internal::ConstraintViolation),
|
1148 + | /// Constraint violation occurred building member `length_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1149 + | #[doc(hidden)]
|
1150 + | LengthStringQuery(crate::model::length_string_internal::ConstraintViolation),
|
1151 + | /// Constraint violation occurred building member `range_byte_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1152 + | #[doc(hidden)]
|
1153 + | RangeByteQuery(crate::model::range_byte_internal::ConstraintViolation),
|
1154 + | /// Constraint violation occurred building member `range_short_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1155 + | #[doc(hidden)]
|
1156 + | RangeShortQuery(crate::model::range_short_internal::ConstraintViolation),
|
1157 + | /// Constraint violation occurred building member `range_integer_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1158 + | #[doc(hidden)]
|
1159 + | RangeIntegerQuery(crate::model::range_integer_internal::ConstraintViolation),
|
1160 + | /// Constraint violation occurred building member `range_long_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1161 + | #[doc(hidden)]
|
1162 + | RangeLongQuery(crate::model::range_long_internal::ConstraintViolation),
|
1163 + | /// Constraint violation occurred building member `enum_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1164 + | #[doc(hidden)]
|
1165 + | EnumStringQuery(crate::model::enum_string_internal::ConstraintViolation),
|
1166 + | /// Constraint violation occurred building member `length_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1167 + | #[doc(hidden)]
|
1168 + | LengthStringListQuery(crate::model::list_of_length_string_internal::ConstraintViolation),
|
1169 + | /// Constraint violation occurred building member `length_list_pattern_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1170 + | #[doc(hidden)]
|
1171 + | LengthListPatternStringQuery(
|
1172 + | crate::model::length_list_of_pattern_string_internal::ConstraintViolation,
|
1173 + | ),
|
1174 + | /// Constraint violation occurred building member `length_string_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1175 + | #[doc(hidden)]
|
1176 + | LengthStringSetQuery(crate::model::set_of_length_string_internal::ConstraintViolation),
|
1177 + | /// Constraint violation occurred building member `range_byte_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1178 + | #[doc(hidden)]
|
1179 + | RangeByteListQuery(crate::model::list_of_range_byte_internal::ConstraintViolation),
|
1180 + | /// Constraint violation occurred building member `range_short_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1181 + | #[doc(hidden)]
|
1182 + | RangeShortListQuery(crate::model::list_of_range_short_internal::ConstraintViolation),
|
1183 + | /// Constraint violation occurred building member `range_integer_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1184 + | #[doc(hidden)]
|
1185 + | RangeIntegerListQuery(crate::model::list_of_range_integer_internal::ConstraintViolation),
|
1186 + | /// Constraint violation occurred building member `range_long_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1187 + | #[doc(hidden)]
|
1188 + | RangeLongListQuery(crate::model::list_of_range_long_internal::ConstraintViolation),
|
1189 + | /// Constraint violation occurred building member `range_byte_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1190 + | #[doc(hidden)]
|
1191 + | RangeByteSetQuery(crate::model::set_of_range_byte_internal::ConstraintViolation),
|
1192 + | /// Constraint violation occurred building member `range_short_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1193 + | #[doc(hidden)]
|
1194 + | RangeShortSetQuery(crate::model::set_of_range_short_internal::ConstraintViolation),
|
1195 + | /// Constraint violation occurred building member `range_integer_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1196 + | #[doc(hidden)]
|
1197 + | RangeIntegerSetQuery(crate::model::set_of_range_integer_internal::ConstraintViolation),
|
1198 + | /// Constraint violation occurred building member `range_long_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1199 + | #[doc(hidden)]
|
1200 + | RangeLongSetQuery(crate::model::set_of_range_long_internal::ConstraintViolation),
|
1201 + | /// Constraint violation occurred building member `enum_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
1202 + | #[doc(hidden)]
|
1203 + | EnumStringListQuery(crate::model::list_of_enum_string_internal::ConstraintViolation),
|
1204 + | }
|
1205 + | impl ::std::fmt::Display for ConstraintViolation {
|
1206 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1207 + | match self {
|
1208 + | ConstraintViolation::MissingLengthStringLabel => write!(f, "`length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1209 + | ConstraintViolation::LengthStringLabel(_) => write!(f, "constraint violation occurred building member `length_string_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1210 + | ConstraintViolation::RangeIntegerLabel(_) => write!(f, "constraint violation occurred building member `range_integer_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1211 + | ConstraintViolation::RangeShortLabel(_) => write!(f, "constraint violation occurred building member `range_short_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1212 + | ConstraintViolation::RangeLongLabel(_) => write!(f, "constraint violation occurred building member `range_long_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1213 + | ConstraintViolation::RangeByteLabel(_) => write!(f, "constraint violation occurred building member `range_byte_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1214 + | ConstraintViolation::MissingEnumStringLabel => write!(f, "`enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1215 + | ConstraintViolation::EnumStringLabel(_) => write!(f, "constraint violation occurred building member `enum_string_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1216 + | ConstraintViolation::MissingLengthStringHeaderMap => write!(f, "`length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1217 + | ConstraintViolation::LengthStringHeaderMap(_) => write!(f, "constraint violation occurred building member `length_string_header_map` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1218 + | ConstraintViolation::LengthStringHeader(_) => write!(f, "constraint violation occurred building member `length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1219 + | ConstraintViolation::RangeIntegerHeader(_) => write!(f, "constraint violation occurred building member `range_integer_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1220 + | ConstraintViolation::RangeShortHeader(_) => write!(f, "constraint violation occurred building member `range_short_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1221 + | ConstraintViolation::RangeLongHeader(_) => write!(f, "constraint violation occurred building member `range_long_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1222 + | ConstraintViolation::RangeByteHeader(_) => write!(f, "constraint violation occurred building member `range_byte_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1223 + | ConstraintViolation::LengthStringSetHeader(_) => write!(f, "constraint violation occurred building member `length_string_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1224 + | ConstraintViolation::ListLengthStringHeader(_) => write!(f, "constraint violation occurred building member `list_length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1225 + | ConstraintViolation::LengthListPatternStringHeader(_) => write!(f, "constraint violation occurred building member `length_list_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1226 + | ConstraintViolation::LengthSetPatternStringHeader(_) => write!(f, "constraint violation occurred building member `length_set_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1227 + | ConstraintViolation::RangeByteSetHeader(_) => write!(f, "constraint violation occurred building member `range_byte_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1228 + | ConstraintViolation::RangeShortSetHeader(_) => write!(f, "constraint violation occurred building member `range_short_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1229 + | ConstraintViolation::RangeIntegerSetHeader(_) => write!(f, "constraint violation occurred building member `range_integer_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1230 + | ConstraintViolation::RangeLongSetHeader(_) => write!(f, "constraint violation occurred building member `range_long_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1231 + | ConstraintViolation::RangeByteListHeader(_) => write!(f, "constraint violation occurred building member `range_byte_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1232 + | ConstraintViolation::RangeShortListHeader(_) => write!(f, "constraint violation occurred building member `range_short_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1233 + | ConstraintViolation::RangeIntegerListHeader(_) => write!(f, "constraint violation occurred building member `range_integer_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1234 + | ConstraintViolation::RangeLongListHeader(_) => write!(f, "constraint violation occurred building member `range_long_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1235 + | ConstraintViolation::LengthStringQuery(_) => write!(f, "constraint violation occurred building member `length_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1236 + | ConstraintViolation::RangeByteQuery(_) => write!(f, "constraint violation occurred building member `range_byte_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1237 + | ConstraintViolation::RangeShortQuery(_) => write!(f, "constraint violation occurred building member `range_short_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1238 + | ConstraintViolation::RangeIntegerQuery(_) => write!(f, "constraint violation occurred building member `range_integer_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1239 + | ConstraintViolation::RangeLongQuery(_) => write!(f, "constraint violation occurred building member `range_long_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1240 + | ConstraintViolation::EnumStringQuery(_) => write!(f, "constraint violation occurred building member `enum_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1241 + | ConstraintViolation::LengthStringListQuery(_) => write!(f, "constraint violation occurred building member `length_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1242 + | ConstraintViolation::LengthListPatternStringQuery(_) => write!(f, "constraint violation occurred building member `length_list_pattern_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1243 + | ConstraintViolation::LengthStringSetQuery(_) => write!(f, "constraint violation occurred building member `length_string_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1244 + | ConstraintViolation::RangeByteListQuery(_) => write!(f, "constraint violation occurred building member `range_byte_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1245 + | ConstraintViolation::RangeShortListQuery(_) => write!(f, "constraint violation occurred building member `range_short_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1246 + | ConstraintViolation::RangeIntegerListQuery(_) => write!(f, "constraint violation occurred building member `range_integer_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1247 + | ConstraintViolation::RangeLongListQuery(_) => write!(f, "constraint violation occurred building member `range_long_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1248 + | ConstraintViolation::RangeByteSetQuery(_) => write!(f, "constraint violation occurred building member `range_byte_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1249 + | ConstraintViolation::RangeShortSetQuery(_) => write!(f, "constraint violation occurred building member `range_short_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1250 + | ConstraintViolation::RangeIntegerSetQuery(_) => write!(f, "constraint violation occurred building member `range_integer_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1251 + | ConstraintViolation::RangeLongSetQuery(_) => write!(f, "constraint violation occurred building member `range_long_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1252 + | ConstraintViolation::EnumStringListQuery(_) => write!(f, "constraint violation occurred building member `enum_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
1253 + | }
|
1254 + | }
|
1255 + | }
|
1256 + | impl ::std::error::Error for ConstraintViolation {}
|
1257 + | impl ConstraintViolation {
|
1258 + | pub(crate) fn as_validation_exception_field(
|
1500 1259 | self,
|
1501 1260 | path: ::std::string::String,
|
1502 1261 | ) -> crate::model::ValidationExceptionField {
|
1503 1262 | match self {
|
1504 - | ConstraintViolation::MapOfLengthPatternString(inner) => {
|
1505 - | inner.as_validation_exception_field(path + "/mapOfLengthPatternString")
|
1506 - | }
|
1263 + | ConstraintViolation::MissingLengthStringLabel => crate::model::ValidationExceptionField {
|
1264 + | message: format!("Value at '{}/lengthStringLabel' failed to satisfy constraint: Member must not be null", path),
|
1265 + | path: path + "/lengthStringLabel",
|
1266 + | },
|
1267 + | ConstraintViolation::LengthStringLabel(inner) => inner.as_validation_exception_field(path + "/lengthStringLabel"),
|
1268 + | ConstraintViolation::RangeIntegerLabel(inner) => inner.as_validation_exception_field(path + "/rangeIntegerLabel"),
|
1269 + | ConstraintViolation::RangeShortLabel(inner) => inner.as_validation_exception_field(path + "/rangeShortLabel"),
|
1270 + | ConstraintViolation::RangeLongLabel(inner) => inner.as_validation_exception_field(path + "/rangeLongLabel"),
|
1271 + | ConstraintViolation::RangeByteLabel(inner) => inner.as_validation_exception_field(path + "/rangeByteLabel"),
|
1272 + | ConstraintViolation::MissingEnumStringLabel => crate::model::ValidationExceptionField {
|
1273 + | message: format!("Value at '{}/enumStringLabel' failed to satisfy constraint: Member must not be null", path),
|
1274 + | path: path + "/enumStringLabel",
|
1275 + | },
|
1276 + | ConstraintViolation::EnumStringLabel(inner) => inner.as_validation_exception_field(path + "/enumStringLabel"),
|
1277 + | ConstraintViolation::MissingLengthStringHeaderMap => crate::model::ValidationExceptionField {
|
1278 + | message: format!("Value at '{}/lengthStringHeaderMap' failed to satisfy constraint: Member must not be null", path),
|
1279 + | path: path + "/lengthStringHeaderMap",
|
1280 + | },
|
1281 + | ConstraintViolation::LengthStringHeaderMap(inner) => inner.as_validation_exception_field(path + "/lengthStringHeaderMap"),
|
1282 + | ConstraintViolation::LengthStringHeader(inner) => inner.as_validation_exception_field(path + "/lengthStringHeader"),
|
1283 + | ConstraintViolation::RangeIntegerHeader(inner) => inner.as_validation_exception_field(path + "/rangeIntegerHeader"),
|
1284 + | ConstraintViolation::RangeShortHeader(inner) => inner.as_validation_exception_field(path + "/rangeShortHeader"),
|
1285 + | ConstraintViolation::RangeLongHeader(inner) => inner.as_validation_exception_field(path + "/rangeLongHeader"),
|
1286 + | ConstraintViolation::RangeByteHeader(inner) => inner.as_validation_exception_field(path + "/rangeByteHeader"),
|
1287 + | ConstraintViolation::LengthStringSetHeader(inner) => inner.as_validation_exception_field(path + "/lengthStringSetHeader"),
|
1288 + | ConstraintViolation::ListLengthStringHeader(inner) => inner.as_validation_exception_field(path + "/listLengthStringHeader"),
|
1289 + | ConstraintViolation::LengthListPatternStringHeader(inner) => inner.as_validation_exception_field(path + "/lengthListPatternStringHeader"),
|
1290 + | ConstraintViolation::LengthSetPatternStringHeader(inner) => inner.as_validation_exception_field(path + "/lengthSetPatternStringHeader"),
|
1291 + | ConstraintViolation::RangeByteSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeByteSetHeader"),
|
1292 + | ConstraintViolation::RangeShortSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeShortSetHeader"),
|
1293 + | ConstraintViolation::RangeIntegerSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeIntegerSetHeader"),
|
1294 + | ConstraintViolation::RangeLongSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeLongSetHeader"),
|
1295 + | ConstraintViolation::RangeByteListHeader(inner) => inner.as_validation_exception_field(path + "/rangeByteListHeader"),
|
1296 + | ConstraintViolation::RangeShortListHeader(inner) => inner.as_validation_exception_field(path + "/rangeShortListHeader"),
|
1297 + | ConstraintViolation::RangeIntegerListHeader(inner) => inner.as_validation_exception_field(path + "/rangeIntegerListHeader"),
|
1298 + | ConstraintViolation::RangeLongListHeader(inner) => inner.as_validation_exception_field(path + "/rangeLongListHeader"),
|
1299 + | ConstraintViolation::LengthStringQuery(inner) => inner.as_validation_exception_field(path + "/lengthStringQuery"),
|
1300 + | ConstraintViolation::RangeByteQuery(inner) => inner.as_validation_exception_field(path + "/rangeByteQuery"),
|
1301 + | ConstraintViolation::RangeShortQuery(inner) => inner.as_validation_exception_field(path + "/rangeShortQuery"),
|
1302 + | ConstraintViolation::RangeIntegerQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerQuery"),
|
1303 + | ConstraintViolation::RangeLongQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongQuery"),
|
1304 + | ConstraintViolation::EnumStringQuery(inner) => inner.as_validation_exception_field(path + "/enumStringQuery"),
|
1305 + | ConstraintViolation::LengthStringListQuery(inner) => inner.as_validation_exception_field(path + "/lengthStringListQuery"),
|
1306 + | ConstraintViolation::LengthListPatternStringQuery(inner) => inner.as_validation_exception_field(path + "/lengthListPatternStringQuery"),
|
1307 + | ConstraintViolation::LengthStringSetQuery(inner) => inner.as_validation_exception_field(path + "/lengthStringSetQuery"),
|
1308 + | ConstraintViolation::RangeByteListQuery(inner) => inner.as_validation_exception_field(path + "/rangeByteListQuery"),
|
1309 + | ConstraintViolation::RangeShortListQuery(inner) => inner.as_validation_exception_field(path + "/rangeShortListQuery"),
|
1310 + | ConstraintViolation::RangeIntegerListQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerListQuery"),
|
1311 + | ConstraintViolation::RangeLongListQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongListQuery"),
|
1312 + | ConstraintViolation::RangeByteSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeByteSetQuery"),
|
1313 + | ConstraintViolation::RangeShortSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeShortSetQuery"),
|
1314 + | ConstraintViolation::RangeIntegerSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerSetQuery"),
|
1315 + | ConstraintViolation::RangeLongSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongSetQuery"),
|
1316 + | ConstraintViolation::EnumStringListQuery(inner) => inner.as_validation_exception_field(path + "/enumStringListQuery"),
|
1507 1317 | }
|
1508 1318 | }
|
1509 1319 | }
|
1510 1320 | impl ::std::convert::From<ConstraintViolation>
|
1511 1321 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
1512 1322 | {
|
1513 1323 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
1514 1324 | let first_validation_exception_field =
|
1515 1325 | constraint_violation.as_validation_exception_field("".to_owned());
|
1516 1326 | let validation_exception = crate::error::ValidationException {
|
1517 1327 | message: format!(
|
1518 1328 | "1 validation error detected. {}",
|
1519 1329 | &first_validation_exception_field.message
|
1520 1330 | ),
|
1521 1331 | field_list: Some(vec![first_validation_exception_field]),
|
1522 1332 | };
|
1523 1333 | Self::ConstraintViolation(
|
1524 1334 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
1525 1335 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
1526 1336 | )
|
1527 1337 | }
|
1528 1338 | }
|
1529 1339 | impl ::std::convert::From<Builder>
|
1530 1340 | for crate::constrained::MaybeConstrained<
|
1531 - | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput,
|
1341 + | crate::input::ConstrainedHttpBoundShapesOperationInput,
|
1532 1342 | >
|
1533 1343 | {
|
1534 1344 | fn from(builder: Builder) -> Self {
|
1535 1345 | Self::Unconstrained(builder)
|
1536 1346 | }
|
1537 1347 | }
|
1538 - | impl ::std::convert::TryFrom<Builder>
|
1539 - | for crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
1540 - | {
|
1348 + | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedHttpBoundShapesOperationInput {
|
1541 1349 | type Error = ConstraintViolation;
|
1542 1350 |
|
1543 1351 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1544 1352 | builder.build()
|
1545 1353 | }
|
1546 1354 | }
|
1547 - | /// A builder for [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
1355 + | /// A builder for [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
1548 1356 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1549 1357 | pub(crate) struct Builder {
|
1550 - | pub(crate) map_of_length_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_pattern_string_constrained::MapOfListOfLengthPatternStringConstrained>>,
|
1551 - | }
|
1358 + | pub(crate) length_string_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
1359 + | pub(crate) range_integer_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
1360 + | pub(crate) range_short_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
1361 + | pub(crate) range_long_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
1362 + | pub(crate) range_byte_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
1363 + | pub(crate) enum_string_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::EnumString>>,
|
1364 + | pub(crate) length_string_header_map: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>,
|
1365 + | pub(crate) length_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
1366 + | pub(crate) range_integer_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
1367 + | pub(crate) range_short_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
1368 + | pub(crate) range_long_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
1369 + | pub(crate) range_byte_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
1370 + | pub(crate) length_string_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>>,
|
1371 + | pub(crate) list_length_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>,
|
1372 + | pub(crate) length_list_pattern_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>>,
|
1373 + | pub(crate) length_set_pattern_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthSetOfPatternString>>,
|
1374 + | pub(crate) range_byte_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>>,
|
1375 + | pub(crate) range_short_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>>,
|
1376 + | pub(crate) range_integer_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>>,
|
1377 + | pub(crate) range_long_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>>,
|
1378 + | pub(crate) range_byte_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>,
|
1379 + | pub(crate) range_short_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>,
|
1380 + | pub(crate) range_integer_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>,
|
1381 + | pub(crate) range_long_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>,
|
1382 + | pub(crate) length_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
1383 + | pub(crate) range_byte_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
1384 + | pub(crate) range_short_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
1385 + | pub(crate) range_integer_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
1386 + | pub(crate) range_long_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
1387 + | pub(crate) enum_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::EnumString>>,
|
1388 + | pub(crate) length_string_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>,
|
1389 + | pub(crate) length_list_pattern_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>>,
|
1390 + | pub(crate) length_string_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>>,
|
1391 + | pub(crate) range_byte_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>,
|
1392 + | pub(crate) range_short_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>,
|
1393 + | pub(crate) range_integer_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>,
|
1394 + | pub(crate) range_long_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>,
|
1395 + | pub(crate) range_byte_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>>,
|
1396 + | pub(crate) range_short_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>>,
|
1397 + | pub(crate) range_integer_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>>,
|
1398 + | pub(crate) range_long_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>>,
|
1399 + | pub(crate) enum_string_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained>>,
|
1400 + | }
|
1552 1401 | impl Builder {
|
1553 1402 | #[allow(missing_docs)] // documentation missing in model
|
1554 - | pub(crate) fn set_map_of_length_pattern_string(
|
1403 + | pub(crate) fn set_length_string_label(
|
1555 1404 | mut self,
|
1556 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_pattern_string_constrained::MapOfListOfLengthPatternStringConstrained>>>,
|
1405 + | input: impl ::std::convert::Into<
|
1406 + | crate::constrained::MaybeConstrained<crate::model::LengthString>,
|
1407 + | >,
|
1557 1408 | ) -> Self {
|
1558 - | self.map_of_length_pattern_string = input.map(|v| v.into());
|
1409 + | self.length_string_label = Some(input.into());
|
1559 1410 | self
|
1560 1411 | }
|
1561 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
1562 - | ///
|
1563 - | /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
1564 - | ///
|
1565 - | pub fn build(
|
1566 - | self,
|
1567 - | ) -> Result<
|
1568 - | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput,
|
1569 - | ConstraintViolation,
|
1570 - | > {
|
1571 - | self.build_enforcing_all_constraints()
|
1412 + | #[allow(missing_docs)] // documentation missing in model
|
1413 + | pub(crate) fn set_range_integer_label(
|
1414 + | mut self,
|
1415 + | input: impl ::std::convert::Into<
|
1416 + | crate::constrained::MaybeConstrained<crate::model::RangeInteger>,
|
1417 + | >,
|
1418 + | ) -> Self {
|
1419 + | self.range_integer_label = Some(input.into());
|
1420 + | self
|
1572 1421 | }
|
1573 - | fn build_enforcing_all_constraints(
|
1574 - | self,
|
1575 - | ) -> Result<
|
1576 - | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput,
|
1577 - | ConstraintViolation,
|
1578 - | > {
|
1579 - | Ok(
|
1580 - | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
1581 - | map_of_length_pattern_string: self
|
1582 - | .map_of_length_pattern_string
|
1583 - | .map(|v| match v {
|
1584 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1585 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1586 - | })
|
1587 - | .map(|res| {
|
1588 - | res.map(|v| v.into())
|
1589 - | .map_err(ConstraintViolation::MapOfLengthPatternString)
|
1590 - | })
|
1591 - | .transpose()?,
|
1592 - | },
|
1593 - | )
|
1422 + | #[allow(missing_docs)] // documentation missing in model
|
1423 + | pub(crate) fn set_range_short_label(
|
1424 + | mut self,
|
1425 + | input: impl ::std::convert::Into<
|
1426 + | crate::constrained::MaybeConstrained<crate::model::RangeShort>,
|
1427 + | >,
|
1428 + | ) -> Self {
|
1429 + | self.range_short_label = Some(input.into());
|
1430 + | self
|
1594 1431 | }
|
1432 + | #[allow(missing_docs)] // documentation missing in model
|
1433 + | pub(crate) fn set_range_long_label(
|
1434 + | mut self,
|
1435 + | input: impl ::std::convert::Into<
|
1436 + | crate::constrained::MaybeConstrained<crate::model::RangeLong>,
|
1437 + | >,
|
1438 + | ) -> Self {
|
1439 + | self.range_long_label = Some(input.into());
|
1440 + | self
|
1595 1441 | }
|
1596 - | }
|
1597 - | /// See [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
1598 - | pub mod query_params_targeting_map_of_list_of_length_pattern_string_operation_input {
|
1599 - |
|
1600 - | impl ::std::convert::From<Builder>
|
1601 - | for crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
1602 - | {
|
1603 - | fn from(builder: Builder) -> Self {
|
1604 - | builder.build()
|
1442 + | #[allow(missing_docs)] // documentation missing in model
|
1443 + | pub(crate) fn set_range_byte_label(
|
1444 + | mut self,
|
1445 + | input: impl ::std::convert::Into<
|
1446 + | crate::constrained::MaybeConstrained<crate::model::RangeByte>,
|
1447 + | >,
|
1448 + | ) -> Self {
|
1449 + | self.range_byte_label = Some(input.into());
|
1450 + | self
|
1605 1451 | }
|
1452 + | #[allow(missing_docs)] // documentation missing in model
|
1453 + | pub(crate) fn set_enum_string_label(
|
1454 + | mut self,
|
1455 + | input: impl ::std::convert::Into<
|
1456 + | crate::constrained::MaybeConstrained<crate::model::EnumString>,
|
1457 + | >,
|
1458 + | ) -> Self {
|
1459 + | self.enum_string_label = Some(input.into());
|
1460 + | self
|
1606 1461 | }
|
1607 - | /// A builder for [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
1608 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1609 - | pub struct Builder {
|
1610 - | pub(crate) map_of_length_pattern_string: ::std::option::Option<
|
1611 - | ::std::collections::HashMap<
|
1612 - | ::std::string::String,
|
1613 - | ::std::vec::Vec<::std::string::String>,
|
1462 + | #[allow(missing_docs)] // documentation missing in model
|
1463 + | pub(crate) fn set_length_string_header_map(
|
1464 + | mut self,
|
1465 + | input: impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>,
|
1466 + | ) -> Self {
|
1467 + | self.length_string_header_map = Some(input.into());
|
1468 + | self
|
1469 + | }
|
1470 + | #[allow(missing_docs)] // documentation missing in model
|
1471 + | pub(crate) fn set_length_string_header(
|
1472 + | mut self,
|
1473 + | input: Option<
|
1474 + | impl ::std::convert::Into<
|
1475 + | crate::constrained::MaybeConstrained<crate::model::LengthString>,
|
1614 1476 | >,
|
1615 1477 | >,
|
1478 + | ) -> Self {
|
1479 + | self.length_string_header = input.map(|v| v.into());
|
1480 + | self
|
1616 1481 | }
|
1617 - | impl Builder {
|
1618 1482 | #[allow(missing_docs)] // documentation missing in model
|
1619 - | pub fn map_of_length_pattern_string(
|
1483 + | pub(crate) fn set_range_integer_header(
|
1620 1484 | mut self,
|
1621 - | input: ::std::option::Option<
|
1622 - | ::std::collections::HashMap<
|
1623 - | ::std::string::String,
|
1624 - | ::std::vec::Vec<::std::string::String>,
|
1485 + | input: impl ::std::convert::Into<
|
1486 + | crate::constrained::MaybeConstrained<crate::model::RangeInteger>,
|
1625 1487 | >,
|
1488 + | ) -> Self {
|
1489 + | self.range_integer_header = Some(input.into());
|
1490 + | self
|
1491 + | }
|
1492 + | #[allow(missing_docs)] // documentation missing in model
|
1493 + | pub(crate) fn set_range_short_header(
|
1494 + | mut self,
|
1495 + | input: impl ::std::convert::Into<
|
1496 + | crate::constrained::MaybeConstrained<crate::model::RangeShort>,
|
1626 1497 | >,
|
1627 1498 | ) -> Self {
|
1628 - | self.map_of_length_pattern_string = input;
|
1499 + | self.range_short_header = Some(input.into());
|
1629 1500 | self
|
1630 1501 | }
|
1631 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
1632 - | pub fn build(
|
1633 - | self,
|
1634 - | ) -> crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
1635 - | {
|
1636 - | self.build_enforcing_required_and_enum_traits()
|
1502 + | #[allow(missing_docs)] // documentation missing in model
|
1503 + | pub(crate) fn set_range_long_header(
|
1504 + | mut self,
|
1505 + | input: impl ::std::convert::Into<
|
1506 + | crate::constrained::MaybeConstrained<crate::model::RangeLong>,
|
1507 + | >,
|
1508 + | ) -> Self {
|
1509 + | self.range_long_header = Some(input.into());
|
1510 + | self
|
1637 1511 | }
|
1638 - | fn build_enforcing_required_and_enum_traits(
|
1639 - | self,
|
1640 - | ) -> crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
1641 - | {
|
1642 - | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
1643 - | map_of_length_pattern_string: self.map_of_length_pattern_string,
|
1512 + | #[allow(missing_docs)] // documentation missing in model
|
1513 + | pub(crate) fn set_range_byte_header(
|
1514 + | mut self,
|
1515 + | input: impl ::std::convert::Into<
|
1516 + | crate::constrained::MaybeConstrained<crate::model::RangeByte>,
|
1517 + | >,
|
1518 + | ) -> Self {
|
1519 + | self.range_byte_header = Some(input.into());
|
1520 + | self
|
1644 1521 | }
|
1522 + | #[allow(missing_docs)] // documentation missing in model
|
1523 + | pub(crate) fn set_length_string_set_header(
|
1524 + | mut self,
|
1525 + | input: Option<
|
1526 + | impl ::std::convert::Into<
|
1527 + | crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>,
|
1528 + | >,
|
1529 + | >,
|
1530 + | ) -> Self {
|
1531 + | self.length_string_set_header = input.map(|v| v.into());
|
1532 + | self
|
1645 1533 | }
|
1534 + | #[allow(missing_docs)] // documentation missing in model
|
1535 + | pub(crate) fn set_list_length_string_header(
|
1536 + | mut self,
|
1537 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>>,
|
1538 + | ) -> Self {
|
1539 + | self.list_length_string_header = input.map(|v| v.into());
|
1540 + | self
|
1646 1541 | }
|
1647 - | }
|
1648 - | /// See [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
1649 - | pub(crate) mod query_params_targeting_map_of_length_pattern_string_operation_input_internal {
|
1650 - |
|
1651 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1652 - | /// Holds one variant for each of the ways the builder can fail.
|
1653 - | #[non_exhaustive]
|
1654 - | #[allow(clippy::enum_variant_names)]
|
1655 - | pub(crate) enum ConstraintViolation {
|
1656 - | /// Constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfLengthPatternStringOperationInput`.
|
1657 - | #[doc(hidden)]
|
1658 - | MapOfLengthPatternString(
|
1659 - | crate::model::map_of_length_pattern_string_internal::ConstraintViolation,
|
1660 - | ),
|
1542 + | #[allow(missing_docs)] // documentation missing in model
|
1543 + | pub(crate) fn set_length_list_pattern_string_header(
|
1544 + | mut self,
|
1545 + | input: Option<
|
1546 + | impl ::std::convert::Into<
|
1547 + | crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>,
|
1548 + | >,
|
1549 + | >,
|
1550 + | ) -> Self {
|
1551 + | self.length_list_pattern_string_header = input.map(|v| v.into());
|
1552 + | self
|
1661 1553 | }
|
1662 - | impl ::std::fmt::Display for ConstraintViolation {
|
1663 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1664 - | match self {
|
1665 - | ConstraintViolation::MapOfLengthPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfLengthPatternStringOperationInput`"),
|
1666 - | }
|
1667 - | }
|
1668 - | }
|
1669 - | impl ::std::error::Error for ConstraintViolation {}
|
1670 - | impl ConstraintViolation {
|
1671 - | pub(crate) fn as_validation_exception_field(
|
1672 - | self,
|
1673 - | path: ::std::string::String,
|
1674 - | ) -> crate::model::ValidationExceptionField {
|
1675 - | match self {
|
1676 - | ConstraintViolation::MapOfLengthPatternString(inner) => {
|
1677 - | inner.as_validation_exception_field(path + "/mapOfLengthPatternString")
|
1678 - | }
|
1679 - | }
|
1680 - | }
|
1681 - | }
|
1682 - | impl ::std::convert::From<ConstraintViolation>
|
1683 - | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
1684 - | {
|
1685 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
1686 - | let first_validation_exception_field =
|
1687 - | constraint_violation.as_validation_exception_field("".to_owned());
|
1688 - | let validation_exception = crate::error::ValidationException {
|
1689 - | message: format!(
|
1690 - | "1 validation error detected. {}",
|
1691 - | &first_validation_exception_field.message
|
1692 - | ),
|
1693 - | field_list: Some(vec![first_validation_exception_field]),
|
1694 - | };
|
1695 - | Self::ConstraintViolation(
|
1696 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
1697 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
1698 - | )
|
1554 + | #[allow(missing_docs)] // documentation missing in model
|
1555 + | pub(crate) fn set_length_set_pattern_string_header(
|
1556 + | mut self,
|
1557 + | input: Option<
|
1558 + | impl ::std::convert::Into<
|
1559 + | crate::constrained::MaybeConstrained<crate::model::LengthSetOfPatternString>,
|
1560 + | >,
|
1561 + | >,
|
1562 + | ) -> Self {
|
1563 + | self.length_set_pattern_string_header = input.map(|v| v.into());
|
1564 + | self
|
1699 1565 | }
|
1566 + | #[allow(missing_docs)] // documentation missing in model
|
1567 + | pub(crate) fn set_range_byte_set_header(
|
1568 + | mut self,
|
1569 + | input: Option<
|
1570 + | impl ::std::convert::Into<
|
1571 + | crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>,
|
1572 + | >,
|
1573 + | >,
|
1574 + | ) -> Self {
|
1575 + | self.range_byte_set_header = input.map(|v| v.into());
|
1576 + | self
|
1700 1577 | }
|
1701 - | impl ::std::convert::From<Builder>
|
1702 - | for crate::constrained::MaybeConstrained<
|
1703 - | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput,
|
1704 - | >
|
1705 - | {
|
1706 - | fn from(builder: Builder) -> Self {
|
1707 - | Self::Unconstrained(builder)
|
1578 + | #[allow(missing_docs)] // documentation missing in model
|
1579 + | pub(crate) fn set_range_short_set_header(
|
1580 + | mut self,
|
1581 + | input: Option<
|
1582 + | impl ::std::convert::Into<
|
1583 + | crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>,
|
1584 + | >,
|
1585 + | >,
|
1586 + | ) -> Self {
|
1587 + | self.range_short_set_header = input.map(|v| v.into());
|
1588 + | self
|
1708 1589 | }
|
1590 + | #[allow(missing_docs)] // documentation missing in model
|
1591 + | pub(crate) fn set_range_integer_set_header(
|
1592 + | mut self,
|
1593 + | input: Option<
|
1594 + | impl ::std::convert::Into<
|
1595 + | crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>,
|
1596 + | >,
|
1597 + | >,
|
1598 + | ) -> Self {
|
1599 + | self.range_integer_set_header = input.map(|v| v.into());
|
1600 + | self
|
1709 1601 | }
|
1710 - | impl ::std::convert::TryFrom<Builder>
|
1711 - | for crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput
|
1712 - | {
|
1713 - | type Error = ConstraintViolation;
|
1714 - |
|
1715 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1716 - | builder.build()
|
1602 + | #[allow(missing_docs)] // documentation missing in model
|
1603 + | pub(crate) fn set_range_long_set_header(
|
1604 + | mut self,
|
1605 + | input: Option<
|
1606 + | impl ::std::convert::Into<
|
1607 + | crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>,
|
1608 + | >,
|
1609 + | >,
|
1610 + | ) -> Self {
|
1611 + | self.range_long_set_header = input.map(|v| v.into());
|
1612 + | self
|
1717 1613 | }
|
1614 + | #[allow(missing_docs)] // documentation missing in model
|
1615 + | pub(crate) fn set_range_byte_list_header(
|
1616 + | mut self,
|
1617 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>>,
|
1618 + | ) -> Self {
|
1619 + | self.range_byte_list_header = input.map(|v| v.into());
|
1620 + | self
|
1718 1621 | }
|
1719 - | /// A builder for [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
1720 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1721 - | pub(crate) struct Builder {
|
1722 - | pub(crate) map_of_length_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_pattern_string_constrained::MapOfLengthPatternStringConstrained>>,
|
1622 + | #[allow(missing_docs)] // documentation missing in model
|
1623 + | pub(crate) fn set_range_short_list_header(
|
1624 + | mut self,
|
1625 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>>,
|
1626 + | ) -> Self {
|
1627 + | self.range_short_list_header = input.map(|v| v.into());
|
1628 + | self
|
1723 1629 | }
|
1724 - | impl Builder {
|
1725 1630 | #[allow(missing_docs)] // documentation missing in model
|
1726 - | pub(crate) fn set_map_of_length_pattern_string(
|
1631 + | pub(crate) fn set_range_integer_list_header(
|
1727 1632 | mut self,
|
1728 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_pattern_string_constrained::MapOfLengthPatternStringConstrained>>>,
|
1633 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>>,
|
1729 1634 | ) -> Self {
|
1730 - | self.map_of_length_pattern_string = input.map(|v| v.into());
|
1635 + | self.range_integer_list_header = input.map(|v| v.into());
|
1731 1636 | self
|
1732 1637 | }
|
1733 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
1734 - | ///
|
1735 - | /// The builder fails to construct a [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
1736 - | ///
|
1737 - | pub fn build(
|
1738 - | self,
|
1739 - | ) -> Result<
|
1740 - | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput,
|
1741 - | ConstraintViolation,
|
1742 - | > {
|
1743 - | self.build_enforcing_all_constraints()
|
1638 + | #[allow(missing_docs)] // documentation missing in model
|
1639 + | pub(crate) fn set_range_long_list_header(
|
1640 + | mut self,
|
1641 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>>,
|
1642 + | ) -> Self {
|
1643 + | self.range_long_list_header = input.map(|v| v.into());
|
1644 + | self
|
1744 1645 | }
|
1745 - | fn build_enforcing_all_constraints(
|
1746 - | self,
|
1747 - | ) -> Result<
|
1748 - | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput,
|
1749 - | ConstraintViolation,
|
1750 - | > {
|
1751 - | Ok(
|
1752 - | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
1753 - | map_of_length_pattern_string: self
|
1754 - | .map_of_length_pattern_string
|
1755 - | .map(|v| match v {
|
1756 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1757 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1758 - | })
|
1759 - | .map(|res| {
|
1760 - | res.map(|v| v.into())
|
1761 - | .map_err(ConstraintViolation::MapOfLengthPatternString)
|
1762 - | })
|
1763 - | .transpose()?,
|
1764 - | },
|
1765 - | )
|
1646 + | #[allow(missing_docs)] // documentation missing in model
|
1647 + | pub(crate) fn set_length_string_query(
|
1648 + | mut self,
|
1649 + | input: Option<
|
1650 + | impl ::std::convert::Into<
|
1651 + | crate::constrained::MaybeConstrained<crate::model::LengthString>,
|
1652 + | >,
|
1653 + | >,
|
1654 + | ) -> Self {
|
1655 + | self.length_string_query = input.map(|v| v.into());
|
1656 + | self
|
1766 1657 | }
|
1658 + | #[allow(missing_docs)] // documentation missing in model
|
1659 + | pub(crate) fn set_range_byte_query(
|
1660 + | mut self,
|
1661 + | input: impl ::std::convert::Into<
|
1662 + | crate::constrained::MaybeConstrained<crate::model::RangeByte>,
|
1663 + | >,
|
1664 + | ) -> Self {
|
1665 + | self.range_byte_query = Some(input.into());
|
1666 + | self
|
1767 1667 | }
|
1768 - | }
|
1769 - | /// See [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
1770 - | pub mod query_params_targeting_map_of_length_pattern_string_operation_input {
|
1771 - |
|
1772 - | impl ::std::convert::From<Builder>
|
1773 - | for crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput
|
1774 - | {
|
1775 - | fn from(builder: Builder) -> Self {
|
1776 - | builder.build()
|
1668 + | #[allow(missing_docs)] // documentation missing in model
|
1669 + | pub(crate) fn set_range_short_query(
|
1670 + | mut self,
|
1671 + | input: impl ::std::convert::Into<
|
1672 + | crate::constrained::MaybeConstrained<crate::model::RangeShort>,
|
1673 + | >,
|
1674 + | ) -> Self {
|
1675 + | self.range_short_query = Some(input.into());
|
1676 + | self
|
1777 1677 | }
|
1678 + | #[allow(missing_docs)] // documentation missing in model
|
1679 + | pub(crate) fn set_range_integer_query(
|
1680 + | mut self,
|
1681 + | input: impl ::std::convert::Into<
|
1682 + | crate::constrained::MaybeConstrained<crate::model::RangeInteger>,
|
1683 + | >,
|
1684 + | ) -> Self {
|
1685 + | self.range_integer_query = Some(input.into());
|
1686 + | self
|
1778 1687 | }
|
1779 - | /// A builder for [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
1780 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1781 - | pub struct Builder {
|
1782 - | pub(crate) map_of_length_pattern_string: ::std::option::Option<
|
1783 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1688 + | #[allow(missing_docs)] // documentation missing in model
|
1689 + | pub(crate) fn set_range_long_query(
|
1690 + | mut self,
|
1691 + | input: impl ::std::convert::Into<
|
1692 + | crate::constrained::MaybeConstrained<crate::model::RangeLong>,
|
1784 1693 | >,
|
1694 + | ) -> Self {
|
1695 + | self.range_long_query = Some(input.into());
|
1696 + | self
|
1785 1697 | }
|
1786 - | impl Builder {
|
1787 1698 | #[allow(missing_docs)] // documentation missing in model
|
1788 - | pub fn map_of_length_pattern_string(
|
1699 + | pub(crate) fn set_enum_string_query(
|
1789 1700 | mut self,
|
1790 - | input: ::std::option::Option<
|
1791 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1701 + | input: Option<
|
1702 + | impl ::std::convert::Into<
|
1703 + | crate::constrained::MaybeConstrained<crate::model::EnumString>,
|
1704 + | >,
|
1792 1705 | >,
|
1793 1706 | ) -> Self {
|
1794 - | self.map_of_length_pattern_string = input;
|
1707 + | self.enum_string_query = input.map(|v| v.into());
|
1795 1708 | self
|
1796 1709 | }
|
1797 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
1798 - | pub fn build(
|
1799 - | self,
|
1800 - | ) -> crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
1801 - | self.build_enforcing_required_and_enum_traits()
|
1802 - | }
|
1803 - | fn build_enforcing_required_and_enum_traits(
|
1804 - | self,
|
1805 - | ) -> crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
1806 - | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
1807 - | map_of_length_pattern_string: self.map_of_length_pattern_string,
|
1808 - | }
|
1809 - | }
|
1810 - | }
|
1811 - | }
|
1812 - | /// See [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
1813 - | pub(crate) mod query_params_targeting_map_of_list_of_pattern_string_operation_input_internal {
|
1814 - |
|
1815 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1816 - | /// Holds one variant for each of the ways the builder can fail.
|
1817 - | #[non_exhaustive]
|
1818 - | #[allow(clippy::enum_variant_names)]
|
1819 - | pub(crate) enum ConstraintViolation {
|
1820 - | /// Constraint violation occurred building member `map_of_list_of_pattern_string` when building `QueryParamsTargetingMapOfListOfPatternStringOperationInput`.
|
1821 - | #[doc(hidden)]
|
1822 - | MapOfListOfPatternString(
|
1823 - | crate::model::map_of_list_of_pattern_string_internal::ConstraintViolation,
|
1824 - | ),
|
1825 - | }
|
1826 - | impl ::std::fmt::Display for ConstraintViolation {
|
1827 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1828 - | match self {
|
1829 - | ConstraintViolation::MapOfListOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_pattern_string` when building `QueryParamsTargetingMapOfListOfPatternStringOperationInput`"),
|
1830 - | }
|
1831 - | }
|
1832 - | }
|
1833 - | impl ::std::error::Error for ConstraintViolation {}
|
1834 - | impl ConstraintViolation {
|
1835 - | pub(crate) fn as_validation_exception_field(
|
1836 - | self,
|
1837 - | path: ::std::string::String,
|
1838 - | ) -> crate::model::ValidationExceptionField {
|
1839 - | match self {
|
1840 - | ConstraintViolation::MapOfListOfPatternString(inner) => {
|
1841 - | inner.as_validation_exception_field(path + "/mapOfListOfPatternString")
|
1710 + | #[allow(missing_docs)] // documentation missing in model
|
1711 + | pub(crate) fn set_length_string_list_query(
|
1712 + | mut self,
|
1713 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>>,
|
1714 + | ) -> Self {
|
1715 + | self.length_string_list_query = input.map(|v| v.into());
|
1716 + | self
|
1842 1717 | }
|
1718 + | #[allow(missing_docs)] // documentation missing in model
|
1719 + | pub(crate) fn set_length_list_pattern_string_query(
|
1720 + | mut self,
|
1721 + | input: Option<
|
1722 + | impl ::std::convert::Into<
|
1723 + | crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>,
|
1724 + | >,
|
1725 + | >,
|
1726 + | ) -> Self {
|
1727 + | self.length_list_pattern_string_query = input.map(|v| v.into());
|
1728 + | self
|
1843 1729 | }
|
1730 + | #[allow(missing_docs)] // documentation missing in model
|
1731 + | pub(crate) fn set_length_string_set_query(
|
1732 + | mut self,
|
1733 + | input: Option<
|
1734 + | impl ::std::convert::Into<
|
1735 + | crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>,
|
1736 + | >,
|
1737 + | >,
|
1738 + | ) -> Self {
|
1739 + | self.length_string_set_query = input.map(|v| v.into());
|
1740 + | self
|
1844 1741 | }
|
1742 + | #[allow(missing_docs)] // documentation missing in model
|
1743 + | pub(crate) fn set_range_byte_list_query(
|
1744 + | mut self,
|
1745 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>>,
|
1746 + | ) -> Self {
|
1747 + | self.range_byte_list_query = input.map(|v| v.into());
|
1748 + | self
|
1845 1749 | }
|
1846 - | impl ::std::convert::From<ConstraintViolation>
|
1847 - | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
1848 - | {
|
1849 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
1850 - | let first_validation_exception_field =
|
1851 - | constraint_violation.as_validation_exception_field("".to_owned());
|
1852 - | let validation_exception = crate::error::ValidationException {
|
1853 - | message: format!(
|
1854 - | "1 validation error detected. {}",
|
1855 - | &first_validation_exception_field.message
|
1856 - | ),
|
1857 - | field_list: Some(vec![first_validation_exception_field]),
|
1858 - | };
|
1859 - | Self::ConstraintViolation(
|
1860 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
1861 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
1862 - | )
|
1750 + | #[allow(missing_docs)] // documentation missing in model
|
1751 + | pub(crate) fn set_range_short_list_query(
|
1752 + | mut self,
|
1753 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>>,
|
1754 + | ) -> Self {
|
1755 + | self.range_short_list_query = input.map(|v| v.into());
|
1756 + | self
|
1863 1757 | }
|
1758 + | #[allow(missing_docs)] // documentation missing in model
|
1759 + | pub(crate) fn set_range_integer_list_query(
|
1760 + | mut self,
|
1761 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>>,
|
1762 + | ) -> Self {
|
1763 + | self.range_integer_list_query = input.map(|v| v.into());
|
1764 + | self
|
1864 1765 | }
|
1865 - | impl ::std::convert::From<Builder>
|
1866 - | for crate::constrained::MaybeConstrained<
|
1867 - | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput,
|
1868 - | >
|
1869 - | {
|
1870 - | fn from(builder: Builder) -> Self {
|
1871 - | Self::Unconstrained(builder)
|
1766 + | #[allow(missing_docs)] // documentation missing in model
|
1767 + | pub(crate) fn set_range_long_list_query(
|
1768 + | mut self,
|
1769 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>>,
|
1770 + | ) -> Self {
|
1771 + | self.range_long_list_query = input.map(|v| v.into());
|
1772 + | self
|
1872 1773 | }
|
1774 + | #[allow(missing_docs)] // documentation missing in model
|
1775 + | pub(crate) fn set_range_byte_set_query(
|
1776 + | mut self,
|
1777 + | input: Option<
|
1778 + | impl ::std::convert::Into<
|
1779 + | crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>,
|
1780 + | >,
|
1781 + | >,
|
1782 + | ) -> Self {
|
1783 + | self.range_byte_set_query = input.map(|v| v.into());
|
1784 + | self
|
1873 1785 | }
|
1874 - | impl ::std::convert::TryFrom<Builder>
|
1875 - | for crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput
|
1876 - | {
|
1877 - | type Error = ConstraintViolation;
|
1878 - |
|
1879 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1880 - | builder.build()
|
1786 + | #[allow(missing_docs)] // documentation missing in model
|
1787 + | pub(crate) fn set_range_short_set_query(
|
1788 + | mut self,
|
1789 + | input: Option<
|
1790 + | impl ::std::convert::Into<
|
1791 + | crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>,
|
1792 + | >,
|
1793 + | >,
|
1794 + | ) -> Self {
|
1795 + | self.range_short_set_query = input.map(|v| v.into());
|
1796 + | self
|
1881 1797 | }
|
1798 + | #[allow(missing_docs)] // documentation missing in model
|
1799 + | pub(crate) fn set_range_integer_set_query(
|
1800 + | mut self,
|
1801 + | input: Option<
|
1802 + | impl ::std::convert::Into<
|
1803 + | crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>,
|
1804 + | >,
|
1805 + | >,
|
1806 + | ) -> Self {
|
1807 + | self.range_integer_set_query = input.map(|v| v.into());
|
1808 + | self
|
1882 1809 | }
|
1883 - | /// A builder for [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
1884 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1885 - | pub(crate) struct Builder {
|
1886 - | pub(crate) map_of_list_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_pattern_string_constrained::MapOfListOfPatternStringConstrained>>,
|
1810 + | #[allow(missing_docs)] // documentation missing in model
|
1811 + | pub(crate) fn set_range_long_set_query(
|
1812 + | mut self,
|
1813 + | input: Option<
|
1814 + | impl ::std::convert::Into<
|
1815 + | crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>,
|
1816 + | >,
|
1817 + | >,
|
1818 + | ) -> Self {
|
1819 + | self.range_long_set_query = input.map(|v| v.into());
|
1820 + | self
|
1887 1821 | }
|
1888 - | impl Builder {
|
1889 1822 | #[allow(missing_docs)] // documentation missing in model
|
1890 - | pub(crate) fn set_map_of_list_of_pattern_string(
|
1823 + | pub(crate) fn set_enum_string_list_query(
|
1891 1824 | mut self,
|
1892 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_pattern_string_constrained::MapOfListOfPatternStringConstrained>>>,
|
1825 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained>>>,
|
1893 1826 | ) -> Self {
|
1894 - | self.map_of_list_of_pattern_string = input.map(|v| v.into());
|
1827 + | self.enum_string_list_query = input.map(|v| v.into());
|
1895 1828 | self
|
1896 1829 | }
|
1897 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
1830 + | /// Consumes the builder and constructs a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
1898 1831 | ///
|
1899 - | /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
1832 + | /// The builder fails to construct a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput) if a [`ConstraintViolation`] occurs.
|
1900 1833 | ///
|
1834 + | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
1901 1835 | pub fn build(
|
1902 1836 | self,
|
1903 - | ) -> Result<
|
1904 - | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput,
|
1905 - | ConstraintViolation,
|
1906 - | > {
|
1837 + | ) -> Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ConstraintViolation>
|
1838 + | {
|
1907 1839 | self.build_enforcing_all_constraints()
|
1908 1840 | }
|
1909 1841 | fn build_enforcing_all_constraints(
|
1910 1842 | self,
|
1911 - | ) -> Result<
|
1912 - | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput,
|
1913 - | ConstraintViolation,
|
1914 - | > {
|
1915 - | Ok(
|
1916 - | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
1917 - | map_of_list_of_pattern_string: self
|
1918 - | .map_of_list_of_pattern_string
|
1843 + | ) -> Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ConstraintViolation>
|
1844 + | {
|
1845 + | Ok(crate::input::ConstrainedHttpBoundShapesOperationInput {
|
1846 + | length_string_label: self
|
1847 + | .length_string_label
|
1848 + | .map(|v| match v {
|
1849 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1850 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1851 + | })
|
1852 + | .map(|res| res.map_err(ConstraintViolation::LengthStringLabel))
|
1853 + | .transpose()?
|
1854 + | .map(|v: crate::model::LengthString| v.into())
|
1855 + | .ok_or(ConstraintViolation::MissingLengthStringLabel)?,
|
1856 + | range_integer_label: self
|
1857 + | .range_integer_label
|
1858 + | .map(|v| match v {
|
1859 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1860 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1861 + | })
|
1862 + | .map(|res| res.map_err(ConstraintViolation::RangeIntegerLabel))
|
1863 + | .transpose()?
|
1864 + | .map(|v: crate::model::RangeInteger| v.into())
|
1865 + | .unwrap_or(0i32),
|
1866 + | range_short_label: self
|
1867 + | .range_short_label
|
1868 + | .map(|v| match v {
|
1869 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1870 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1871 + | })
|
1872 + | .map(|res| res.map_err(ConstraintViolation::RangeShortLabel))
|
1873 + | .transpose()?
|
1874 + | .map(|v: crate::model::RangeShort| v.into())
|
1875 + | .unwrap_or(0i16),
|
1876 + | range_long_label: self
|
1877 + | .range_long_label
|
1878 + | .map(|v| match v {
|
1879 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1880 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1881 + | })
|
1882 + | .map(|res| res.map_err(ConstraintViolation::RangeLongLabel))
|
1883 + | .transpose()?
|
1884 + | .map(|v: crate::model::RangeLong| v.into())
|
1885 + | .unwrap_or(0i64),
|
1886 + | range_byte_label: self
|
1887 + | .range_byte_label
|
1888 + | .map(|v| match v {
|
1889 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1890 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1891 + | })
|
1892 + | .map(|res| res.map_err(ConstraintViolation::RangeByteLabel))
|
1893 + | .transpose()?
|
1894 + | .map(|v: crate::model::RangeByte| v.into())
|
1895 + | .unwrap_or(0i8),
|
1896 + | enum_string_label: self
|
1897 + | .enum_string_label
|
1898 + | .map(|v| match v {
|
1899 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1900 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1901 + | })
|
1902 + | .map(|res| res.map_err(ConstraintViolation::EnumStringLabel))
|
1903 + | .transpose()?
|
1904 + | .ok_or(ConstraintViolation::MissingEnumStringLabel)?,
|
1905 + | length_string_header_map: self
|
1906 + | .length_string_header_map
|
1919 1907 | .map(|v| match v {
|
1920 1908 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1921 1909 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1922 1910 | })
|
1923 1911 | .map(|res| {
|
1924 1912 | res.map(|v| v.into())
|
1925 - | .map_err(ConstraintViolation::MapOfListOfPatternString)
|
1913 + | .map_err(ConstraintViolation::LengthStringHeaderMap)
|
1926 1914 | })
|
1927 - | .transpose()?,
|
1928 - | },
|
1929 - | )
|
1930 - | }
|
1931 - | }
|
1932 - | }
|
1933 - | /// See [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
1934 - | pub mod query_params_targeting_map_of_list_of_pattern_string_operation_input {
|
1935 - |
|
1936 - | impl ::std::convert::From<Builder>
|
1937 - | for crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput
|
1938 - | {
|
1939 - | fn from(builder: Builder) -> Self {
|
1940 - | builder.build()
|
1941 - | }
|
1942 - | }
|
1943 - | /// A builder for [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
1944 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1945 - | pub struct Builder {
|
1946 - | pub(crate) map_of_list_of_pattern_string: ::std::option::Option<
|
1947 - | ::std::collections::HashMap<
|
1948 - | ::std::string::String,
|
1949 - | ::std::vec::Vec<::std::string::String>,
|
1950 - | >,
|
1951 - | >,
|
1952 - | }
|
1953 - | impl Builder {
|
1954 - | #[allow(missing_docs)] // documentation missing in model
|
1955 - | pub fn map_of_list_of_pattern_string(
|
1956 - | mut self,
|
1957 - | input: ::std::option::Option<
|
1958 - | ::std::collections::HashMap<
|
1959 - | ::std::string::String,
|
1960 - | ::std::vec::Vec<::std::string::String>,
|
1961 - | >,
|
1962 - | >,
|
1963 - | ) -> Self {
|
1964 - | self.map_of_list_of_pattern_string = input;
|
1965 - | self
|
1966 - | }
|
1967 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
1968 - | pub fn build(
|
1969 - | self,
|
1970 - | ) -> crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
1971 - | self.build_enforcing_required_and_enum_traits()
|
1972 - | }
|
1973 - | fn build_enforcing_required_and_enum_traits(
|
1974 - | self,
|
1975 - | ) -> crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
1976 - | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
1977 - | map_of_list_of_pattern_string: self.map_of_list_of_pattern_string,
|
1978 - | }
|
1979 - | }
|
1980 - | }
|
1981 - | }
|
1982 - | /// See [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
1983 - | pub(crate) mod query_params_targeting_map_of_pattern_string_operation_input_internal {
|
1984 - |
|
1985 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1986 - | /// Holds one variant for each of the ways the builder can fail.
|
1987 - | #[non_exhaustive]
|
1988 - | #[allow(clippy::enum_variant_names)]
|
1989 - | pub(crate) enum ConstraintViolation {
|
1990 - | /// Constraint violation occurred building member `map_of_pattern_string` when building `QueryParamsTargetingMapOfPatternStringOperationInput`.
|
1991 - | #[doc(hidden)]
|
1992 - | MapOfPatternString(crate::model::map_of_pattern_string_internal::ConstraintViolation),
|
1993 - | }
|
1994 - | impl ::std::fmt::Display for ConstraintViolation {
|
1995 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1996 - | match self {
|
1997 - | ConstraintViolation::MapOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_pattern_string` when building `QueryParamsTargetingMapOfPatternStringOperationInput`"),
|
1998 - | }
|
1999 - | }
|
2000 - | }
|
2001 - | impl ::std::error::Error for ConstraintViolation {}
|
2002 - | impl ConstraintViolation {
|
2003 - | pub(crate) fn as_validation_exception_field(
|
2004 - | self,
|
2005 - | path: ::std::string::String,
|
2006 - | ) -> crate::model::ValidationExceptionField {
|
2007 - | match self {
|
2008 - | ConstraintViolation::MapOfPatternString(inner) => {
|
2009 - | inner.as_validation_exception_field(path + "/mapOfPatternString")
|
2010 - | }
|
2011 - | }
|
2012 - | }
|
2013 - | }
|
2014 - | impl ::std::convert::From<ConstraintViolation>
|
2015 - | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
2016 - | {
|
2017 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
2018 - | let first_validation_exception_field =
|
2019 - | constraint_violation.as_validation_exception_field("".to_owned());
|
2020 - | let validation_exception = crate::error::ValidationException {
|
2021 - | message: format!(
|
2022 - | "1 validation error detected. {}",
|
2023 - | &first_validation_exception_field.message
|
2024 - | ),
|
2025 - | field_list: Some(vec![first_validation_exception_field]),
|
2026 - | };
|
2027 - | Self::ConstraintViolation(
|
2028 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
2029 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
2030 - | )
|
2031 - | }
|
2032 - | }
|
2033 - | impl ::std::convert::From<Builder>
|
2034 - | for crate::constrained::MaybeConstrained<
|
2035 - | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput,
|
2036 - | >
|
2037 - | {
|
2038 - | fn from(builder: Builder) -> Self {
|
2039 - | Self::Unconstrained(builder)
|
2040 - | }
|
2041 - | }
|
2042 - | impl ::std::convert::TryFrom<Builder>
|
2043 - | for crate::input::QueryParamsTargetingMapOfPatternStringOperationInput
|
2044 - | {
|
2045 - | type Error = ConstraintViolation;
|
2046 - |
|
2047 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2048 - | builder.build()
|
2049 - | }
|
2050 - | }
|
2051 - | /// A builder for [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
2052 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2053 - | pub(crate) struct Builder {
|
2054 - | pub(crate) map_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained>>,
|
2055 - | }
|
2056 - | impl Builder {
|
2057 - | #[allow(missing_docs)] // documentation missing in model
|
2058 - | pub(crate) fn set_map_of_pattern_string(
|
2059 - | mut self,
|
2060 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained>>>,
|
2061 - | ) -> Self {
|
2062 - | self.map_of_pattern_string = input.map(|v| v.into());
|
2063 - | self
|
2064 - | }
|
2065 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
2066 - | ///
|
2067 - | /// The builder fails to construct a [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
2068 - | ///
|
2069 - | pub fn build(
|
2070 - | self,
|
2071 - | ) -> Result<
|
2072 - | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput,
|
2073 - | ConstraintViolation,
|
2074 - | > {
|
2075 - | self.build_enforcing_all_constraints()
|
2076 - | }
|
2077 - | fn build_enforcing_all_constraints(
|
2078 - | self,
|
2079 - | ) -> Result<
|
2080 - | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput,
|
2081 - | ConstraintViolation,
|
2082 - | > {
|
2083 - | Ok(
|
2084 - | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput {
|
2085 - | map_of_pattern_string: self
|
2086 - | .map_of_pattern_string
|
2087 - | .map(|v| match v {
|
2088 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2089 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2090 - | })
|
2091 - | .map(|res| {
|
2092 - | res.map(|v| v.into())
|
2093 - | .map_err(ConstraintViolation::MapOfPatternString)
|
2094 - | })
|
2095 - | .transpose()?,
|
2096 - | },
|
2097 - | )
|
2098 - | }
|
2099 - | }
|
2100 - | }
|
2101 - | /// See [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
2102 - | pub mod query_params_targeting_map_of_pattern_string_operation_input {
|
2103 - |
|
2104 - | impl ::std::convert::From<Builder>
|
2105 - | for crate::input::QueryParamsTargetingMapOfPatternStringOperationInput
|
2106 - | {
|
2107 - | fn from(builder: Builder) -> Self {
|
2108 - | builder.build()
|
2109 - | }
|
2110 - | }
|
2111 - | /// A builder for [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
2112 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2113 - | pub struct Builder {
|
2114 - | pub(crate) map_of_pattern_string: ::std::option::Option<
|
2115 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2116 - | >,
|
2117 - | }
|
2118 - | impl Builder {
|
2119 - | #[allow(missing_docs)] // documentation missing in model
|
2120 - | pub fn map_of_pattern_string(
|
2121 - | mut self,
|
2122 - | input: ::std::option::Option<
|
2123 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2124 - | >,
|
2125 - | ) -> Self {
|
2126 - | self.map_of_pattern_string = input;
|
2127 - | self
|
2128 - | }
|
2129 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
2130 - | pub fn build(self) -> crate::input::QueryParamsTargetingMapOfPatternStringOperationInput {
|
2131 - | self.build_enforcing_required_and_enum_traits()
|
2132 - | }
|
2133 - | fn build_enforcing_required_and_enum_traits(
|
2134 - | self,
|
2135 - | ) -> crate::input::QueryParamsTargetingMapOfPatternStringOperationInput {
|
2136 - | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput {
|
2137 - | map_of_pattern_string: self.map_of_pattern_string,
|
2138 - | }
|
2139 - | }
|
2140 - | }
|
2141 - | }
|
2142 - | /// See [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
2143 - | pub(crate) mod query_params_targeting_map_of_list_of_enum_string_operation_input_internal {
|
2144 - |
|
2145 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2146 - | /// Holds one variant for each of the ways the builder can fail.
|
2147 - | #[non_exhaustive]
|
2148 - | #[allow(clippy::enum_variant_names)]
|
2149 - | pub(crate) enum ConstraintViolation {
|
2150 - | /// Constraint violation occurred building member `map_of_list_of_enum_string` when building `QueryParamsTargetingMapOfListOfEnumStringOperationInput`.
|
2151 - | #[doc(hidden)]
|
2152 - | MapOfListOfEnumString(
|
2153 - | crate::model::map_of_list_of_enum_string_internal::ConstraintViolation,
|
2154 - | ),
|
2155 - | }
|
2156 - | impl ::std::fmt::Display for ConstraintViolation {
|
2157 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2158 - | match self {
|
2159 - | ConstraintViolation::MapOfListOfEnumString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_enum_string` when building `QueryParamsTargetingMapOfListOfEnumStringOperationInput`"),
|
2160 - | }
|
2161 - | }
|
2162 - | }
|
2163 - | impl ::std::error::Error for ConstraintViolation {}
|
2164 - | impl ConstraintViolation {
|
2165 - | pub(crate) fn as_validation_exception_field(
|
2166 - | self,
|
2167 - | path: ::std::string::String,
|
2168 - | ) -> crate::model::ValidationExceptionField {
|
2169 - | match self {
|
2170 - | ConstraintViolation::MapOfListOfEnumString(inner) => {
|
2171 - | inner.as_validation_exception_field(path + "/mapOfListOfEnumString")
|
2172 - | }
|
2173 - | }
|
2174 - | }
|
2175 - | }
|
2176 - | impl ::std::convert::From<ConstraintViolation>
|
2177 - | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
2178 - | {
|
2179 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
2180 - | let first_validation_exception_field =
|
2181 - | constraint_violation.as_validation_exception_field("".to_owned());
|
2182 - | let validation_exception = crate::error::ValidationException {
|
2183 - | message: format!(
|
2184 - | "1 validation error detected. {}",
|
2185 - | &first_validation_exception_field.message
|
2186 - | ),
|
2187 - | field_list: Some(vec![first_validation_exception_field]),
|
2188 - | };
|
2189 - | Self::ConstraintViolation(
|
2190 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
2191 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
2192 - | )
|
2193 - | }
|
2194 - | }
|
2195 - | impl ::std::convert::From<Builder>
|
2196 - | for crate::constrained::MaybeConstrained<
|
2197 - | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput,
|
2198 - | >
|
2199 - | {
|
2200 - | fn from(builder: Builder) -> Self {
|
2201 - | Self::Unconstrained(builder)
|
2202 - | }
|
2203 - | }
|
2204 - | impl ::std::convert::TryFrom<Builder>
|
2205 - | for crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput
|
2206 - | {
|
2207 - | type Error = ConstraintViolation;
|
2208 - |
|
2209 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2210 - | builder.build()
|
2211 - | }
|
2212 - | }
|
2213 - | /// A builder for [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
2214 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2215 - | pub(crate) struct Builder {
|
2216 - | pub(crate) map_of_list_of_enum_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_enum_string_constrained::MapOfListOfEnumStringConstrained>>,
|
2217 - | }
|
2218 - | impl Builder {
|
2219 - | #[allow(missing_docs)] // documentation missing in model
|
2220 - | pub(crate) fn set_map_of_list_of_enum_string(
|
2221 - | mut self,
|
2222 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_enum_string_constrained::MapOfListOfEnumStringConstrained>>>,
|
2223 - | ) -> Self {
|
2224 - | self.map_of_list_of_enum_string = input.map(|v| v.into());
|
2225 - | self
|
2226 - | }
|
2227 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
2228 - | ///
|
2229 - | /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput) if a [`ConstraintViolation`] occurs.
|
2230 - | ///
|
2231 - | pub fn build(
|
2232 - | self,
|
2233 - | ) -> Result<
|
2234 - | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput,
|
2235 - | ConstraintViolation,
|
2236 - | > {
|
2237 - | self.build_enforcing_all_constraints()
|
2238 - | }
|
2239 - | fn build_enforcing_all_constraints(
|
2240 - | self,
|
2241 - | ) -> Result<
|
2242 - | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput,
|
2243 - | ConstraintViolation,
|
2244 - | > {
|
2245 - | Ok(
|
2246 - | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
2247 - | map_of_list_of_enum_string: self
|
2248 - | .map_of_list_of_enum_string
|
2249 - | .map(|v| match v {
|
2250 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2251 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2252 - | })
|
2253 - | .map(|res| {
|
2254 - | res.map(|v| v.into())
|
2255 - | .map_err(ConstraintViolation::MapOfListOfEnumString)
|
2256 - | })
|
2257 - | .transpose()?,
|
2258 - | },
|
2259 - | )
|
2260 - | }
|
2261 - | }
|
2262 - | }
|
2263 - | /// See [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
2264 - | pub mod query_params_targeting_map_of_list_of_enum_string_operation_input {
|
2265 - |
|
2266 - | impl ::std::convert::From<Builder>
|
2267 - | for crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput
|
2268 - | {
|
2269 - | fn from(builder: Builder) -> Self {
|
2270 - | builder.build()
|
2271 - | }
|
2272 - | }
|
2273 - | /// A builder for [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
2274 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2275 - | pub struct Builder {
|
2276 - | pub(crate) map_of_list_of_enum_string: ::std::option::Option<
|
2277 - | ::std::collections::HashMap<
|
2278 - | crate::model::EnumString,
|
2279 - | ::std::vec::Vec<crate::model::EnumString>,
|
2280 - | >,
|
2281 - | >,
|
2282 - | }
|
2283 - | impl Builder {
|
2284 - | #[allow(missing_docs)] // documentation missing in model
|
2285 - | pub fn map_of_list_of_enum_string(
|
2286 - | mut self,
|
2287 - | input: ::std::option::Option<
|
2288 - | ::std::collections::HashMap<
|
2289 - | crate::model::EnumString,
|
2290 - | ::std::vec::Vec<crate::model::EnumString>,
|
2291 - | >,
|
2292 - | >,
|
2293 - | ) -> Self {
|
2294 - | self.map_of_list_of_enum_string = input;
|
2295 - | self
|
2296 - | }
|
2297 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
2298 - | pub fn build(
|
2299 - | self,
|
2300 - | ) -> crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
2301 - | self.build_enforcing_required_and_enum_traits()
|
2302 - | }
|
2303 - | fn build_enforcing_required_and_enum_traits(
|
2304 - | self,
|
2305 - | ) -> crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
2306 - | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
2307 - | map_of_list_of_enum_string: self.map_of_list_of_enum_string,
|
2308 - | }
|
2309 - | }
|
2310 - | }
|
2311 - | }
|
2312 - | /// See [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
2313 - | pub(crate) mod query_params_targeting_map_of_length_list_of_pattern_string_operation_input_internal {
|
2314 - |
|
2315 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2316 - | /// Holds one variant for each of the ways the builder can fail.
|
2317 - | #[non_exhaustive]
|
2318 - | #[allow(clippy::enum_variant_names)]
|
2319 - | pub(crate) enum ConstraintViolation {
|
2320 - | /// Constraint violation occurred building member `map_of_length_list_of_pattern_string` when building `QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`.
|
2321 - | #[doc(hidden)]
|
2322 - | MapOfLengthListOfPatternString(
|
2323 - | crate::model::map_of_length_list_of_pattern_string_internal::ConstraintViolation,
|
2324 - | ),
|
2325 - | }
|
2326 - | impl ::std::fmt::Display for ConstraintViolation {
|
2327 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2328 - | match self {
|
2329 - | ConstraintViolation::MapOfLengthListOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_list_of_pattern_string` when building `QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`"),
|
2330 - | }
|
2331 - | }
|
2332 - | }
|
2333 - | impl ::std::error::Error for ConstraintViolation {}
|
2334 - | impl ConstraintViolation {
|
2335 - | pub(crate) fn as_validation_exception_field(
|
2336 - | self,
|
2337 - | path: ::std::string::String,
|
2338 - | ) -> crate::model::ValidationExceptionField {
|
2339 - | match self {
|
2340 - | ConstraintViolation::MapOfLengthListOfPatternString(inner) => {
|
2341 - | inner.as_validation_exception_field(path + "/mapOfLengthListOfPatternString")
|
2342 - | }
|
2343 - | }
|
2344 - | }
|
2345 - | }
|
2346 - | impl ::std::convert::From<ConstraintViolation>
|
2347 - | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
2348 - | {
|
2349 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
2350 - | let first_validation_exception_field =
|
2351 - | constraint_violation.as_validation_exception_field("".to_owned());
|
2352 - | let validation_exception = crate::error::ValidationException {
|
2353 - | message: format!(
|
2354 - | "1 validation error detected. {}",
|
2355 - | &first_validation_exception_field.message
|
2356 - | ),
|
2357 - | field_list: Some(vec![first_validation_exception_field]),
|
2358 - | };
|
2359 - | Self::ConstraintViolation(
|
2360 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
2361 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
2362 - | )
|
2363 - | }
|
2364 - | }
|
2365 - | impl ::std::convert::From<Builder>
|
2366 - | for crate::constrained::MaybeConstrained<
|
2367 - | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput,
|
2368 - | >
|
2369 - | {
|
2370 - | fn from(builder: Builder) -> Self {
|
2371 - | Self::Unconstrained(builder)
|
2372 - | }
|
2373 - | }
|
2374 - | impl ::std::convert::TryFrom<Builder>
|
2375 - | for crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
2376 - | {
|
2377 - | type Error = ConstraintViolation;
|
2378 - |
|
2379 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2380 - | builder.build()
|
2381 - | }
|
2382 - | }
|
2383 - | /// A builder for [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
2384 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2385 - | pub(crate) struct Builder {
|
2386 - | 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>>,
|
2387 - | }
|
2388 - | impl Builder {
|
2389 - | #[allow(missing_docs)] // documentation missing in model
|
2390 - | pub(crate) fn set_map_of_length_list_of_pattern_string(
|
2391 - | mut self,
|
2392 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_list_of_pattern_string_constrained::MapOfLengthListOfPatternStringConstrained>>>,
|
2393 - | ) -> Self {
|
2394 - | self.map_of_length_list_of_pattern_string = input.map(|v| v.into());
|
2395 - | self
|
2396 - | }
|
2397 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
2398 - | ///
|
2399 - | /// The builder fails to construct a [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
2400 - | ///
|
2401 - | pub fn build(
|
2402 - | self,
|
2403 - | ) -> Result<
|
2404 - | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput,
|
2405 - | ConstraintViolation,
|
2406 - | > {
|
2407 - | self.build_enforcing_all_constraints()
|
2408 - | }
|
2409 - | fn build_enforcing_all_constraints(
|
2410 - | self,
|
2411 - | ) -> Result<
|
2412 - | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput,
|
2413 - | ConstraintViolation,
|
2414 - | > {
|
2415 - | Ok(
|
2416 - | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
2417 - | map_of_length_list_of_pattern_string: self
|
2418 - | .map_of_length_list_of_pattern_string
|
1915 + | .transpose()?
|
1916 + | .ok_or(ConstraintViolation::MissingLengthStringHeaderMap)?,
|
1917 + | length_string_header: self
|
1918 + | .length_string_header
|
2419 1919 | .map(|v| match v {
|
2420 1920 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2421 1921 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2422 1922 | })
|
2423 - | .map(|res| {
|
2424 - | res.map(|v| v.into())
|
2425 - | .map_err(ConstraintViolation::MapOfLengthListOfPatternString)
|
1923 + | .map(|res| res.map_err(ConstraintViolation::LengthStringHeader))
|
1924 + | .transpose()?
|
1925 + | .map(|v: crate::model::LengthString| v.into()),
|
1926 + | range_integer_header: self
|
1927 + | .range_integer_header
|
1928 + | .map(|v| match v {
|
1929 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1930 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2426 1931 | })
|
2427 - | .transpose()?,
|
2428 - | },
|
2429 - | )
|
2430 - | }
|
2431 - | }
|
2432 - | }
|
2433 - | /// See [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
2434 - | pub mod query_params_targeting_map_of_length_list_of_pattern_string_operation_input {
|
2435 - |
|
2436 - | impl ::std::convert::From<Builder>
|
2437 - | for crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
2438 - | {
|
2439 - | fn from(builder: Builder) -> Self {
|
2440 - | builder.build()
|
2441 - | }
|
2442 - | }
|
2443 - | /// A builder for [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
2444 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2445 - | pub struct Builder {
|
2446 - | pub(crate) map_of_length_list_of_pattern_string: ::std::option::Option<
|
2447 - | ::std::collections::HashMap<
|
2448 - | ::std::string::String,
|
2449 - | ::std::vec::Vec<::std::string::String>,
|
2450 - | >,
|
2451 - | >,
|
2452 - | }
|
2453 - | impl Builder {
|
2454 - | #[allow(missing_docs)] // documentation missing in model
|
2455 - | pub fn map_of_length_list_of_pattern_string(
|
2456 - | mut self,
|
2457 - | input: ::std::option::Option<
|
2458 - | ::std::collections::HashMap<
|
2459 - | ::std::string::String,
|
2460 - | ::std::vec::Vec<::std::string::String>,
|
2461 - | >,
|
2462 - | >,
|
2463 - | ) -> Self {
|
2464 - | self.map_of_length_list_of_pattern_string = input;
|
2465 - | self
|
2466 - | }
|
2467 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
2468 - | pub fn build(
|
2469 - | self,
|
2470 - | ) -> crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
2471 - | {
|
2472 - | self.build_enforcing_required_and_enum_traits()
|
2473 - | }
|
2474 - | fn build_enforcing_required_and_enum_traits(
|
2475 - | self,
|
2476 - | ) -> crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
2477 - | {
|
2478 - | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
2479 - | map_of_length_list_of_pattern_string: self.map_of_length_list_of_pattern_string,
|
2480 - | }
|
2481 - | }
|
2482 - | }
|
2483 - | }
|
2484 - | /// See [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
2485 - | pub(crate) mod query_params_targeting_map_of_set_of_length_string_operation_input_internal {
|
2486 - |
|
2487 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2488 - | /// Holds one variant for each of the ways the builder can fail.
|
2489 - | #[non_exhaustive]
|
2490 - | #[allow(clippy::enum_variant_names)]
|
2491 - | pub(crate) enum ConstraintViolation {
|
2492 - | /// Constraint violation occurred building member `map_of_set_of_length_string` when building `QueryParamsTargetingMapOfSetOfLengthStringOperationInput`.
|
2493 - | #[doc(hidden)]
|
2494 - | MapOfSetOfLengthString(
|
2495 - | crate::model::map_of_set_of_length_string_internal::ConstraintViolation,
|
2496 - | ),
|
2497 - | }
|
2498 - | impl ::std::fmt::Display for ConstraintViolation {
|
2499 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2500 - | match self {
|
2501 - | ConstraintViolation::MapOfSetOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_set_of_length_string` when building `QueryParamsTargetingMapOfSetOfLengthStringOperationInput`"),
|
2502 - | }
|
2503 - | }
|
2504 - | }
|
2505 - | impl ::std::error::Error for ConstraintViolation {}
|
2506 - | impl ConstraintViolation {
|
2507 - | pub(crate) fn as_validation_exception_field(
|
2508 - | self,
|
2509 - | path: ::std::string::String,
|
2510 - | ) -> crate::model::ValidationExceptionField {
|
2511 - | match self {
|
2512 - | ConstraintViolation::MapOfSetOfLengthString(inner) => {
|
2513 - | inner.as_validation_exception_field(path + "/mapOfSetOfLengthString")
|
2514 - | }
|
2515 - | }
|
2516 - | }
|
2517 - | }
|
2518 - | impl ::std::convert::From<ConstraintViolation>
|
2519 - | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
2520 - | {
|
2521 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
2522 - | let first_validation_exception_field =
|
2523 - | constraint_violation.as_validation_exception_field("".to_owned());
|
2524 - | let validation_exception = crate::error::ValidationException {
|
2525 - | message: format!(
|
2526 - | "1 validation error detected. {}",
|
2527 - | &first_validation_exception_field.message
|
2528 - | ),
|
2529 - | field_list: Some(vec![first_validation_exception_field]),
|
2530 - | };
|
2531 - | Self::ConstraintViolation(
|
2532 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
2533 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
2534 - | )
|
2535 - | }
|
2536 - | }
|
2537 - | impl ::std::convert::From<Builder>
|
2538 - | for crate::constrained::MaybeConstrained<
|
2539 - | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput,
|
2540 - | >
|
2541 - | {
|
2542 - | fn from(builder: Builder) -> Self {
|
2543 - | Self::Unconstrained(builder)
|
2544 - | }
|
2545 - | }
|
2546 - | impl ::std::convert::TryFrom<Builder>
|
2547 - | for crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput
|
2548 - | {
|
2549 - | type Error = ConstraintViolation;
|
2550 - |
|
2551 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2552 - | builder.build()
|
2553 - | }
|
2554 - | }
|
2555 - | /// A builder for [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
2556 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2557 - | pub(crate) struct Builder {
|
2558 - | pub(crate) map_of_set_of_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_set_of_length_string_constrained::MapOfSetOfLengthStringConstrained>>,
|
2559 - | }
|
2560 - | impl Builder {
|
2561 - | #[allow(missing_docs)] // documentation missing in model
|
2562 - | pub(crate) fn set_map_of_set_of_length_string(
|
2563 - | mut self,
|
2564 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_set_of_length_string_constrained::MapOfSetOfLengthStringConstrained>>>,
|
2565 - | ) -> Self {
|
2566 - | self.map_of_set_of_length_string = input.map(|v| v.into());
|
2567 - | self
|
2568 - | }
|
2569 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
2570 - | ///
|
2571 - | /// The builder fails to construct a [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput) if a [`ConstraintViolation`] occurs.
|
2572 - | ///
|
2573 - | pub fn build(
|
2574 - | self,
|
2575 - | ) -> Result<
|
2576 - | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput,
|
2577 - | ConstraintViolation,
|
2578 - | > {
|
2579 - | self.build_enforcing_all_constraints()
|
2580 - | }
|
2581 - | fn build_enforcing_all_constraints(
|
2582 - | self,
|
2583 - | ) -> Result<
|
2584 - | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput,
|
2585 - | ConstraintViolation,
|
2586 - | > {
|
2587 - | Ok(
|
2588 - | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
2589 - | map_of_set_of_length_string: self
|
2590 - | .map_of_set_of_length_string
|
1932 + | .map(|res| res.map_err(ConstraintViolation::RangeIntegerHeader))
|
1933 + | .transpose()?
|
1934 + | .map(|v: crate::model::RangeInteger| v.into())
|
1935 + | .unwrap_or(0i32),
|
1936 + | range_short_header: self
|
1937 + | .range_short_header
|
1938 + | .map(|v| match v {
|
1939 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1940 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1941 + | })
|
1942 + | .map(|res| res.map_err(ConstraintViolation::RangeShortHeader))
|
1943 + | .transpose()?
|
1944 + | .map(|v: crate::model::RangeShort| v.into())
|
1945 + | .unwrap_or(0i16),
|
1946 + | range_long_header: self
|
1947 + | .range_long_header
|
1948 + | .map(|v| match v {
|
1949 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1950 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1951 + | })
|
1952 + | .map(|res| res.map_err(ConstraintViolation::RangeLongHeader))
|
1953 + | .transpose()?
|
1954 + | .map(|v: crate::model::RangeLong| v.into())
|
1955 + | .unwrap_or(0i64),
|
1956 + | range_byte_header: self
|
1957 + | .range_byte_header
|
1958 + | .map(|v| match v {
|
1959 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1960 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1961 + | })
|
1962 + | .map(|res| res.map_err(ConstraintViolation::RangeByteHeader))
|
1963 + | .transpose()?
|
1964 + | .map(|v: crate::model::RangeByte| v.into())
|
1965 + | .unwrap_or(0i8),
|
1966 + | length_string_set_header: self
|
1967 + | .length_string_set_header
|
1968 + | .map(|v| match v {
|
1969 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1970 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1971 + | })
|
1972 + | .map(|res| res.map_err(ConstraintViolation::LengthStringSetHeader))
|
1973 + | .transpose()?
|
1974 + | .map(|v: crate::model::SetOfLengthString| v.into()),
|
1975 + | list_length_string_header: self
|
1976 + | .list_length_string_header
|
2591 1977 | .map(|v| match v {
|
2592 1978 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2593 1979 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2594 1980 | })
|
2595 1981 | .map(|res| {
|
2596 1982 | res.map(|v| v.into())
|
2597 - | .map_err(ConstraintViolation::MapOfSetOfLengthString)
|
1983 + | .map_err(ConstraintViolation::ListLengthStringHeader)
|
2598 1984 | })
|
2599 1985 | .transpose()?,
|
2600 - | },
|
2601 - | )
|
2602 - | }
|
2603 - | }
|
2604 - | }
|
2605 - | /// See [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
2606 - | pub mod query_params_targeting_map_of_set_of_length_string_operation_input {
|
2607 - |
|
2608 - | impl ::std::convert::From<Builder>
|
2609 - | for crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput
|
2610 - | {
|
2611 - | fn from(builder: Builder) -> Self {
|
2612 - | builder.build()
|
2613 - | }
|
2614 - | }
|
2615 - | /// A builder for [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
2616 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2617 - | pub struct Builder {
|
2618 - | pub(crate) map_of_set_of_length_string: ::std::option::Option<
|
2619 - | ::std::collections::HashMap<
|
2620 - | ::std::string::String,
|
2621 - | ::std::vec::Vec<::std::string::String>,
|
2622 - | >,
|
2623 - | >,
|
2624 - | }
|
2625 - | impl Builder {
|
2626 - | #[allow(missing_docs)] // documentation missing in model
|
2627 - | pub fn map_of_set_of_length_string(
|
2628 - | mut self,
|
2629 - | input: ::std::option::Option<
|
2630 - | ::std::collections::HashMap<
|
2631 - | ::std::string::String,
|
2632 - | ::std::vec::Vec<::std::string::String>,
|
2633 - | >,
|
2634 - | >,
|
2635 - | ) -> Self {
|
2636 - | self.map_of_set_of_length_string = input;
|
2637 - | self
|
2638 - | }
|
2639 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
2640 - | pub fn build(
|
2641 - | self,
|
2642 - | ) -> crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
2643 - | self.build_enforcing_required_and_enum_traits()
|
2644 - | }
|
2645 - | fn build_enforcing_required_and_enum_traits(
|
2646 - | self,
|
2647 - | ) -> crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
2648 - | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
2649 - | map_of_set_of_length_string: self.map_of_set_of_length_string,
|
2650 - | }
|
2651 - | }
|
2652 - | }
|
2653 - | }
|
2654 - | /// See [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
2655 - | pub(crate) mod query_params_targeting_map_of_list_of_length_string_operation_input_internal {
|
2656 - |
|
2657 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2658 - | /// Holds one variant for each of the ways the builder can fail.
|
2659 - | #[non_exhaustive]
|
2660 - | #[allow(clippy::enum_variant_names)]
|
2661 - | pub(crate) enum ConstraintViolation {
|
2662 - | /// Constraint violation occurred building member `map_of_list_of_length_string` when building `QueryParamsTargetingMapOfListOfLengthStringOperationInput`.
|
2663 - | #[doc(hidden)]
|
2664 - | MapOfListOfLengthString(
|
2665 - | crate::model::map_of_list_of_length_string_internal::ConstraintViolation,
|
2666 - | ),
|
2667 - | }
|
2668 - | impl ::std::fmt::Display for ConstraintViolation {
|
2669 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2670 - | match self {
|
2671 - | ConstraintViolation::MapOfListOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_length_string` when building `QueryParamsTargetingMapOfListOfLengthStringOperationInput`"),
|
2672 - | }
|
2673 - | }
|
2674 - | }
|
2675 - | impl ::std::error::Error for ConstraintViolation {}
|
2676 - | impl ConstraintViolation {
|
2677 - | pub(crate) fn as_validation_exception_field(
|
2678 - | self,
|
2679 - | path: ::std::string::String,
|
2680 - | ) -> crate::model::ValidationExceptionField {
|
2681 - | match self {
|
2682 - | ConstraintViolation::MapOfListOfLengthString(inner) => {
|
2683 - | inner.as_validation_exception_field(path + "/mapOfListOfLengthString")
|
2684 - | }
|
2685 - | }
|
2686 - | }
|
2687 - | }
|
2688 - | impl ::std::convert::From<ConstraintViolation>
|
2689 - | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
2690 - | {
|
2691 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
2692 - | let first_validation_exception_field =
|
2693 - | constraint_violation.as_validation_exception_field("".to_owned());
|
2694 - | let validation_exception = crate::error::ValidationException {
|
2695 - | message: format!(
|
2696 - | "1 validation error detected. {}",
|
2697 - | &first_validation_exception_field.message
|
2698 - | ),
|
2699 - | field_list: Some(vec![first_validation_exception_field]),
|
2700 - | };
|
2701 - | Self::ConstraintViolation(
|
2702 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
2703 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
2704 - | )
|
2705 - | }
|
2706 - | }
|
2707 - | impl ::std::convert::From<Builder>
|
2708 - | for crate::constrained::MaybeConstrained<
|
2709 - | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput,
|
2710 - | >
|
2711 - | {
|
2712 - | fn from(builder: Builder) -> Self {
|
2713 - | Self::Unconstrained(builder)
|
2714 - | }
|
2715 - | }
|
2716 - | impl ::std::convert::TryFrom<Builder>
|
2717 - | for crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput
|
2718 - | {
|
2719 - | type Error = ConstraintViolation;
|
2720 - |
|
2721 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2722 - | builder.build()
|
2723 - | }
|
2724 - | }
|
2725 - | /// A builder for [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
2726 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2727 - | pub(crate) struct Builder {
|
2728 - | pub(crate) map_of_list_of_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_string_constrained::MapOfListOfLengthStringConstrained>>,
|
2729 - | }
|
2730 - | impl Builder {
|
2731 - | #[allow(missing_docs)] // documentation missing in model
|
2732 - | pub(crate) fn set_map_of_list_of_length_string(
|
2733 - | mut self,
|
2734 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_string_constrained::MapOfListOfLengthStringConstrained>>>,
|
2735 - | ) -> Self {
|
2736 - | self.map_of_list_of_length_string = input.map(|v| v.into());
|
2737 - | self
|
2738 - | }
|
2739 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
2740 - | ///
|
2741 - | /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput) if a [`ConstraintViolation`] occurs.
|
2742 - | ///
|
2743 - | pub fn build(
|
2744 - | self,
|
2745 - | ) -> Result<
|
2746 - | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput,
|
2747 - | ConstraintViolation,
|
2748 - | > {
|
2749 - | self.build_enforcing_all_constraints()
|
2750 - | }
|
2751 - | fn build_enforcing_all_constraints(
|
2752 - | self,
|
2753 - | ) -> Result<
|
2754 - | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput,
|
2755 - | ConstraintViolation,
|
2756 - | > {
|
2757 - | Ok(
|
2758 - | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
2759 - | map_of_list_of_length_string: self
|
2760 - | .map_of_list_of_length_string
|
1986 + | length_list_pattern_string_header: self
|
1987 + | .length_list_pattern_string_header
|
1988 + | .map(|v| match v {
|
1989 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1990 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1991 + | })
|
1992 + | .map(|res| res.map_err(ConstraintViolation::LengthListPatternStringHeader))
|
1993 + | .transpose()?
|
1994 + | .map(|v: crate::model::LengthListOfPatternString| v.into()),
|
1995 + | length_set_pattern_string_header: self
|
1996 + | .length_set_pattern_string_header
|
1997 + | .map(|v| match v {
|
1998 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1999 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2000 + | })
|
2001 + | .map(|res| res.map_err(ConstraintViolation::LengthSetPatternStringHeader))
|
2002 + | .transpose()?
|
2003 + | .map(|v: crate::model::LengthSetOfPatternString| v.into()),
|
2004 + | range_byte_set_header: self
|
2005 + | .range_byte_set_header
|
2006 + | .map(|v| match v {
|
2007 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2008 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2009 + | })
|
2010 + | .map(|res| res.map_err(ConstraintViolation::RangeByteSetHeader))
|
2011 + | .transpose()?
|
2012 + | .map(|v: crate::model::SetOfRangeByte| v.into()),
|
2013 + | range_short_set_header: self
|
2014 + | .range_short_set_header
|
2015 + | .map(|v| match v {
|
2016 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2017 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2018 + | })
|
2019 + | .map(|res| res.map_err(ConstraintViolation::RangeShortSetHeader))
|
2020 + | .transpose()?
|
2021 + | .map(|v: crate::model::SetOfRangeShort| v.into()),
|
2022 + | range_integer_set_header: self
|
2023 + | .range_integer_set_header
|
2024 + | .map(|v| match v {
|
2025 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2026 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2027 + | })
|
2028 + | .map(|res| res.map_err(ConstraintViolation::RangeIntegerSetHeader))
|
2029 + | .transpose()?
|
2030 + | .map(|v: crate::model::SetOfRangeInteger| v.into()),
|
2031 + | range_long_set_header: self
|
2032 + | .range_long_set_header
|
2033 + | .map(|v| match v {
|
2034 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2035 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2036 + | })
|
2037 + | .map(|res| res.map_err(ConstraintViolation::RangeLongSetHeader))
|
2038 + | .transpose()?
|
2039 + | .map(|v: crate::model::SetOfRangeLong| v.into()),
|
2040 + | range_byte_list_header: self
|
2041 + | .range_byte_list_header
|
2042 + | .map(|v| match v {
|
2043 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2044 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2045 + | })
|
2046 + | .map(|res| {
|
2047 + | res.map(|v| v.into())
|
2048 + | .map_err(ConstraintViolation::RangeByteListHeader)
|
2049 + | })
|
2050 + | .transpose()?,
|
2051 + | range_short_list_header: self
|
2052 + | .range_short_list_header
|
2053 + | .map(|v| match v {
|
2054 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2055 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2056 + | })
|
2057 + | .map(|res| {
|
2058 + | res.map(|v| v.into())
|
2059 + | .map_err(ConstraintViolation::RangeShortListHeader)
|
2060 + | })
|
2061 + | .transpose()?,
|
2062 + | range_integer_list_header: self
|
2063 + | .range_integer_list_header
|
2064 + | .map(|v| match v {
|
2065 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2066 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2067 + | })
|
2068 + | .map(|res| {
|
2069 + | res.map(|v| v.into())
|
2070 + | .map_err(ConstraintViolation::RangeIntegerListHeader)
|
2071 + | })
|
2072 + | .transpose()?,
|
2073 + | range_long_list_header: self
|
2074 + | .range_long_list_header
|
2761 2075 | .map(|v| match v {
|
2762 2076 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2763 2077 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2764 2078 | })
|
2765 2079 | .map(|res| {
|
2766 2080 | res.map(|v| v.into())
|
2767 - | .map_err(ConstraintViolation::MapOfListOfLengthString)
|
2081 + | .map_err(ConstraintViolation::RangeLongListHeader)
|
2768 2082 | })
|
2769 2083 | .transpose()?,
|
2770 - | },
|
2771 - | )
|
2772 - | }
|
2773 - | }
|
2774 - | }
|
2775 - | /// See [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
2776 - | pub mod query_params_targeting_map_of_list_of_length_string_operation_input {
|
2777 - |
|
2778 - | impl ::std::convert::From<Builder>
|
2779 - | for crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput
|
2780 - | {
|
2781 - | fn from(builder: Builder) -> Self {
|
2782 - | builder.build()
|
2783 - | }
|
2784 - | }
|
2785 - | /// A builder for [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
2786 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2787 - | pub struct Builder {
|
2788 - | pub(crate) map_of_list_of_length_string: ::std::option::Option<
|
2789 - | ::std::collections::HashMap<
|
2790 - | ::std::string::String,
|
2791 - | ::std::vec::Vec<::std::string::String>,
|
2792 - | >,
|
2793 - | >,
|
2794 - | }
|
2795 - | impl Builder {
|
2796 - | #[allow(missing_docs)] // documentation missing in model
|
2797 - | pub fn map_of_list_of_length_string(
|
2798 - | mut self,
|
2799 - | input: ::std::option::Option<
|
2800 - | ::std::collections::HashMap<
|
2801 - | ::std::string::String,
|
2802 - | ::std::vec::Vec<::std::string::String>,
|
2803 - | >,
|
2804 - | >,
|
2805 - | ) -> Self {
|
2806 - | self.map_of_list_of_length_string = input;
|
2807 - | self
|
2808 - | }
|
2809 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
2810 - | pub fn build(
|
2811 - | self,
|
2812 - | ) -> crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
2813 - | self.build_enforcing_required_and_enum_traits()
|
2814 - | }
|
2815 - | fn build_enforcing_required_and_enum_traits(
|
2816 - | self,
|
2817 - | ) -> crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
2818 - | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
2819 - | map_of_list_of_length_string: self.map_of_list_of_length_string,
|
2820 - | }
|
2821 - | }
|
2822 - | }
|
2823 - | }
|
2824 - | /// See [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
2825 - | pub(crate) mod query_params_targeting_map_of_length_string_operation_input_internal {
|
2826 - |
|
2827 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2828 - | /// Holds one variant for each of the ways the builder can fail.
|
2829 - | #[non_exhaustive]
|
2830 - | #[allow(clippy::enum_variant_names)]
|
2831 - | pub(crate) enum ConstraintViolation {
|
2832 - | /// Constraint violation occurred building member `map_of_length_string` when building `QueryParamsTargetingMapOfLengthStringOperationInput`.
|
2833 - | #[doc(hidden)]
|
2834 - | MapOfLengthString(crate::model::map_of_length_string_internal::ConstraintViolation),
|
2835 - | }
|
2836 - | impl ::std::fmt::Display for ConstraintViolation {
|
2837 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2838 - | match self {
|
2839 - | ConstraintViolation::MapOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_length_string` when building `QueryParamsTargetingMapOfLengthStringOperationInput`"),
|
2840 - | }
|
2841 - | }
|
2842 - | }
|
2843 - | impl ::std::error::Error for ConstraintViolation {}
|
2844 - | impl ConstraintViolation {
|
2845 - | pub(crate) fn as_validation_exception_field(
|
2846 - | self,
|
2847 - | path: ::std::string::String,
|
2848 - | ) -> crate::model::ValidationExceptionField {
|
2849 - | match self {
|
2850 - | ConstraintViolation::MapOfLengthString(inner) => {
|
2851 - | inner.as_validation_exception_field(path + "/mapOfLengthString")
|
2852 - | }
|
2853 - | }
|
2854 - | }
|
2855 - | }
|
2856 - | impl ::std::convert::From<ConstraintViolation>
|
2857 - | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
2858 - | {
|
2859 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
2860 - | let first_validation_exception_field =
|
2861 - | constraint_violation.as_validation_exception_field("".to_owned());
|
2862 - | let validation_exception = crate::error::ValidationException {
|
2863 - | message: format!(
|
2864 - | "1 validation error detected. {}",
|
2865 - | &first_validation_exception_field.message
|
2866 - | ),
|
2867 - | field_list: Some(vec![first_validation_exception_field]),
|
2868 - | };
|
2869 - | Self::ConstraintViolation(
|
2870 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
2871 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
2872 - | )
|
2873 - | }
|
2874 - | }
|
2875 - | impl ::std::convert::From<Builder>
|
2876 - | for crate::constrained::MaybeConstrained<
|
2877 - | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput,
|
2878 - | >
|
2879 - | {
|
2880 - | fn from(builder: Builder) -> Self {
|
2881 - | Self::Unconstrained(builder)
|
2882 - | }
|
2883 - | }
|
2884 - | impl ::std::convert::TryFrom<Builder>
|
2885 - | for crate::input::QueryParamsTargetingMapOfLengthStringOperationInput
|
2886 - | {
|
2887 - | type Error = ConstraintViolation;
|
2888 - |
|
2889 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2890 - | builder.build()
|
2891 - | }
|
2892 - | }
|
2893 - | /// A builder for [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
2894 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2895 - | pub(crate) struct Builder {
|
2896 - | pub(crate) map_of_length_string: ::std::option::Option<
|
2897 - | crate::constrained::MaybeConstrained<
|
2898 - | crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained,
|
2899 - | >,
|
2900 - | >,
|
2901 - | }
|
2902 - | impl Builder {
|
2903 - | #[allow(missing_docs)] // documentation missing in model
|
2904 - | pub(crate) fn set_map_of_length_string(
|
2905 - | mut self,
|
2906 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>>,
|
2907 - | ) -> Self {
|
2908 - | self.map_of_length_string = input.map(|v| v.into());
|
2909 - | self
|
2910 - | }
|
2911 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
2912 - | ///
|
2913 - | /// The builder fails to construct a [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput) if a [`ConstraintViolation`] occurs.
|
2914 - | ///
|
2915 - | pub fn build(
|
2916 - | self,
|
2917 - | ) -> Result<
|
2918 - | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput,
|
2919 - | ConstraintViolation,
|
2920 - | > {
|
2921 - | self.build_enforcing_all_constraints()
|
2922 - | }
|
2923 - | fn build_enforcing_all_constraints(
|
2924 - | self,
|
2925 - | ) -> Result<
|
2926 - | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput,
|
2927 - | ConstraintViolation,
|
2928 - | > {
|
2929 - | Ok(
|
2930 - | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput {
|
2931 - | map_of_length_string: self
|
2932 - | .map_of_length_string
|
2084 + | length_string_query: self
|
2085 + | .length_string_query
|
2086 + | .map(|v| match v {
|
2087 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2088 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2089 + | })
|
2090 + | .map(|res| res.map_err(ConstraintViolation::LengthStringQuery))
|
2091 + | .transpose()?
|
2092 + | .map(|v: crate::model::LengthString| v.into()),
|
2093 + | range_byte_query: self
|
2094 + | .range_byte_query
|
2095 + | .map(|v| match v {
|
2096 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2097 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2098 + | })
|
2099 + | .map(|res| res.map_err(ConstraintViolation::RangeByteQuery))
|
2100 + | .transpose()?
|
2101 + | .map(|v: crate::model::RangeByte| v.into())
|
2102 + | .unwrap_or(0i8),
|
2103 + | range_short_query: self
|
2104 + | .range_short_query
|
2105 + | .map(|v| match v {
|
2106 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2107 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2108 + | })
|
2109 + | .map(|res| res.map_err(ConstraintViolation::RangeShortQuery))
|
2110 + | .transpose()?
|
2111 + | .map(|v: crate::model::RangeShort| v.into())
|
2112 + | .unwrap_or(0i16),
|
2113 + | range_integer_query: self
|
2114 + | .range_integer_query
|
2115 + | .map(|v| match v {
|
2116 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2117 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2118 + | })
|
2119 + | .map(|res| res.map_err(ConstraintViolation::RangeIntegerQuery))
|
2120 + | .transpose()?
|
2121 + | .map(|v: crate::model::RangeInteger| v.into())
|
2122 + | .unwrap_or(0i32),
|
2123 + | range_long_query: self
|
2124 + | .range_long_query
|
2125 + | .map(|v| match v {
|
2126 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2127 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2128 + | })
|
2129 + | .map(|res| res.map_err(ConstraintViolation::RangeLongQuery))
|
2130 + | .transpose()?
|
2131 + | .map(|v: crate::model::RangeLong| v.into())
|
2132 + | .unwrap_or(0i64),
|
2133 + | enum_string_query: self
|
2134 + | .enum_string_query
|
2135 + | .map(|v| match v {
|
2136 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2137 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2138 + | })
|
2139 + | .map(|res| res.map_err(ConstraintViolation::EnumStringQuery))
|
2140 + | .transpose()?,
|
2141 + | length_string_list_query: self
|
2142 + | .length_string_list_query
|
2143 + | .map(|v| match v {
|
2144 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2145 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2146 + | })
|
2147 + | .map(|res| {
|
2148 + | res.map(|v| v.into())
|
2149 + | .map_err(ConstraintViolation::LengthStringListQuery)
|
2150 + | })
|
2151 + | .transpose()?,
|
2152 + | length_list_pattern_string_query: self
|
2153 + | .length_list_pattern_string_query
|
2154 + | .map(|v| match v {
|
2155 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2156 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2157 + | })
|
2158 + | .map(|res| res.map_err(ConstraintViolation::LengthListPatternStringQuery))
|
2159 + | .transpose()?
|
2160 + | .map(|v: crate::model::LengthListOfPatternString| v.into()),
|
2161 + | length_string_set_query: self
|
2162 + | .length_string_set_query
|
2163 + | .map(|v| match v {
|
2164 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2165 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2166 + | })
|
2167 + | .map(|res| res.map_err(ConstraintViolation::LengthStringSetQuery))
|
2168 + | .transpose()?
|
2169 + | .map(|v: crate::model::SetOfLengthString| v.into()),
|
2170 + | range_byte_list_query: self
|
2171 + | .range_byte_list_query
|
2933 2172 | .map(|v| match v {
|
2934 2173 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2935 2174 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2936 2175 | })
|
2937 2176 | .map(|res| {
|
2938 2177 | res.map(|v| v.into())
|
2939 - | .map_err(ConstraintViolation::MapOfLengthString)
|
2178 + | .map_err(ConstraintViolation::RangeByteListQuery)
|
2940 2179 | })
|
2941 2180 | .transpose()?,
|
2942 - | },
|
2943 - | )
|
2944 - | }
|
2945 - | }
|
2946 - | }
|
2947 - | /// See [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
2948 - | pub mod query_params_targeting_map_of_length_string_operation_input {
|
2949 - |
|
2950 - | impl ::std::convert::From<Builder>
|
2951 - | for crate::input::QueryParamsTargetingMapOfLengthStringOperationInput
|
2952 - | {
|
2953 - | fn from(builder: Builder) -> Self {
|
2954 - | builder.build()
|
2955 - | }
|
2956 - | }
|
2957 - | /// A builder for [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
2958 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2959 - | pub struct Builder {
|
2960 - | pub(crate) map_of_length_string: ::std::option::Option<
|
2961 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2962 - | >,
|
2963 - | }
|
2964 - | impl Builder {
|
2965 - | #[allow(missing_docs)] // documentation missing in model
|
2966 - | pub fn map_of_length_string(
|
2967 - | mut self,
|
2968 - | input: ::std::option::Option<
|
2969 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2970 - | >,
|
2971 - | ) -> Self {
|
2972 - | self.map_of_length_string = input;
|
2973 - | self
|
2974 - | }
|
2975 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
2976 - | pub fn build(self) -> crate::input::QueryParamsTargetingMapOfLengthStringOperationInput {
|
2977 - | self.build_enforcing_required_and_enum_traits()
|
2978 - | }
|
2979 - | fn build_enforcing_required_and_enum_traits(
|
2980 - | self,
|
2981 - | ) -> crate::input::QueryParamsTargetingMapOfLengthStringOperationInput {
|
2982 - | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput {
|
2983 - | map_of_length_string: self.map_of_length_string,
|
2984 - | }
|
2181 + | range_short_list_query: self
|
2182 + | .range_short_list_query
|
2183 + | .map(|v| match v {
|
2184 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2185 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2186 + | })
|
2187 + | .map(|res| {
|
2188 + | res.map(|v| v.into())
|
2189 + | .map_err(ConstraintViolation::RangeShortListQuery)
|
2190 + | })
|
2191 + | .transpose()?,
|
2192 + | range_integer_list_query: self
|
2193 + | .range_integer_list_query
|
2194 + | .map(|v| match v {
|
2195 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2196 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2197 + | })
|
2198 + | .map(|res| {
|
2199 + | res.map(|v| v.into())
|
2200 + | .map_err(ConstraintViolation::RangeIntegerListQuery)
|
2201 + | })
|
2202 + | .transpose()?,
|
2203 + | range_long_list_query: self
|
2204 + | .range_long_list_query
|
2205 + | .map(|v| match v {
|
2206 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2207 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2208 + | })
|
2209 + | .map(|res| {
|
2210 + | res.map(|v| v.into())
|
2211 + | .map_err(ConstraintViolation::RangeLongListQuery)
|
2212 + | })
|
2213 + | .transpose()?,
|
2214 + | range_byte_set_query: self
|
2215 + | .range_byte_set_query
|
2216 + | .map(|v| match v {
|
2217 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2218 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2219 + | })
|
2220 + | .map(|res| res.map_err(ConstraintViolation::RangeByteSetQuery))
|
2221 + | .transpose()?
|
2222 + | .map(|v: crate::model::SetOfRangeByte| v.into()),
|
2223 + | range_short_set_query: self
|
2224 + | .range_short_set_query
|
2225 + | .map(|v| match v {
|
2226 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2227 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2228 + | })
|
2229 + | .map(|res| res.map_err(ConstraintViolation::RangeShortSetQuery))
|
2230 + | .transpose()?
|
2231 + | .map(|v: crate::model::SetOfRangeShort| v.into()),
|
2232 + | range_integer_set_query: self
|
2233 + | .range_integer_set_query
|
2234 + | .map(|v| match v {
|
2235 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2236 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2237 + | })
|
2238 + | .map(|res| res.map_err(ConstraintViolation::RangeIntegerSetQuery))
|
2239 + | .transpose()?
|
2240 + | .map(|v: crate::model::SetOfRangeInteger| v.into()),
|
2241 + | range_long_set_query: self
|
2242 + | .range_long_set_query
|
2243 + | .map(|v| match v {
|
2244 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2245 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2246 + | })
|
2247 + | .map(|res| res.map_err(ConstraintViolation::RangeLongSetQuery))
|
2248 + | .transpose()?
|
2249 + | .map(|v: crate::model::SetOfRangeLong| v.into()),
|
2250 + | enum_string_list_query: self
|
2251 + | .enum_string_list_query
|
2252 + | .map(|v| match v {
|
2253 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2254 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2255 + | })
|
2256 + | .map(|res| {
|
2257 + | res.map(|v| v.into())
|
2258 + | .map_err(ConstraintViolation::EnumStringListQuery)
|
2259 + | })
|
2260 + | .transpose()?,
|
2261 + | })
|
2985 2262 | }
|
2986 2263 | }
|
2987 2264 | }
|
2988 - | /// See [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
2989 - | pub(crate) mod query_params_targeting_length_map_operation_input_internal {
|
2265 + | /// See [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
2266 + | pub mod constrained_http_bound_shapes_operation_input {
|
2990 2267 |
|
2991 2268 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2992 2269 | /// Holds one variant for each of the ways the builder can fail.
|
2993 - | #[non_exhaustive]
|
2994 2270 | #[allow(clippy::enum_variant_names)]
|
2995 - | pub(crate) enum ConstraintViolation {
|
2996 - | /// Constraint violation occurred building member `length_map` when building `QueryParamsTargetingLengthMapOperationInput`.
|
2997 - | #[doc(hidden)]
|
2998 - | LengthMap(crate::model::con_b_map_internal::ConstraintViolation),
|
2271 + | pub enum ConstraintViolation {
|
2272 + | /// `length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
2273 + | MissingLengthStringLabel,
|
2274 + | /// `enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
2275 + | MissingEnumStringLabel,
|
2276 + | /// `length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
2277 + | MissingLengthStringHeaderMap,
|
2999 2278 | }
|
3000 2279 | impl ::std::fmt::Display for ConstraintViolation {
|
3001 2280 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3002 2281 | match self {
|
3003 - | ConstraintViolation::LengthMap(_) => write!(f, "constraint violation occurred building member `length_map` when building `QueryParamsTargetingLengthMapOperationInput`"),
|
2282 + | ConstraintViolation::MissingLengthStringLabel => write!(f, "`length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2283 + | ConstraintViolation::MissingEnumStringLabel => write!(f, "`enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2284 + | ConstraintViolation::MissingLengthStringHeaderMap => write!(f, "`length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3004 2285 | }
|
3005 2286 | }
|
3006 2287 | }
|
3007 2288 | impl ::std::error::Error for ConstraintViolation {}
|
3008 - | impl ConstraintViolation {
|
3009 - | pub(crate) fn as_validation_exception_field(
|
3010 - | self,
|
3011 - | path: ::std::string::String,
|
3012 - | ) -> crate::model::ValidationExceptionField {
|
3013 - | match self {
|
3014 - | ConstraintViolation::LengthMap(inner) => {
|
3015 - | inner.as_validation_exception_field(path + "/lengthMap")
|
3016 - | }
|
3017 - | }
|
2289 + | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedHttpBoundShapesOperationInput {
|
2290 + | type Error = ConstraintViolation;
|
2291 + |
|
2292 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2293 + | builder.build()
|
3018 2294 | }
|
3019 2295 | }
|
3020 - | impl ::std::convert::From<ConstraintViolation>
|
3021 - | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3022 - | {
|
3023 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3024 - | let first_validation_exception_field =
|
3025 - | constraint_violation.as_validation_exception_field("".to_owned());
|
3026 - | let validation_exception = crate::error::ValidationException {
|
3027 - | message: format!(
|
3028 - | "1 validation error detected. {}",
|
3029 - | &first_validation_exception_field.message
|
3030 - | ),
|
3031 - | field_list: Some(vec![first_validation_exception_field]),
|
3032 - | };
|
3033 - | Self::ConstraintViolation(
|
3034 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
3035 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
3036 - | )
|
2296 + | /// A builder for [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
2297 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2298 + | pub struct Builder {
|
2299 + | pub(crate) length_string_label: ::std::option::Option<::std::string::String>,
|
2300 + | pub(crate) range_integer_label: ::std::option::Option<i32>,
|
2301 + | pub(crate) range_short_label: ::std::option::Option<i16>,
|
2302 + | pub(crate) range_long_label: ::std::option::Option<i64>,
|
2303 + | pub(crate) range_byte_label: ::std::option::Option<i8>,
|
2304 + | pub(crate) enum_string_label: ::std::option::Option<crate::model::EnumString>,
|
2305 + | pub(crate) length_string_header_map: ::std::option::Option<
|
2306 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2307 + | >,
|
2308 + | pub(crate) length_string_header: ::std::option::Option<::std::string::String>,
|
2309 + | pub(crate) range_integer_header: ::std::option::Option<i32>,
|
2310 + | pub(crate) range_short_header: ::std::option::Option<i16>,
|
2311 + | pub(crate) range_long_header: ::std::option::Option<i64>,
|
2312 + | pub(crate) range_byte_header: ::std::option::Option<i8>,
|
2313 + | pub(crate) length_string_set_header:
|
2314 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
2315 + | pub(crate) list_length_string_header:
|
2316 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
2317 + | pub(crate) length_list_pattern_string_header:
|
2318 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
2319 + | pub(crate) length_set_pattern_string_header:
|
2320 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
2321 + | pub(crate) range_byte_set_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
2322 + | pub(crate) range_short_set_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
2323 + | pub(crate) range_integer_set_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
2324 + | pub(crate) range_long_set_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
2325 + | pub(crate) range_byte_list_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
2326 + | pub(crate) range_short_list_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
2327 + | pub(crate) range_integer_list_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
2328 + | pub(crate) range_long_list_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
2329 + | pub(crate) length_string_query: ::std::option::Option<::std::string::String>,
|
2330 + | pub(crate) range_byte_query: ::std::option::Option<i8>,
|
2331 + | pub(crate) range_short_query: ::std::option::Option<i16>,
|
2332 + | pub(crate) range_integer_query: ::std::option::Option<i32>,
|
2333 + | pub(crate) range_long_query: ::std::option::Option<i64>,
|
2334 + | pub(crate) enum_string_query: ::std::option::Option<crate::model::EnumString>,
|
2335 + | pub(crate) length_string_list_query:
|
2336 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
2337 + | pub(crate) length_list_pattern_string_query:
|
2338 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
2339 + | pub(crate) length_string_set_query:
|
2340 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
2341 + | pub(crate) range_byte_list_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
2342 + | pub(crate) range_short_list_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
2343 + | pub(crate) range_integer_list_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
2344 + | pub(crate) range_long_list_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
2345 + | pub(crate) range_byte_set_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
2346 + | pub(crate) range_short_set_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
2347 + | pub(crate) range_integer_set_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
2348 + | pub(crate) range_long_set_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
2349 + | pub(crate) enum_string_list_query:
|
2350 + | ::std::option::Option<::std::vec::Vec<crate::model::EnumString>>,
|
3037 2351 | }
|
2352 + | impl Builder {
|
2353 + | #[allow(missing_docs)] // documentation missing in model
|
2354 + | pub fn length_string_label(mut self, input: ::std::string::String) -> Self {
|
2355 + | self.length_string_label = Some(input);
|
2356 + | self
|
3038 2357 | }
|
3039 - | impl ::std::convert::From<Builder>
|
3040 - | for crate::constrained::MaybeConstrained<
|
3041 - | crate::input::QueryParamsTargetingLengthMapOperationInput,
|
3042 - | >
|
3043 - | {
|
3044 - | fn from(builder: Builder) -> Self {
|
3045 - | Self::Unconstrained(builder)
|
2358 + | #[allow(missing_docs)] // documentation missing in model
|
2359 + | pub fn range_integer_label(mut self, input: i32) -> Self {
|
2360 + | self.range_integer_label = Some(input);
|
2361 + | self
|
3046 2362 | }
|
2363 + | #[allow(missing_docs)] // documentation missing in model
|
2364 + | pub fn range_short_label(mut self, input: i16) -> Self {
|
2365 + | self.range_short_label = Some(input);
|
2366 + | self
|
3047 2367 | }
|
3048 - | impl ::std::convert::TryFrom<Builder>
|
3049 - | for crate::input::QueryParamsTargetingLengthMapOperationInput
|
3050 - | {
|
3051 - | type Error = ConstraintViolation;
|
3052 - |
|
3053 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3054 - | builder.build()
|
2368 + | #[allow(missing_docs)] // documentation missing in model
|
2369 + | pub fn range_long_label(mut self, input: i64) -> Self {
|
2370 + | self.range_long_label = Some(input);
|
2371 + | self
|
3055 2372 | }
|
2373 + | #[allow(missing_docs)] // documentation missing in model
|
2374 + | pub fn range_byte_label(mut self, input: i8) -> Self {
|
2375 + | self.range_byte_label = Some(input);
|
2376 + | self
|
3056 2377 | }
|
3057 - | /// A builder for [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
3058 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3059 - | pub(crate) struct Builder {
|
3060 - | pub(crate) length_map:
|
3061 - | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
2378 + | #[allow(missing_docs)] // documentation missing in model
|
2379 + | pub fn enum_string_label(mut self, input: crate::model::EnumString) -> Self {
|
2380 + | self.enum_string_label = Some(input);
|
2381 + | self
|
3062 2382 | }
|
3063 - | impl Builder {
|
3064 2383 | #[allow(missing_docs)] // documentation missing in model
|
3065 - | pub(crate) fn set_length_map(
|
2384 + | pub fn length_string_header_map(
|
3066 2385 | mut self,
|
3067 - | input: Option<
|
3068 - | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
3069 - | >,
|
2386 + | input: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
3070 2387 | ) -> Self {
|
3071 - | self.length_map = input.map(|v| v.into());
|
2388 + | self.length_string_header_map = Some(input);
|
3072 2389 | self
|
3073 2390 | }
|
3074 - | /// Consumes the builder and constructs a [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
3075 - | ///
|
3076 - | /// The builder fails to construct a [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput) if a [`ConstraintViolation`] occurs.
|
3077 - | ///
|
3078 - | pub fn build(
|
3079 - | self,
|
3080 - | ) -> Result<crate::input::QueryParamsTargetingLengthMapOperationInput, ConstraintViolation>
|
3081 - | {
|
3082 - | self.build_enforcing_all_constraints()
|
3083 - | }
|
3084 - | fn build_enforcing_all_constraints(
|
3085 - | self,
|
3086 - | ) -> Result<crate::input::QueryParamsTargetingLengthMapOperationInput, ConstraintViolation>
|
3087 - | {
|
3088 - | Ok(crate::input::QueryParamsTargetingLengthMapOperationInput {
|
3089 - | length_map: self
|
3090 - | .length_map
|
3091 - | .map(|v| match v {
|
3092 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3093 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3094 - | })
|
3095 - | .map(|res| res.map_err(ConstraintViolation::LengthMap))
|
3096 - | .transpose()?
|
3097 - | .map(|v: crate::model::ConBMap| v.into()),
|
3098 - | })
|
2391 + | #[allow(missing_docs)] // documentation missing in model
|
2392 + | pub fn length_string_header(
|
2393 + | mut self,
|
2394 + | input: ::std::option::Option<::std::string::String>,
|
2395 + | ) -> Self {
|
2396 + | self.length_string_header = input;
|
2397 + | self
|
3099 2398 | }
|
2399 + | #[allow(missing_docs)] // documentation missing in model
|
2400 + | pub fn range_integer_header(mut self, input: i32) -> Self {
|
2401 + | self.range_integer_header = Some(input);
|
2402 + | self
|
3100 2403 | }
|
3101 - | }
|
3102 - | /// See [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
3103 - | pub mod query_params_targeting_length_map_operation_input {
|
3104 - |
|
3105 - | impl ::std::convert::From<Builder> for crate::input::QueryParamsTargetingLengthMapOperationInput {
|
3106 - | fn from(builder: Builder) -> Self {
|
3107 - | builder.build()
|
2404 + | #[allow(missing_docs)] // documentation missing in model
|
2405 + | pub fn range_short_header(mut self, input: i16) -> Self {
|
2406 + | self.range_short_header = Some(input);
|
2407 + | self
|
3108 2408 | }
|
2409 + | #[allow(missing_docs)] // documentation missing in model
|
2410 + | pub fn range_long_header(mut self, input: i64) -> Self {
|
2411 + | self.range_long_header = Some(input);
|
2412 + | self
|
3109 2413 | }
|
3110 - | /// A builder for [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
3111 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3112 - | pub struct Builder {
|
3113 - | pub(crate) length_map: ::std::option::Option<
|
3114 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
3115 - | >,
|
2414 + | #[allow(missing_docs)] // documentation missing in model
|
2415 + | pub fn range_byte_header(mut self, input: i8) -> Self {
|
2416 + | self.range_byte_header = Some(input);
|
2417 + | self
|
3116 2418 | }
|
3117 - | impl Builder {
|
3118 2419 | #[allow(missing_docs)] // documentation missing in model
|
3119 - | pub fn length_map(
|
2420 + | pub fn length_string_set_header(
|
3120 2421 | mut self,
|
3121 - | input: ::std::option::Option<
|
3122 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
3123 - | >,
|
2422 + | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
3124 2423 | ) -> Self {
|
3125 - | self.length_map = input;
|
2424 + | self.length_string_set_header = input;
|
3126 2425 | self
|
3127 2426 | }
|
3128 - | /// Consumes the builder and constructs a [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
3129 - | pub fn build(self) -> crate::input::QueryParamsTargetingLengthMapOperationInput {
|
3130 - | self.build_enforcing_required_and_enum_traits()
|
3131 - | }
|
3132 - | fn build_enforcing_required_and_enum_traits(
|
3133 - | self,
|
3134 - | ) -> crate::input::QueryParamsTargetingLengthMapOperationInput {
|
3135 - | crate::input::QueryParamsTargetingLengthMapOperationInput {
|
3136 - | length_map: self.length_map,
|
3137 - | }
|
2427 + | #[allow(missing_docs)] // documentation missing in model
|
2428 + | pub fn list_length_string_header(
|
2429 + | mut self,
|
2430 + | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
2431 + | ) -> Self {
|
2432 + | self.list_length_string_header = input;
|
2433 + | self
|
3138 2434 | }
|
2435 + | #[allow(missing_docs)] // documentation missing in model
|
2436 + | pub fn length_list_pattern_string_header(
|
2437 + | mut self,
|
2438 + | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
2439 + | ) -> Self {
|
2440 + | self.length_list_pattern_string_header = input;
|
2441 + | self
|
3139 2442 | }
|
3140 - | }
|
3141 - | /// See [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
3142 - | pub(crate) mod constrained_recursive_shapes_operation_input_internal {
|
3143 - |
|
3144 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3145 - | /// Holds one variant for each of the ways the builder can fail.
|
3146 - | #[non_exhaustive]
|
3147 - | #[allow(clippy::enum_variant_names)]
|
3148 - | pub(crate) enum ConstraintViolation {
|
3149 - | /// Constraint violation occurred building member `nested` when building `ConstrainedRecursiveShapesOperationInput`.
|
3150 - | #[doc(hidden)]
|
3151 - | Nested(crate::model::recursive_shapes_input_output_nested1_internal::ConstraintViolation),
|
3152 - | /// `recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`.
|
3153 - | MissingRecursiveList,
|
3154 - | /// Constraint violation occurred building member `recursive_list` when building `ConstrainedRecursiveShapesOperationInput`.
|
3155 - | #[doc(hidden)]
|
3156 - | RecursiveList(crate::model::recursive_list_internal::ConstraintViolation),
|
2443 + | #[allow(missing_docs)] // documentation missing in model
|
2444 + | pub fn length_set_pattern_string_header(
|
2445 + | mut self,
|
2446 + | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
2447 + | ) -> Self {
|
2448 + | self.length_set_pattern_string_header = input;
|
2449 + | self
|
3157 2450 | }
|
3158 - | impl ::std::fmt::Display for ConstraintViolation {
|
3159 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3160 - | match self {
|
3161 - | ConstraintViolation::Nested(_) => write!(f, "constraint violation occurred building member `nested` when building `ConstrainedRecursiveShapesOperationInput`"),
|
3162 - | ConstraintViolation::MissingRecursiveList => write!(f, "`recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`"),
|
3163 - | ConstraintViolation::RecursiveList(_) => write!(f, "constraint violation occurred building member `recursive_list` when building `ConstrainedRecursiveShapesOperationInput`"),
|
2451 + | #[allow(missing_docs)] // documentation missing in model
|
2452 + | pub fn range_byte_set_header(
|
2453 + | mut self,
|
2454 + | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
2455 + | ) -> Self {
|
2456 + | self.range_byte_set_header = input;
|
2457 + | self
|
3164 2458 | }
|
2459 + | #[allow(missing_docs)] // documentation missing in model
|
2460 + | pub fn range_short_set_header(
|
2461 + | mut self,
|
2462 + | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
2463 + | ) -> Self {
|
2464 + | self.range_short_set_header = input;
|
2465 + | self
|
3165 2466 | }
|
2467 + | #[allow(missing_docs)] // documentation missing in model
|
2468 + | pub fn range_integer_set_header(
|
2469 + | mut self,
|
2470 + | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
2471 + | ) -> Self {
|
2472 + | self.range_integer_set_header = input;
|
2473 + | self
|
3166 2474 | }
|
3167 - | impl ::std::error::Error for ConstraintViolation {}
|
3168 - | impl ConstraintViolation {
|
3169 - | pub(crate) fn as_validation_exception_field(
|
3170 - | self,
|
3171 - | path: ::std::string::String,
|
3172 - | ) -> crate::model::ValidationExceptionField {
|
3173 - | match self {
|
3174 - | ConstraintViolation::Nested(inner) => inner.as_validation_exception_field(path + "/nested"),
|
3175 - | ConstraintViolation::MissingRecursiveList => crate::model::ValidationExceptionField {
|
3176 - | message: format!("Value at '{}/recursiveList' failed to satisfy constraint: Member must not be null", path),
|
3177 - | path: path + "/recursiveList",
|
3178 - | },
|
3179 - | ConstraintViolation::RecursiveList(inner) => inner.as_validation_exception_field(path + "/recursiveList"),
|
2475 + | #[allow(missing_docs)] // documentation missing in model
|
2476 + | pub fn range_long_set_header(
|
2477 + | mut self,
|
2478 + | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
2479 + | ) -> Self {
|
2480 + | self.range_long_set_header = input;
|
2481 + | self
|
3180 2482 | }
|
2483 + | #[allow(missing_docs)] // documentation missing in model
|
2484 + | pub fn range_byte_list_header(
|
2485 + | mut self,
|
2486 + | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
2487 + | ) -> Self {
|
2488 + | self.range_byte_list_header = input;
|
2489 + | self
|
3181 2490 | }
|
2491 + | #[allow(missing_docs)] // documentation missing in model
|
2492 + | pub fn range_short_list_header(
|
2493 + | mut self,
|
2494 + | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
2495 + | ) -> Self {
|
2496 + | self.range_short_list_header = input;
|
2497 + | self
|
3182 2498 | }
|
3183 - | impl ::std::convert::From<ConstraintViolation>
|
3184 - | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3185 - | {
|
3186 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3187 - | let first_validation_exception_field =
|
3188 - | constraint_violation.as_validation_exception_field("".to_owned());
|
3189 - | let validation_exception = crate::error::ValidationException {
|
3190 - | message: format!(
|
3191 - | "1 validation error detected. {}",
|
3192 - | &first_validation_exception_field.message
|
3193 - | ),
|
3194 - | field_list: Some(vec![first_validation_exception_field]),
|
3195 - | };
|
3196 - | Self::ConstraintViolation(
|
3197 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
3198 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
3199 - | )
|
2499 + | #[allow(missing_docs)] // documentation missing in model
|
2500 + | pub fn range_integer_list_header(
|
2501 + | mut self,
|
2502 + | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
2503 + | ) -> Self {
|
2504 + | self.range_integer_list_header = input;
|
2505 + | self
|
3200 2506 | }
|
2507 + | #[allow(missing_docs)] // documentation missing in model
|
2508 + | pub fn range_long_list_header(
|
2509 + | mut self,
|
2510 + | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
2511 + | ) -> Self {
|
2512 + | self.range_long_list_header = input;
|
2513 + | self
|
3201 2514 | }
|
3202 - | impl ::std::convert::From<Builder>
|
3203 - | for crate::constrained::MaybeConstrained<
|
3204 - | crate::input::ConstrainedRecursiveShapesOperationInput,
|
3205 - | >
|
3206 - | {
|
3207 - | fn from(builder: Builder) -> Self {
|
3208 - | Self::Unconstrained(builder)
|
2515 + | #[allow(missing_docs)] // documentation missing in model
|
2516 + | pub fn length_string_query(
|
2517 + | mut self,
|
2518 + | input: ::std::option::Option<::std::string::String>,
|
2519 + | ) -> Self {
|
2520 + | self.length_string_query = input;
|
2521 + | self
|
3209 2522 | }
|
2523 + | #[allow(missing_docs)] // documentation missing in model
|
2524 + | pub fn range_byte_query(mut self, input: i8) -> Self {
|
2525 + | self.range_byte_query = Some(input);
|
2526 + | self
|
3210 2527 | }
|
3211 - | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedRecursiveShapesOperationInput {
|
3212 - | type Error = ConstraintViolation;
|
3213 - |
|
3214 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3215 - | builder.build()
|
2528 + | #[allow(missing_docs)] // documentation missing in model
|
2529 + | pub fn range_short_query(mut self, input: i16) -> Self {
|
2530 + | self.range_short_query = Some(input);
|
2531 + | self
|
3216 2532 | }
|
2533 + | #[allow(missing_docs)] // documentation missing in model
|
2534 + | pub fn range_integer_query(mut self, input: i32) -> Self {
|
2535 + | self.range_integer_query = Some(input);
|
2536 + | self
|
3217 2537 | }
|
3218 - | /// A builder for [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
3219 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3220 - | pub(crate) struct Builder {
|
3221 - | pub(crate) nested: ::std::option::Option<
|
3222 - | crate::constrained::MaybeConstrained<crate::model::RecursiveShapesInputOutputNested1>,
|
3223 - | >,
|
3224 - | pub(crate) recursive_list: ::std::option::Option<
|
3225 - | crate::constrained::MaybeConstrained<
|
3226 - | crate::constrained::recursive_list_constrained::RecursiveListConstrained,
|
3227 - | >,
|
3228 - | >,
|
2538 + | #[allow(missing_docs)] // documentation missing in model
|
2539 + | pub fn range_long_query(mut self, input: i64) -> Self {
|
2540 + | self.range_long_query = Some(input);
|
2541 + | self
|
3229 2542 | }
|
3230 - | impl Builder {
|
3231 2543 | #[allow(missing_docs)] // documentation missing in model
|
3232 - | pub(crate) fn set_nested(
|
2544 + | pub fn enum_string_query(
|
3233 2545 | mut self,
|
3234 - | input: Option<
|
3235 - | impl ::std::convert::Into<
|
3236 - | crate::constrained::MaybeConstrained<
|
3237 - | crate::model::RecursiveShapesInputOutputNested1,
|
3238 - | >,
|
3239 - | >,
|
3240 - | >,
|
2546 + | input: ::std::option::Option<crate::model::EnumString>,
|
3241 2547 | ) -> Self {
|
3242 - | self.nested = input.map(|v| v.into());
|
2548 + | self.enum_string_query = input;
|
3243 2549 | self
|
3244 2550 | }
|
3245 2551 | #[allow(missing_docs)] // documentation missing in model
|
3246 - | pub(crate) fn set_recursive_list(
|
2552 + | pub fn length_string_list_query(
|
3247 2553 | mut self,
|
3248 - | input: impl ::std::convert::Into<
|
3249 - | crate::constrained::MaybeConstrained<
|
3250 - | crate::constrained::recursive_list_constrained::RecursiveListConstrained,
|
3251 - | >,
|
3252 - | >,
|
2554 + | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
3253 2555 | ) -> Self {
|
3254 - | self.recursive_list = Some(input.into());
|
2556 + | self.length_string_list_query = input;
|
3255 2557 | self
|
3256 2558 | }
|
3257 - | /// Consumes the builder and constructs a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
3258 - | ///
|
3259 - | /// The builder fails to construct a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput) if a [`ConstraintViolation`] occurs.
|
3260 - | ///
|
3261 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
3262 - | pub fn build(
|
3263 - | self,
|
3264 - | ) -> Result<crate::input::ConstrainedRecursiveShapesOperationInput, ConstraintViolation>
|
3265 - | {
|
3266 - | self.build_enforcing_all_constraints()
|
3267 - | }
|
3268 - | fn build_enforcing_all_constraints(
|
3269 - | self,
|
3270 - | ) -> Result<crate::input::ConstrainedRecursiveShapesOperationInput, ConstraintViolation>
|
3271 - | {
|
3272 - | Ok(crate::input::ConstrainedRecursiveShapesOperationInput {
|
3273 - | nested: self
|
3274 - | .nested
|
3275 - | .map(|v| match v {
|
3276 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3277 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3278 - | })
|
3279 - | .map(|res| res.map_err(ConstraintViolation::Nested))
|
3280 - | .transpose()?,
|
3281 - | recursive_list: self
|
3282 - | .recursive_list
|
3283 - | .map(|v| match v {
|
3284 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3285 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3286 - | })
|
3287 - | .map(|res| {
|
3288 - | res.map(|v| v.into())
|
3289 - | .map_err(ConstraintViolation::RecursiveList)
|
3290 - | })
|
3291 - | .transpose()?
|
3292 - | .ok_or(ConstraintViolation::MissingRecursiveList)?,
|
3293 - | })
|
2559 + | #[allow(missing_docs)] // documentation missing in model
|
2560 + | pub fn length_list_pattern_string_query(
|
2561 + | mut self,
|
2562 + | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
2563 + | ) -> Self {
|
2564 + | self.length_list_pattern_string_query = input;
|
2565 + | self
|
3294 2566 | }
|
2567 + | #[allow(missing_docs)] // documentation missing in model
|
2568 + | pub fn length_string_set_query(
|
2569 + | mut self,
|
2570 + | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
2571 + | ) -> Self {
|
2572 + | self.length_string_set_query = input;
|
2573 + | self
|
3295 2574 | }
|
3296 - | }
|
3297 - | /// See [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
3298 - | pub mod constrained_recursive_shapes_operation_input {
|
3299 - |
|
3300 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3301 - | /// Holds one variant for each of the ways the builder can fail.
|
3302 - | #[allow(clippy::enum_variant_names)]
|
3303 - | pub enum ConstraintViolation {
|
3304 - | /// `recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`.
|
3305 - | MissingRecursiveList,
|
2575 + | #[allow(missing_docs)] // documentation missing in model
|
2576 + | pub fn range_byte_list_query(
|
2577 + | mut self,
|
2578 + | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
2579 + | ) -> Self {
|
2580 + | self.range_byte_list_query = input;
|
2581 + | self
|
3306 2582 | }
|
3307 - | impl ::std::fmt::Display for ConstraintViolation {
|
3308 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3309 - | match self {
|
3310 - | ConstraintViolation::MissingRecursiveList => write!(f, "`recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`"),
|
2583 + | #[allow(missing_docs)] // documentation missing in model
|
2584 + | pub fn range_short_list_query(
|
2585 + | mut self,
|
2586 + | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
2587 + | ) -> Self {
|
2588 + | self.range_short_list_query = input;
|
2589 + | self
|
3311 2590 | }
|
2591 + | #[allow(missing_docs)] // documentation missing in model
|
2592 + | pub fn range_integer_list_query(
|
2593 + | mut self,
|
2594 + | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
2595 + | ) -> Self {
|
2596 + | self.range_integer_list_query = input;
|
2597 + | self
|
3312 2598 | }
|
2599 + | #[allow(missing_docs)] // documentation missing in model
|
2600 + | pub fn range_long_list_query(
|
2601 + | mut self,
|
2602 + | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
2603 + | ) -> Self {
|
2604 + | self.range_long_list_query = input;
|
2605 + | self
|
3313 2606 | }
|
3314 - | impl ::std::error::Error for ConstraintViolation {}
|
3315 - | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedRecursiveShapesOperationInput {
|
3316 - | type Error = ConstraintViolation;
|
3317 - |
|
3318 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3319 - | builder.build()
|
2607 + | #[allow(missing_docs)] // documentation missing in model
|
2608 + | pub fn range_byte_set_query(
|
2609 + | mut self,
|
2610 + | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
2611 + | ) -> Self {
|
2612 + | self.range_byte_set_query = input;
|
2613 + | self
|
3320 2614 | }
|
2615 + | #[allow(missing_docs)] // documentation missing in model
|
2616 + | pub fn range_short_set_query(
|
2617 + | mut self,
|
2618 + | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
2619 + | ) -> Self {
|
2620 + | self.range_short_set_query = input;
|
2621 + | self
|
3321 2622 | }
|
3322 - | /// A builder for [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
3323 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3324 - | pub struct Builder {
|
3325 - | pub(crate) nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
3326 - | pub(crate) recursive_list:
|
3327 - | ::std::option::Option<::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>>,
|
2623 + | #[allow(missing_docs)] // documentation missing in model
|
2624 + | pub fn range_integer_set_query(
|
2625 + | mut self,
|
2626 + | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
2627 + | ) -> Self {
|
2628 + | self.range_integer_set_query = input;
|
2629 + | self
|
3328 2630 | }
|
3329 - | impl Builder {
|
3330 2631 | #[allow(missing_docs)] // documentation missing in model
|
3331 - | pub fn nested(
|
2632 + | pub fn range_long_set_query(
|
3332 2633 | mut self,
|
3333 - | input: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
2634 + | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
3334 2635 | ) -> Self {
|
3335 - | self.nested = input;
|
2636 + | self.range_long_set_query = input;
|
3336 2637 | self
|
3337 2638 | }
|
3338 2639 | #[allow(missing_docs)] // documentation missing in model
|
3339 - | pub fn recursive_list(
|
2640 + | pub fn enum_string_list_query(
|
3340 2641 | mut self,
|
3341 - | input: ::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>,
|
2642 + | input: ::std::option::Option<::std::vec::Vec<crate::model::EnumString>>,
|
3342 2643 | ) -> Self {
|
3343 - | self.recursive_list = Some(input);
|
2644 + | self.enum_string_list_query = input;
|
3344 2645 | self
|
3345 2646 | }
|
3346 - | /// Consumes the builder and constructs a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
2647 + | /// Consumes the builder and constructs a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
3347 2648 | ///
|
3348 - | /// The builder fails to construct a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput) if you do not provide a value for all non-`Option`al members.
|
2649 + | /// The builder fails to construct a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput) if you do not provide a value for all non-`Option`al members.
|
3349 2650 | ///
|
3350 2651 | pub fn build(
|
3351 2652 | self,
|
3352 - | ) -> Result<crate::input::ConstrainedRecursiveShapesOperationInput, ConstraintViolation>
|
2653 + | ) -> Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ConstraintViolation>
|
3353 2654 | {
|
3354 2655 | self.build_enforcing_required_and_enum_traits()
|
3355 2656 | }
|
3356 2657 | fn build_enforcing_required_and_enum_traits(
|
3357 2658 | self,
|
3358 - | ) -> Result<crate::input::ConstrainedRecursiveShapesOperationInput, ConstraintViolation>
|
2659 + | ) -> Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ConstraintViolation>
|
3359 2660 | {
|
3360 - | Ok(crate::input::ConstrainedRecursiveShapesOperationInput {
|
3361 - | nested: self.nested,
|
3362 - | recursive_list: self
|
3363 - | .recursive_list
|
3364 - | .ok_or(ConstraintViolation::MissingRecursiveList)?,
|
2661 + | Ok(crate::input::ConstrainedHttpBoundShapesOperationInput {
|
2662 + | length_string_label: self
|
2663 + | .length_string_label
|
2664 + | .ok_or(ConstraintViolation::MissingLengthStringLabel)?,
|
2665 + | range_integer_label: self.range_integer_label.unwrap_or(0i32),
|
2666 + | range_short_label: self.range_short_label.unwrap_or(0i16),
|
2667 + | range_long_label: self.range_long_label.unwrap_or(0i64),
|
2668 + | range_byte_label: self.range_byte_label.unwrap_or(0i8),
|
2669 + | enum_string_label: self
|
2670 + | .enum_string_label
|
2671 + | .ok_or(ConstraintViolation::MissingEnumStringLabel)?,
|
2672 + | length_string_header_map: self
|
2673 + | .length_string_header_map
|
2674 + | .ok_or(ConstraintViolation::MissingLengthStringHeaderMap)?,
|
2675 + | length_string_header: self.length_string_header,
|
2676 + | range_integer_header: self.range_integer_header.unwrap_or(0i32),
|
2677 + | range_short_header: self.range_short_header.unwrap_or(0i16),
|
2678 + | range_long_header: self.range_long_header.unwrap_or(0i64),
|
2679 + | range_byte_header: self.range_byte_header.unwrap_or(0i8),
|
2680 + | length_string_set_header: self.length_string_set_header,
|
2681 + | list_length_string_header: self.list_length_string_header,
|
2682 + | length_list_pattern_string_header: self.length_list_pattern_string_header,
|
2683 + | length_set_pattern_string_header: self.length_set_pattern_string_header,
|
2684 + | range_byte_set_header: self.range_byte_set_header,
|
2685 + | range_short_set_header: self.range_short_set_header,
|
2686 + | range_integer_set_header: self.range_integer_set_header,
|
2687 + | range_long_set_header: self.range_long_set_header,
|
2688 + | range_byte_list_header: self.range_byte_list_header,
|
2689 + | range_short_list_header: self.range_short_list_header,
|
2690 + | range_integer_list_header: self.range_integer_list_header,
|
2691 + | range_long_list_header: self.range_long_list_header,
|
2692 + | length_string_query: self.length_string_query,
|
2693 + | range_byte_query: self.range_byte_query.unwrap_or(0i8),
|
2694 + | range_short_query: self.range_short_query.unwrap_or(0i16),
|
2695 + | range_integer_query: self.range_integer_query.unwrap_or(0i32),
|
2696 + | range_long_query: self.range_long_query.unwrap_or(0i64),
|
2697 + | enum_string_query: self.enum_string_query,
|
2698 + | length_string_list_query: self.length_string_list_query,
|
2699 + | length_list_pattern_string_query: self.length_list_pattern_string_query,
|
2700 + | length_string_set_query: self.length_string_set_query,
|
2701 + | range_byte_list_query: self.range_byte_list_query,
|
2702 + | range_short_list_query: self.range_short_list_query,
|
2703 + | range_integer_list_query: self.range_integer_list_query,
|
2704 + | range_long_list_query: self.range_long_list_query,
|
2705 + | range_byte_set_query: self.range_byte_set_query,
|
2706 + | range_short_set_query: self.range_short_set_query,
|
2707 + | range_integer_set_query: self.range_integer_set_query,
|
2708 + | range_long_set_query: self.range_long_set_query,
|
2709 + | enum_string_list_query: self.enum_string_list_query,
|
3365 2710 | })
|
3366 2711 | }
|
3367 2712 | }
|
3368 2713 | }
|
3369 2714 | /// See [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
3370 2715 | pub(crate) mod constrained_http_payload_bound_shape_operation_input_internal {
|
3371 2716 |
|
3372 2717 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3373 2718 | /// Holds one variant for each of the ways the builder can fail.
|
3374 2719 | #[non_exhaustive]
|
3543 2888 | Ok(
|
3544 2889 | crate::input::ConstrainedHttpPayloadBoundShapeOperationInput {
|
3545 2890 | http_payload_bound_constrained_shape: self
|
3546 2891 | .http_payload_bound_constrained_shape
|
3547 2892 | .ok_or(ConstraintViolation::MissingHttpPayloadBoundConstrainedShape)?,
|
3548 2893 | },
|
3549 2894 | )
|
3550 2895 | }
|
3551 2896 | }
|
3552 2897 | }
|
3553 - | /// See [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
3554 - | pub(crate) mod constrained_http_bound_shapes_operation_input_internal {
|
2898 + | /// See [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
2899 + | pub(crate) mod constrained_recursive_shapes_operation_input_internal {
|
3555 2900 |
|
3556 2901 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3557 2902 | /// Holds one variant for each of the ways the builder can fail.
|
3558 2903 | #[non_exhaustive]
|
3559 2904 | #[allow(clippy::enum_variant_names)]
|
3560 2905 | pub(crate) enum ConstraintViolation {
|
3561 - | /// `length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
3562 - | MissingLengthStringLabel,
|
3563 - | /// Constraint violation occurred building member `length_string_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3564 - | #[doc(hidden)]
|
3565 - | LengthStringLabel(crate::model::length_string_internal::ConstraintViolation),
|
3566 - | /// Constraint violation occurred building member `range_integer_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3567 - | #[doc(hidden)]
|
3568 - | RangeIntegerLabel(crate::model::range_integer_internal::ConstraintViolation),
|
3569 - | /// Constraint violation occurred building member `range_short_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3570 - | #[doc(hidden)]
|
3571 - | RangeShortLabel(crate::model::range_short_internal::ConstraintViolation),
|
3572 - | /// Constraint violation occurred building member `range_long_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3573 - | #[doc(hidden)]
|
3574 - | RangeLongLabel(crate::model::range_long_internal::ConstraintViolation),
|
3575 - | /// Constraint violation occurred building member `range_byte_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3576 - | #[doc(hidden)]
|
3577 - | RangeByteLabel(crate::model::range_byte_internal::ConstraintViolation),
|
3578 - | /// `enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
3579 - | MissingEnumStringLabel,
|
3580 - | /// Constraint violation occurred building member `enum_string_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3581 - | #[doc(hidden)]
|
3582 - | EnumStringLabel(crate::model::enum_string_internal::ConstraintViolation),
|
3583 - | /// `length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
3584 - | MissingLengthStringHeaderMap,
|
3585 - | /// Constraint violation occurred building member `length_string_header_map` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3586 - | #[doc(hidden)]
|
3587 - | LengthStringHeaderMap(crate::model::map_of_length_string_internal::ConstraintViolation),
|
3588 - | /// Constraint violation occurred building member `length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3589 - | #[doc(hidden)]
|
3590 - | LengthStringHeader(crate::model::length_string_internal::ConstraintViolation),
|
3591 - | /// Constraint violation occurred building member `range_integer_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3592 - | #[doc(hidden)]
|
3593 - | RangeIntegerHeader(crate::model::range_integer_internal::ConstraintViolation),
|
3594 - | /// Constraint violation occurred building member `range_short_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3595 - | #[doc(hidden)]
|
3596 - | RangeShortHeader(crate::model::range_short_internal::ConstraintViolation),
|
3597 - | /// Constraint violation occurred building member `range_long_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3598 - | #[doc(hidden)]
|
3599 - | RangeLongHeader(crate::model::range_long_internal::ConstraintViolation),
|
3600 - | /// Constraint violation occurred building member `range_byte_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3601 - | #[doc(hidden)]
|
3602 - | RangeByteHeader(crate::model::range_byte_internal::ConstraintViolation),
|
3603 - | /// Constraint violation occurred building member `length_string_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3604 - | #[doc(hidden)]
|
3605 - | LengthStringSetHeader(crate::model::set_of_length_string_internal::ConstraintViolation),
|
3606 - | /// Constraint violation occurred building member `list_length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3607 - | #[doc(hidden)]
|
3608 - | ListLengthStringHeader(crate::model::list_of_length_string_internal::ConstraintViolation),
|
3609 - | /// Constraint violation occurred building member `length_list_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3610 - | #[doc(hidden)]
|
3611 - | LengthListPatternStringHeader(
|
3612 - | crate::model::length_list_of_pattern_string_internal::ConstraintViolation,
|
3613 - | ),
|
3614 - | /// Constraint violation occurred building member `length_set_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3615 - | #[doc(hidden)]
|
3616 - | LengthSetPatternStringHeader(
|
3617 - | crate::model::length_set_of_pattern_string_internal::ConstraintViolation,
|
3618 - | ),
|
3619 - | /// Constraint violation occurred building member `range_byte_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3620 - | #[doc(hidden)]
|
3621 - | RangeByteSetHeader(crate::model::set_of_range_byte_internal::ConstraintViolation),
|
3622 - | /// Constraint violation occurred building member `range_short_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3623 - | #[doc(hidden)]
|
3624 - | RangeShortSetHeader(crate::model::set_of_range_short_internal::ConstraintViolation),
|
3625 - | /// Constraint violation occurred building member `range_integer_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3626 - | #[doc(hidden)]
|
3627 - | RangeIntegerSetHeader(crate::model::set_of_range_integer_internal::ConstraintViolation),
|
3628 - | /// Constraint violation occurred building member `range_long_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3629 - | #[doc(hidden)]
|
3630 - | RangeLongSetHeader(crate::model::set_of_range_long_internal::ConstraintViolation),
|
3631 - | /// Constraint violation occurred building member `range_byte_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3632 - | #[doc(hidden)]
|
3633 - | RangeByteListHeader(crate::model::list_of_range_byte_internal::ConstraintViolation),
|
3634 - | /// Constraint violation occurred building member `range_short_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3635 - | #[doc(hidden)]
|
3636 - | RangeShortListHeader(crate::model::list_of_range_short_internal::ConstraintViolation),
|
3637 - | /// Constraint violation occurred building member `range_integer_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3638 - | #[doc(hidden)]
|
3639 - | RangeIntegerListHeader(crate::model::list_of_range_integer_internal::ConstraintViolation),
|
3640 - | /// Constraint violation occurred building member `range_long_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3641 - | #[doc(hidden)]
|
3642 - | RangeLongListHeader(crate::model::list_of_range_long_internal::ConstraintViolation),
|
3643 - | /// Constraint violation occurred building member `length_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3644 - | #[doc(hidden)]
|
3645 - | LengthStringQuery(crate::model::length_string_internal::ConstraintViolation),
|
3646 - | /// Constraint violation occurred building member `range_byte_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3647 - | #[doc(hidden)]
|
3648 - | RangeByteQuery(crate::model::range_byte_internal::ConstraintViolation),
|
3649 - | /// Constraint violation occurred building member `range_short_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3650 - | #[doc(hidden)]
|
3651 - | RangeShortQuery(crate::model::range_short_internal::ConstraintViolation),
|
3652 - | /// Constraint violation occurred building member `range_integer_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3653 - | #[doc(hidden)]
|
3654 - | RangeIntegerQuery(crate::model::range_integer_internal::ConstraintViolation),
|
3655 - | /// Constraint violation occurred building member `range_long_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3656 - | #[doc(hidden)]
|
3657 - | RangeLongQuery(crate::model::range_long_internal::ConstraintViolation),
|
3658 - | /// Constraint violation occurred building member `enum_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3659 - | #[doc(hidden)]
|
3660 - | EnumStringQuery(crate::model::enum_string_internal::ConstraintViolation),
|
3661 - | /// Constraint violation occurred building member `length_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3662 - | #[doc(hidden)]
|
3663 - | LengthStringListQuery(crate::model::list_of_length_string_internal::ConstraintViolation),
|
3664 - | /// Constraint violation occurred building member `length_list_pattern_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3665 - | #[doc(hidden)]
|
3666 - | LengthListPatternStringQuery(
|
3667 - | crate::model::length_list_of_pattern_string_internal::ConstraintViolation,
|
3668 - | ),
|
3669 - | /// Constraint violation occurred building member `length_string_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3670 - | #[doc(hidden)]
|
3671 - | LengthStringSetQuery(crate::model::set_of_length_string_internal::ConstraintViolation),
|
3672 - | /// Constraint violation occurred building member `range_byte_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3673 - | #[doc(hidden)]
|
3674 - | RangeByteListQuery(crate::model::list_of_range_byte_internal::ConstraintViolation),
|
3675 - | /// Constraint violation occurred building member `range_short_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3676 - | #[doc(hidden)]
|
3677 - | RangeShortListQuery(crate::model::list_of_range_short_internal::ConstraintViolation),
|
3678 - | /// Constraint violation occurred building member `range_integer_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3679 - | #[doc(hidden)]
|
3680 - | RangeIntegerListQuery(crate::model::list_of_range_integer_internal::ConstraintViolation),
|
3681 - | /// Constraint violation occurred building member `range_long_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3682 - | #[doc(hidden)]
|
3683 - | RangeLongListQuery(crate::model::list_of_range_long_internal::ConstraintViolation),
|
3684 - | /// Constraint violation occurred building member `range_byte_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3685 - | #[doc(hidden)]
|
3686 - | RangeByteSetQuery(crate::model::set_of_range_byte_internal::ConstraintViolation),
|
3687 - | /// Constraint violation occurred building member `range_short_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3688 - | #[doc(hidden)]
|
3689 - | RangeShortSetQuery(crate::model::set_of_range_short_internal::ConstraintViolation),
|
3690 - | /// Constraint violation occurred building member `range_integer_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3691 - | #[doc(hidden)]
|
3692 - | RangeIntegerSetQuery(crate::model::set_of_range_integer_internal::ConstraintViolation),
|
3693 - | /// Constraint violation occurred building member `range_long_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
3694 - | #[doc(hidden)]
|
3695 - | RangeLongSetQuery(crate::model::set_of_range_long_internal::ConstraintViolation),
|
3696 - | /// Constraint violation occurred building member `enum_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2906 + | /// Constraint violation occurred building member `nested` when building `ConstrainedRecursiveShapesOperationInput`.
|
3697 2907 | #[doc(hidden)]
|
3698 - | EnumStringListQuery(crate::model::list_of_enum_string_internal::ConstraintViolation),
|
3699 - | }
|
3700 - | impl ::std::fmt::Display for ConstraintViolation {
|
3701 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3702 - | match self {
|
3703 - | ConstraintViolation::MissingLengthStringLabel => write!(f, "`length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3704 - | ConstraintViolation::LengthStringLabel(_) => write!(f, "constraint violation occurred building member `length_string_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3705 - | ConstraintViolation::RangeIntegerLabel(_) => write!(f, "constraint violation occurred building member `range_integer_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3706 - | ConstraintViolation::RangeShortLabel(_) => write!(f, "constraint violation occurred building member `range_short_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3707 - | ConstraintViolation::RangeLongLabel(_) => write!(f, "constraint violation occurred building member `range_long_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3708 - | ConstraintViolation::RangeByteLabel(_) => write!(f, "constraint violation occurred building member `range_byte_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3709 - | ConstraintViolation::MissingEnumStringLabel => write!(f, "`enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3710 - | ConstraintViolation::EnumStringLabel(_) => write!(f, "constraint violation occurred building member `enum_string_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3711 - | ConstraintViolation::MissingLengthStringHeaderMap => write!(f, "`length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3712 - | ConstraintViolation::LengthStringHeaderMap(_) => write!(f, "constraint violation occurred building member `length_string_header_map` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3713 - | ConstraintViolation::LengthStringHeader(_) => write!(f, "constraint violation occurred building member `length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3714 - | ConstraintViolation::RangeIntegerHeader(_) => write!(f, "constraint violation occurred building member `range_integer_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3715 - | ConstraintViolation::RangeShortHeader(_) => write!(f, "constraint violation occurred building member `range_short_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3716 - | ConstraintViolation::RangeLongHeader(_) => write!(f, "constraint violation occurred building member `range_long_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3717 - | ConstraintViolation::RangeByteHeader(_) => write!(f, "constraint violation occurred building member `range_byte_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3718 - | ConstraintViolation::LengthStringSetHeader(_) => write!(f, "constraint violation occurred building member `length_string_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3719 - | ConstraintViolation::ListLengthStringHeader(_) => write!(f, "constraint violation occurred building member `list_length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3720 - | ConstraintViolation::LengthListPatternStringHeader(_) => write!(f, "constraint violation occurred building member `length_list_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3721 - | ConstraintViolation::LengthSetPatternStringHeader(_) => write!(f, "constraint violation occurred building member `length_set_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3722 - | ConstraintViolation::RangeByteSetHeader(_) => write!(f, "constraint violation occurred building member `range_byte_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3723 - | ConstraintViolation::RangeShortSetHeader(_) => write!(f, "constraint violation occurred building member `range_short_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3724 - | ConstraintViolation::RangeIntegerSetHeader(_) => write!(f, "constraint violation occurred building member `range_integer_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3725 - | ConstraintViolation::RangeLongSetHeader(_) => write!(f, "constraint violation occurred building member `range_long_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3726 - | ConstraintViolation::RangeByteListHeader(_) => write!(f, "constraint violation occurred building member `range_byte_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3727 - | ConstraintViolation::RangeShortListHeader(_) => write!(f, "constraint violation occurred building member `range_short_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3728 - | ConstraintViolation::RangeIntegerListHeader(_) => write!(f, "constraint violation occurred building member `range_integer_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3729 - | ConstraintViolation::RangeLongListHeader(_) => write!(f, "constraint violation occurred building member `range_long_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3730 - | ConstraintViolation::LengthStringQuery(_) => write!(f, "constraint violation occurred building member `length_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3731 - | ConstraintViolation::RangeByteQuery(_) => write!(f, "constraint violation occurred building member `range_byte_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3732 - | ConstraintViolation::RangeShortQuery(_) => write!(f, "constraint violation occurred building member `range_short_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3733 - | ConstraintViolation::RangeIntegerQuery(_) => write!(f, "constraint violation occurred building member `range_integer_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3734 - | ConstraintViolation::RangeLongQuery(_) => write!(f, "constraint violation occurred building member `range_long_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3735 - | ConstraintViolation::EnumStringQuery(_) => write!(f, "constraint violation occurred building member `enum_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3736 - | ConstraintViolation::LengthStringListQuery(_) => write!(f, "constraint violation occurred building member `length_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3737 - | ConstraintViolation::LengthListPatternStringQuery(_) => write!(f, "constraint violation occurred building member `length_list_pattern_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3738 - | ConstraintViolation::LengthStringSetQuery(_) => write!(f, "constraint violation occurred building member `length_string_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3739 - | ConstraintViolation::RangeByteListQuery(_) => write!(f, "constraint violation occurred building member `range_byte_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3740 - | ConstraintViolation::RangeShortListQuery(_) => write!(f, "constraint violation occurred building member `range_short_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3741 - | ConstraintViolation::RangeIntegerListQuery(_) => write!(f, "constraint violation occurred building member `range_integer_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3742 - | ConstraintViolation::RangeLongListQuery(_) => write!(f, "constraint violation occurred building member `range_long_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3743 - | ConstraintViolation::RangeByteSetQuery(_) => write!(f, "constraint violation occurred building member `range_byte_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3744 - | ConstraintViolation::RangeShortSetQuery(_) => write!(f, "constraint violation occurred building member `range_short_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3745 - | ConstraintViolation::RangeIntegerSetQuery(_) => write!(f, "constraint violation occurred building member `range_integer_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3746 - | ConstraintViolation::RangeLongSetQuery(_) => write!(f, "constraint violation occurred building member `range_long_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3747 - | ConstraintViolation::EnumStringListQuery(_) => write!(f, "constraint violation occurred building member `enum_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3748 - | }
|
3749 - | }
|
3750 - | }
|
3751 - | impl ::std::error::Error for ConstraintViolation {}
|
3752 - | impl ConstraintViolation {
|
3753 - | pub(crate) fn as_validation_exception_field(
|
3754 - | self,
|
3755 - | path: ::std::string::String,
|
3756 - | ) -> crate::model::ValidationExceptionField {
|
3757 - | match self {
|
3758 - | ConstraintViolation::MissingLengthStringLabel => crate::model::ValidationExceptionField {
|
3759 - | message: format!("Value at '{}/lengthStringLabel' failed to satisfy constraint: Member must not be null", path),
|
3760 - | path: path + "/lengthStringLabel",
|
3761 - | },
|
3762 - | ConstraintViolation::LengthStringLabel(inner) => inner.as_validation_exception_field(path + "/lengthStringLabel"),
|
3763 - | ConstraintViolation::RangeIntegerLabel(inner) => inner.as_validation_exception_field(path + "/rangeIntegerLabel"),
|
3764 - | ConstraintViolation::RangeShortLabel(inner) => inner.as_validation_exception_field(path + "/rangeShortLabel"),
|
3765 - | ConstraintViolation::RangeLongLabel(inner) => inner.as_validation_exception_field(path + "/rangeLongLabel"),
|
3766 - | ConstraintViolation::RangeByteLabel(inner) => inner.as_validation_exception_field(path + "/rangeByteLabel"),
|
3767 - | ConstraintViolation::MissingEnumStringLabel => crate::model::ValidationExceptionField {
|
3768 - | message: format!("Value at '{}/enumStringLabel' failed to satisfy constraint: Member must not be null", path),
|
3769 - | path: path + "/enumStringLabel",
|
3770 - | },
|
3771 - | ConstraintViolation::EnumStringLabel(inner) => inner.as_validation_exception_field(path + "/enumStringLabel"),
|
3772 - | ConstraintViolation::MissingLengthStringHeaderMap => crate::model::ValidationExceptionField {
|
3773 - | message: format!("Value at '{}/lengthStringHeaderMap' failed to satisfy constraint: Member must not be null", path),
|
3774 - | path: path + "/lengthStringHeaderMap",
|
3775 - | },
|
3776 - | ConstraintViolation::LengthStringHeaderMap(inner) => inner.as_validation_exception_field(path + "/lengthStringHeaderMap"),
|
3777 - | ConstraintViolation::LengthStringHeader(inner) => inner.as_validation_exception_field(path + "/lengthStringHeader"),
|
3778 - | ConstraintViolation::RangeIntegerHeader(inner) => inner.as_validation_exception_field(path + "/rangeIntegerHeader"),
|
3779 - | ConstraintViolation::RangeShortHeader(inner) => inner.as_validation_exception_field(path + "/rangeShortHeader"),
|
3780 - | ConstraintViolation::RangeLongHeader(inner) => inner.as_validation_exception_field(path + "/rangeLongHeader"),
|
3781 - | ConstraintViolation::RangeByteHeader(inner) => inner.as_validation_exception_field(path + "/rangeByteHeader"),
|
3782 - | ConstraintViolation::LengthStringSetHeader(inner) => inner.as_validation_exception_field(path + "/lengthStringSetHeader"),
|
3783 - | ConstraintViolation::ListLengthStringHeader(inner) => inner.as_validation_exception_field(path + "/listLengthStringHeader"),
|
3784 - | ConstraintViolation::LengthListPatternStringHeader(inner) => inner.as_validation_exception_field(path + "/lengthListPatternStringHeader"),
|
3785 - | ConstraintViolation::LengthSetPatternStringHeader(inner) => inner.as_validation_exception_field(path + "/lengthSetPatternStringHeader"),
|
3786 - | ConstraintViolation::RangeByteSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeByteSetHeader"),
|
3787 - | ConstraintViolation::RangeShortSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeShortSetHeader"),
|
3788 - | ConstraintViolation::RangeIntegerSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeIntegerSetHeader"),
|
3789 - | ConstraintViolation::RangeLongSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeLongSetHeader"),
|
3790 - | ConstraintViolation::RangeByteListHeader(inner) => inner.as_validation_exception_field(path + "/rangeByteListHeader"),
|
3791 - | ConstraintViolation::RangeShortListHeader(inner) => inner.as_validation_exception_field(path + "/rangeShortListHeader"),
|
3792 - | ConstraintViolation::RangeIntegerListHeader(inner) => inner.as_validation_exception_field(path + "/rangeIntegerListHeader"),
|
3793 - | ConstraintViolation::RangeLongListHeader(inner) => inner.as_validation_exception_field(path + "/rangeLongListHeader"),
|
3794 - | ConstraintViolation::LengthStringQuery(inner) => inner.as_validation_exception_field(path + "/lengthStringQuery"),
|
3795 - | ConstraintViolation::RangeByteQuery(inner) => inner.as_validation_exception_field(path + "/rangeByteQuery"),
|
3796 - | ConstraintViolation::RangeShortQuery(inner) => inner.as_validation_exception_field(path + "/rangeShortQuery"),
|
3797 - | ConstraintViolation::RangeIntegerQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerQuery"),
|
3798 - | ConstraintViolation::RangeLongQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongQuery"),
|
3799 - | ConstraintViolation::EnumStringQuery(inner) => inner.as_validation_exception_field(path + "/enumStringQuery"),
|
3800 - | ConstraintViolation::LengthStringListQuery(inner) => inner.as_validation_exception_field(path + "/lengthStringListQuery"),
|
3801 - | ConstraintViolation::LengthListPatternStringQuery(inner) => inner.as_validation_exception_field(path + "/lengthListPatternStringQuery"),
|
3802 - | ConstraintViolation::LengthStringSetQuery(inner) => inner.as_validation_exception_field(path + "/lengthStringSetQuery"),
|
3803 - | ConstraintViolation::RangeByteListQuery(inner) => inner.as_validation_exception_field(path + "/rangeByteListQuery"),
|
3804 - | ConstraintViolation::RangeShortListQuery(inner) => inner.as_validation_exception_field(path + "/rangeShortListQuery"),
|
3805 - | ConstraintViolation::RangeIntegerListQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerListQuery"),
|
3806 - | ConstraintViolation::RangeLongListQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongListQuery"),
|
3807 - | ConstraintViolation::RangeByteSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeByteSetQuery"),
|
3808 - | ConstraintViolation::RangeShortSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeShortSetQuery"),
|
3809 - | ConstraintViolation::RangeIntegerSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerSetQuery"),
|
3810 - | ConstraintViolation::RangeLongSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongSetQuery"),
|
3811 - | ConstraintViolation::EnumStringListQuery(inner) => inner.as_validation_exception_field(path + "/enumStringListQuery"),
|
2908 + | Nested(crate::model::recursive_shapes_input_output_nested1_internal::ConstraintViolation),
|
2909 + | /// `recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`.
|
2910 + | MissingRecursiveList,
|
2911 + | /// Constraint violation occurred building member `recursive_list` when building `ConstrainedRecursiveShapesOperationInput`.
|
2912 + | #[doc(hidden)]
|
2913 + | RecursiveList(crate::model::recursive_list_internal::ConstraintViolation),
|
2914 + | }
|
2915 + | impl ::std::fmt::Display for ConstraintViolation {
|
2916 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2917 + | match self {
|
2918 + | ConstraintViolation::Nested(_) => write!(f, "constraint violation occurred building member `nested` when building `ConstrainedRecursiveShapesOperationInput`"),
|
2919 + | ConstraintViolation::MissingRecursiveList => write!(f, "`recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`"),
|
2920 + | ConstraintViolation::RecursiveList(_) => write!(f, "constraint violation occurred building member `recursive_list` when building `ConstrainedRecursiveShapesOperationInput`"),
|
2921 + | }
|
2922 + | }
|
2923 + | }
|
2924 + | impl ::std::error::Error for ConstraintViolation {}
|
2925 + | impl ConstraintViolation {
|
2926 + | pub(crate) fn as_validation_exception_field(
|
2927 + | self,
|
2928 + | path: ::std::string::String,
|
2929 + | ) -> crate::model::ValidationExceptionField {
|
2930 + | match self {
|
2931 + | ConstraintViolation::Nested(inner) => inner.as_validation_exception_field(path + "/nested"),
|
2932 + | ConstraintViolation::MissingRecursiveList => crate::model::ValidationExceptionField {
|
2933 + | message: format!("Value at '{}/recursiveList' failed to satisfy constraint: Member must not be null", path),
|
2934 + | path: path + "/recursiveList",
|
2935 + | },
|
2936 + | ConstraintViolation::RecursiveList(inner) => inner.as_validation_exception_field(path + "/recursiveList"),
|
3812 2937 | }
|
3813 2938 | }
|
3814 2939 | }
|
3815 2940 | impl ::std::convert::From<ConstraintViolation>
|
3816 2941 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3817 2942 | {
|
3818 2943 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3819 2944 | let first_validation_exception_field =
|
3820 2945 | constraint_violation.as_validation_exception_field("".to_owned());
|
3821 2946 | let validation_exception = crate::error::ValidationException {
|
3822 2947 | message: format!(
|
3823 2948 | "1 validation error detected. {}",
|
3824 2949 | &first_validation_exception_field.message
|
3825 2950 | ),
|
3826 2951 | field_list: Some(vec![first_validation_exception_field]),
|
3827 2952 | };
|
3828 2953 | Self::ConstraintViolation(
|
3829 2954 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
3830 2955 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
3831 2956 | )
|
3832 2957 | }
|
3833 2958 | }
|
3834 2959 | impl ::std::convert::From<Builder>
|
3835 2960 | for crate::constrained::MaybeConstrained<
|
3836 - | crate::input::ConstrainedHttpBoundShapesOperationInput,
|
2961 + | crate::input::ConstrainedRecursiveShapesOperationInput,
|
3837 2962 | >
|
3838 2963 | {
|
3839 2964 | fn from(builder: Builder) -> Self {
|
3840 2965 | Self::Unconstrained(builder)
|
3841 2966 | }
|
3842 2967 | }
|
3843 - | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedHttpBoundShapesOperationInput {
|
2968 + | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedRecursiveShapesOperationInput {
|
3844 2969 | type Error = ConstraintViolation;
|
3845 2970 |
|
3846 2971 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3847 2972 | builder.build()
|
3848 2973 | }
|
3849 2974 | }
|
3850 - | /// A builder for [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
3851 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3852 - | pub(crate) struct Builder {
|
3853 - | pub(crate) length_string_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
3854 - | pub(crate) range_integer_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
3855 - | pub(crate) range_short_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
3856 - | pub(crate) range_long_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
3857 - | pub(crate) range_byte_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
3858 - | pub(crate) enum_string_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::EnumString>>,
|
3859 - | pub(crate) length_string_header_map: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>,
|
3860 - | pub(crate) length_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
3861 - | pub(crate) range_integer_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
3862 - | pub(crate) range_short_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
3863 - | pub(crate) range_long_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
3864 - | pub(crate) range_byte_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
3865 - | pub(crate) length_string_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>>,
|
3866 - | pub(crate) list_length_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>,
|
3867 - | pub(crate) length_list_pattern_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>>,
|
3868 - | pub(crate) length_set_pattern_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthSetOfPatternString>>,
|
3869 - | pub(crate) range_byte_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>>,
|
3870 - | pub(crate) range_short_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>>,
|
3871 - | pub(crate) range_integer_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>>,
|
3872 - | pub(crate) range_long_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>>,
|
3873 - | pub(crate) range_byte_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>,
|
3874 - | pub(crate) range_short_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>,
|
3875 - | pub(crate) range_integer_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>,
|
3876 - | pub(crate) range_long_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>,
|
3877 - | pub(crate) length_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
3878 - | pub(crate) range_byte_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
3879 - | pub(crate) range_short_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
3880 - | pub(crate) range_integer_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
3881 - | pub(crate) range_long_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
3882 - | pub(crate) enum_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::EnumString>>,
|
3883 - | pub(crate) length_string_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>,
|
3884 - | pub(crate) length_list_pattern_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>>,
|
3885 - | pub(crate) length_string_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>>,
|
3886 - | pub(crate) range_byte_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>,
|
3887 - | pub(crate) range_short_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>,
|
3888 - | pub(crate) range_integer_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>,
|
3889 - | pub(crate) range_long_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>,
|
3890 - | pub(crate) range_byte_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>>,
|
3891 - | pub(crate) range_short_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>>,
|
3892 - | pub(crate) range_integer_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>>,
|
3893 - | pub(crate) range_long_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>>,
|
3894 - | pub(crate) enum_string_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained>>,
|
3895 - | }
|
3896 - | impl Builder {
|
3897 - | #[allow(missing_docs)] // documentation missing in model
|
3898 - | pub(crate) fn set_length_string_label(
|
3899 - | mut self,
|
3900 - | input: impl ::std::convert::Into<
|
3901 - | crate::constrained::MaybeConstrained<crate::model::LengthString>,
|
3902 - | >,
|
3903 - | ) -> Self {
|
3904 - | self.length_string_label = Some(input.into());
|
3905 - | self
|
3906 - | }
|
3907 - | #[allow(missing_docs)] // documentation missing in model
|
3908 - | pub(crate) fn set_range_integer_label(
|
3909 - | mut self,
|
3910 - | input: impl ::std::convert::Into<
|
3911 - | crate::constrained::MaybeConstrained<crate::model::RangeInteger>,
|
3912 - | >,
|
3913 - | ) -> Self {
|
3914 - | self.range_integer_label = Some(input.into());
|
3915 - | self
|
3916 - | }
|
3917 - | #[allow(missing_docs)] // documentation missing in model
|
3918 - | pub(crate) fn set_range_short_label(
|
3919 - | mut self,
|
3920 - | input: impl ::std::convert::Into<
|
3921 - | crate::constrained::MaybeConstrained<crate::model::RangeShort>,
|
3922 - | >,
|
3923 - | ) -> Self {
|
3924 - | self.range_short_label = Some(input.into());
|
3925 - | self
|
3926 - | }
|
3927 - | #[allow(missing_docs)] // documentation missing in model
|
3928 - | pub(crate) fn set_range_long_label(
|
3929 - | mut self,
|
3930 - | input: impl ::std::convert::Into<
|
3931 - | crate::constrained::MaybeConstrained<crate::model::RangeLong>,
|
3932 - | >,
|
3933 - | ) -> Self {
|
3934 - | self.range_long_label = Some(input.into());
|
3935 - | self
|
3936 - | }
|
3937 - | #[allow(missing_docs)] // documentation missing in model
|
3938 - | pub(crate) fn set_range_byte_label(
|
3939 - | mut self,
|
3940 - | input: impl ::std::convert::Into<
|
3941 - | crate::constrained::MaybeConstrained<crate::model::RangeByte>,
|
3942 - | >,
|
3943 - | ) -> Self {
|
3944 - | self.range_byte_label = Some(input.into());
|
3945 - | self
|
3946 - | }
|
3947 - | #[allow(missing_docs)] // documentation missing in model
|
3948 - | pub(crate) fn set_enum_string_label(
|
3949 - | mut self,
|
3950 - | input: impl ::std::convert::Into<
|
3951 - | crate::constrained::MaybeConstrained<crate::model::EnumString>,
|
3952 - | >,
|
3953 - | ) -> Self {
|
3954 - | self.enum_string_label = Some(input.into());
|
3955 - | self
|
3956 - | }
|
3957 - | #[allow(missing_docs)] // documentation missing in model
|
3958 - | pub(crate) fn set_length_string_header_map(
|
3959 - | mut self,
|
3960 - | input: impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>,
|
3961 - | ) -> Self {
|
3962 - | self.length_string_header_map = Some(input.into());
|
3963 - | self
|
3964 - | }
|
3965 - | #[allow(missing_docs)] // documentation missing in model
|
3966 - | pub(crate) fn set_length_string_header(
|
3967 - | mut self,
|
3968 - | input: Option<
|
3969 - | impl ::std::convert::Into<
|
3970 - | crate::constrained::MaybeConstrained<crate::model::LengthString>,
|
3971 - | >,
|
3972 - | >,
|
3973 - | ) -> Self {
|
3974 - | self.length_string_header = input.map(|v| v.into());
|
3975 - | self
|
3976 - | }
|
3977 - | #[allow(missing_docs)] // documentation missing in model
|
3978 - | pub(crate) fn set_range_integer_header(
|
3979 - | mut self,
|
3980 - | input: impl ::std::convert::Into<
|
3981 - | crate::constrained::MaybeConstrained<crate::model::RangeInteger>,
|
3982 - | >,
|
3983 - | ) -> Self {
|
3984 - | self.range_integer_header = Some(input.into());
|
3985 - | self
|
3986 - | }
|
3987 - | #[allow(missing_docs)] // documentation missing in model
|
3988 - | pub(crate) fn set_range_short_header(
|
3989 - | mut self,
|
3990 - | input: impl ::std::convert::Into<
|
3991 - | crate::constrained::MaybeConstrained<crate::model::RangeShort>,
|
3992 - | >,
|
3993 - | ) -> Self {
|
3994 - | self.range_short_header = Some(input.into());
|
3995 - | self
|
3996 - | }
|
3997 - | #[allow(missing_docs)] // documentation missing in model
|
3998 - | pub(crate) fn set_range_long_header(
|
3999 - | mut self,
|
4000 - | input: impl ::std::convert::Into<
|
4001 - | crate::constrained::MaybeConstrained<crate::model::RangeLong>,
|
4002 - | >,
|
4003 - | ) -> Self {
|
4004 - | self.range_long_header = Some(input.into());
|
4005 - | self
|
4006 - | }
|
4007 - | #[allow(missing_docs)] // documentation missing in model
|
4008 - | pub(crate) fn set_range_byte_header(
|
4009 - | mut self,
|
4010 - | input: impl ::std::convert::Into<
|
4011 - | crate::constrained::MaybeConstrained<crate::model::RangeByte>,
|
4012 - | >,
|
4013 - | ) -> Self {
|
4014 - | self.range_byte_header = Some(input.into());
|
4015 - | self
|
4016 - | }
|
4017 - | #[allow(missing_docs)] // documentation missing in model
|
4018 - | pub(crate) fn set_length_string_set_header(
|
4019 - | mut self,
|
4020 - | input: Option<
|
4021 - | impl ::std::convert::Into<
|
4022 - | crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>,
|
4023 - | >,
|
4024 - | >,
|
4025 - | ) -> Self {
|
4026 - | self.length_string_set_header = input.map(|v| v.into());
|
4027 - | self
|
4028 - | }
|
4029 - | #[allow(missing_docs)] // documentation missing in model
|
4030 - | pub(crate) fn set_list_length_string_header(
|
4031 - | mut self,
|
4032 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>>,
|
4033 - | ) -> Self {
|
4034 - | self.list_length_string_header = input.map(|v| v.into());
|
4035 - | self
|
4036 - | }
|
4037 - | #[allow(missing_docs)] // documentation missing in model
|
4038 - | pub(crate) fn set_length_list_pattern_string_header(
|
4039 - | mut self,
|
4040 - | input: Option<
|
4041 - | impl ::std::convert::Into<
|
4042 - | crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>,
|
4043 - | >,
|
4044 - | >,
|
4045 - | ) -> Self {
|
4046 - | self.length_list_pattern_string_header = input.map(|v| v.into());
|
4047 - | self
|
4048 - | }
|
4049 - | #[allow(missing_docs)] // documentation missing in model
|
4050 - | pub(crate) fn set_length_set_pattern_string_header(
|
4051 - | mut self,
|
4052 - | input: Option<
|
4053 - | impl ::std::convert::Into<
|
4054 - | crate::constrained::MaybeConstrained<crate::model::LengthSetOfPatternString>,
|
4055 - | >,
|
4056 - | >,
|
4057 - | ) -> Self {
|
4058 - | self.length_set_pattern_string_header = input.map(|v| v.into());
|
4059 - | self
|
4060 - | }
|
4061 - | #[allow(missing_docs)] // documentation missing in model
|
4062 - | pub(crate) fn set_range_byte_set_header(
|
4063 - | mut self,
|
4064 - | input: Option<
|
4065 - | impl ::std::convert::Into<
|
4066 - | crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>,
|
4067 - | >,
|
4068 - | >,
|
4069 - | ) -> Self {
|
4070 - | self.range_byte_set_header = input.map(|v| v.into());
|
4071 - | self
|
4072 - | }
|
4073 - | #[allow(missing_docs)] // documentation missing in model
|
4074 - | pub(crate) fn set_range_short_set_header(
|
4075 - | mut self,
|
4076 - | input: Option<
|
4077 - | impl ::std::convert::Into<
|
4078 - | crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>,
|
2975 + | /// A builder for [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
2976 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2977 + | pub(crate) struct Builder {
|
2978 + | pub(crate) nested: ::std::option::Option<
|
2979 + | crate::constrained::MaybeConstrained<crate::model::RecursiveShapesInputOutputNested1>,
|
2980 + | >,
|
2981 + | pub(crate) recursive_list: ::std::option::Option<
|
2982 + | crate::constrained::MaybeConstrained<
|
2983 + | crate::constrained::recursive_list_constrained::RecursiveListConstrained,
|
4079 2984 | >,
|
4080 2985 | >,
|
4081 - | ) -> Self {
|
4082 - | self.range_short_set_header = input.map(|v| v.into());
|
4083 - | self
|
4084 2986 | }
|
2987 + | impl Builder {
|
4085 2988 | #[allow(missing_docs)] // documentation missing in model
|
4086 - | pub(crate) fn set_range_integer_set_header(
|
2989 + | pub(crate) fn set_nested(
|
4087 2990 | mut self,
|
4088 2991 | input: Option<
|
4089 2992 | impl ::std::convert::Into<
|
4090 - | crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>,
|
2993 + | crate::constrained::MaybeConstrained<
|
2994 + | crate::model::RecursiveShapesInputOutputNested1,
|
2995 + | >,
|
4091 2996 | >,
|
4092 2997 | >,
|
4093 2998 | ) -> Self {
|
4094 - | self.range_integer_set_header = input.map(|v| v.into());
|
2999 + | self.nested = input.map(|v| v.into());
|
4095 3000 | self
|
4096 3001 | }
|
4097 3002 | #[allow(missing_docs)] // documentation missing in model
|
4098 - | pub(crate) fn set_range_long_set_header(
|
3003 + | pub(crate) fn set_recursive_list(
|
4099 3004 | mut self,
|
4100 - | input: Option<
|
4101 - | impl ::std::convert::Into<
|
4102 - | crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>,
|
3005 + | input: impl ::std::convert::Into<
|
3006 + | crate::constrained::MaybeConstrained<
|
3007 + | crate::constrained::recursive_list_constrained::RecursiveListConstrained,
|
4103 3008 | >,
|
4104 3009 | >,
|
4105 3010 | ) -> Self {
|
4106 - | self.range_long_set_header = input.map(|v| v.into());
|
3011 + | self.recursive_list = Some(input.into());
|
4107 3012 | self
|
4108 3013 | }
|
4109 - | #[allow(missing_docs)] // documentation missing in model
|
4110 - | pub(crate) fn set_range_byte_list_header(
|
4111 - | mut self,
|
4112 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>>,
|
4113 - | ) -> Self {
|
4114 - | self.range_byte_list_header = input.map(|v| v.into());
|
4115 - | self
|
3014 + | /// Consumes the builder and constructs a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
3015 + | ///
|
3016 + | /// The builder fails to construct a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput) if a [`ConstraintViolation`] occurs.
|
3017 + | ///
|
3018 + | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
3019 + | pub fn build(
|
3020 + | self,
|
3021 + | ) -> Result<crate::input::ConstrainedRecursiveShapesOperationInput, ConstraintViolation>
|
3022 + | {
|
3023 + | self.build_enforcing_all_constraints()
|
4116 3024 | }
|
4117 - | #[allow(missing_docs)] // documentation missing in model
|
4118 - | pub(crate) fn set_range_short_list_header(
|
4119 - | mut self,
|
4120 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>>,
|
4121 - | ) -> Self {
|
4122 - | self.range_short_list_header = input.map(|v| v.into());
|
4123 - | self
|
3025 + | fn build_enforcing_all_constraints(
|
3026 + | self,
|
3027 + | ) -> Result<crate::input::ConstrainedRecursiveShapesOperationInput, ConstraintViolation>
|
3028 + | {
|
3029 + | Ok(crate::input::ConstrainedRecursiveShapesOperationInput {
|
3030 + | nested: self
|
3031 + | .nested
|
3032 + | .map(|v| match v {
|
3033 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3034 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3035 + | })
|
3036 + | .map(|res| res.map_err(ConstraintViolation::Nested))
|
3037 + | .transpose()?,
|
3038 + | recursive_list: self
|
3039 + | .recursive_list
|
3040 + | .map(|v| match v {
|
3041 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3042 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3043 + | })
|
3044 + | .map(|res| {
|
3045 + | res.map(|v| v.into())
|
3046 + | .map_err(ConstraintViolation::RecursiveList)
|
3047 + | })
|
3048 + | .transpose()?
|
3049 + | .ok_or(ConstraintViolation::MissingRecursiveList)?,
|
3050 + | })
|
4124 3051 | }
|
4125 - | #[allow(missing_docs)] // documentation missing in model
|
4126 - | pub(crate) fn set_range_integer_list_header(
|
4127 - | mut self,
|
4128 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>>,
|
4129 - | ) -> Self {
|
4130 - | self.range_integer_list_header = input.map(|v| v.into());
|
4131 - | self
|
4132 3052 | }
|
4133 - | #[allow(missing_docs)] // documentation missing in model
|
4134 - | pub(crate) fn set_range_long_list_header(
|
4135 - | mut self,
|
4136 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>>,
|
4137 - | ) -> Self {
|
4138 - | self.range_long_list_header = input.map(|v| v.into());
|
4139 - | self
|
3053 + | }
|
3054 + | /// See [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
3055 + | pub mod constrained_recursive_shapes_operation_input {
|
3056 + |
|
3057 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3058 + | /// Holds one variant for each of the ways the builder can fail.
|
3059 + | #[allow(clippy::enum_variant_names)]
|
3060 + | pub enum ConstraintViolation {
|
3061 + | /// `recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`.
|
3062 + | MissingRecursiveList,
|
4140 3063 | }
|
4141 - | #[allow(missing_docs)] // documentation missing in model
|
4142 - | pub(crate) fn set_length_string_query(
|
4143 - | mut self,
|
4144 - | input: Option<
|
4145 - | impl ::std::convert::Into<
|
4146 - | crate::constrained::MaybeConstrained<crate::model::LengthString>,
|
4147 - | >,
|
4148 - | >,
|
4149 - | ) -> Self {
|
4150 - | self.length_string_query = input.map(|v| v.into());
|
4151 - | self
|
3064 + | impl ::std::fmt::Display for ConstraintViolation {
|
3065 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3066 + | match self {
|
3067 + | ConstraintViolation::MissingRecursiveList => write!(f, "`recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`"),
|
3068 + | }
|
3069 + | }
|
3070 + | }
|
3071 + | impl ::std::error::Error for ConstraintViolation {}
|
3072 + | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedRecursiveShapesOperationInput {
|
3073 + | type Error = ConstraintViolation;
|
3074 + |
|
3075 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3076 + | builder.build()
|
4152 3077 | }
|
4153 - | #[allow(missing_docs)] // documentation missing in model
|
4154 - | pub(crate) fn set_range_byte_query(
|
4155 - | mut self,
|
4156 - | input: impl ::std::convert::Into<
|
4157 - | crate::constrained::MaybeConstrained<crate::model::RangeByte>,
|
4158 - | >,
|
4159 - | ) -> Self {
|
4160 - | self.range_byte_query = Some(input.into());
|
4161 - | self
|
4162 3078 | }
|
3079 + | /// A builder for [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
3080 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3081 + | pub struct Builder {
|
3082 + | pub(crate) nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
3083 + | pub(crate) recursive_list:
|
3084 + | ::std::option::Option<::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>>,
|
3085 + | }
|
3086 + | impl Builder {
|
4163 3087 | #[allow(missing_docs)] // documentation missing in model
|
4164 - | pub(crate) fn set_range_short_query(
|
3088 + | pub fn nested(
|
4165 3089 | mut self,
|
4166 - | input: impl ::std::convert::Into<
|
4167 - | crate::constrained::MaybeConstrained<crate::model::RangeShort>,
|
4168 - | >,
|
3090 + | input: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
4169 3091 | ) -> Self {
|
4170 - | self.range_short_query = Some(input.into());
|
3092 + | self.nested = input;
|
4171 3093 | self
|
4172 3094 | }
|
4173 3095 | #[allow(missing_docs)] // documentation missing in model
|
4174 - | pub(crate) fn set_range_integer_query(
|
3096 + | pub fn recursive_list(
|
4175 3097 | mut self,
|
4176 - | input: impl ::std::convert::Into<
|
4177 - | crate::constrained::MaybeConstrained<crate::model::RangeInteger>,
|
4178 - | >,
|
3098 + | input: ::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>,
|
4179 3099 | ) -> Self {
|
4180 - | self.range_integer_query = Some(input.into());
|
3100 + | self.recursive_list = Some(input);
|
4181 3101 | self
|
4182 3102 | }
|
4183 - | #[allow(missing_docs)] // documentation missing in model
|
4184 - | pub(crate) fn set_range_long_query(
|
4185 - | mut self,
|
4186 - | input: impl ::std::convert::Into<
|
4187 - | crate::constrained::MaybeConstrained<crate::model::RangeLong>,
|
4188 - | >,
|
4189 - | ) -> Self {
|
4190 - | self.range_long_query = Some(input.into());
|
4191 - | self
|
3103 + | /// Consumes the builder and constructs a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
3104 + | ///
|
3105 + | /// The builder fails to construct a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput) if you do not provide a value for all non-`Option`al members.
|
3106 + | ///
|
3107 + | pub fn build(
|
3108 + | self,
|
3109 + | ) -> Result<crate::input::ConstrainedRecursiveShapesOperationInput, ConstraintViolation>
|
3110 + | {
|
3111 + | self.build_enforcing_required_and_enum_traits()
|
3112 + | }
|
3113 + | fn build_enforcing_required_and_enum_traits(
|
3114 + | self,
|
3115 + | ) -> Result<crate::input::ConstrainedRecursiveShapesOperationInput, ConstraintViolation>
|
3116 + | {
|
3117 + | Ok(crate::input::ConstrainedRecursiveShapesOperationInput {
|
3118 + | nested: self.nested,
|
3119 + | recursive_list: self
|
3120 + | .recursive_list
|
3121 + | .ok_or(ConstraintViolation::MissingRecursiveList)?,
|
3122 + | })
|
3123 + | }
|
3124 + | }
|
3125 + | }
|
3126 + | /// See [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
3127 + | pub(crate) mod query_params_targeting_length_map_operation_input_internal {
|
3128 + |
|
3129 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3130 + | /// Holds one variant for each of the ways the builder can fail.
|
3131 + | #[non_exhaustive]
|
3132 + | #[allow(clippy::enum_variant_names)]
|
3133 + | pub(crate) enum ConstraintViolation {
|
3134 + | /// Constraint violation occurred building member `length_map` when building `QueryParamsTargetingLengthMapOperationInput`.
|
3135 + | #[doc(hidden)]
|
3136 + | LengthMap(crate::model::con_b_map_internal::ConstraintViolation),
|
3137 + | }
|
3138 + | impl ::std::fmt::Display for ConstraintViolation {
|
3139 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3140 + | match self {
|
3141 + | ConstraintViolation::LengthMap(_) => write!(f, "constraint violation occurred building member `length_map` when building `QueryParamsTargetingLengthMapOperationInput`"),
|
3142 + | }
|
3143 + | }
|
3144 + | }
|
3145 + | impl ::std::error::Error for ConstraintViolation {}
|
3146 + | impl ConstraintViolation {
|
3147 + | pub(crate) fn as_validation_exception_field(
|
3148 + | self,
|
3149 + | path: ::std::string::String,
|
3150 + | ) -> crate::model::ValidationExceptionField {
|
3151 + | match self {
|
3152 + | ConstraintViolation::LengthMap(inner) => {
|
3153 + | inner.as_validation_exception_field(path + "/lengthMap")
|
3154 + | }
|
3155 + | }
|
3156 + | }
|
3157 + | }
|
3158 + | impl ::std::convert::From<ConstraintViolation>
|
3159 + | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3160 + | {
|
3161 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3162 + | let first_validation_exception_field =
|
3163 + | constraint_violation.as_validation_exception_field("".to_owned());
|
3164 + | let validation_exception = crate::error::ValidationException {
|
3165 + | message: format!(
|
3166 + | "1 validation error detected. {}",
|
3167 + | &first_validation_exception_field.message
|
3168 + | ),
|
3169 + | field_list: Some(vec![first_validation_exception_field]),
|
3170 + | };
|
3171 + | Self::ConstraintViolation(
|
3172 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
3173 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
3174 + | )
|
3175 + | }
|
3176 + | }
|
3177 + | impl ::std::convert::From<Builder>
|
3178 + | for crate::constrained::MaybeConstrained<
|
3179 + | crate::input::QueryParamsTargetingLengthMapOperationInput,
|
3180 + | >
|
3181 + | {
|
3182 + | fn from(builder: Builder) -> Self {
|
3183 + | Self::Unconstrained(builder)
|
3184 + | }
|
3185 + | }
|
3186 + | impl ::std::convert::TryFrom<Builder>
|
3187 + | for crate::input::QueryParamsTargetingLengthMapOperationInput
|
3188 + | {
|
3189 + | type Error = ConstraintViolation;
|
3190 + |
|
3191 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3192 + | builder.build()
|
3193 + | }
|
3194 + | }
|
3195 + | /// A builder for [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
3196 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3197 + | pub(crate) struct Builder {
|
3198 + | pub(crate) length_map:
|
3199 + | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
4192 3200 | }
|
3201 + | impl Builder {
|
4193 3202 | #[allow(missing_docs)] // documentation missing in model
|
4194 - | pub(crate) fn set_enum_string_query(
|
3203 + | pub(crate) fn set_length_map(
|
4195 3204 | mut self,
|
4196 3205 | input: Option<
|
4197 - | impl ::std::convert::Into<
|
4198 - | crate::constrained::MaybeConstrained<crate::model::EnumString>,
|
4199 - | >,
|
3206 + | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
4200 3207 | >,
|
4201 3208 | ) -> Self {
|
4202 - | self.enum_string_query = input.map(|v| v.into());
|
3209 + | self.length_map = input.map(|v| v.into());
|
4203 3210 | self
|
4204 3211 | }
|
4205 - | #[allow(missing_docs)] // documentation missing in model
|
4206 - | pub(crate) fn set_length_string_list_query(
|
4207 - | mut self,
|
4208 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>>,
|
4209 - | ) -> Self {
|
4210 - | self.length_string_list_query = input.map(|v| v.into());
|
4211 - | self
|
3212 + | /// Consumes the builder and constructs a [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
3213 + | ///
|
3214 + | /// The builder fails to construct a [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput) if a [`ConstraintViolation`] occurs.
|
3215 + | ///
|
3216 + | pub fn build(
|
3217 + | self,
|
3218 + | ) -> Result<crate::input::QueryParamsTargetingLengthMapOperationInput, ConstraintViolation>
|
3219 + | {
|
3220 + | self.build_enforcing_all_constraints()
|
4212 3221 | }
|
4213 - | #[allow(missing_docs)] // documentation missing in model
|
4214 - | pub(crate) fn set_length_list_pattern_string_query(
|
4215 - | mut self,
|
4216 - | input: Option<
|
4217 - | impl ::std::convert::Into<
|
4218 - | crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>,
|
4219 - | >,
|
3222 + | fn build_enforcing_all_constraints(
|
3223 + | self,
|
3224 + | ) -> Result<crate::input::QueryParamsTargetingLengthMapOperationInput, ConstraintViolation>
|
3225 + | {
|
3226 + | Ok(crate::input::QueryParamsTargetingLengthMapOperationInput {
|
3227 + | length_map: self
|
3228 + | .length_map
|
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::LengthMap))
|
3234 + | .transpose()?
|
3235 + | .map(|v: crate::model::ConBMap| v.into()),
|
3236 + | })
|
3237 + | }
|
3238 + | }
|
3239 + | }
|
3240 + | /// See [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
3241 + | pub mod query_params_targeting_length_map_operation_input {
|
3242 + |
|
3243 + | impl ::std::convert::From<Builder> for crate::input::QueryParamsTargetingLengthMapOperationInput {
|
3244 + | fn from(builder: Builder) -> Self {
|
3245 + | builder.build()
|
3246 + | }
|
3247 + | }
|
3248 + | /// A builder for [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
3249 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3250 + | pub struct Builder {
|
3251 + | pub(crate) length_map: ::std::option::Option<
|
3252 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
4220 3253 | >,
|
4221 - | ) -> Self {
|
4222 - | self.length_list_pattern_string_query = input.map(|v| v.into());
|
4223 - | self
|
4224 3254 | }
|
3255 + | impl Builder {
|
4225 3256 | #[allow(missing_docs)] // documentation missing in model
|
4226 - | pub(crate) fn set_length_string_set_query(
|
3257 + | pub fn length_map(
|
4227 3258 | mut self,
|
4228 - | input: Option<
|
4229 - | impl ::std::convert::Into<
|
4230 - | crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>,
|
4231 - | >,
|
3259 + | input: ::std::option::Option<
|
3260 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
4232 3261 | >,
|
4233 3262 | ) -> Self {
|
4234 - | self.length_string_set_query = input.map(|v| v.into());
|
3263 + | self.length_map = input;
|
4235 3264 | self
|
4236 3265 | }
|
4237 - | #[allow(missing_docs)] // documentation missing in model
|
4238 - | pub(crate) fn set_range_byte_list_query(
|
4239 - | mut self,
|
4240 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>>,
|
4241 - | ) -> Self {
|
4242 - | self.range_byte_list_query = input.map(|v| v.into());
|
4243 - | self
|
3266 + | /// Consumes the builder and constructs a [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
3267 + | pub fn build(self) -> crate::input::QueryParamsTargetingLengthMapOperationInput {
|
3268 + | self.build_enforcing_required_and_enum_traits()
|
4244 3269 | }
|
4245 - | #[allow(missing_docs)] // documentation missing in model
|
4246 - | pub(crate) fn set_range_short_list_query(
|
4247 - | mut self,
|
4248 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>>,
|
4249 - | ) -> Self {
|
4250 - | self.range_short_list_query = input.map(|v| v.into());
|
4251 - | self
|
3270 + | fn build_enforcing_required_and_enum_traits(
|
3271 + | self,
|
3272 + | ) -> crate::input::QueryParamsTargetingLengthMapOperationInput {
|
3273 + | crate::input::QueryParamsTargetingLengthMapOperationInput {
|
3274 + | length_map: self.length_map,
|
4252 3275 | }
|
4253 - | #[allow(missing_docs)] // documentation missing in model
|
4254 - | pub(crate) fn set_range_integer_list_query(
|
4255 - | mut self,
|
4256 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>>,
|
4257 - | ) -> Self {
|
4258 - | self.range_integer_list_query = input.map(|v| v.into());
|
4259 - | self
|
4260 3276 | }
|
4261 - | #[allow(missing_docs)] // documentation missing in model
|
4262 - | pub(crate) fn set_range_long_list_query(
|
4263 - | mut self,
|
4264 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>>,
|
4265 - | ) -> Self {
|
4266 - | self.range_long_list_query = input.map(|v| v.into());
|
4267 - | self
|
4268 3277 | }
|
4269 - | #[allow(missing_docs)] // documentation missing in model
|
4270 - | pub(crate) fn set_range_byte_set_query(
|
4271 - | mut self,
|
4272 - | input: Option<
|
4273 - | impl ::std::convert::Into<
|
4274 - | crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>,
|
4275 - | >,
|
4276 - | >,
|
4277 - | ) -> Self {
|
4278 - | self.range_byte_set_query = input.map(|v| v.into());
|
4279 - | self
|
3278 + | }
|
3279 + | /// See [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
3280 + | pub(crate) mod query_params_targeting_map_of_length_string_operation_input_internal {
|
3281 + |
|
3282 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3283 + | /// Holds one variant for each of the ways the builder can fail.
|
3284 + | #[non_exhaustive]
|
3285 + | #[allow(clippy::enum_variant_names)]
|
3286 + | pub(crate) enum ConstraintViolation {
|
3287 + | /// Constraint violation occurred building member `map_of_length_string` when building `QueryParamsTargetingMapOfLengthStringOperationInput`.
|
3288 + | #[doc(hidden)]
|
3289 + | MapOfLengthString(crate::model::map_of_length_string_internal::ConstraintViolation),
|
4280 3290 | }
|
4281 - | #[allow(missing_docs)] // documentation missing in model
|
4282 - | pub(crate) fn set_range_short_set_query(
|
4283 - | mut self,
|
4284 - | input: Option<
|
4285 - | impl ::std::convert::Into<
|
4286 - | crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>,
|
4287 - | >,
|
4288 - | >,
|
4289 - | ) -> Self {
|
4290 - | self.range_short_set_query = input.map(|v| v.into());
|
4291 - | self
|
3291 + | impl ::std::fmt::Display for ConstraintViolation {
|
3292 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3293 + | match self {
|
3294 + | ConstraintViolation::MapOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_length_string` when building `QueryParamsTargetingMapOfLengthStringOperationInput`"),
|
4292 3295 | }
|
4293 - | #[allow(missing_docs)] // documentation missing in model
|
4294 - | pub(crate) fn set_range_integer_set_query(
|
4295 - | mut self,
|
4296 - | input: Option<
|
4297 - | impl ::std::convert::Into<
|
4298 - | crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>,
|
4299 - | >,
|
4300 - | >,
|
4301 - | ) -> Self {
|
4302 - | self.range_integer_set_query = input.map(|v| v.into());
|
4303 - | self
|
4304 3296 | }
|
4305 - | #[allow(missing_docs)] // documentation missing in model
|
4306 - | pub(crate) fn set_range_long_set_query(
|
4307 - | mut self,
|
4308 - | input: Option<
|
4309 - | impl ::std::convert::Into<
|
4310 - | crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>,
|
3297 + | }
|
3298 + | impl ::std::error::Error for ConstraintViolation {}
|
3299 + | impl ConstraintViolation {
|
3300 + | pub(crate) fn as_validation_exception_field(
|
3301 + | self,
|
3302 + | path: ::std::string::String,
|
3303 + | ) -> crate::model::ValidationExceptionField {
|
3304 + | match self {
|
3305 + | ConstraintViolation::MapOfLengthString(inner) => {
|
3306 + | inner.as_validation_exception_field(path + "/mapOfLengthString")
|
3307 + | }
|
3308 + | }
|
3309 + | }
|
3310 + | }
|
3311 + | impl ::std::convert::From<ConstraintViolation>
|
3312 + | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3313 + | {
|
3314 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3315 + | let first_validation_exception_field =
|
3316 + | constraint_violation.as_validation_exception_field("".to_owned());
|
3317 + | let validation_exception = crate::error::ValidationException {
|
3318 + | message: format!(
|
3319 + | "1 validation error detected. {}",
|
3320 + | &first_validation_exception_field.message
|
3321 + | ),
|
3322 + | field_list: Some(vec![first_validation_exception_field]),
|
3323 + | };
|
3324 + | Self::ConstraintViolation(
|
3325 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
3326 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
3327 + | )
|
3328 + | }
|
3329 + | }
|
3330 + | impl ::std::convert::From<Builder>
|
3331 + | for crate::constrained::MaybeConstrained<
|
3332 + | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput,
|
3333 + | >
|
3334 + | {
|
3335 + | fn from(builder: Builder) -> Self {
|
3336 + | Self::Unconstrained(builder)
|
3337 + | }
|
3338 + | }
|
3339 + | impl ::std::convert::TryFrom<Builder>
|
3340 + | for crate::input::QueryParamsTargetingMapOfLengthStringOperationInput
|
3341 + | {
|
3342 + | type Error = ConstraintViolation;
|
3343 + |
|
3344 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3345 + | builder.build()
|
3346 + | }
|
3347 + | }
|
3348 + | /// A builder for [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
3349 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3350 + | pub(crate) struct Builder {
|
3351 + | pub(crate) map_of_length_string: ::std::option::Option<
|
3352 + | crate::constrained::MaybeConstrained<
|
3353 + | crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained,
|
4311 3354 | >,
|
4312 3355 | >,
|
4313 - | ) -> Self {
|
4314 - | self.range_long_set_query = input.map(|v| v.into());
|
4315 - | self
|
4316 3356 | }
|
3357 + | impl Builder {
|
4317 3358 | #[allow(missing_docs)] // documentation missing in model
|
4318 - | pub(crate) fn set_enum_string_list_query(
|
3359 + | pub(crate) fn set_map_of_length_string(
|
4319 3360 | mut self,
|
4320 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained>>>,
|
3361 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>>,
|
4321 3362 | ) -> Self {
|
4322 - | self.enum_string_list_query = input.map(|v| v.into());
|
3363 + | self.map_of_length_string = input.map(|v| v.into());
|
4323 3364 | self
|
4324 3365 | }
|
4325 - | /// Consumes the builder and constructs a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
3366 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
4326 3367 | ///
|
4327 - | /// The builder fails to construct a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput) if a [`ConstraintViolation`] occurs.
|
3368 + | /// The builder fails to construct a [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput) if a [`ConstraintViolation`] occurs.
|
4328 3369 | ///
|
4329 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
4330 3370 | pub fn build(
|
4331 3371 | self,
|
4332 - | ) -> Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ConstraintViolation>
|
4333 - | {
|
3372 + | ) -> Result<
|
3373 + | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput,
|
3374 + | ConstraintViolation,
|
3375 + | > {
|
4334 3376 | self.build_enforcing_all_constraints()
|
4335 3377 | }
|
4336 3378 | fn build_enforcing_all_constraints(
|
4337 3379 | self,
|
4338 - | ) -> Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ConstraintViolation>
|
4339 - | {
|
4340 - | Ok(crate::input::ConstrainedHttpBoundShapesOperationInput {
|
4341 - | length_string_label: self
|
4342 - | .length_string_label
|
4343 - | .map(|v| match v {
|
4344 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4345 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4346 - | })
|
4347 - | .map(|res| res.map_err(ConstraintViolation::LengthStringLabel))
|
4348 - | .transpose()?
|
4349 - | .map(|v: crate::model::LengthString| v.into())
|
4350 - | .ok_or(ConstraintViolation::MissingLengthStringLabel)?,
|
4351 - | range_integer_label: self
|
4352 - | .range_integer_label
|
4353 - | .map(|v| match v {
|
4354 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4355 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4356 - | })
|
4357 - | .map(|res| res.map_err(ConstraintViolation::RangeIntegerLabel))
|
4358 - | .transpose()?
|
4359 - | .map(|v: crate::model::RangeInteger| v.into())
|
4360 - | .unwrap_or(0i32),
|
4361 - | range_short_label: self
|
4362 - | .range_short_label
|
4363 - | .map(|v| match v {
|
4364 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4365 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4366 - | })
|
4367 - | .map(|res| res.map_err(ConstraintViolation::RangeShortLabel))
|
4368 - | .transpose()?
|
4369 - | .map(|v: crate::model::RangeShort| v.into())
|
4370 - | .unwrap_or(0i16),
|
4371 - | range_long_label: self
|
4372 - | .range_long_label
|
4373 - | .map(|v| match v {
|
4374 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4375 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4376 - | })
|
4377 - | .map(|res| res.map_err(ConstraintViolation::RangeLongLabel))
|
4378 - | .transpose()?
|
4379 - | .map(|v: crate::model::RangeLong| v.into())
|
4380 - | .unwrap_or(0i64),
|
4381 - | range_byte_label: self
|
4382 - | .range_byte_label
|
4383 - | .map(|v| match v {
|
4384 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4385 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4386 - | })
|
4387 - | .map(|res| res.map_err(ConstraintViolation::RangeByteLabel))
|
4388 - | .transpose()?
|
4389 - | .map(|v: crate::model::RangeByte| v.into())
|
4390 - | .unwrap_or(0i8),
|
4391 - | enum_string_label: self
|
4392 - | .enum_string_label
|
4393 - | .map(|v| match v {
|
4394 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4395 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4396 - | })
|
4397 - | .map(|res| res.map_err(ConstraintViolation::EnumStringLabel))
|
4398 - | .transpose()?
|
4399 - | .ok_or(ConstraintViolation::MissingEnumStringLabel)?,
|
4400 - | length_string_header_map: self
|
4401 - | .length_string_header_map
|
4402 - | .map(|v| match v {
|
4403 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4404 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4405 - | })
|
4406 - | .map(|res| {
|
4407 - | res.map(|v| v.into())
|
4408 - | .map_err(ConstraintViolation::LengthStringHeaderMap)
|
4409 - | })
|
4410 - | .transpose()?
|
4411 - | .ok_or(ConstraintViolation::MissingLengthStringHeaderMap)?,
|
4412 - | length_string_header: self
|
4413 - | .length_string_header
|
4414 - | .map(|v| match v {
|
4415 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4416 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4417 - | })
|
4418 - | .map(|res| res.map_err(ConstraintViolation::LengthStringHeader))
|
4419 - | .transpose()?
|
4420 - | .map(|v: crate::model::LengthString| v.into()),
|
4421 - | range_integer_header: self
|
4422 - | .range_integer_header
|
4423 - | .map(|v| match v {
|
4424 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4425 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4426 - | })
|
4427 - | .map(|res| res.map_err(ConstraintViolation::RangeIntegerHeader))
|
4428 - | .transpose()?
|
4429 - | .map(|v: crate::model::RangeInteger| v.into())
|
4430 - | .unwrap_or(0i32),
|
4431 - | range_short_header: self
|
4432 - | .range_short_header
|
4433 - | .map(|v| match v {
|
4434 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4435 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4436 - | })
|
4437 - | .map(|res| res.map_err(ConstraintViolation::RangeShortHeader))
|
4438 - | .transpose()?
|
4439 - | .map(|v: crate::model::RangeShort| v.into())
|
4440 - | .unwrap_or(0i16),
|
4441 - | range_long_header: self
|
4442 - | .range_long_header
|
4443 - | .map(|v| match v {
|
4444 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4445 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4446 - | })
|
4447 - | .map(|res| res.map_err(ConstraintViolation::RangeLongHeader))
|
4448 - | .transpose()?
|
4449 - | .map(|v: crate::model::RangeLong| v.into())
|
4450 - | .unwrap_or(0i64),
|
4451 - | range_byte_header: self
|
4452 - | .range_byte_header
|
4453 - | .map(|v| match v {
|
4454 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4455 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4456 - | })
|
4457 - | .map(|res| res.map_err(ConstraintViolation::RangeByteHeader))
|
4458 - | .transpose()?
|
4459 - | .map(|v: crate::model::RangeByte| v.into())
|
4460 - | .unwrap_or(0i8),
|
4461 - | length_string_set_header: self
|
4462 - | .length_string_set_header
|
4463 - | .map(|v| match v {
|
4464 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4465 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4466 - | })
|
4467 - | .map(|res| res.map_err(ConstraintViolation::LengthStringSetHeader))
|
4468 - | .transpose()?
|
4469 - | .map(|v: crate::model::SetOfLengthString| v.into()),
|
4470 - | list_length_string_header: self
|
4471 - | .list_length_string_header
|
4472 - | .map(|v| match v {
|
4473 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4474 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4475 - | })
|
4476 - | .map(|res| {
|
4477 - | res.map(|v| v.into())
|
4478 - | .map_err(ConstraintViolation::ListLengthStringHeader)
|
4479 - | })
|
4480 - | .transpose()?,
|
4481 - | length_list_pattern_string_header: self
|
4482 - | .length_list_pattern_string_header
|
4483 - | .map(|v| match v {
|
4484 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4485 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4486 - | })
|
4487 - | .map(|res| res.map_err(ConstraintViolation::LengthListPatternStringHeader))
|
4488 - | .transpose()?
|
4489 - | .map(|v: crate::model::LengthListOfPatternString| v.into()),
|
4490 - | length_set_pattern_string_header: self
|
4491 - | .length_set_pattern_string_header
|
4492 - | .map(|v| match v {
|
4493 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4494 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4495 - | })
|
4496 - | .map(|res| res.map_err(ConstraintViolation::LengthSetPatternStringHeader))
|
4497 - | .transpose()?
|
4498 - | .map(|v: crate::model::LengthSetOfPatternString| v.into()),
|
4499 - | range_byte_set_header: self
|
4500 - | .range_byte_set_header
|
4501 - | .map(|v| match v {
|
4502 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4503 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4504 - | })
|
4505 - | .map(|res| res.map_err(ConstraintViolation::RangeByteSetHeader))
|
4506 - | .transpose()?
|
4507 - | .map(|v: crate::model::SetOfRangeByte| v.into()),
|
4508 - | range_short_set_header: self
|
4509 - | .range_short_set_header
|
4510 - | .map(|v| match v {
|
4511 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4512 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4513 - | })
|
4514 - | .map(|res| res.map_err(ConstraintViolation::RangeShortSetHeader))
|
4515 - | .transpose()?
|
4516 - | .map(|v: crate::model::SetOfRangeShort| v.into()),
|
4517 - | range_integer_set_header: self
|
4518 - | .range_integer_set_header
|
4519 - | .map(|v| match v {
|
4520 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4521 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4522 - | })
|
4523 - | .map(|res| res.map_err(ConstraintViolation::RangeIntegerSetHeader))
|
4524 - | .transpose()?
|
4525 - | .map(|v: crate::model::SetOfRangeInteger| v.into()),
|
4526 - | range_long_set_header: self
|
4527 - | .range_long_set_header
|
4528 - | .map(|v| match v {
|
4529 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4530 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4531 - | })
|
4532 - | .map(|res| res.map_err(ConstraintViolation::RangeLongSetHeader))
|
4533 - | .transpose()?
|
4534 - | .map(|v: crate::model::SetOfRangeLong| v.into()),
|
4535 - | range_byte_list_header: self
|
4536 - | .range_byte_list_header
|
3380 + | ) -> Result<
|
3381 + | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput,
|
3382 + | ConstraintViolation,
|
3383 + | > {
|
3384 + | Ok(
|
3385 + | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput {
|
3386 + | map_of_length_string: self
|
3387 + | .map_of_length_string
|
4537 3388 | .map(|v| match v {
|
4538 3389 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4539 3390 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4540 3391 | })
|
4541 3392 | .map(|res| {
|
4542 3393 | res.map(|v| v.into())
|
4543 - | .map_err(ConstraintViolation::RangeByteListHeader)
|
3394 + | .map_err(ConstraintViolation::MapOfLengthString)
|
4544 3395 | })
|
4545 3396 | .transpose()?,
|
4546 - | range_short_list_header: self
|
4547 - | .range_short_list_header
|
3397 + | },
|
3398 + | )
|
3399 + | }
|
3400 + | }
|
3401 + | }
|
3402 + | /// See [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
3403 + | pub mod query_params_targeting_map_of_length_string_operation_input {
|
3404 + |
|
3405 + | impl ::std::convert::From<Builder>
|
3406 + | for crate::input::QueryParamsTargetingMapOfLengthStringOperationInput
|
3407 + | {
|
3408 + | fn from(builder: Builder) -> Self {
|
3409 + | builder.build()
|
3410 + | }
|
3411 + | }
|
3412 + | /// A builder for [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
3413 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3414 + | pub struct Builder {
|
3415 + | pub(crate) map_of_length_string: ::std::option::Option<
|
3416 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
3417 + | >,
|
3418 + | }
|
3419 + | impl Builder {
|
3420 + | #[allow(missing_docs)] // documentation missing in model
|
3421 + | pub fn map_of_length_string(
|
3422 + | mut self,
|
3423 + | input: ::std::option::Option<
|
3424 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
3425 + | >,
|
3426 + | ) -> Self {
|
3427 + | self.map_of_length_string = input;
|
3428 + | self
|
3429 + | }
|
3430 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
3431 + | pub fn build(self) -> crate::input::QueryParamsTargetingMapOfLengthStringOperationInput {
|
3432 + | self.build_enforcing_required_and_enum_traits()
|
3433 + | }
|
3434 + | fn build_enforcing_required_and_enum_traits(
|
3435 + | self,
|
3436 + | ) -> crate::input::QueryParamsTargetingMapOfLengthStringOperationInput {
|
3437 + | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput {
|
3438 + | map_of_length_string: self.map_of_length_string,
|
3439 + | }
|
3440 + | }
|
3441 + | }
|
3442 + | }
|
3443 + | /// See [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
3444 + | pub(crate) mod query_params_targeting_map_of_list_of_length_string_operation_input_internal {
|
3445 + |
|
3446 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3447 + | /// Holds one variant for each of the ways the builder can fail.
|
3448 + | #[non_exhaustive]
|
3449 + | #[allow(clippy::enum_variant_names)]
|
3450 + | pub(crate) enum ConstraintViolation {
|
3451 + | /// Constraint violation occurred building member `map_of_list_of_length_string` when building `QueryParamsTargetingMapOfListOfLengthStringOperationInput`.
|
3452 + | #[doc(hidden)]
|
3453 + | MapOfListOfLengthString(
|
3454 + | crate::model::map_of_list_of_length_string_internal::ConstraintViolation,
|
3455 + | ),
|
3456 + | }
|
3457 + | impl ::std::fmt::Display for ConstraintViolation {
|
3458 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3459 + | match self {
|
3460 + | ConstraintViolation::MapOfListOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_length_string` when building `QueryParamsTargetingMapOfListOfLengthStringOperationInput`"),
|
3461 + | }
|
3462 + | }
|
3463 + | }
|
3464 + | impl ::std::error::Error for ConstraintViolation {}
|
3465 + | impl ConstraintViolation {
|
3466 + | pub(crate) fn as_validation_exception_field(
|
3467 + | self,
|
3468 + | path: ::std::string::String,
|
3469 + | ) -> crate::model::ValidationExceptionField {
|
3470 + | match self {
|
3471 + | ConstraintViolation::MapOfListOfLengthString(inner) => {
|
3472 + | inner.as_validation_exception_field(path + "/mapOfListOfLengthString")
|
3473 + | }
|
3474 + | }
|
3475 + | }
|
3476 + | }
|
3477 + | impl ::std::convert::From<ConstraintViolation>
|
3478 + | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3479 + | {
|
3480 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3481 + | let first_validation_exception_field =
|
3482 + | constraint_violation.as_validation_exception_field("".to_owned());
|
3483 + | let validation_exception = crate::error::ValidationException {
|
3484 + | message: format!(
|
3485 + | "1 validation error detected. {}",
|
3486 + | &first_validation_exception_field.message
|
3487 + | ),
|
3488 + | field_list: Some(vec![first_validation_exception_field]),
|
3489 + | };
|
3490 + | Self::ConstraintViolation(
|
3491 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
3492 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
3493 + | )
|
3494 + | }
|
3495 + | }
|
3496 + | impl ::std::convert::From<Builder>
|
3497 + | for crate::constrained::MaybeConstrained<
|
3498 + | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput,
|
3499 + | >
|
3500 + | {
|
3501 + | fn from(builder: Builder) -> Self {
|
3502 + | Self::Unconstrained(builder)
|
3503 + | }
|
3504 + | }
|
3505 + | impl ::std::convert::TryFrom<Builder>
|
3506 + | for crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput
|
3507 + | {
|
3508 + | type Error = ConstraintViolation;
|
3509 + |
|
3510 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3511 + | builder.build()
|
3512 + | }
|
3513 + | }
|
3514 + | /// A builder for [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
3515 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3516 + | pub(crate) struct Builder {
|
3517 + | pub(crate) map_of_list_of_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_string_constrained::MapOfListOfLengthStringConstrained>>,
|
3518 + | }
|
3519 + | impl Builder {
|
3520 + | #[allow(missing_docs)] // documentation missing in model
|
3521 + | pub(crate) fn set_map_of_list_of_length_string(
|
3522 + | mut self,
|
3523 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_string_constrained::MapOfListOfLengthStringConstrained>>>,
|
3524 + | ) -> Self {
|
3525 + | self.map_of_list_of_length_string = input.map(|v| v.into());
|
3526 + | self
|
3527 + | }
|
3528 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
3529 + | ///
|
3530 + | /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput) if a [`ConstraintViolation`] occurs.
|
3531 + | ///
|
3532 + | pub fn build(
|
3533 + | self,
|
3534 + | ) -> Result<
|
3535 + | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput,
|
3536 + | ConstraintViolation,
|
3537 + | > {
|
3538 + | self.build_enforcing_all_constraints()
|
3539 + | }
|
3540 + | fn build_enforcing_all_constraints(
|
3541 + | self,
|
3542 + | ) -> Result<
|
3543 + | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput,
|
3544 + | ConstraintViolation,
|
3545 + | > {
|
3546 + | Ok(
|
3547 + | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
3548 + | map_of_list_of_length_string: self
|
3549 + | .map_of_list_of_length_string
|
4548 3550 | .map(|v| match v {
|
4549 3551 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4550 3552 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4551 3553 | })
|
4552 3554 | .map(|res| {
|
4553 3555 | res.map(|v| v.into())
|
4554 - | .map_err(ConstraintViolation::RangeShortListHeader)
|
3556 + | .map_err(ConstraintViolation::MapOfListOfLengthString)
|
4555 3557 | })
|
4556 3558 | .transpose()?,
|
4557 - | range_integer_list_header: self
|
4558 - | .range_integer_list_header
|
3559 + | },
|
3560 + | )
|
3561 + | }
|
3562 + | }
|
3563 + | }
|
3564 + | /// See [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
3565 + | pub mod query_params_targeting_map_of_list_of_length_string_operation_input {
|
3566 + |
|
3567 + | impl ::std::convert::From<Builder>
|
3568 + | for crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput
|
3569 + | {
|
3570 + | fn from(builder: Builder) -> Self {
|
3571 + | builder.build()
|
3572 + | }
|
3573 + | }
|
3574 + | /// A builder for [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
3575 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3576 + | pub struct Builder {
|
3577 + | pub(crate) map_of_list_of_length_string: ::std::option::Option<
|
3578 + | ::std::collections::HashMap<
|
3579 + | ::std::string::String,
|
3580 + | ::std::vec::Vec<::std::string::String>,
|
3581 + | >,
|
3582 + | >,
|
3583 + | }
|
3584 + | impl Builder {
|
3585 + | #[allow(missing_docs)] // documentation missing in model
|
3586 + | pub fn map_of_list_of_length_string(
|
3587 + | mut self,
|
3588 + | input: ::std::option::Option<
|
3589 + | ::std::collections::HashMap<
|
3590 + | ::std::string::String,
|
3591 + | ::std::vec::Vec<::std::string::String>,
|
3592 + | >,
|
3593 + | >,
|
3594 + | ) -> Self {
|
3595 + | self.map_of_list_of_length_string = input;
|
3596 + | self
|
3597 + | }
|
3598 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
3599 + | pub fn build(
|
3600 + | self,
|
3601 + | ) -> crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
3602 + | self.build_enforcing_required_and_enum_traits()
|
3603 + | }
|
3604 + | fn build_enforcing_required_and_enum_traits(
|
3605 + | self,
|
3606 + | ) -> crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
3607 + | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
3608 + | map_of_list_of_length_string: self.map_of_list_of_length_string,
|
3609 + | }
|
3610 + | }
|
3611 + | }
|
3612 + | }
|
3613 + | /// See [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
3614 + | pub(crate) mod query_params_targeting_map_of_set_of_length_string_operation_input_internal {
|
3615 + |
|
3616 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3617 + | /// Holds one variant for each of the ways the builder can fail.
|
3618 + | #[non_exhaustive]
|
3619 + | #[allow(clippy::enum_variant_names)]
|
3620 + | pub(crate) enum ConstraintViolation {
|
3621 + | /// Constraint violation occurred building member `map_of_set_of_length_string` when building `QueryParamsTargetingMapOfSetOfLengthStringOperationInput`.
|
3622 + | #[doc(hidden)]
|
3623 + | MapOfSetOfLengthString(
|
3624 + | crate::model::map_of_set_of_length_string_internal::ConstraintViolation,
|
3625 + | ),
|
3626 + | }
|
3627 + | impl ::std::fmt::Display for ConstraintViolation {
|
3628 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3629 + | match self {
|
3630 + | ConstraintViolation::MapOfSetOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_set_of_length_string` when building `QueryParamsTargetingMapOfSetOfLengthStringOperationInput`"),
|
3631 + | }
|
3632 + | }
|
3633 + | }
|
3634 + | impl ::std::error::Error for ConstraintViolation {}
|
3635 + | impl ConstraintViolation {
|
3636 + | pub(crate) fn as_validation_exception_field(
|
3637 + | self,
|
3638 + | path: ::std::string::String,
|
3639 + | ) -> crate::model::ValidationExceptionField {
|
3640 + | match self {
|
3641 + | ConstraintViolation::MapOfSetOfLengthString(inner) => {
|
3642 + | inner.as_validation_exception_field(path + "/mapOfSetOfLengthString")
|
3643 + | }
|
3644 + | }
|
3645 + | }
|
3646 + | }
|
3647 + | impl ::std::convert::From<ConstraintViolation>
|
3648 + | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3649 + | {
|
3650 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3651 + | let first_validation_exception_field =
|
3652 + | constraint_violation.as_validation_exception_field("".to_owned());
|
3653 + | let validation_exception = crate::error::ValidationException {
|
3654 + | message: format!(
|
3655 + | "1 validation error detected. {}",
|
3656 + | &first_validation_exception_field.message
|
3657 + | ),
|
3658 + | field_list: Some(vec![first_validation_exception_field]),
|
3659 + | };
|
3660 + | Self::ConstraintViolation(
|
3661 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
3662 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
3663 + | )
|
3664 + | }
|
3665 + | }
|
3666 + | impl ::std::convert::From<Builder>
|
3667 + | for crate::constrained::MaybeConstrained<
|
3668 + | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput,
|
3669 + | >
|
3670 + | {
|
3671 + | fn from(builder: Builder) -> Self {
|
3672 + | Self::Unconstrained(builder)
|
3673 + | }
|
3674 + | }
|
3675 + | impl ::std::convert::TryFrom<Builder>
|
3676 + | for crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput
|
3677 + | {
|
3678 + | type Error = ConstraintViolation;
|
3679 + |
|
3680 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3681 + | builder.build()
|
3682 + | }
|
3683 + | }
|
3684 + | /// A builder for [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
3685 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3686 + | pub(crate) struct Builder {
|
3687 + | pub(crate) map_of_set_of_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_set_of_length_string_constrained::MapOfSetOfLengthStringConstrained>>,
|
3688 + | }
|
3689 + | impl Builder {
|
3690 + | #[allow(missing_docs)] // documentation missing in model
|
3691 + | pub(crate) fn set_map_of_set_of_length_string(
|
3692 + | mut self,
|
3693 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_set_of_length_string_constrained::MapOfSetOfLengthStringConstrained>>>,
|
3694 + | ) -> Self {
|
3695 + | self.map_of_set_of_length_string = input.map(|v| v.into());
|
3696 + | self
|
3697 + | }
|
3698 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
3699 + | ///
|
3700 + | /// The builder fails to construct a [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput) if a [`ConstraintViolation`] occurs.
|
3701 + | ///
|
3702 + | pub fn build(
|
3703 + | self,
|
3704 + | ) -> Result<
|
3705 + | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput,
|
3706 + | ConstraintViolation,
|
3707 + | > {
|
3708 + | self.build_enforcing_all_constraints()
|
3709 + | }
|
3710 + | fn build_enforcing_all_constraints(
|
3711 + | self,
|
3712 + | ) -> Result<
|
3713 + | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput,
|
3714 + | ConstraintViolation,
|
3715 + | > {
|
3716 + | Ok(
|
3717 + | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
3718 + | map_of_set_of_length_string: self
|
3719 + | .map_of_set_of_length_string
|
4559 3720 | .map(|v| match v {
|
4560 3721 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4561 3722 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4562 3723 | })
|
4563 3724 | .map(|res| {
|
4564 3725 | res.map(|v| v.into())
|
4565 - | .map_err(ConstraintViolation::RangeIntegerListHeader)
|
3726 + | .map_err(ConstraintViolation::MapOfSetOfLengthString)
|
4566 3727 | })
|
4567 3728 | .transpose()?,
|
4568 - | range_long_list_header: self
|
4569 - | .range_long_list_header
|
3729 + | },
|
3730 + | )
|
3731 + | }
|
3732 + | }
|
3733 + | }
|
3734 + | /// See [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
3735 + | pub mod query_params_targeting_map_of_set_of_length_string_operation_input {
|
3736 + |
|
3737 + | impl ::std::convert::From<Builder>
|
3738 + | for crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput
|
3739 + | {
|
3740 + | fn from(builder: Builder) -> Self {
|
3741 + | builder.build()
|
3742 + | }
|
3743 + | }
|
3744 + | /// A builder for [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
3745 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3746 + | pub struct Builder {
|
3747 + | pub(crate) map_of_set_of_length_string: ::std::option::Option<
|
3748 + | ::std::collections::HashMap<
|
3749 + | ::std::string::String,
|
3750 + | ::std::vec::Vec<::std::string::String>,
|
3751 + | >,
|
3752 + | >,
|
3753 + | }
|
3754 + | impl Builder {
|
3755 + | #[allow(missing_docs)] // documentation missing in model
|
3756 + | pub fn map_of_set_of_length_string(
|
3757 + | mut self,
|
3758 + | input: ::std::option::Option<
|
3759 + | ::std::collections::HashMap<
|
3760 + | ::std::string::String,
|
3761 + | ::std::vec::Vec<::std::string::String>,
|
3762 + | >,
|
3763 + | >,
|
3764 + | ) -> Self {
|
3765 + | self.map_of_set_of_length_string = input;
|
3766 + | self
|
3767 + | }
|
3768 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
3769 + | pub fn build(
|
3770 + | self,
|
3771 + | ) -> crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
3772 + | self.build_enforcing_required_and_enum_traits()
|
3773 + | }
|
3774 + | fn build_enforcing_required_and_enum_traits(
|
3775 + | self,
|
3776 + | ) -> crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
3777 + | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
3778 + | map_of_set_of_length_string: self.map_of_set_of_length_string,
|
3779 + | }
|
3780 + | }
|
3781 + | }
|
3782 + | }
|
3783 + | /// See [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
3784 + | pub(crate) mod query_params_targeting_map_of_length_list_of_pattern_string_operation_input_internal {
|
3785 + |
|
3786 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3787 + | /// Holds one variant for each of the ways the builder can fail.
|
3788 + | #[non_exhaustive]
|
3789 + | #[allow(clippy::enum_variant_names)]
|
3790 + | pub(crate) enum ConstraintViolation {
|
3791 + | /// Constraint violation occurred building member `map_of_length_list_of_pattern_string` when building `QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`.
|
3792 + | #[doc(hidden)]
|
3793 + | MapOfLengthListOfPatternString(
|
3794 + | crate::model::map_of_length_list_of_pattern_string_internal::ConstraintViolation,
|
3795 + | ),
|
3796 + | }
|
3797 + | impl ::std::fmt::Display for ConstraintViolation {
|
3798 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3799 + | match self {
|
3800 + | ConstraintViolation::MapOfLengthListOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_list_of_pattern_string` when building `QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`"),
|
3801 + | }
|
3802 + | }
|
3803 + | }
|
3804 + | impl ::std::error::Error for ConstraintViolation {}
|
3805 + | impl ConstraintViolation {
|
3806 + | pub(crate) fn as_validation_exception_field(
|
3807 + | self,
|
3808 + | path: ::std::string::String,
|
3809 + | ) -> crate::model::ValidationExceptionField {
|
3810 + | match self {
|
3811 + | ConstraintViolation::MapOfLengthListOfPatternString(inner) => {
|
3812 + | inner.as_validation_exception_field(path + "/mapOfLengthListOfPatternString")
|
3813 + | }
|
3814 + | }
|
3815 + | }
|
3816 + | }
|
3817 + | impl ::std::convert::From<ConstraintViolation>
|
3818 + | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3819 + | {
|
3820 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3821 + | let first_validation_exception_field =
|
3822 + | constraint_violation.as_validation_exception_field("".to_owned());
|
3823 + | let validation_exception = crate::error::ValidationException {
|
3824 + | message: format!(
|
3825 + | "1 validation error detected. {}",
|
3826 + | &first_validation_exception_field.message
|
3827 + | ),
|
3828 + | field_list: Some(vec![first_validation_exception_field]),
|
3829 + | };
|
3830 + | Self::ConstraintViolation(
|
3831 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
3832 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
3833 + | )
|
3834 + | }
|
3835 + | }
|
3836 + | impl ::std::convert::From<Builder>
|
3837 + | for crate::constrained::MaybeConstrained<
|
3838 + | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput,
|
3839 + | >
|
3840 + | {
|
3841 + | fn from(builder: Builder) -> Self {
|
3842 + | Self::Unconstrained(builder)
|
3843 + | }
|
3844 + | }
|
3845 + | impl ::std::convert::TryFrom<Builder>
|
3846 + | for crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
3847 + | {
|
3848 + | type Error = ConstraintViolation;
|
3849 + |
|
3850 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3851 + | builder.build()
|
3852 + | }
|
3853 + | }
|
3854 + | /// A builder for [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
3855 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3856 + | pub(crate) struct Builder {
|
3857 + | 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>>,
|
3858 + | }
|
3859 + | impl Builder {
|
3860 + | #[allow(missing_docs)] // documentation missing in model
|
3861 + | pub(crate) fn set_map_of_length_list_of_pattern_string(
|
3862 + | mut self,
|
3863 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_list_of_pattern_string_constrained::MapOfLengthListOfPatternStringConstrained>>>,
|
3864 + | ) -> Self {
|
3865 + | self.map_of_length_list_of_pattern_string = input.map(|v| v.into());
|
3866 + | self
|
3867 + | }
|
3868 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
3869 + | ///
|
3870 + | /// The builder fails to construct a [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
3871 + | ///
|
3872 + | pub fn build(
|
3873 + | self,
|
3874 + | ) -> Result<
|
3875 + | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput,
|
3876 + | ConstraintViolation,
|
3877 + | > {
|
3878 + | self.build_enforcing_all_constraints()
|
3879 + | }
|
3880 + | fn build_enforcing_all_constraints(
|
3881 + | self,
|
3882 + | ) -> Result<
|
3883 + | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput,
|
3884 + | ConstraintViolation,
|
3885 + | > {
|
3886 + | Ok(
|
3887 + | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
3888 + | map_of_length_list_of_pattern_string: self
|
3889 + | .map_of_length_list_of_pattern_string
|
4570 3890 | .map(|v| match v {
|
4571 3891 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4572 3892 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4573 3893 | })
|
4574 3894 | .map(|res| {
|
4575 3895 | res.map(|v| v.into())
|
4576 - | .map_err(ConstraintViolation::RangeLongListHeader)
|
4577 - | })
|
4578 - | .transpose()?,
|
4579 - | length_string_query: self
|
4580 - | .length_string_query
|
4581 - | .map(|v| match v {
|
4582 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4583 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4584 - | })
|
4585 - | .map(|res| res.map_err(ConstraintViolation::LengthStringQuery))
|
4586 - | .transpose()?
|
4587 - | .map(|v: crate::model::LengthString| v.into()),
|
4588 - | range_byte_query: self
|
4589 - | .range_byte_query
|
4590 - | .map(|v| match v {
|
4591 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4592 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4593 - | })
|
4594 - | .map(|res| res.map_err(ConstraintViolation::RangeByteQuery))
|
4595 - | .transpose()?
|
4596 - | .map(|v: crate::model::RangeByte| v.into())
|
4597 - | .unwrap_or(0i8),
|
4598 - | range_short_query: self
|
4599 - | .range_short_query
|
4600 - | .map(|v| match v {
|
4601 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4602 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4603 - | })
|
4604 - | .map(|res| res.map_err(ConstraintViolation::RangeShortQuery))
|
4605 - | .transpose()?
|
4606 - | .map(|v: crate::model::RangeShort| v.into())
|
4607 - | .unwrap_or(0i16),
|
4608 - | range_integer_query: self
|
4609 - | .range_integer_query
|
4610 - | .map(|v| match v {
|
4611 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4612 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4613 - | })
|
4614 - | .map(|res| res.map_err(ConstraintViolation::RangeIntegerQuery))
|
4615 - | .transpose()?
|
4616 - | .map(|v: crate::model::RangeInteger| v.into())
|
4617 - | .unwrap_or(0i32),
|
4618 - | range_long_query: self
|
4619 - | .range_long_query
|
4620 - | .map(|v| match v {
|
4621 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4622 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4623 - | })
|
4624 - | .map(|res| res.map_err(ConstraintViolation::RangeLongQuery))
|
4625 - | .transpose()?
|
4626 - | .map(|v: crate::model::RangeLong| v.into())
|
4627 - | .unwrap_or(0i64),
|
4628 - | enum_string_query: self
|
4629 - | .enum_string_query
|
4630 - | .map(|v| match v {
|
4631 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4632 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3896 + | .map_err(ConstraintViolation::MapOfLengthListOfPatternString)
|
4633 3897 | })
|
4634 - | .map(|res| res.map_err(ConstraintViolation::EnumStringQuery))
|
4635 3898 | .transpose()?,
|
4636 - | length_string_list_query: self
|
4637 - | .length_string_list_query
|
3899 + | },
|
3900 + | )
|
3901 + | }
|
3902 + | }
|
3903 + | }
|
3904 + | /// See [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
3905 + | pub mod query_params_targeting_map_of_length_list_of_pattern_string_operation_input {
|
3906 + |
|
3907 + | impl ::std::convert::From<Builder>
|
3908 + | for crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
3909 + | {
|
3910 + | fn from(builder: Builder) -> Self {
|
3911 + | builder.build()
|
3912 + | }
|
3913 + | }
|
3914 + | /// A builder for [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
3915 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3916 + | pub struct Builder {
|
3917 + | pub(crate) map_of_length_list_of_pattern_string: ::std::option::Option<
|
3918 + | ::std::collections::HashMap<
|
3919 + | ::std::string::String,
|
3920 + | ::std::vec::Vec<::std::string::String>,
|
3921 + | >,
|
3922 + | >,
|
3923 + | }
|
3924 + | impl Builder {
|
3925 + | #[allow(missing_docs)] // documentation missing in model
|
3926 + | pub fn map_of_length_list_of_pattern_string(
|
3927 + | mut self,
|
3928 + | input: ::std::option::Option<
|
3929 + | ::std::collections::HashMap<
|
3930 + | ::std::string::String,
|
3931 + | ::std::vec::Vec<::std::string::String>,
|
3932 + | >,
|
3933 + | >,
|
3934 + | ) -> Self {
|
3935 + | self.map_of_length_list_of_pattern_string = input;
|
3936 + | self
|
3937 + | }
|
3938 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
3939 + | pub fn build(
|
3940 + | self,
|
3941 + | ) -> crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
3942 + | {
|
3943 + | self.build_enforcing_required_and_enum_traits()
|
3944 + | }
|
3945 + | fn build_enforcing_required_and_enum_traits(
|
3946 + | self,
|
3947 + | ) -> crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
3948 + | {
|
3949 + | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
3950 + | map_of_length_list_of_pattern_string: self.map_of_length_list_of_pattern_string,
|
3951 + | }
|
3952 + | }
|
3953 + | }
|
3954 + | }
|
3955 + | /// See [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
3956 + | pub(crate) mod query_params_targeting_map_of_list_of_enum_string_operation_input_internal {
|
3957 + |
|
3958 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3959 + | /// Holds one variant for each of the ways the builder can fail.
|
3960 + | #[non_exhaustive]
|
3961 + | #[allow(clippy::enum_variant_names)]
|
3962 + | pub(crate) enum ConstraintViolation {
|
3963 + | /// Constraint violation occurred building member `map_of_list_of_enum_string` when building `QueryParamsTargetingMapOfListOfEnumStringOperationInput`.
|
3964 + | #[doc(hidden)]
|
3965 + | MapOfListOfEnumString(
|
3966 + | crate::model::map_of_list_of_enum_string_internal::ConstraintViolation,
|
3967 + | ),
|
3968 + | }
|
3969 + | impl ::std::fmt::Display for ConstraintViolation {
|
3970 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3971 + | match self {
|
3972 + | ConstraintViolation::MapOfListOfEnumString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_enum_string` when building `QueryParamsTargetingMapOfListOfEnumStringOperationInput`"),
|
3973 + | }
|
3974 + | }
|
3975 + | }
|
3976 + | impl ::std::error::Error for ConstraintViolation {}
|
3977 + | impl ConstraintViolation {
|
3978 + | pub(crate) fn as_validation_exception_field(
|
3979 + | self,
|
3980 + | path: ::std::string::String,
|
3981 + | ) -> crate::model::ValidationExceptionField {
|
3982 + | match self {
|
3983 + | ConstraintViolation::MapOfListOfEnumString(inner) => {
|
3984 + | inner.as_validation_exception_field(path + "/mapOfListOfEnumString")
|
3985 + | }
|
3986 + | }
|
3987 + | }
|
3988 + | }
|
3989 + | impl ::std::convert::From<ConstraintViolation>
|
3990 + | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3991 + | {
|
3992 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3993 + | let first_validation_exception_field =
|
3994 + | constraint_violation.as_validation_exception_field("".to_owned());
|
3995 + | let validation_exception = crate::error::ValidationException {
|
3996 + | message: format!(
|
3997 + | "1 validation error detected. {}",
|
3998 + | &first_validation_exception_field.message
|
3999 + | ),
|
4000 + | field_list: Some(vec![first_validation_exception_field]),
|
4001 + | };
|
4002 + | Self::ConstraintViolation(
|
4003 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4004 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4005 + | )
|
4006 + | }
|
4007 + | }
|
4008 + | impl ::std::convert::From<Builder>
|
4009 + | for crate::constrained::MaybeConstrained<
|
4010 + | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput,
|
4011 + | >
|
4012 + | {
|
4013 + | fn from(builder: Builder) -> Self {
|
4014 + | Self::Unconstrained(builder)
|
4015 + | }
|
4016 + | }
|
4017 + | impl ::std::convert::TryFrom<Builder>
|
4018 + | for crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput
|
4019 + | {
|
4020 + | type Error = ConstraintViolation;
|
4021 + |
|
4022 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4023 + | builder.build()
|
4024 + | }
|
4025 + | }
|
4026 + | /// A builder for [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
4027 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4028 + | pub(crate) struct Builder {
|
4029 + | pub(crate) map_of_list_of_enum_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_enum_string_constrained::MapOfListOfEnumStringConstrained>>,
|
4030 + | }
|
4031 + | impl Builder {
|
4032 + | #[allow(missing_docs)] // documentation missing in model
|
4033 + | pub(crate) fn set_map_of_list_of_enum_string(
|
4034 + | mut self,
|
4035 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_enum_string_constrained::MapOfListOfEnumStringConstrained>>>,
|
4036 + | ) -> Self {
|
4037 + | self.map_of_list_of_enum_string = input.map(|v| v.into());
|
4038 + | self
|
4039 + | }
|
4040 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
4041 + | ///
|
4042 + | /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput) if a [`ConstraintViolation`] occurs.
|
4043 + | ///
|
4044 + | pub fn build(
|
4045 + | self,
|
4046 + | ) -> Result<
|
4047 + | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput,
|
4048 + | ConstraintViolation,
|
4049 + | > {
|
4050 + | self.build_enforcing_all_constraints()
|
4051 + | }
|
4052 + | fn build_enforcing_all_constraints(
|
4053 + | self,
|
4054 + | ) -> Result<
|
4055 + | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput,
|
4056 + | ConstraintViolation,
|
4057 + | > {
|
4058 + | Ok(
|
4059 + | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
4060 + | map_of_list_of_enum_string: self
|
4061 + | .map_of_list_of_enum_string
|
4638 4062 | .map(|v| match v {
|
4639 4063 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4640 4064 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4641 4065 | })
|
4642 4066 | .map(|res| {
|
4643 4067 | res.map(|v| v.into())
|
4644 - | .map_err(ConstraintViolation::LengthStringListQuery)
|
4068 + | .map_err(ConstraintViolation::MapOfListOfEnumString)
|
4645 4069 | })
|
4646 4070 | .transpose()?,
|
4647 - | length_list_pattern_string_query: self
|
4648 - | .length_list_pattern_string_query
|
4649 - | .map(|v| match v {
|
4650 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4651 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4652 - | })
|
4653 - | .map(|res| res.map_err(ConstraintViolation::LengthListPatternStringQuery))
|
4654 - | .transpose()?
|
4655 - | .map(|v: crate::model::LengthListOfPatternString| v.into()),
|
4656 - | length_string_set_query: self
|
4657 - | .length_string_set_query
|
4658 - | .map(|v| match v {
|
4659 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4660 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4661 - | })
|
4662 - | .map(|res| res.map_err(ConstraintViolation::LengthStringSetQuery))
|
4663 - | .transpose()?
|
4664 - | .map(|v: crate::model::SetOfLengthString| v.into()),
|
4665 - | range_byte_list_query: self
|
4666 - | .range_byte_list_query
|
4071 + | },
|
4072 + | )
|
4073 + | }
|
4074 + | }
|
4075 + | }
|
4076 + | /// See [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
4077 + | pub mod query_params_targeting_map_of_list_of_enum_string_operation_input {
|
4078 + |
|
4079 + | impl ::std::convert::From<Builder>
|
4080 + | for crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput
|
4081 + | {
|
4082 + | fn from(builder: Builder) -> Self {
|
4083 + | builder.build()
|
4084 + | }
|
4085 + | }
|
4086 + | /// A builder for [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
4087 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4088 + | pub struct Builder {
|
4089 + | pub(crate) map_of_list_of_enum_string: ::std::option::Option<
|
4090 + | ::std::collections::HashMap<
|
4091 + | crate::model::EnumString,
|
4092 + | ::std::vec::Vec<crate::model::EnumString>,
|
4093 + | >,
|
4094 + | >,
|
4095 + | }
|
4096 + | impl Builder {
|
4097 + | #[allow(missing_docs)] // documentation missing in model
|
4098 + | pub fn map_of_list_of_enum_string(
|
4099 + | mut self,
|
4100 + | input: ::std::option::Option<
|
4101 + | ::std::collections::HashMap<
|
4102 + | crate::model::EnumString,
|
4103 + | ::std::vec::Vec<crate::model::EnumString>,
|
4104 + | >,
|
4105 + | >,
|
4106 + | ) -> Self {
|
4107 + | self.map_of_list_of_enum_string = input;
|
4108 + | self
|
4109 + | }
|
4110 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
4111 + | pub fn build(
|
4112 + | self,
|
4113 + | ) -> crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
4114 + | self.build_enforcing_required_and_enum_traits()
|
4115 + | }
|
4116 + | fn build_enforcing_required_and_enum_traits(
|
4117 + | self,
|
4118 + | ) -> crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
4119 + | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
4120 + | map_of_list_of_enum_string: self.map_of_list_of_enum_string,
|
4121 + | }
|
4122 + | }
|
4123 + | }
|
4124 + | }
|
4125 + | /// See [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
4126 + | pub(crate) mod query_params_targeting_map_of_pattern_string_operation_input_internal {
|
4127 + |
|
4128 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4129 + | /// Holds one variant for each of the ways the builder can fail.
|
4130 + | #[non_exhaustive]
|
4131 + | #[allow(clippy::enum_variant_names)]
|
4132 + | pub(crate) enum ConstraintViolation {
|
4133 + | /// Constraint violation occurred building member `map_of_pattern_string` when building `QueryParamsTargetingMapOfPatternStringOperationInput`.
|
4134 + | #[doc(hidden)]
|
4135 + | MapOfPatternString(crate::model::map_of_pattern_string_internal::ConstraintViolation),
|
4136 + | }
|
4137 + | impl ::std::fmt::Display for ConstraintViolation {
|
4138 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4139 + | match self {
|
4140 + | ConstraintViolation::MapOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_pattern_string` when building `QueryParamsTargetingMapOfPatternStringOperationInput`"),
|
4141 + | }
|
4142 + | }
|
4143 + | }
|
4144 + | impl ::std::error::Error for ConstraintViolation {}
|
4145 + | impl ConstraintViolation {
|
4146 + | pub(crate) fn as_validation_exception_field(
|
4147 + | self,
|
4148 + | path: ::std::string::String,
|
4149 + | ) -> crate::model::ValidationExceptionField {
|
4150 + | match self {
|
4151 + | ConstraintViolation::MapOfPatternString(inner) => {
|
4152 + | inner.as_validation_exception_field(path + "/mapOfPatternString")
|
4153 + | }
|
4154 + | }
|
4155 + | }
|
4156 + | }
|
4157 + | impl ::std::convert::From<ConstraintViolation>
|
4158 + | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4159 + | {
|
4160 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4161 + | let first_validation_exception_field =
|
4162 + | constraint_violation.as_validation_exception_field("".to_owned());
|
4163 + | let validation_exception = crate::error::ValidationException {
|
4164 + | message: format!(
|
4165 + | "1 validation error detected. {}",
|
4166 + | &first_validation_exception_field.message
|
4167 + | ),
|
4168 + | field_list: Some(vec![first_validation_exception_field]),
|
4169 + | };
|
4170 + | Self::ConstraintViolation(
|
4171 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4172 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4173 + | )
|
4174 + | }
|
4175 + | }
|
4176 + | impl ::std::convert::From<Builder>
|
4177 + | for crate::constrained::MaybeConstrained<
|
4178 + | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput,
|
4179 + | >
|
4180 + | {
|
4181 + | fn from(builder: Builder) -> Self {
|
4182 + | Self::Unconstrained(builder)
|
4183 + | }
|
4184 + | }
|
4185 + | impl ::std::convert::TryFrom<Builder>
|
4186 + | for crate::input::QueryParamsTargetingMapOfPatternStringOperationInput
|
4187 + | {
|
4188 + | type Error = ConstraintViolation;
|
4189 + |
|
4190 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4191 + | builder.build()
|
4192 + | }
|
4193 + | }
|
4194 + | /// A builder for [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
4195 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4196 + | pub(crate) struct Builder {
|
4197 + | pub(crate) map_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained>>,
|
4198 + | }
|
4199 + | impl Builder {
|
4200 + | #[allow(missing_docs)] // documentation missing in model
|
4201 + | pub(crate) fn set_map_of_pattern_string(
|
4202 + | mut self,
|
4203 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained>>>,
|
4204 + | ) -> Self {
|
4205 + | self.map_of_pattern_string = input.map(|v| v.into());
|
4206 + | self
|
4207 + | }
|
4208 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
4209 + | ///
|
4210 + | /// The builder fails to construct a [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
4211 + | ///
|
4212 + | pub fn build(
|
4213 + | self,
|
4214 + | ) -> Result<
|
4215 + | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput,
|
4216 + | ConstraintViolation,
|
4217 + | > {
|
4218 + | self.build_enforcing_all_constraints()
|
4219 + | }
|
4220 + | fn build_enforcing_all_constraints(
|
4221 + | self,
|
4222 + | ) -> Result<
|
4223 + | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput,
|
4224 + | ConstraintViolation,
|
4225 + | > {
|
4226 + | Ok(
|
4227 + | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput {
|
4228 + | map_of_pattern_string: self
|
4229 + | .map_of_pattern_string
|
4667 4230 | .map(|v| match v {
|
4668 4231 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4669 4232 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4670 4233 | })
|
4671 4234 | .map(|res| {
|
4672 4235 | res.map(|v| v.into())
|
4673 - | .map_err(ConstraintViolation::RangeByteListQuery)
|
4236 + | .map_err(ConstraintViolation::MapOfPatternString)
|
4674 4237 | })
|
4675 4238 | .transpose()?,
|
4676 - | range_short_list_query: self
|
4677 - | .range_short_list_query
|
4239 + | },
|
4240 + | )
|
4241 + | }
|
4242 + | }
|
4243 + | }
|
4244 + | /// See [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
4245 + | pub mod query_params_targeting_map_of_pattern_string_operation_input {
|
4246 + |
|
4247 + | impl ::std::convert::From<Builder>
|
4248 + | for crate::input::QueryParamsTargetingMapOfPatternStringOperationInput
|
4249 + | {
|
4250 + | fn from(builder: Builder) -> Self {
|
4251 + | builder.build()
|
4252 + | }
|
4253 + | }
|
4254 + | /// A builder for [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
4255 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4256 + | pub struct Builder {
|
4257 + | pub(crate) map_of_pattern_string: ::std::option::Option<
|
4258 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
4259 + | >,
|
4260 + | }
|
4261 + | impl Builder {
|
4262 + | #[allow(missing_docs)] // documentation missing in model
|
4263 + | pub fn map_of_pattern_string(
|
4264 + | mut self,
|
4265 + | input: ::std::option::Option<
|
4266 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
4267 + | >,
|
4268 + | ) -> Self {
|
4269 + | self.map_of_pattern_string = input;
|
4270 + | self
|
4271 + | }
|
4272 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
4273 + | pub fn build(self) -> crate::input::QueryParamsTargetingMapOfPatternStringOperationInput {
|
4274 + | self.build_enforcing_required_and_enum_traits()
|
4275 + | }
|
4276 + | fn build_enforcing_required_and_enum_traits(
|
4277 + | self,
|
4278 + | ) -> crate::input::QueryParamsTargetingMapOfPatternStringOperationInput {
|
4279 + | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput {
|
4280 + | map_of_pattern_string: self.map_of_pattern_string,
|
4281 + | }
|
4282 + | }
|
4283 + | }
|
4284 + | }
|
4285 + | /// See [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
4286 + | pub(crate) mod query_params_targeting_map_of_list_of_pattern_string_operation_input_internal {
|
4287 + |
|
4288 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4289 + | /// Holds one variant for each of the ways the builder can fail.
|
4290 + | #[non_exhaustive]
|
4291 + | #[allow(clippy::enum_variant_names)]
|
4292 + | pub(crate) enum ConstraintViolation {
|
4293 + | /// Constraint violation occurred building member `map_of_list_of_pattern_string` when building `QueryParamsTargetingMapOfListOfPatternStringOperationInput`.
|
4294 + | #[doc(hidden)]
|
4295 + | MapOfListOfPatternString(
|
4296 + | crate::model::map_of_list_of_pattern_string_internal::ConstraintViolation,
|
4297 + | ),
|
4298 + | }
|
4299 + | impl ::std::fmt::Display for ConstraintViolation {
|
4300 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4301 + | match self {
|
4302 + | ConstraintViolation::MapOfListOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_pattern_string` when building `QueryParamsTargetingMapOfListOfPatternStringOperationInput`"),
|
4303 + | }
|
4304 + | }
|
4305 + | }
|
4306 + | impl ::std::error::Error for ConstraintViolation {}
|
4307 + | impl ConstraintViolation {
|
4308 + | pub(crate) fn as_validation_exception_field(
|
4309 + | self,
|
4310 + | path: ::std::string::String,
|
4311 + | ) -> crate::model::ValidationExceptionField {
|
4312 + | match self {
|
4313 + | ConstraintViolation::MapOfListOfPatternString(inner) => {
|
4314 + | inner.as_validation_exception_field(path + "/mapOfListOfPatternString")
|
4315 + | }
|
4316 + | }
|
4317 + | }
|
4318 + | }
|
4319 + | impl ::std::convert::From<ConstraintViolation>
|
4320 + | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4321 + | {
|
4322 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4323 + | let first_validation_exception_field =
|
4324 + | constraint_violation.as_validation_exception_field("".to_owned());
|
4325 + | let validation_exception = crate::error::ValidationException {
|
4326 + | message: format!(
|
4327 + | "1 validation error detected. {}",
|
4328 + | &first_validation_exception_field.message
|
4329 + | ),
|
4330 + | field_list: Some(vec![first_validation_exception_field]),
|
4331 + | };
|
4332 + | Self::ConstraintViolation(
|
4333 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4334 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4335 + | )
|
4336 + | }
|
4337 + | }
|
4338 + | impl ::std::convert::From<Builder>
|
4339 + | for crate::constrained::MaybeConstrained<
|
4340 + | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput,
|
4341 + | >
|
4342 + | {
|
4343 + | fn from(builder: Builder) -> Self {
|
4344 + | Self::Unconstrained(builder)
|
4345 + | }
|
4346 + | }
|
4347 + | impl ::std::convert::TryFrom<Builder>
|
4348 + | for crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput
|
4349 + | {
|
4350 + | type Error = ConstraintViolation;
|
4351 + |
|
4352 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4353 + | builder.build()
|
4354 + | }
|
4355 + | }
|
4356 + | /// A builder for [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
4357 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4358 + | pub(crate) struct Builder {
|
4359 + | pub(crate) map_of_list_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_pattern_string_constrained::MapOfListOfPatternStringConstrained>>,
|
4360 + | }
|
4361 + | impl Builder {
|
4362 + | #[allow(missing_docs)] // documentation missing in model
|
4363 + | pub(crate) fn set_map_of_list_of_pattern_string(
|
4364 + | mut self,
|
4365 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_pattern_string_constrained::MapOfListOfPatternStringConstrained>>>,
|
4366 + | ) -> Self {
|
4367 + | self.map_of_list_of_pattern_string = input.map(|v| v.into());
|
4368 + | self
|
4369 + | }
|
4370 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
4371 + | ///
|
4372 + | /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
4373 + | ///
|
4374 + | pub fn build(
|
4375 + | self,
|
4376 + | ) -> Result<
|
4377 + | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput,
|
4378 + | ConstraintViolation,
|
4379 + | > {
|
4380 + | self.build_enforcing_all_constraints()
|
4381 + | }
|
4382 + | fn build_enforcing_all_constraints(
|
4383 + | self,
|
4384 + | ) -> Result<
|
4385 + | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput,
|
4386 + | ConstraintViolation,
|
4387 + | > {
|
4388 + | Ok(
|
4389 + | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
4390 + | map_of_list_of_pattern_string: self
|
4391 + | .map_of_list_of_pattern_string
|
4678 4392 | .map(|v| match v {
|
4679 4393 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4680 4394 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4681 4395 | })
|
4682 4396 | .map(|res| {
|
4683 4397 | res.map(|v| v.into())
|
4684 - | .map_err(ConstraintViolation::RangeShortListQuery)
|
4398 + | .map_err(ConstraintViolation::MapOfListOfPatternString)
|
4685 4399 | })
|
4686 4400 | .transpose()?,
|
4687 - | range_integer_list_query: self
|
4688 - | .range_integer_list_query
|
4401 + | },
|
4402 + | )
|
4403 + | }
|
4404 + | }
|
4405 + | }
|
4406 + | /// See [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
4407 + | pub mod query_params_targeting_map_of_list_of_pattern_string_operation_input {
|
4408 + |
|
4409 + | impl ::std::convert::From<Builder>
|
4410 + | for crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput
|
4411 + | {
|
4412 + | fn from(builder: Builder) -> Self {
|
4413 + | builder.build()
|
4414 + | }
|
4415 + | }
|
4416 + | /// A builder for [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
4417 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4418 + | pub struct Builder {
|
4419 + | pub(crate) map_of_list_of_pattern_string: ::std::option::Option<
|
4420 + | ::std::collections::HashMap<
|
4421 + | ::std::string::String,
|
4422 + | ::std::vec::Vec<::std::string::String>,
|
4423 + | >,
|
4424 + | >,
|
4425 + | }
|
4426 + | impl Builder {
|
4427 + | #[allow(missing_docs)] // documentation missing in model
|
4428 + | pub fn map_of_list_of_pattern_string(
|
4429 + | mut self,
|
4430 + | input: ::std::option::Option<
|
4431 + | ::std::collections::HashMap<
|
4432 + | ::std::string::String,
|
4433 + | ::std::vec::Vec<::std::string::String>,
|
4434 + | >,
|
4435 + | >,
|
4436 + | ) -> Self {
|
4437 + | self.map_of_list_of_pattern_string = input;
|
4438 + | self
|
4439 + | }
|
4440 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
4441 + | pub fn build(
|
4442 + | self,
|
4443 + | ) -> crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
4444 + | self.build_enforcing_required_and_enum_traits()
|
4445 + | }
|
4446 + | fn build_enforcing_required_and_enum_traits(
|
4447 + | self,
|
4448 + | ) -> crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
4449 + | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
4450 + | map_of_list_of_pattern_string: self.map_of_list_of_pattern_string,
|
4451 + | }
|
4452 + | }
|
4453 + | }
|
4454 + | }
|
4455 + | /// See [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
4456 + | pub(crate) mod query_params_targeting_map_of_length_pattern_string_operation_input_internal {
|
4457 + |
|
4458 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4459 + | /// Holds one variant for each of the ways the builder can fail.
|
4460 + | #[non_exhaustive]
|
4461 + | #[allow(clippy::enum_variant_names)]
|
4462 + | pub(crate) enum ConstraintViolation {
|
4463 + | /// Constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfLengthPatternStringOperationInput`.
|
4464 + | #[doc(hidden)]
|
4465 + | MapOfLengthPatternString(
|
4466 + | crate::model::map_of_length_pattern_string_internal::ConstraintViolation,
|
4467 + | ),
|
4468 + | }
|
4469 + | impl ::std::fmt::Display for ConstraintViolation {
|
4470 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4471 + | match self {
|
4472 + | ConstraintViolation::MapOfLengthPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfLengthPatternStringOperationInput`"),
|
4473 + | }
|
4474 + | }
|
4475 + | }
|
4476 + | impl ::std::error::Error for ConstraintViolation {}
|
4477 + | impl ConstraintViolation {
|
4478 + | pub(crate) fn as_validation_exception_field(
|
4479 + | self,
|
4480 + | path: ::std::string::String,
|
4481 + | ) -> crate::model::ValidationExceptionField {
|
4482 + | match self {
|
4483 + | ConstraintViolation::MapOfLengthPatternString(inner) => {
|
4484 + | inner.as_validation_exception_field(path + "/mapOfLengthPatternString")
|
4485 + | }
|
4486 + | }
|
4487 + | }
|
4488 + | }
|
4489 + | impl ::std::convert::From<ConstraintViolation>
|
4490 + | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4491 + | {
|
4492 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4493 + | let first_validation_exception_field =
|
4494 + | constraint_violation.as_validation_exception_field("".to_owned());
|
4495 + | let validation_exception = crate::error::ValidationException {
|
4496 + | message: format!(
|
4497 + | "1 validation error detected. {}",
|
4498 + | &first_validation_exception_field.message
|
4499 + | ),
|
4500 + | field_list: Some(vec![first_validation_exception_field]),
|
4501 + | };
|
4502 + | Self::ConstraintViolation(
|
4503 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4504 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4505 + | )
|
4506 + | }
|
4507 + | }
|
4508 + | impl ::std::convert::From<Builder>
|
4509 + | for crate::constrained::MaybeConstrained<
|
4510 + | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput,
|
4511 + | >
|
4512 + | {
|
4513 + | fn from(builder: Builder) -> Self {
|
4514 + | Self::Unconstrained(builder)
|
4515 + | }
|
4516 + | }
|
4517 + | impl ::std::convert::TryFrom<Builder>
|
4518 + | for crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput
|
4519 + | {
|
4520 + | type Error = ConstraintViolation;
|
4521 + |
|
4522 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4523 + | builder.build()
|
4524 + | }
|
4525 + | }
|
4526 + | /// A builder for [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
4527 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4528 + | pub(crate) struct Builder {
|
4529 + | pub(crate) map_of_length_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_pattern_string_constrained::MapOfLengthPatternStringConstrained>>,
|
4530 + | }
|
4531 + | impl Builder {
|
4532 + | #[allow(missing_docs)] // documentation missing in model
|
4533 + | pub(crate) fn set_map_of_length_pattern_string(
|
4534 + | mut self,
|
4535 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_pattern_string_constrained::MapOfLengthPatternStringConstrained>>>,
|
4536 + | ) -> Self {
|
4537 + | self.map_of_length_pattern_string = input.map(|v| v.into());
|
4538 + | self
|
4539 + | }
|
4540 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
4541 + | ///
|
4542 + | /// The builder fails to construct a [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
4543 + | ///
|
4544 + | pub fn build(
|
4545 + | self,
|
4546 + | ) -> Result<
|
4547 + | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput,
|
4548 + | ConstraintViolation,
|
4549 + | > {
|
4550 + | self.build_enforcing_all_constraints()
|
4551 + | }
|
4552 + | fn build_enforcing_all_constraints(
|
4553 + | self,
|
4554 + | ) -> Result<
|
4555 + | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput,
|
4556 + | ConstraintViolation,
|
4557 + | > {
|
4558 + | Ok(
|
4559 + | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
4560 + | map_of_length_pattern_string: self
|
4561 + | .map_of_length_pattern_string
|
4689 4562 | .map(|v| match v {
|
4690 4563 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4691 4564 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4692 4565 | })
|
4693 4566 | .map(|res| {
|
4694 4567 | res.map(|v| v.into())
|
4695 - | .map_err(ConstraintViolation::RangeIntegerListQuery)
|
4568 + | .map_err(ConstraintViolation::MapOfLengthPatternString)
|
4696 4569 | })
|
4697 4570 | .transpose()?,
|
4698 - | range_long_list_query: self
|
4699 - | .range_long_list_query
|
4571 + | },
|
4572 + | )
|
4573 + | }
|
4574 + | }
|
4575 + | }
|
4576 + | /// See [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
4577 + | pub mod query_params_targeting_map_of_length_pattern_string_operation_input {
|
4578 + |
|
4579 + | impl ::std::convert::From<Builder>
|
4580 + | for crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput
|
4581 + | {
|
4582 + | fn from(builder: Builder) -> Self {
|
4583 + | builder.build()
|
4584 + | }
|
4585 + | }
|
4586 + | /// A builder for [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
4587 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4588 + | pub struct Builder {
|
4589 + | pub(crate) map_of_length_pattern_string: ::std::option::Option<
|
4590 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
4591 + | >,
|
4592 + | }
|
4593 + | impl Builder {
|
4594 + | #[allow(missing_docs)] // documentation missing in model
|
4595 + | pub fn map_of_length_pattern_string(
|
4596 + | mut self,
|
4597 + | input: ::std::option::Option<
|
4598 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
4599 + | >,
|
4600 + | ) -> Self {
|
4601 + | self.map_of_length_pattern_string = input;
|
4602 + | self
|
4603 + | }
|
4604 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
4605 + | pub fn build(
|
4606 + | self,
|
4607 + | ) -> crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
4608 + | self.build_enforcing_required_and_enum_traits()
|
4609 + | }
|
4610 + | fn build_enforcing_required_and_enum_traits(
|
4611 + | self,
|
4612 + | ) -> crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
4613 + | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
4614 + | map_of_length_pattern_string: self.map_of_length_pattern_string,
|
4615 + | }
|
4616 + | }
|
4617 + | }
|
4618 + | }
|
4619 + | /// See [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
4620 + | pub(crate) mod query_params_targeting_map_of_list_of_length_pattern_string_operation_input_internal {
|
4621 + |
|
4622 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4623 + | /// Holds one variant for each of the ways the builder can fail.
|
4624 + | #[non_exhaustive]
|
4625 + | #[allow(clippy::enum_variant_names)]
|
4626 + | pub(crate) enum ConstraintViolation {
|
4627 + | /// Constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`.
|
4628 + | #[doc(hidden)]
|
4629 + | MapOfLengthPatternString(
|
4630 + | crate::model::map_of_list_of_length_pattern_string_internal::ConstraintViolation,
|
4631 + | ),
|
4632 + | }
|
4633 + | impl ::std::fmt::Display for ConstraintViolation {
|
4634 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4635 + | match self {
|
4636 + | ConstraintViolation::MapOfLengthPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`"),
|
4637 + | }
|
4638 + | }
|
4639 + | }
|
4640 + | impl ::std::error::Error for ConstraintViolation {}
|
4641 + | impl ConstraintViolation {
|
4642 + | pub(crate) fn as_validation_exception_field(
|
4643 + | self,
|
4644 + | path: ::std::string::String,
|
4645 + | ) -> crate::model::ValidationExceptionField {
|
4646 + | match self {
|
4647 + | ConstraintViolation::MapOfLengthPatternString(inner) => {
|
4648 + | inner.as_validation_exception_field(path + "/mapOfLengthPatternString")
|
4649 + | }
|
4650 + | }
|
4651 + | }
|
4652 + | }
|
4653 + | impl ::std::convert::From<ConstraintViolation>
|
4654 + | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4655 + | {
|
4656 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4657 + | let first_validation_exception_field =
|
4658 + | constraint_violation.as_validation_exception_field("".to_owned());
|
4659 + | let validation_exception = crate::error::ValidationException {
|
4660 + | message: format!(
|
4661 + | "1 validation error detected. {}",
|
4662 + | &first_validation_exception_field.message
|
4663 + | ),
|
4664 + | field_list: Some(vec![first_validation_exception_field]),
|
4665 + | };
|
4666 + | Self::ConstraintViolation(
|
4667 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4668 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4669 + | )
|
4670 + | }
|
4671 + | }
|
4672 + | impl ::std::convert::From<Builder>
|
4673 + | for crate::constrained::MaybeConstrained<
|
4674 + | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput,
|
4675 + | >
|
4676 + | {
|
4677 + | fn from(builder: Builder) -> Self {
|
4678 + | Self::Unconstrained(builder)
|
4679 + | }
|
4680 + | }
|
4681 + | impl ::std::convert::TryFrom<Builder>
|
4682 + | for crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
4683 + | {
|
4684 + | type Error = ConstraintViolation;
|
4685 + |
|
4686 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4687 + | builder.build()
|
4688 + | }
|
4689 + | }
|
4690 + | /// A builder for [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
4691 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4692 + | pub(crate) struct Builder {
|
4693 + | pub(crate) map_of_length_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_pattern_string_constrained::MapOfListOfLengthPatternStringConstrained>>,
|
4694 + | }
|
4695 + | impl Builder {
|
4696 + | #[allow(missing_docs)] // documentation missing in model
|
4697 + | pub(crate) fn set_map_of_length_pattern_string(
|
4698 + | mut self,
|
4699 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_pattern_string_constrained::MapOfListOfLengthPatternStringConstrained>>>,
|
4700 + | ) -> Self {
|
4701 + | self.map_of_length_pattern_string = input.map(|v| v.into());
|
4702 + | self
|
4703 + | }
|
4704 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
4705 + | ///
|
4706 + | /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
4707 + | ///
|
4708 + | pub fn build(
|
4709 + | self,
|
4710 + | ) -> Result<
|
4711 + | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput,
|
4712 + | ConstraintViolation,
|
4713 + | > {
|
4714 + | self.build_enforcing_all_constraints()
|
4715 + | }
|
4716 + | fn build_enforcing_all_constraints(
|
4717 + | self,
|
4718 + | ) -> Result<
|
4719 + | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput,
|
4720 + | ConstraintViolation,
|
4721 + | > {
|
4722 + | Ok(
|
4723 + | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
4724 + | map_of_length_pattern_string: self
|
4725 + | .map_of_length_pattern_string
|
4700 4726 | .map(|v| match v {
|
4701 4727 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4702 4728 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4703 4729 | })
|
4704 4730 | .map(|res| {
|
4705 4731 | res.map(|v| v.into())
|
4706 - | .map_err(ConstraintViolation::RangeLongListQuery)
|
4732 + | .map_err(ConstraintViolation::MapOfLengthPatternString)
|
4707 4733 | })
|
4708 4734 | .transpose()?,
|
4709 - | range_byte_set_query: self
|
4710 - | .range_byte_set_query
|
4711 - | .map(|v| match v {
|
4712 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4713 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4714 - | })
|
4715 - | .map(|res| res.map_err(ConstraintViolation::RangeByteSetQuery))
|
4716 - | .transpose()?
|
4717 - | .map(|v: crate::model::SetOfRangeByte| v.into()),
|
4718 - | range_short_set_query: self
|
4719 - | .range_short_set_query
|
4720 - | .map(|v| match v {
|
4721 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4722 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4723 - | })
|
4724 - | .map(|res| res.map_err(ConstraintViolation::RangeShortSetQuery))
|
4725 - | .transpose()?
|
4726 - | .map(|v: crate::model::SetOfRangeShort| v.into()),
|
4727 - | range_integer_set_query: self
|
4728 - | .range_integer_set_query
|
4729 - | .map(|v| match v {
|
4730 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4731 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4732 - | })
|
4733 - | .map(|res| res.map_err(ConstraintViolation::RangeIntegerSetQuery))
|
4734 - | .transpose()?
|
4735 - | .map(|v: crate::model::SetOfRangeInteger| v.into()),
|
4736 - | range_long_set_query: self
|
4737 - | .range_long_set_query
|
4738 - | .map(|v| match v {
|
4739 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4740 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4741 - | })
|
4742 - | .map(|res| res.map_err(ConstraintViolation::RangeLongSetQuery))
|
4743 - | .transpose()?
|
4744 - | .map(|v: crate::model::SetOfRangeLong| v.into()),
|
4745 - | enum_string_list_query: self
|
4746 - | .enum_string_list_query
|
4735 + | },
|
4736 + | )
|
4737 + | }
|
4738 + | }
|
4739 + | }
|
4740 + | /// See [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
4741 + | pub mod query_params_targeting_map_of_list_of_length_pattern_string_operation_input {
|
4742 + |
|
4743 + | impl ::std::convert::From<Builder>
|
4744 + | for crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
4745 + | {
|
4746 + | fn from(builder: Builder) -> Self {
|
4747 + | builder.build()
|
4748 + | }
|
4749 + | }
|
4750 + | /// A builder for [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
4751 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4752 + | pub struct Builder {
|
4753 + | pub(crate) map_of_length_pattern_string: ::std::option::Option<
|
4754 + | ::std::collections::HashMap<
|
4755 + | ::std::string::String,
|
4756 + | ::std::vec::Vec<::std::string::String>,
|
4757 + | >,
|
4758 + | >,
|
4759 + | }
|
4760 + | impl Builder {
|
4761 + | #[allow(missing_docs)] // documentation missing in model
|
4762 + | pub fn map_of_length_pattern_string(
|
4763 + | mut self,
|
4764 + | input: ::std::option::Option<
|
4765 + | ::std::collections::HashMap<
|
4766 + | ::std::string::String,
|
4767 + | ::std::vec::Vec<::std::string::String>,
|
4768 + | >,
|
4769 + | >,
|
4770 + | ) -> Self {
|
4771 + | self.map_of_length_pattern_string = input;
|
4772 + | self
|
4773 + | }
|
4774 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
4775 + | pub fn build(
|
4776 + | self,
|
4777 + | ) -> crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
4778 + | {
|
4779 + | self.build_enforcing_required_and_enum_traits()
|
4780 + | }
|
4781 + | fn build_enforcing_required_and_enum_traits(
|
4782 + | self,
|
4783 + | ) -> crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
4784 + | {
|
4785 + | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
4786 + | map_of_length_pattern_string: self.map_of_length_pattern_string,
|
4787 + | }
|
4788 + | }
|
4789 + | }
|
4790 + | }
|
4791 + | /// See [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
4792 + | pub(crate) mod http_prefix_headers_targeting_length_map_operation_input_internal {
|
4793 + |
|
4794 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4795 + | /// Holds one variant for each of the ways the builder can fail.
|
4796 + | #[non_exhaustive]
|
4797 + | #[allow(clippy::enum_variant_names)]
|
4798 + | pub(crate) enum ConstraintViolation {
|
4799 + | /// Constraint violation occurred building member `length_map` when building `HttpPrefixHeadersTargetingLengthMapOperationInput`.
|
4800 + | #[doc(hidden)]
|
4801 + | LengthMap(crate::model::con_b_map_internal::ConstraintViolation),
|
4802 + | }
|
4803 + | impl ::std::fmt::Display for ConstraintViolation {
|
4804 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4805 + | match self {
|
4806 + | ConstraintViolation::LengthMap(_) => write!(f, "constraint violation occurred building member `length_map` when building `HttpPrefixHeadersTargetingLengthMapOperationInput`"),
|
4807 + | }
|
4808 + | }
|
4809 + | }
|
4810 + | impl ::std::error::Error for ConstraintViolation {}
|
4811 + | impl ConstraintViolation {
|
4812 + | pub(crate) fn as_validation_exception_field(
|
4813 + | self,
|
4814 + | path: ::std::string::String,
|
4815 + | ) -> crate::model::ValidationExceptionField {
|
4816 + | match self {
|
4817 + | ConstraintViolation::LengthMap(inner) => {
|
4818 + | inner.as_validation_exception_field(path + "/lengthMap")
|
4819 + | }
|
4820 + | }
|
4821 + | }
|
4822 + | }
|
4823 + | impl ::std::convert::From<ConstraintViolation>
|
4824 + | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4825 + | {
|
4826 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4827 + | let first_validation_exception_field =
|
4828 + | constraint_violation.as_validation_exception_field("".to_owned());
|
4829 + | let validation_exception = crate::error::ValidationException {
|
4830 + | message: format!(
|
4831 + | "1 validation error detected. {}",
|
4832 + | &first_validation_exception_field.message
|
4833 + | ),
|
4834 + | field_list: Some(vec![first_validation_exception_field]),
|
4835 + | };
|
4836 + | Self::ConstraintViolation(
|
4837 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4838 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4839 + | )
|
4840 + | }
|
4841 + | }
|
4842 + | impl ::std::convert::From<Builder>
|
4843 + | for crate::constrained::MaybeConstrained<
|
4844 + | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput,
|
4845 + | >
|
4846 + | {
|
4847 + | fn from(builder: Builder) -> Self {
|
4848 + | Self::Unconstrained(builder)
|
4849 + | }
|
4850 + | }
|
4851 + | impl ::std::convert::TryFrom<Builder>
|
4852 + | for crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput
|
4853 + | {
|
4854 + | type Error = ConstraintViolation;
|
4855 + |
|
4856 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4857 + | builder.build()
|
4858 + | }
|
4859 + | }
|
4860 + | /// A builder for [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
4861 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4862 + | pub(crate) struct Builder {
|
4863 + | pub(crate) length_map:
|
4864 + | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
4865 + | }
|
4866 + | impl Builder {
|
4867 + | #[allow(missing_docs)] // documentation missing in model
|
4868 + | pub(crate) fn set_length_map(
|
4869 + | mut self,
|
4870 + | input: Option<
|
4871 + | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
4872 + | >,
|
4873 + | ) -> Self {
|
4874 + | self.length_map = input.map(|v| v.into());
|
4875 + | self
|
4876 + | }
|
4877 + | /// Consumes the builder and constructs a [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
4878 + | ///
|
4879 + | /// The builder fails to construct a [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput) if a [`ConstraintViolation`] occurs.
|
4880 + | ///
|
4881 + | pub fn build(
|
4882 + | self,
|
4883 + | ) -> Result<
|
4884 + | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput,
|
4885 + | ConstraintViolation,
|
4886 + | > {
|
4887 + | self.build_enforcing_all_constraints()
|
4888 + | }
|
4889 + | fn build_enforcing_all_constraints(
|
4890 + | self,
|
4891 + | ) -> Result<
|
4892 + | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput,
|
4893 + | ConstraintViolation,
|
4894 + | > {
|
4895 + | Ok(
|
4896 + | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput {
|
4897 + | length_map: self
|
4898 + | .length_map
|
4747 4899 | .map(|v| match v {
|
4748 4900 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4749 4901 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4750 4902 | })
|
4751 - | .map(|res| {
|
4752 - | res.map(|v| v.into())
|
4753 - | .map_err(ConstraintViolation::EnumStringListQuery)
|
4754 - | })
|
4755 - | .transpose()?,
|
4756 - | })
|
4903 + | .map(|res| res.map_err(ConstraintViolation::LengthMap))
|
4904 + | .transpose()?
|
4905 + | .map(|v: crate::model::ConBMap| v.into()),
|
4906 + | },
|
4907 + | )
|
4757 4908 | }
|
4758 4909 | }
|
4759 4910 | }
|
4760 - | /// See [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
4761 - | pub mod constrained_http_bound_shapes_operation_input {
|
4762 - |
|
4763 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4764 - | /// Holds one variant for each of the ways the builder can fail.
|
4765 - | #[allow(clippy::enum_variant_names)]
|
4766 - | pub enum ConstraintViolation {
|
4767 - | /// `length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
4768 - | MissingLengthStringLabel,
|
4769 - | /// `enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
4770 - | MissingEnumStringLabel,
|
4771 - | /// `length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
4772 - | MissingLengthStringHeaderMap,
|
4773 - | }
|
4774 - | impl ::std::fmt::Display for ConstraintViolation {
|
4775 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4776 - | match self {
|
4777 - | ConstraintViolation::MissingLengthStringLabel => write!(f, "`length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4778 - | ConstraintViolation::MissingEnumStringLabel => write!(f, "`enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4779 - | ConstraintViolation::MissingLengthStringHeaderMap => write!(f, "`length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4780 - | }
|
4781 - | }
|
4782 - | }
|
4783 - | impl ::std::error::Error for ConstraintViolation {}
|
4784 - | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedHttpBoundShapesOperationInput {
|
4785 - | type Error = ConstraintViolation;
|
4911 + | /// See [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
4912 + | pub mod http_prefix_headers_targeting_length_map_operation_input {
|
4786 4913 |
|
4787 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4914 + | impl ::std::convert::From<Builder>
|
4915 + | for crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput
|
4916 + | {
|
4917 + | fn from(builder: Builder) -> Self {
|
4788 4918 | builder.build()
|
4789 4919 | }
|
4790 4920 | }
|
4791 - | /// A builder for [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
4921 + | /// A builder for [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
4792 4922 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4793 4923 | pub struct Builder {
|
4794 - | pub(crate) length_string_label: ::std::option::Option<::std::string::String>,
|
4795 - | pub(crate) range_integer_label: ::std::option::Option<i32>,
|
4796 - | pub(crate) range_short_label: ::std::option::Option<i16>,
|
4797 - | pub(crate) range_long_label: ::std::option::Option<i64>,
|
4798 - | pub(crate) range_byte_label: ::std::option::Option<i8>,
|
4799 - | pub(crate) enum_string_label: ::std::option::Option<crate::model::EnumString>,
|
4800 - | pub(crate) length_string_header_map: ::std::option::Option<
|
4924 + | pub(crate) length_map: ::std::option::Option<
|
4801 4925 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
4802 4926 | >,
|
4803 - | pub(crate) length_string_header: ::std::option::Option<::std::string::String>,
|
4804 - | pub(crate) range_integer_header: ::std::option::Option<i32>,
|
4805 - | pub(crate) range_short_header: ::std::option::Option<i16>,
|
4806 - | pub(crate) range_long_header: ::std::option::Option<i64>,
|
4807 - | pub(crate) range_byte_header: ::std::option::Option<i8>,
|
4808 - | pub(crate) length_string_set_header:
|
4809 - | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
4810 - | pub(crate) list_length_string_header:
|
4811 - | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
4812 - | pub(crate) length_list_pattern_string_header:
|
4813 - | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
4814 - | pub(crate) length_set_pattern_string_header:
|
4815 - | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
4816 - | pub(crate) range_byte_set_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
4817 - | pub(crate) range_short_set_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
4818 - | pub(crate) range_integer_set_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
4819 - | pub(crate) range_long_set_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
4820 - | pub(crate) range_byte_list_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
4821 - | pub(crate) range_short_list_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
4822 - | pub(crate) range_integer_list_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
4823 - | pub(crate) range_long_list_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
4824 - | pub(crate) length_string_query: ::std::option::Option<::std::string::String>,
|
4825 - | pub(crate) range_byte_query: ::std::option::Option<i8>,
|
4826 - | pub(crate) range_short_query: ::std::option::Option<i16>,
|
4827 - | pub(crate) range_integer_query: ::std::option::Option<i32>,
|
4828 - | pub(crate) range_long_query: ::std::option::Option<i64>,
|
4829 - | pub(crate) enum_string_query: ::std::option::Option<crate::model::EnumString>,
|
4830 - | pub(crate) length_string_list_query:
|
4831 - | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
4832 - | pub(crate) length_list_pattern_string_query:
|
4833 - | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
4834 - | pub(crate) length_string_set_query:
|
4835 - | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
4836 - | pub(crate) range_byte_list_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
4837 - | pub(crate) range_short_list_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
4838 - | pub(crate) range_integer_list_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
4839 - | pub(crate) range_long_list_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
4840 - | pub(crate) range_byte_set_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
4841 - | pub(crate) range_short_set_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
4842 - | pub(crate) range_integer_set_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
4843 - | pub(crate) range_long_set_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
4844 - | pub(crate) enum_string_list_query:
|
4845 - | ::std::option::Option<::std::vec::Vec<crate::model::EnumString>>,
|
4846 4927 | }
|
4847 4928 | impl Builder {
|
4848 4929 | #[allow(missing_docs)] // documentation missing in model
|
4849 - | pub fn length_string_label(mut self, input: ::std::string::String) -> Self {
|
4850 - | self.length_string_label = Some(input);
|
4930 + | pub fn length_map(
|
4931 + | mut self,
|
4932 + | input: ::std::option::Option<
|
4933 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
4934 + | >,
|
4935 + | ) -> Self {
|
4936 + | self.length_map = input;
|
4851 4937 | self
|
4852 4938 | }
|
4853 - | #[allow(missing_docs)] // documentation missing in model
|
4854 - | pub fn range_integer_label(mut self, input: i32) -> Self {
|
4855 - | self.range_integer_label = Some(input);
|
4856 - | self
|
4939 + | /// Consumes the builder and constructs a [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
4940 + | pub fn build(self) -> crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput {
|
4941 + | self.build_enforcing_required_and_enum_traits()
|
4857 4942 | }
|
4858 - | #[allow(missing_docs)] // documentation missing in model
|
4859 - | pub fn range_short_label(mut self, input: i16) -> Self {
|
4860 - | self.range_short_label = Some(input);
|
4861 - | self
|
4943 + | fn build_enforcing_required_and_enum_traits(
|
4944 + | self,
|
4945 + | ) -> crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput {
|
4946 + | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput {
|
4947 + | length_map: self.length_map,
|
4862 4948 | }
|
4863 - | #[allow(missing_docs)] // documentation missing in model
|
4864 - | pub fn range_long_label(mut self, input: i64) -> Self {
|
4865 - | self.range_long_label = Some(input);
|
4866 - | self
|
4867 4949 | }
|
4868 - | #[allow(missing_docs)] // documentation missing in model
|
4869 - | pub fn range_byte_label(mut self, input: i8) -> Self {
|
4870 - | self.range_byte_label = Some(input);
|
4871 - | self
|
4872 4950 | }
|
4873 - | #[allow(missing_docs)] // documentation missing in model
|
4874 - | pub fn enum_string_label(mut self, input: crate::model::EnumString) -> Self {
|
4875 - | self.enum_string_label = Some(input);
|
4876 - | self
|
4951 + | }
|
4952 + | /// See [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
4953 + | pub(crate) mod query_params_targeting_map_of_enum_string_operation_input_internal {
|
4954 + |
|
4955 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4956 + | /// Holds one variant for each of the ways the builder can fail.
|
4957 + | #[non_exhaustive]
|
4958 + | #[allow(clippy::enum_variant_names)]
|
4959 + | pub(crate) enum ConstraintViolation {
|
4960 + | /// Constraint violation occurred building member `map_of_enum_string` when building `QueryParamsTargetingMapOfEnumStringOperationInput`.
|
4961 + | #[doc(hidden)]
|
4962 + | MapOfEnumString(crate::model::map_of_enum_string_internal::ConstraintViolation),
|
4877 4963 | }
|
4878 - | #[allow(missing_docs)] // documentation missing in model
|
4879 - | pub fn length_string_header_map(
|
4880 - | mut self,
|
4881 - | input: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
4882 - | ) -> Self {
|
4883 - | self.length_string_header_map = Some(input);
|
4884 - | self
|
4964 + | impl ::std::fmt::Display for ConstraintViolation {
|
4965 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4966 + | match self {
|
4967 + | ConstraintViolation::MapOfEnumString(_) => write!(f, "constraint violation occurred building member `map_of_enum_string` when building `QueryParamsTargetingMapOfEnumStringOperationInput`"),
|
4885 4968 | }
|
4886 - | #[allow(missing_docs)] // documentation missing in model
|
4887 - | pub fn length_string_header(
|
4888 - | mut self,
|
4889 - | input: ::std::option::Option<::std::string::String>,
|
4890 - | ) -> Self {
|
4891 - | self.length_string_header = input;
|
4892 - | self
|
4893 4969 | }
|
4894 - | #[allow(missing_docs)] // documentation missing in model
|
4895 - | pub fn range_integer_header(mut self, input: i32) -> Self {
|
4896 - | self.range_integer_header = Some(input);
|
4897 - | self
|
4898 4970 | }
|
4899 - | #[allow(missing_docs)] // documentation missing in model
|
4900 - | pub fn range_short_header(mut self, input: i16) -> Self {
|
4901 - | self.range_short_header = Some(input);
|
4902 - | self
|
4971 + | impl ::std::error::Error for ConstraintViolation {}
|
4972 + | impl ConstraintViolation {
|
4973 + | pub(crate) fn as_validation_exception_field(
|
4974 + | self,
|
4975 + | path: ::std::string::String,
|
4976 + | ) -> crate::model::ValidationExceptionField {
|
4977 + | match self {
|
4978 + | ConstraintViolation::MapOfEnumString(inner) => {
|
4979 + | inner.as_validation_exception_field(path + "/mapOfEnumString")
|
4903 4980 | }
|
4904 - | #[allow(missing_docs)] // documentation missing in model
|
4905 - | pub fn range_long_header(mut self, input: i64) -> Self {
|
4906 - | self.range_long_header = Some(input);
|
4907 - | self
|
4908 4981 | }
|
4909 - | #[allow(missing_docs)] // documentation missing in model
|
4910 - | pub fn range_byte_header(mut self, input: i8) -> Self {
|
4911 - | self.range_byte_header = Some(input);
|
4912 - | self
|
4913 4982 | }
|
4914 - | #[allow(missing_docs)] // documentation missing in model
|
4915 - | pub fn length_string_set_header(
|
4916 - | mut self,
|
4917 - | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
4918 - | ) -> Self {
|
4919 - | self.length_string_set_header = input;
|
4920 - | self
|
4921 4983 | }
|
4922 - | #[allow(missing_docs)] // documentation missing in model
|
4923 - | pub fn list_length_string_header(
|
4924 - | mut self,
|
4925 - | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
4926 - | ) -> Self {
|
4927 - | self.list_length_string_header = input;
|
4928 - | self
|
4984 + | impl ::std::convert::From<ConstraintViolation>
|
4985 + | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4986 + | {
|
4987 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4988 + | let first_validation_exception_field =
|
4989 + | constraint_violation.as_validation_exception_field("".to_owned());
|
4990 + | let validation_exception = crate::error::ValidationException {
|
4991 + | message: format!(
|
4992 + | "1 validation error detected. {}",
|
4993 + | &first_validation_exception_field.message
|
4994 + | ),
|
4995 + | field_list: Some(vec![first_validation_exception_field]),
|
4996 + | };
|
4997 + | Self::ConstraintViolation(
|
4998 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4999 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
5000 + | )
|
4929 5001 | }
|
4930 - | #[allow(missing_docs)] // documentation missing in model
|
4931 - | pub fn length_list_pattern_string_header(
|
4932 - | mut self,
|
4933 - | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
4934 - | ) -> Self {
|
4935 - | self.length_list_pattern_string_header = input;
|
4936 - | self
|
4937 5002 | }
|
4938 - | #[allow(missing_docs)] // documentation missing in model
|
4939 - | pub fn length_set_pattern_string_header(
|
4940 - | mut self,
|
4941 - | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
4942 - | ) -> Self {
|
4943 - | self.length_set_pattern_string_header = input;
|
4944 - | self
|
5003 + | impl ::std::convert::From<Builder>
|
5004 + | for crate::constrained::MaybeConstrained<
|
5005 + | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput,
|
5006 + | >
|
5007 + | {
|
5008 + | fn from(builder: Builder) -> Self {
|
5009 + | Self::Unconstrained(builder)
|
4945 5010 | }
|
4946 - | #[allow(missing_docs)] // documentation missing in model
|
4947 - | pub fn range_byte_set_header(
|
4948 - | mut self,
|
4949 - | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
4950 - | ) -> Self {
|
4951 - | self.range_byte_set_header = input;
|
4952 - | self
|
4953 5011 | }
|
4954 - | #[allow(missing_docs)] // documentation missing in model
|
4955 - | pub fn range_short_set_header(
|
4956 - | mut self,
|
4957 - | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
4958 - | ) -> Self {
|
4959 - | self.range_short_set_header = input;
|
4960 - | self
|
5012 + | impl ::std::convert::TryFrom<Builder>
|
5013 + | for crate::input::QueryParamsTargetingMapOfEnumStringOperationInput
|
5014 + | {
|
5015 + | type Error = ConstraintViolation;
|
5016 + |
|
5017 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5018 + | builder.build()
|
5019 + | }
|
4961 5020 | }
|
4962 - | #[allow(missing_docs)] // documentation missing in model
|
4963 - | pub fn range_integer_set_header(
|
4964 - | mut self,
|
4965 - | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
4966 - | ) -> Self {
|
4967 - | self.range_integer_set_header = input;
|
4968 - | self
|
5021 + | /// A builder for [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
5022 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5023 + | pub(crate) struct Builder {
|
5024 + | pub(crate) map_of_enum_string: ::std::option::Option<
|
5025 + | crate::constrained::MaybeConstrained<
|
5026 + | crate::constrained::map_of_enum_string_constrained::MapOfEnumStringConstrained,
|
5027 + | >,
|
5028 + | >,
|
4969 5029 | }
|
5030 + | impl Builder {
|
4970 5031 | #[allow(missing_docs)] // documentation missing in model
|
4971 - | pub fn range_long_set_header(
|
5032 + | pub(crate) fn set_map_of_enum_string(
|
4972 5033 | mut self,
|
4973 - | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
5034 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_enum_string_constrained::MapOfEnumStringConstrained>>>,
|
4974 5035 | ) -> Self {
|
4975 - | self.range_long_set_header = input;
|
5036 + | self.map_of_enum_string = input.map(|v| v.into());
|
4976 5037 | self
|
4977 5038 | }
|
4978 - | #[allow(missing_docs)] // documentation missing in model
|
4979 - | pub fn range_byte_list_header(
|
4980 - | mut self,
|
4981 - | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
4982 - | ) -> Self {
|
4983 - | self.range_byte_list_header = input;
|
4984 - | self
|
5039 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
5040 + | ///
|
5041 + | /// The builder fails to construct a [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput) if a [`ConstraintViolation`] occurs.
|
5042 + | ///
|
5043 + | pub fn build(
|
5044 + | self,
|
5045 + | ) -> Result<
|
5046 + | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput,
|
5047 + | ConstraintViolation,
|
5048 + | > {
|
5049 + | self.build_enforcing_all_constraints()
|
4985 5050 | }
|
4986 - | #[allow(missing_docs)] // documentation missing in model
|
4987 - | pub fn range_short_list_header(
|
4988 - | mut self,
|
4989 - | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
4990 - | ) -> Self {
|
4991 - | self.range_short_list_header = input;
|
4992 - | self
|
5051 + | fn build_enforcing_all_constraints(
|
5052 + | self,
|
5053 + | ) -> Result<
|
5054 + | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput,
|
5055 + | ConstraintViolation,
|
5056 + | > {
|
5057 + | Ok(
|
5058 + | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput {
|
5059 + | map_of_enum_string: self
|
5060 + | .map_of_enum_string
|
5061 + | .map(|v| match v {
|
5062 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5063 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5064 + | })
|
5065 + | .map(|res| {
|
5066 + | res.map(|v| v.into())
|
5067 + | .map_err(ConstraintViolation::MapOfEnumString)
|
5068 + | })
|
5069 + | .transpose()?,
|
5070 + | },
|
5071 + | )
|
4993 5072 | }
|
4994 - | #[allow(missing_docs)] // documentation missing in model
|
4995 - | pub fn range_integer_list_header(
|
4996 - | mut self,
|
4997 - | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
4998 - | ) -> Self {
|
4999 - | self.range_integer_list_header = input;
|
5000 - | self
|
5001 5073 | }
|
5002 - | #[allow(missing_docs)] // documentation missing in model
|
5003 - | pub fn range_long_list_header(
|
5004 - | mut self,
|
5005 - | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
5006 - | ) -> Self {
|
5007 - | self.range_long_list_header = input;
|
5008 - | self
|
5074 + | }
|
5075 + | /// See [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
5076 + | pub mod query_params_targeting_map_of_enum_string_operation_input {
|
5077 + |
|
5078 + | impl ::std::convert::From<Builder>
|
5079 + | for crate::input::QueryParamsTargetingMapOfEnumStringOperationInput
|
5080 + | {
|
5081 + | fn from(builder: Builder) -> Self {
|
5082 + | builder.build()
|
5083 + | }
|
5084 + | }
|
5085 + | /// A builder for [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
5086 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5087 + | pub struct Builder {
|
5088 + | pub(crate) map_of_enum_string: ::std::option::Option<
|
5089 + | ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
5090 + | >,
|
5009 5091 | }
|
5092 + | impl Builder {
|
5010 5093 | #[allow(missing_docs)] // documentation missing in model
|
5011 - | pub fn length_string_query(
|
5094 + | pub fn map_of_enum_string(
|
5012 5095 | mut self,
|
5013 - | input: ::std::option::Option<::std::string::String>,
|
5096 + | input: ::std::option::Option<
|
5097 + | ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
5098 + | >,
|
5014 5099 | ) -> Self {
|
5015 - | self.length_string_query = input;
|
5016 - | self
|
5017 - | }
|
5018 - | #[allow(missing_docs)] // documentation missing in model
|
5019 - | pub fn range_byte_query(mut self, input: i8) -> Self {
|
5020 - | self.range_byte_query = Some(input);
|
5100 + | self.map_of_enum_string = input;
|
5021 5101 | self
|
5022 5102 | }
|
5023 - | #[allow(missing_docs)] // documentation missing in model
|
5024 - | pub fn range_short_query(mut self, input: i16) -> Self {
|
5025 - | self.range_short_query = Some(input);
|
5026 - | self
|
5103 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
5104 + | pub fn build(self) -> crate::input::QueryParamsTargetingMapOfEnumStringOperationInput {
|
5105 + | self.build_enforcing_required_and_enum_traits()
|
5027 5106 | }
|
5028 - | #[allow(missing_docs)] // documentation missing in model
|
5029 - | pub fn range_integer_query(mut self, input: i32) -> Self {
|
5030 - | self.range_integer_query = Some(input);
|
5031 - | self
|
5107 + | fn build_enforcing_required_and_enum_traits(
|
5108 + | self,
|
5109 + | ) -> crate::input::QueryParamsTargetingMapOfEnumStringOperationInput {
|
5110 + | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput {
|
5111 + | map_of_enum_string: self.map_of_enum_string,
|
5032 5112 | }
|
5033 - | #[allow(missing_docs)] // documentation missing in model
|
5034 - | pub fn range_long_query(mut self, input: i64) -> Self {
|
5035 - | self.range_long_query = Some(input);
|
5036 - | self
|
5037 5113 | }
|
5038 - | #[allow(missing_docs)] // documentation missing in model
|
5039 - | pub fn enum_string_query(
|
5040 - | mut self,
|
5041 - | input: ::std::option::Option<crate::model::EnumString>,
|
5042 - | ) -> Self {
|
5043 - | self.enum_string_query = input;
|
5044 - | self
|
5045 5114 | }
|
5046 - | #[allow(missing_docs)] // documentation missing in model
|
5047 - | pub fn length_string_list_query(
|
5048 - | mut self,
|
5049 - | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5050 - | ) -> Self {
|
5051 - | self.length_string_list_query = input;
|
5052 - | self
|
5115 + | }
|
5116 + | /// See [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
5117 + | pub(crate) mod non_streaming_blob_operation_input_internal {
|
5118 + |
|
5119 + | impl ::std::convert::From<Builder> for crate::input::NonStreamingBlobOperationInput {
|
5120 + | fn from(builder: Builder) -> Self {
|
5121 + | builder.build()
|
5053 5122 | }
|
5054 - | #[allow(missing_docs)] // documentation missing in model
|
5055 - | pub fn length_list_pattern_string_query(
|
5056 - | mut self,
|
5057 - | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5058 - | ) -> Self {
|
5059 - | self.length_list_pattern_string_query = input;
|
5060 - | self
|
5061 5123 | }
|
5062 - | #[allow(missing_docs)] // documentation missing in model
|
5063 - | pub fn length_string_set_query(
|
5064 - | mut self,
|
5065 - | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5066 - | ) -> Self {
|
5067 - | self.length_string_set_query = input;
|
5068 - | self
|
5124 + | /// A builder for [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
5125 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5126 + | pub(crate) struct Builder {
|
5127 + | pub(crate) non_streaming_blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
5069 5128 | }
|
5129 + | impl Builder {
|
5070 5130 | #[allow(missing_docs)] // documentation missing in model
|
5071 - | pub fn range_byte_list_query(
|
5131 + | pub(crate) fn set_non_streaming_blob(
|
5072 5132 | mut self,
|
5073 - | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
5133 + | input: Option<impl ::std::convert::Into<::aws_smithy_types::Blob>>,
|
5074 5134 | ) -> Self {
|
5075 - | self.range_byte_list_query = input;
|
5135 + | self.non_streaming_blob = input.map(|v| v.into());
|
5076 5136 | self
|
5077 5137 | }
|
5078 - | #[allow(missing_docs)] // documentation missing in model
|
5079 - | pub fn range_short_list_query(
|
5080 - | mut self,
|
5081 - | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
5082 - | ) -> Self {
|
5083 - | self.range_short_list_query = input;
|
5084 - | self
|
5138 + | /// Consumes the builder and constructs a [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
5139 + | pub fn build(self) -> crate::input::NonStreamingBlobOperationInput {
|
5140 + | self.build_enforcing_all_constraints()
|
5085 5141 | }
|
5086 - | #[allow(missing_docs)] // documentation missing in model
|
5087 - | pub fn range_integer_list_query(
|
5088 - | mut self,
|
5089 - | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
5090 - | ) -> Self {
|
5091 - | self.range_integer_list_query = input;
|
5092 - | self
|
5142 + | fn build_enforcing_all_constraints(self) -> crate::input::NonStreamingBlobOperationInput {
|
5143 + | crate::input::NonStreamingBlobOperationInput {
|
5144 + | non_streaming_blob: self.non_streaming_blob,
|
5093 5145 | }
|
5094 - | #[allow(missing_docs)] // documentation missing in model
|
5095 - | pub fn range_long_list_query(
|
5096 - | mut self,
|
5097 - | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
5098 - | ) -> Self {
|
5099 - | self.range_long_list_query = input;
|
5100 - | self
|
5101 5146 | }
|
5102 - | #[allow(missing_docs)] // documentation missing in model
|
5103 - | pub fn range_byte_set_query(
|
5104 - | mut self,
|
5105 - | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
5106 - | ) -> Self {
|
5107 - | self.range_byte_set_query = input;
|
5108 - | self
|
5109 5147 | }
|
5110 - | #[allow(missing_docs)] // documentation missing in model
|
5111 - | pub fn range_short_set_query(
|
5112 - | mut self,
|
5113 - | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
5114 - | ) -> Self {
|
5115 - | self.range_short_set_query = input;
|
5116 - | self
|
5148 + | }
|
5149 + | /// See [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
5150 + | pub mod non_streaming_blob_operation_input {
|
5151 + |
|
5152 + | impl ::std::convert::From<Builder> for crate::input::NonStreamingBlobOperationInput {
|
5153 + | fn from(builder: Builder) -> Self {
|
5154 + | builder.build()
|
5117 5155 | }
|
5118 - | #[allow(missing_docs)] // documentation missing in model
|
5119 - | pub fn range_integer_set_query(
|
5120 - | mut self,
|
5121 - | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
5122 - | ) -> Self {
|
5123 - | self.range_integer_set_query = input;
|
5124 - | self
|
5125 5156 | }
|
5126 - | #[allow(missing_docs)] // documentation missing in model
|
5127 - | pub fn range_long_set_query(
|
5128 - | mut self,
|
5129 - | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
5130 - | ) -> Self {
|
5131 - | self.range_long_set_query = input;
|
5132 - | self
|
5157 + | /// A builder for [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
5158 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5159 + | pub struct Builder {
|
5160 + | pub(crate) non_streaming_blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
5133 5161 | }
|
5162 + | impl Builder {
|
5134 5163 | #[allow(missing_docs)] // documentation missing in model
|
5135 - | pub fn enum_string_list_query(
|
5164 + | pub fn non_streaming_blob(
|
5136 5165 | mut self,
|
5137 - | input: ::std::option::Option<::std::vec::Vec<crate::model::EnumString>>,
|
5166 + | input: ::std::option::Option<::aws_smithy_types::Blob>,
|
5138 5167 | ) -> Self {
|
5139 - | self.enum_string_list_query = input;
|
5168 + | self.non_streaming_blob = input;
|
5140 5169 | self
|
5141 5170 | }
|
5142 - | /// Consumes the builder and constructs a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
5143 - | ///
|
5144 - | /// The builder fails to construct a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput) if you do not provide a value for all non-`Option`al members.
|
5145 - | ///
|
5146 - | pub fn build(
|
5147 - | self,
|
5148 - | ) -> Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ConstraintViolation>
|
5149 - | {
|
5171 + | /// Consumes the builder and constructs a [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
5172 + | pub fn build(self) -> crate::input::NonStreamingBlobOperationInput {
|
5150 5173 | self.build_enforcing_required_and_enum_traits()
|
5151 5174 | }
|
5152 5175 | fn build_enforcing_required_and_enum_traits(
|
5153 5176 | self,
|
5154 - | ) -> Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ConstraintViolation>
|
5155 - | {
|
5156 - | Ok(crate::input::ConstrainedHttpBoundShapesOperationInput {
|
5157 - | length_string_label: self
|
5158 - | .length_string_label
|
5159 - | .ok_or(ConstraintViolation::MissingLengthStringLabel)?,
|
5160 - | range_integer_label: self.range_integer_label.unwrap_or(0i32),
|
5161 - | range_short_label: self.range_short_label.unwrap_or(0i16),
|
5162 - | range_long_label: self.range_long_label.unwrap_or(0i64),
|
5163 - | range_byte_label: self.range_byte_label.unwrap_or(0i8),
|
5164 - | enum_string_label: self
|
5165 - | .enum_string_label
|
5166 - | .ok_or(ConstraintViolation::MissingEnumStringLabel)?,
|
5167 - | length_string_header_map: self
|
5168 - | .length_string_header_map
|
5169 - | .ok_or(ConstraintViolation::MissingLengthStringHeaderMap)?,
|
5170 - | length_string_header: self.length_string_header,
|
5171 - | range_integer_header: self.range_integer_header.unwrap_or(0i32),
|
5172 - | range_short_header: self.range_short_header.unwrap_or(0i16),
|
5173 - | range_long_header: self.range_long_header.unwrap_or(0i64),
|
5174 - | range_byte_header: self.range_byte_header.unwrap_or(0i8),
|
5175 - | length_string_set_header: self.length_string_set_header,
|
5176 - | list_length_string_header: self.list_length_string_header,
|
5177 - | length_list_pattern_string_header: self.length_list_pattern_string_header,
|
5178 - | length_set_pattern_string_header: self.length_set_pattern_string_header,
|
5179 - | range_byte_set_header: self.range_byte_set_header,
|
5180 - | range_short_set_header: self.range_short_set_header,
|
5181 - | range_integer_set_header: self.range_integer_set_header,
|
5182 - | range_long_set_header: self.range_long_set_header,
|
5183 - | range_byte_list_header: self.range_byte_list_header,
|
5184 - | range_short_list_header: self.range_short_list_header,
|
5185 - | range_integer_list_header: self.range_integer_list_header,
|
5186 - | range_long_list_header: self.range_long_list_header,
|
5187 - | length_string_query: self.length_string_query,
|
5188 - | range_byte_query: self.range_byte_query.unwrap_or(0i8),
|
5189 - | range_short_query: self.range_short_query.unwrap_or(0i16),
|
5190 - | range_integer_query: self.range_integer_query.unwrap_or(0i32),
|
5191 - | range_long_query: self.range_long_query.unwrap_or(0i64),
|
5192 - | enum_string_query: self.enum_string_query,
|
5193 - | length_string_list_query: self.length_string_list_query,
|
5194 - | length_list_pattern_string_query: self.length_list_pattern_string_query,
|
5195 - | length_string_set_query: self.length_string_set_query,
|
5196 - | range_byte_list_query: self.range_byte_list_query,
|
5197 - | range_short_list_query: self.range_short_list_query,
|
5198 - | range_integer_list_query: self.range_integer_list_query,
|
5199 - | range_long_list_query: self.range_long_list_query,
|
5200 - | range_byte_set_query: self.range_byte_set_query,
|
5201 - | range_short_set_query: self.range_short_set_query,
|
5202 - | range_integer_set_query: self.range_integer_set_query,
|
5203 - | range_long_set_query: self.range_long_set_query,
|
5204 - | enum_string_list_query: self.enum_string_list_query,
|
5205 - | })
|
5177 + | ) -> crate::input::NonStreamingBlobOperationInput {
|
5178 + | crate::input::NonStreamingBlobOperationInput {
|
5179 + | non_streaming_blob: self.non_streaming_blob,
|
5180 + | }
|
5206 5181 | }
|
5207 5182 | }
|
5208 5183 | }
|
5209 - | /// See [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
5210 - | pub(crate) mod constrained_shapes_only_in_output_operation_input_internal {
|
5184 + | /// See [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
5185 + | pub(crate) mod streaming_blob_operation_input_internal {
|
5211 5186 |
|
5212 - | impl ::std::convert::From<Builder> for crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
5187 + | impl ::std::convert::From<Builder> for crate::input::StreamingBlobOperationInput {
|
5213 5188 | fn from(builder: Builder) -> Self {
|
5214 5189 | builder.build()
|
5215 5190 | }
|
5216 5191 | }
|
5217 - | /// A builder for [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
5218 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5219 - | pub(crate) struct Builder {}
|
5192 + | /// A builder for [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
5193 + | #[derive(::std::default::Default, ::std::fmt::Debug)]
|
5194 + | pub(crate) struct Builder {
|
5195 + | pub(crate) streaming_blob:
|
5196 + | ::std::option::Option<::aws_smithy_types::byte_stream::ByteStream>,
|
5197 + | }
|
5220 5198 | impl Builder {
|
5221 - | /// Consumes the builder and constructs a [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
5222 - | pub fn build(self) -> crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
5199 + | #[allow(missing_docs)] // documentation missing in model
|
5200 + | pub(crate) fn set_streaming_blob(
|
5201 + | mut self,
|
5202 + | input: impl ::std::convert::Into<::aws_smithy_types::byte_stream::ByteStream>,
|
5203 + | ) -> Self {
|
5204 + | self.streaming_blob = Some(input.into());
|
5205 + | self
|
5206 + | }
|
5207 + | /// Consumes the builder and constructs a [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
5208 + | pub fn build(self) -> crate::input::StreamingBlobOperationInput {
|
5223 5209 | self.build_enforcing_all_constraints()
|
5224 5210 | }
|
5225 - | fn build_enforcing_all_constraints(
|
5226 - | self,
|
5227 - | ) -> crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
5228 - | crate::input::ConstrainedShapesOnlyInOutputOperationInput {}
|
5211 + | fn build_enforcing_all_constraints(self) -> crate::input::StreamingBlobOperationInput {
|
5212 + | crate::input::StreamingBlobOperationInput {
|
5213 + | streaming_blob: self.streaming_blob.unwrap_or_default(),
|
5214 + | }
|
5229 5215 | }
|
5230 5216 | }
|
5231 5217 | }
|
5232 - | /// See [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
5233 - | pub mod constrained_shapes_only_in_output_operation_input {
|
5218 + | /// See [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
5219 + | pub mod streaming_blob_operation_input {
|
5234 5220 |
|
5235 - | impl ::std::convert::From<Builder> for crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
5221 + | impl ::std::convert::From<Builder> for crate::input::StreamingBlobOperationInput {
|
5236 5222 | fn from(builder: Builder) -> Self {
|
5237 5223 | builder.build()
|
5238 5224 | }
|
5239 5225 | }
|
5240 - | /// A builder for [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
5241 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5242 - | pub struct Builder {}
|
5226 + | /// A builder for [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
5227 + | #[derive(::std::default::Default, ::std::fmt::Debug)]
|
5228 + | pub struct Builder {
|
5229 + | pub(crate) streaming_blob:
|
5230 + | ::std::option::Option<::aws_smithy_types::byte_stream::ByteStream>,
|
5231 + | }
|
5243 5232 | impl Builder {
|
5244 - | /// Consumes the builder and constructs a [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
5245 - | pub fn build(self) -> crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
5233 + | #[allow(missing_docs)] // documentation missing in model
|
5234 + | pub fn streaming_blob(
|
5235 + | mut self,
|
5236 + | input: ::aws_smithy_types::byte_stream::ByteStream,
|
5237 + | ) -> Self {
|
5238 + | self.streaming_blob = Some(input);
|
5239 + | self
|
5240 + | }
|
5241 + | /// Consumes the builder and constructs a [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
5242 + | pub fn build(self) -> crate::input::StreamingBlobOperationInput {
|
5246 5243 | self.build_enforcing_required_and_enum_traits()
|
5247 5244 | }
|
5248 5245 | fn build_enforcing_required_and_enum_traits(
|
5249 5246 | self,
|
5250 - | ) -> crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
5251 - | crate::input::ConstrainedShapesOnlyInOutputOperationInput {}
|
5247 + | ) -> crate::input::StreamingBlobOperationInput {
|
5248 + | crate::input::StreamingBlobOperationInput {
|
5249 + | streaming_blob: self.streaming_blob.unwrap_or_default(),
|
5250 + | }
|
5252 5251 | }
|
5253 5252 | }
|
5254 5253 | }
|
5255 - | /// See [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
5256 - | pub(crate) mod constrained_shapes_operation_input_internal {
|
5254 + | /// See [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
5255 + | pub(crate) mod event_streams_operation_input_internal {
|
5257 5256 |
|
5258 5257 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5259 5258 | /// Holds one variant for each of the ways the builder can fail.
|
5260 5259 | #[non_exhaustive]
|
5261 5260 | #[allow(clippy::enum_variant_names)]
|
5262 5261 | pub(crate) enum ConstraintViolation {
|
5263 - | /// `con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`.
|
5264 - | MissingConA,
|
5265 - | /// Constraint violation occurred building member `con_a` when building `ConstrainedShapesOperationInput`.
|
5266 - | #[doc(hidden)]
|
5267 - | ConA(crate::model::con_a_internal::ConstraintViolation),
|
5262 + | /// `events` was not provided but it is required when building `EventStreamsOperationInput`.
|
5263 + | MissingEvents,
|
5268 5264 | }
|
5269 5265 | impl ::std::fmt::Display for ConstraintViolation {
|
5270 5266 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
5271 5267 | match self {
|
5272 - | ConstraintViolation::MissingConA => write!(f, "`con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`"),
|
5273 - | ConstraintViolation::ConA(_) => write!(f, "constraint violation occurred building member `con_a` when building `ConstrainedShapesOperationInput`"),
|
5268 + | ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `EventStreamsOperationInput`"),
|
5274 5269 | }
|
5275 5270 | }
|
5276 5271 | }
|
5277 5272 | impl ::std::error::Error for ConstraintViolation {}
|
5278 5273 | impl ConstraintViolation {
|
5279 5274 | pub(crate) fn as_validation_exception_field(
|
5280 5275 | self,
|
5281 5276 | path: ::std::string::String,
|
5282 5277 | ) -> crate::model::ValidationExceptionField {
|
5283 5278 | match self {
|
5284 - | ConstraintViolation::MissingConA => crate::model::ValidationExceptionField {
|
5285 - | message: format!(
|
5286 - | "Value at '{}/conA' failed to satisfy constraint: Member must not be null",
|
5287 - | path
|
5288 - | ),
|
5289 - | path: path + "/conA",
|
5279 + | ConstraintViolation::MissingEvents => crate::model::ValidationExceptionField {
|
5280 + | message: format!("Value at '{}/events' failed to satisfy constraint: Member must not be null", path),
|
5281 + | path: path + "/events",
|
5290 5282 | },
|
5291 - | ConstraintViolation::ConA(inner) => {
|
5292 - | inner.as_validation_exception_field(path + "/conA")
|
5293 - | }
|
5294 5283 | }
|
5295 5284 | }
|
5296 5285 | }
|
5297 5286 | impl ::std::convert::From<ConstraintViolation>
|
5298 5287 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
5299 5288 | {
|
5300 5289 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
5301 5290 | let first_validation_exception_field =
|
5302 5291 | constraint_violation.as_validation_exception_field("".to_owned());
|
5303 5292 | let validation_exception = crate::error::ValidationException {
|
5304 5293 | message: format!(
|
5305 5294 | "1 validation error detected. {}",
|
5306 5295 | &first_validation_exception_field.message
|
5307 5296 | ),
|
5308 5297 | field_list: Some(vec![first_validation_exception_field]),
|
5309 5298 | };
|
5310 5299 | Self::ConstraintViolation(
|
5311 5300 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
5312 5301 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
5313 5302 | )
|
5314 5303 | }
|
5315 5304 | }
|
5316 5305 | impl ::std::convert::From<Builder>
|
5317 - | for crate::constrained::MaybeConstrained<crate::input::ConstrainedShapesOperationInput>
|
5306 + | for crate::constrained::MaybeConstrained<crate::input::EventStreamsOperationInput>
|
5318 5307 | {
|
5319 5308 | fn from(builder: Builder) -> Self {
|
5320 5309 | Self::Unconstrained(builder)
|
5321 5310 | }
|
5322 5311 | }
|
5323 - | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedShapesOperationInput {
|
5312 + | impl ::std::convert::TryFrom<Builder> for crate::input::EventStreamsOperationInput {
|
5324 5313 | type Error = ConstraintViolation;
|
5325 5314 |
|
5326 5315 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5327 5316 | builder.build()
|
5328 5317 | }
|
5329 5318 | }
|
5330 - | /// A builder for [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
5331 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5319 + | /// A builder for [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
5320 + | #[derive(::std::default::Default, ::std::fmt::Debug)]
|
5332 5321 | pub(crate) struct Builder {
|
5333 - | pub(crate) con_a:
|
5334 - | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConA>>,
|
5322 + | pub(crate) events: ::std::option::Option<
|
5323 + | ::aws_smithy_http::event_stream::Receiver<
|
5324 + | crate::model::Event,
|
5325 + | crate::error::EventError,
|
5326 + | >,
|
5327 + | >,
|
5335 5328 | }
|
5336 5329 | impl Builder {
|
5337 5330 | #[allow(missing_docs)] // documentation missing in model
|
5338 - | pub(crate) fn set_con_a(
|
5331 + | pub(crate) fn set_events(
|
5339 5332 | mut self,
|
5340 - | input: impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConA>>,
|
5333 + | input: impl ::std::convert::Into<
|
5334 + | ::aws_smithy_http::event_stream::Receiver<
|
5335 + | crate::model::Event,
|
5336 + | crate::error::EventError,
|
5337 + | >,
|
5338 + | >,
|
5341 5339 | ) -> Self {
|
5342 - | self.con_a = Some(input.into());
|
5340 + | self.events = Some(input.into());
|
5343 5341 | self
|
5344 5342 | }
|
5345 - | /// Consumes the builder and constructs a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
5343 + | /// Consumes the builder and constructs a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
5346 5344 | ///
|
5347 - | /// The builder fails to construct a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput) if a [`ConstraintViolation`] occurs.
|
5345 + | /// The builder fails to construct a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput) if a [`ConstraintViolation`] occurs.
|
5348 5346 | ///
|
5349 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
5350 5347 | pub fn build(
|
5351 5348 | self,
|
5352 - | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
5349 + | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
5353 5350 | self.build_enforcing_all_constraints()
|
5354 5351 | }
|
5355 5352 | fn build_enforcing_all_constraints(
|
5356 5353 | self,
|
5357 - | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
5358 - | Ok(crate::input::ConstrainedShapesOperationInput {
|
5359 - | con_a: self
|
5360 - | .con_a
|
5361 - | .map(|v| match v {
|
5362 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5363 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5364 - | })
|
5365 - | .map(|res| res.map_err(ConstraintViolation::ConA))
|
5366 - | .transpose()?
|
5367 - | .ok_or(ConstraintViolation::MissingConA)?,
|
5354 + | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
5355 + | Ok(crate::input::EventStreamsOperationInput {
|
5356 + | events: self.events.ok_or(ConstraintViolation::MissingEvents)?,
|
5368 5357 | })
|
5369 5358 | }
|
5370 5359 | }
|
5371 5360 | }
|
5372 - | /// See [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
5373 - | pub mod constrained_shapes_operation_input {
|
5361 + | /// See [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
5362 + | pub mod event_streams_operation_input {
|
5374 5363 |
|
5375 5364 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5376 5365 | /// Holds one variant for each of the ways the builder can fail.
|
5377 5366 | #[allow(clippy::enum_variant_names)]
|
5378 5367 | pub enum ConstraintViolation {
|
5379 - | /// `con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`.
|
5380 - | MissingConA,
|
5368 + | /// `events` was not provided but it is required when building `EventStreamsOperationInput`.
|
5369 + | MissingEvents,
|
5381 5370 | }
|
5382 5371 | impl ::std::fmt::Display for ConstraintViolation {
|
5383 5372 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
5384 5373 | match self {
|
5385 - | ConstraintViolation::MissingConA => write!(f, "`con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`"),
|
5374 + | ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `EventStreamsOperationInput`"),
|
5386 5375 | }
|
5387 5376 | }
|
5388 5377 | }
|
5389 5378 | impl ::std::error::Error for ConstraintViolation {}
|
5390 - | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedShapesOperationInput {
|
5379 + | impl ::std::convert::TryFrom<Builder> for crate::input::EventStreamsOperationInput {
|
5391 5380 | type Error = ConstraintViolation;
|
5392 5381 |
|
5393 5382 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5394 5383 | builder.build()
|
5395 5384 | }
|
5396 5385 | }
|
5397 - | /// A builder for [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
5398 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5386 + | /// A builder for [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
5387 + | #[derive(::std::default::Default, ::std::fmt::Debug)]
|
5399 5388 | pub struct Builder {
|
5400 - | pub(crate) con_a: ::std::option::Option<crate::model::ConA>,
|
5389 + | pub(crate) events: ::std::option::Option<
|
5390 + | ::aws_smithy_http::event_stream::Receiver<
|
5391 + | crate::model::Event,
|
5392 + | crate::error::EventError,
|
5393 + | >,
|
5394 + | >,
|
5401 5395 | }
|
5402 5396 | impl Builder {
|
5403 5397 | #[allow(missing_docs)] // documentation missing in model
|
5404 - | pub fn con_a(mut self, input: crate::model::ConA) -> Self {
|
5405 - | self.con_a = Some(input);
|
5398 + | pub fn events(
|
5399 + | mut self,
|
5400 + | input: ::aws_smithy_http::event_stream::Receiver<
|
5401 + | crate::model::Event,
|
5402 + | crate::error::EventError,
|
5403 + | >,
|
5404 + | ) -> Self {
|
5405 + | self.events = Some(input);
|
5406 5406 | self
|
5407 5407 | }
|
5408 - | /// Consumes the builder and constructs a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
5408 + | /// Consumes the builder and constructs a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
5409 5409 | ///
|
5410 - | /// The builder fails to construct a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput) if you do not provide a value for all non-`Option`al members.
|
5410 + | /// The builder fails to construct a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput) if you do not provide a value for all non-`Option`al members.
|
5411 5411 | ///
|
5412 5412 | pub fn build(
|
5413 5413 | self,
|
5414 - | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
5414 + | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
5415 5415 | self.build_enforcing_required_and_enum_traits()
|
5416 5416 | }
|
5417 5417 | fn build_enforcing_required_and_enum_traits(
|
5418 5418 | self,
|
5419 - | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
5420 - | Ok(crate::input::ConstrainedShapesOperationInput {
|
5421 - | con_a: self.con_a.ok_or(ConstraintViolation::MissingConA)?,
|
5419 + | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
5420 + | Ok(crate::input::EventStreamsOperationInput {
|
5421 + | events: self.events.ok_or(ConstraintViolation::MissingEvents)?,
|
5422 5422 | })
|
5423 5423 | }
|
5424 5424 | }
|
5425 5425 | }
|