1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + | /* StructureGenerator.kt:197 */
|
2 3 | #[allow(missing_docs)] // documentation missing in model
|
4 + | /* RustType.kt:516 */
|
3 5 | #[non_exhaustive]
|
6 + | /* RustType.kt:516 */
|
4 7 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5 - | pub struct ComplexStructOperationOutput {
|
8 + | pub /* StructureGenerator.kt:201 */ struct ComplexStructOperationOutput {
|
9 + | /* StructureGenerator.kt:231 */
|
6 10 | #[allow(missing_docs)] // documentation missing in model
|
7 11 | pub structure: ::std::option::Option<crate::types::SimpleStruct>,
|
12 + | /* StructureGenerator.kt:231 */
|
8 13 | #[allow(missing_docs)] // documentation missing in model
|
9 14 | pub empty_structure: ::std::option::Option<crate::types::EmptyStruct>,
|
15 + | /* StructureGenerator.kt:231 */
|
10 16 | #[allow(missing_docs)] // documentation missing in model
|
11 17 | pub list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
18 + | /* StructureGenerator.kt:231 */
|
12 19 | #[allow(missing_docs)] // documentation missing in model
|
13 20 | pub map: ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
|
21 + | /* StructureGenerator.kt:231 */
|
14 22 | #[allow(missing_docs)] // documentation missing in model
|
15 23 | pub union: ::std::option::Option<crate::types::SimpleUnion>,
|
24 + | /* StructureGenerator.kt:231 */
|
16 25 | #[allow(missing_docs)] // documentation missing in model
|
17 26 | pub unit_union: ::std::option::Option<crate::types::UnitUnion>,
|
27 + | /* StructureGenerator.kt:231 */
|
18 28 | #[allow(missing_docs)] // documentation missing in model
|
19 29 | pub structure_list: ::std::option::Option<::std::vec::Vec<crate::types::SimpleStruct>>,
|
30 + | /* StructureGenerator.kt:231 */
|
20 31 | #[allow(missing_docs)] // documentation missing in model
|
21 32 | pub complex_list: ::std::vec::Vec<::std::collections::HashMap<::std::string::String, crate::types::ComplexUnion>>,
|
33 + | /* StructureGenerator.kt:231 */
|
22 34 | #[allow(missing_docs)] // documentation missing in model
|
23 35 | pub complex_map: ::std::collections::HashMap<::std::string::String, crate::types::ComplexUnion>,
|
36 + | /* StructureGenerator.kt:231 */
|
24 37 | #[allow(missing_docs)] // documentation missing in model
|
25 38 | pub complex_union: ::std::boxed::Box<crate::types::ComplexUnion>,
|
39 + | /* StructureGenerator.kt:201 */
|
26 40 | }
|
41 + | /* StructureGenerator.kt:135 */
|
27 42 | impl ComplexStructOperationOutput {
|
43 + | /* StructureGenerator.kt:231 */
|
28 44 | #[allow(missing_docs)] // documentation missing in model
|
45 + | /* StructureGenerator.kt:166 */
|
29 46 | pub fn structure(&self) -> ::std::option::Option<&crate::types::SimpleStruct> {
|
47 + | /* StructureGenerator.kt:170 */
|
30 48 | self.structure.as_ref()
|
49 + | /* StructureGenerator.kt:166 */
|
31 50 | }
|
51 + | /* StructureGenerator.kt:231 */
|
32 52 | #[allow(missing_docs)] // documentation missing in model
|
53 + | /* StructureGenerator.kt:166 */
|
33 54 | pub fn empty_structure(&self) -> ::std::option::Option<&crate::types::EmptyStruct> {
|
55 + | /* StructureGenerator.kt:170 */
|
34 56 | self.empty_structure.as_ref()
|
57 + | /* StructureGenerator.kt:166 */
|
35 58 | }
|
59 + | /* StructureGenerator.kt:231 */
|
36 60 | #[allow(missing_docs)] // documentation missing in model
|
37 - | ///
|
38 - | /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.list.is_none()`.
|
61 + | /// /* StructureGenerator.kt:162 */
|
62 + | /// /* StructureGenerator.kt:163 */If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.list.is_none()`.
|
63 + | /* StructureGenerator.kt:166 */
|
39 64 | pub fn list(&self) -> &[::std::string::String] {
|
40 - | self.list.as_deref().unwrap_or_default()
|
65 + | /* StructureGenerator.kt:169 */
|
66 + | self.list
|
67 + | .as_deref()
|
68 + | /* StructureGenerator.kt:175 */
|
69 + | .unwrap_or_default()
|
70 + | /* StructureGenerator.kt:166 */
|
41 71 | }
|
72 + | /* StructureGenerator.kt:231 */
|
42 73 | #[allow(missing_docs)] // documentation missing in model
|
74 + | /* StructureGenerator.kt:166 */
|
43 75 | pub fn map(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, i32>> {
|
76 + | /* StructureGenerator.kt:170 */
|
44 77 | self.map.as_ref()
|
78 + | /* StructureGenerator.kt:166 */
|
45 79 | }
|
80 + | /* StructureGenerator.kt:231 */
|
46 81 | #[allow(missing_docs)] // documentation missing in model
|
82 + | /* StructureGenerator.kt:166 */
|
47 83 | pub fn union(&self) -> ::std::option::Option<&crate::types::SimpleUnion> {
|
84 + | /* StructureGenerator.kt:170 */
|
48 85 | self.union.as_ref()
|
86 + | /* StructureGenerator.kt:166 */
|
49 87 | }
|
88 + | /* StructureGenerator.kt:231 */
|
50 89 | #[allow(missing_docs)] // documentation missing in model
|
90 + | /* StructureGenerator.kt:166 */
|
51 91 | pub fn unit_union(&self) -> ::std::option::Option<&crate::types::UnitUnion> {
|
92 + | /* StructureGenerator.kt:170 */
|
52 93 | self.unit_union.as_ref()
|
94 + | /* StructureGenerator.kt:166 */
|
53 95 | }
|
96 + | /* StructureGenerator.kt:231 */
|
54 97 | #[allow(missing_docs)] // documentation missing in model
|
55 - | ///
|
56 - | /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.structure_list.is_none()`.
|
98 + | /// /* StructureGenerator.kt:162 */
|
99 + | /// /* StructureGenerator.kt:163 */If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.structure_list.is_none()`.
|
100 + | /* StructureGenerator.kt:166 */
|
57 101 | pub fn structure_list(&self) -> &[crate::types::SimpleStruct] {
|
58 - | self.structure_list.as_deref().unwrap_or_default()
|
102 + | /* StructureGenerator.kt:169 */
|
103 + | self.structure_list
|
104 + | .as_deref()
|
105 + | /* StructureGenerator.kt:175 */
|
106 + | .unwrap_or_default()
|
107 + | /* StructureGenerator.kt:166 */
|
59 108 | }
|
109 + | /* StructureGenerator.kt:231 */
|
60 110 | #[allow(missing_docs)] // documentation missing in model
|
111 + | /* StructureGenerator.kt:166 */
|
61 112 | pub fn complex_list(&self) -> &[::std::collections::HashMap<::std::string::String, crate::types::ComplexUnion>] {
|
113 + | /* StructureGenerator.kt:171 */
|
62 114 | use std::ops::Deref;
|
63 115 | self.complex_list.deref()
|
116 + | /* StructureGenerator.kt:166 */
|
64 117 | }
|
118 + | /* StructureGenerator.kt:231 */
|
65 119 | #[allow(missing_docs)] // documentation missing in model
|
120 + | /* StructureGenerator.kt:166 */
|
66 121 | pub fn complex_map(&self) -> &::std::collections::HashMap<::std::string::String, crate::types::ComplexUnion> {
|
122 + | /* StructureGenerator.kt:172 */
|
67 123 | &self.complex_map
|
124 + | /* StructureGenerator.kt:166 */
|
68 125 | }
|
126 + | /* StructureGenerator.kt:231 */
|
69 127 | #[allow(missing_docs)] // documentation missing in model
|
128 + | /* StructureGenerator.kt:166 */
|
70 129 | pub fn complex_union(&self) -> &crate::types::ComplexUnion {
|
130 + | /* StructureGenerator.kt:171 */
|
71 131 | use std::ops::Deref;
|
72 132 | self.complex_union.deref()
|
133 + | /* StructureGenerator.kt:166 */
|
73 134 | }
|
135 + | /* StructureGenerator.kt:135 */
|
74 136 | }
|
137 + | /* ClientCodegenVisitor.kt:237 */
|
75 138 | impl ComplexStructOperationOutput {
|
76 - | /// Creates a new builder-style object to manufacture [`ComplexStructOperationOutput`](crate::operation::complex_struct_operation::ComplexStructOperationOutput).
|
139 + | /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ComplexStructOperationOutput`](crate::operation::complex_struct_operation::ComplexStructOperationOutput).
|
140 + | /* BuilderGenerator.kt:175 */
|
77 141 | pub fn builder() -> crate::operation::complex_struct_operation::builders::ComplexStructOperationOutputBuilder {
|
142 + | /* BuilderGenerator.kt:176 */
|
78 143 | crate::operation::complex_struct_operation::builders::ComplexStructOperationOutputBuilder::default()
|
144 + | /* BuilderGenerator.kt:175 */
|
79 145 | }
|
146 + | /* ClientCodegenVisitor.kt:237 */
|
80 147 | }
|
81 148 |
|
82 - | /// A builder for [`ComplexStructOperationOutput`](crate::operation::complex_struct_operation::ComplexStructOperationOutput).
|
149 + | /// /* BuilderGenerator.kt:342 */A builder for [`ComplexStructOperationOutput`](crate::operation::complex_struct_operation::ComplexStructOperationOutput).
|
150 + | /* RustType.kt:516 */
|
83 151 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
152 + | /* RustType.kt:516 */
|
84 153 | #[non_exhaustive]
|
154 + | /* BuilderGenerator.kt:345 */
|
85 155 | pub struct ComplexStructOperationOutputBuilder {
|
86 - | pub(crate) structure: ::std::option::Option<crate::types::SimpleStruct>,
|
87 - | pub(crate) empty_structure: ::std::option::Option<crate::types::EmptyStruct>,
|
88 - | pub(crate) list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
89 - | pub(crate) map: ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
|
90 - | pub(crate) union: ::std::option::Option<crate::types::SimpleUnion>,
|
91 - | pub(crate) unit_union: ::std::option::Option<crate::types::UnitUnion>,
|
92 - | pub(crate) structure_list: ::std::option::Option<::std::vec::Vec<crate::types::SimpleStruct>>,
|
156 + | /* BuilderGenerator.kt:275 */ pub(crate) structure: ::std::option::Option<crate::types::SimpleStruct>,
|
157 + | /* BuilderGenerator.kt:275 */ pub(crate) empty_structure: ::std::option::Option<crate::types::EmptyStruct>,
|
158 + | /* BuilderGenerator.kt:275 */ pub(crate) list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
159 + | /* BuilderGenerator.kt:275 */ pub(crate) map: ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
|
160 + | /* BuilderGenerator.kt:275 */ pub(crate) union: ::std::option::Option<crate::types::SimpleUnion>,
|
161 + | /* BuilderGenerator.kt:275 */ pub(crate) unit_union: ::std::option::Option<crate::types::UnitUnion>,
|
162 + | /* BuilderGenerator.kt:275 */ pub(crate) structure_list: ::std::option::Option<::std::vec::Vec<crate::types::SimpleStruct>>,
|
163 + | /* BuilderGenerator.kt:275 */
|
93 164 | pub(crate) complex_list: ::std::option::Option<::std::vec::Vec<::std::collections::HashMap<::std::string::String, crate::types::ComplexUnion>>>,
|
165 + | /* BuilderGenerator.kt:275 */
|
94 166 | pub(crate) complex_map: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::ComplexUnion>>,
|
167 + | /* BuilderGenerator.kt:275 */
|
95 168 | pub(crate) complex_union: ::std::option::Option<::std::boxed::Box<crate::types::ComplexUnion>>,
|
169 + | /* BuilderGenerator.kt:345 */
|
96 170 | }
|
171 + | /* BuilderGenerator.kt:355 */
|
97 172 | impl ComplexStructOperationOutputBuilder {
|
173 + | /* BuilderGenerator.kt:286 */
|
98 174 | #[allow(missing_docs)] // documentation missing in model
|
175 + | /* BuilderGenerator.kt:291 */
|
99 176 | pub fn structure(mut self, input: crate::types::SimpleStruct) -> Self {
|
177 + | /* BuilderGenerator.kt:292 */
|
100 178 | self.structure = ::std::option::Option::Some(input);
|
179 + | /* BuilderGenerator.kt:293 */
|
101 180 | self
|
181 + | /* BuilderGenerator.kt:291 */
|
102 182 | }
|
183 + | /* BuilderGenerator.kt:312 */
|
103 184 | #[allow(missing_docs)] // documentation missing in model
|
185 + | /* BuilderGenerator.kt:314 */
|
104 186 | pub fn set_structure(mut self, input: ::std::option::Option<crate::types::SimpleStruct>) -> Self {
|
187 + | /* BuilderGenerator.kt:315 */
|
105 188 | self.structure = input;
|
106 189 | self
|
190 + | /* BuilderGenerator.kt:314 */
|
107 191 | }
|
192 + | /* BuilderGenerator.kt:334 */
|
108 193 | #[allow(missing_docs)] // documentation missing in model
|
194 + | /* BuilderGenerator.kt:336 */
|
109 195 | pub fn get_structure(&self) -> &::std::option::Option<crate::types::SimpleStruct> {
|
196 + | /* BuilderGenerator.kt:337 */
|
110 197 | &self.structure
|
198 + | /* BuilderGenerator.kt:336 */
|
111 199 | }
|
200 + | /* BuilderGenerator.kt:286 */
|
112 201 | #[allow(missing_docs)] // documentation missing in model
|
202 + | /* BuilderGenerator.kt:291 */
|
113 203 | pub fn empty_structure(mut self, input: crate::types::EmptyStruct) -> Self {
|
204 + | /* BuilderGenerator.kt:292 */
|
114 205 | self.empty_structure = ::std::option::Option::Some(input);
|
206 + | /* BuilderGenerator.kt:293 */
|
115 207 | self
|
208 + | /* BuilderGenerator.kt:291 */
|
116 209 | }
|
210 + | /* BuilderGenerator.kt:312 */
|
117 211 | #[allow(missing_docs)] // documentation missing in model
|
212 + | /* BuilderGenerator.kt:314 */
|
118 213 | pub fn set_empty_structure(mut self, input: ::std::option::Option<crate::types::EmptyStruct>) -> Self {
|
214 + | /* BuilderGenerator.kt:315 */
|
119 215 | self.empty_structure = input;
|
120 216 | self
|
217 + | /* BuilderGenerator.kt:314 */
|
121 218 | }
|
219 + | /* BuilderGenerator.kt:334 */
|
122 220 | #[allow(missing_docs)] // documentation missing in model
|
221 + | /* BuilderGenerator.kt:336 */
|
123 222 | pub fn get_empty_structure(&self) -> &::std::option::Option<crate::types::EmptyStruct> {
|
223 + | /* BuilderGenerator.kt:337 */
|
124 224 | &self.empty_structure
|
225 + | /* BuilderGenerator.kt:336 */
|
125 226 | }
|
126 - | /// Appends an item to `list`.
|
227 + | /// /* BuilderGenerator.kt:410 */Appends an item to `list`.
|
228 + | /* BuilderGenerator.kt:411 */
|
127 229 | ///
|
128 - | /// To override the contents of this collection use [`set_list`](Self::set_list).
|
230 + | /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_list`](Self::set_list).
|
231 + | /* BuilderGenerator.kt:413 */
|
129 232 | ///
|
233 + | /* BuilderGenerator.kt:418 */
|
130 234 | pub fn list(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
235 + | /* BuilderGenerator.kt:419 */
|
131 236 | let mut v = self.list.unwrap_or_default();
|
132 237 | v.push(input.into());
|
133 238 | self.list = ::std::option::Option::Some(v);
|
134 239 | self
|
240 + | /* BuilderGenerator.kt:418 */
|
135 241 | }
|
242 + | /* BuilderGenerator.kt:312 */
|
136 243 | #[allow(missing_docs)] // documentation missing in model
|
244 + | /* BuilderGenerator.kt:314 */
|
137 245 | pub fn set_list(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
|
246 + | /* BuilderGenerator.kt:315 */
|
138 247 | self.list = input;
|
139 248 | self
|
249 + | /* BuilderGenerator.kt:314 */
|
140 250 | }
|
251 + | /* BuilderGenerator.kt:334 */
|
141 252 | #[allow(missing_docs)] // documentation missing in model
|
253 + | /* BuilderGenerator.kt:336 */
|
142 254 | pub fn get_list(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
|
255 + | /* BuilderGenerator.kt:337 */
|
143 256 | &self.list
|
257 + | /* BuilderGenerator.kt:336 */
|
144 258 | }
|
145 - | /// Adds a key-value pair to `map`.
|
259 + | /// /* BuilderGenerator.kt:436 */Adds a key-value pair to `map`.
|
260 + | /* BuilderGenerator.kt:437 */
|
146 261 | ///
|
147 - | /// To override the contents of this collection use [`set_map`](Self::set_map).
|
262 + | /// /* BuilderGenerator.kt:438 */To override the contents of this collection use [`set_map`](Self::set_map).
|
263 + | /* BuilderGenerator.kt:439 */
|
148 264 | ///
|
265 + | /* BuilderGenerator.kt:445 */
|
149 266 | pub fn map(mut self, k: impl ::std::convert::Into<::std::string::String>, v: i32) -> Self {
|
267 + | /* BuilderGenerator.kt:448 */
|
150 268 | let mut hash_map = self.map.unwrap_or_default();
|
151 269 | hash_map.insert(k.into(), v);
|
152 270 | self.map = ::std::option::Option::Some(hash_map);
|
153 271 | self
|
272 + | /* BuilderGenerator.kt:445 */
|
154 273 | }
|
274 + | /* BuilderGenerator.kt:312 */
|
155 275 | #[allow(missing_docs)] // documentation missing in model
|
276 + | /* BuilderGenerator.kt:314 */
|
156 277 | pub fn set_map(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>) -> Self {
|
278 + | /* BuilderGenerator.kt:315 */
|
157 279 | self.map = input;
|
158 280 | self
|
281 + | /* BuilderGenerator.kt:314 */
|
159 282 | }
|
283 + | /* BuilderGenerator.kt:334 */
|
160 284 | #[allow(missing_docs)] // documentation missing in model
|
285 + | /* BuilderGenerator.kt:336 */
|
161 286 | pub fn get_map(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, i32>> {
|
287 + | /* BuilderGenerator.kt:337 */
|
162 288 | &self.map
|
289 + | /* BuilderGenerator.kt:336 */
|
163 290 | }
|
291 + | /* BuilderGenerator.kt:286 */
|
164 292 | #[allow(missing_docs)] // documentation missing in model
|
293 + | /* BuilderGenerator.kt:291 */
|
165 294 | pub fn union(mut self, input: crate::types::SimpleUnion) -> Self {
|
295 + | /* BuilderGenerator.kt:292 */
|
166 296 | self.union = ::std::option::Option::Some(input);
|
297 + | /* BuilderGenerator.kt:293 */
|
167 298 | self
|
299 + | /* BuilderGenerator.kt:291 */
|
168 300 | }
|
301 + | /* BuilderGenerator.kt:312 */
|
169 302 | #[allow(missing_docs)] // documentation missing in model
|
303 + | /* BuilderGenerator.kt:314 */
|
170 304 | pub fn set_union(mut self, input: ::std::option::Option<crate::types::SimpleUnion>) -> Self {
|
305 + | /* BuilderGenerator.kt:315 */
|
171 306 | self.union = input;
|
172 307 | self
|
308 + | /* BuilderGenerator.kt:314 */
|
173 309 | }
|
310 + | /* BuilderGenerator.kt:334 */
|
174 311 | #[allow(missing_docs)] // documentation missing in model
|
312 + | /* BuilderGenerator.kt:336 */
|
175 313 | pub fn get_union(&self) -> &::std::option::Option<crate::types::SimpleUnion> {
|
314 + | /* BuilderGenerator.kt:337 */
|
176 315 | &self.union
|
316 + | /* BuilderGenerator.kt:336 */
|
177 317 | }
|
318 + | /* BuilderGenerator.kt:286 */
|
178 319 | #[allow(missing_docs)] // documentation missing in model
|
320 + | /* BuilderGenerator.kt:291 */
|
179 321 | pub fn unit_union(mut self, input: crate::types::UnitUnion) -> Self {
|
322 + | /* BuilderGenerator.kt:292 */
|
180 323 | self.unit_union = ::std::option::Option::Some(input);
|
324 + | /* BuilderGenerator.kt:293 */
|
181 325 | self
|
326 + | /* BuilderGenerator.kt:291 */
|
182 327 | }
|
328 + | /* BuilderGenerator.kt:312 */
|
183 329 | #[allow(missing_docs)] // documentation missing in model
|
330 + | /* BuilderGenerator.kt:314 */
|
184 331 | pub fn set_unit_union(mut self, input: ::std::option::Option<crate::types::UnitUnion>) -> Self {
|
332 + | /* BuilderGenerator.kt:315 */
|
185 333 | self.unit_union = input;
|
186 334 | self
|
335 + | /* BuilderGenerator.kt:314 */
|
187 336 | }
|
337 + | /* BuilderGenerator.kt:334 */
|
188 338 | #[allow(missing_docs)] // documentation missing in model
|
339 + | /* BuilderGenerator.kt:336 */
|
189 340 | pub fn get_unit_union(&self) -> &::std::option::Option<crate::types::UnitUnion> {
|
341 + | /* BuilderGenerator.kt:337 */
|
190 342 | &self.unit_union
|
343 + | /* BuilderGenerator.kt:336 */
|
191 344 | }
|
192 - | /// Appends an item to `structure_list`.
|
345 + | /// /* BuilderGenerator.kt:410 */Appends an item to `structure_list`.
|
346 + | /* BuilderGenerator.kt:411 */
|
193 347 | ///
|
194 - | /// To override the contents of this collection use [`set_structure_list`](Self::set_structure_list).
|
348 + | /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_structure_list`](Self::set_structure_list).
|
349 + | /* BuilderGenerator.kt:413 */
|
195 350 | ///
|
351 + | /* BuilderGenerator.kt:418 */
|
196 352 | pub fn structure_list(mut self, input: crate::types::SimpleStruct) -> Self {
|
353 + | /* BuilderGenerator.kt:419 */
|
197 354 | let mut v = self.structure_list.unwrap_or_default();
|
198 355 | v.push(input);
|
199 356 | self.structure_list = ::std::option::Option::Some(v);
|
200 357 | self
|
358 + | /* BuilderGenerator.kt:418 */
|
201 359 | }
|
360 + | /* BuilderGenerator.kt:312 */
|
202 361 | #[allow(missing_docs)] // documentation missing in model
|
362 + | /* BuilderGenerator.kt:314 */
|
203 363 | pub fn set_structure_list(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::SimpleStruct>>) -> Self {
|
364 + | /* BuilderGenerator.kt:315 */
|
204 365 | self.structure_list = input;
|
205 366 | self
|
367 + | /* BuilderGenerator.kt:314 */
|
206 368 | }
|
369 + | /* BuilderGenerator.kt:334 */
|
207 370 | #[allow(missing_docs)] // documentation missing in model
|
371 + | /* BuilderGenerator.kt:336 */
|
208 372 | pub fn get_structure_list(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::SimpleStruct>> {
|
373 + | /* BuilderGenerator.kt:337 */
|
209 374 | &self.structure_list
|
375 + | /* BuilderGenerator.kt:336 */
|
210 376 | }
|
211 - | /// Appends an item to `complex_list`.
|
377 + | /// /* BuilderGenerator.kt:410 */Appends an item to `complex_list`.
|
378 + | /* BuilderGenerator.kt:411 */
|
212 379 | ///
|
213 - | /// To override the contents of this collection use [`set_complex_list`](Self::set_complex_list).
|
380 + | /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_complex_list`](Self::set_complex_list).
|
381 + | /* BuilderGenerator.kt:413 */
|
214 382 | ///
|
383 + | /* BuilderGenerator.kt:418 */
|
215 384 | pub fn complex_list(mut self, input: ::std::collections::HashMap<::std::string::String, crate::types::ComplexUnion>) -> Self {
|
385 + | /* BuilderGenerator.kt:419 */
|
216 386 | let mut v = self.complex_list.unwrap_or_default();
|
217 387 | v.push(input);
|
218 388 | self.complex_list = ::std::option::Option::Some(v);
|
219 389 | self
|
390 + | /* BuilderGenerator.kt:418 */
|
220 391 | }
|
392 + | /* BuilderGenerator.kt:312 */
|
221 393 | #[allow(missing_docs)] // documentation missing in model
|
394 + | /* BuilderGenerator.kt:314 */
|
222 395 | pub fn set_complex_list(
|
223 396 | mut self,
|
224 397 | input: ::std::option::Option<::std::vec::Vec<::std::collections::HashMap<::std::string::String, crate::types::ComplexUnion>>>,
|
225 398 | ) -> Self {
|
399 + | /* BuilderGenerator.kt:315 */
|
226 400 | self.complex_list = input;
|
227 401 | self
|
402 + | /* BuilderGenerator.kt:314 */
|
228 403 | }
|
404 + | /* BuilderGenerator.kt:334 */
|
229 405 | #[allow(missing_docs)] // documentation missing in model
|
406 + | /* BuilderGenerator.kt:336 */
|
230 407 | pub fn get_complex_list(
|
231 408 | &self,
|
232 409 | ) -> &::std::option::Option<::std::vec::Vec<::std::collections::HashMap<::std::string::String, crate::types::ComplexUnion>>> {
|
410 + | /* BuilderGenerator.kt:337 */
|
233 411 | &self.complex_list
|
412 + | /* BuilderGenerator.kt:336 */
|
234 413 | }
|
235 - | /// Adds a key-value pair to `complex_map`.
|
414 + | /// /* BuilderGenerator.kt:436 */Adds a key-value pair to `complex_map`.
|
415 + | /* BuilderGenerator.kt:437 */
|
236 416 | ///
|
237 - | /// To override the contents of this collection use [`set_complex_map`](Self::set_complex_map).
|
417 + | /// /* BuilderGenerator.kt:438 */To override the contents of this collection use [`set_complex_map`](Self::set_complex_map).
|
418 + | /* BuilderGenerator.kt:439 */
|
238 419 | ///
|
420 + | /* BuilderGenerator.kt:445 */
|
239 421 | pub fn complex_map(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::ComplexUnion) -> Self {
|
422 + | /* BuilderGenerator.kt:448 */
|
240 423 | let mut hash_map = self.complex_map.unwrap_or_default();
|
241 424 | hash_map.insert(k.into(), v);
|
242 425 | self.complex_map = ::std::option::Option::Some(hash_map);
|
243 426 | self
|
427 + | /* BuilderGenerator.kt:445 */
|
244 428 | }
|
429 + | /* BuilderGenerator.kt:312 */
|
245 430 | #[allow(missing_docs)] // documentation missing in model
|
431 + | /* BuilderGenerator.kt:314 */
|
246 432 | pub fn set_complex_map(
|
247 433 | mut self,
|
248 434 | input: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::ComplexUnion>>,
|
249 435 | ) -> Self {
|
436 + | /* BuilderGenerator.kt:315 */
|
250 437 | self.complex_map = input;
|
251 438 | self
|
439 + | /* BuilderGenerator.kt:314 */
|
252 440 | }
|
441 + | /* BuilderGenerator.kt:334 */
|
253 442 | #[allow(missing_docs)] // documentation missing in model
|
443 + | /* BuilderGenerator.kt:336 */
|
254 444 | pub fn get_complex_map(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::ComplexUnion>> {
|
445 + | /* BuilderGenerator.kt:337 */
|
255 446 | &self.complex_map
|
447 + | /* BuilderGenerator.kt:336 */
|
256 448 | }
|
449 + | /* BuilderGenerator.kt:286 */
|
257 450 | #[allow(missing_docs)] // documentation missing in model
|
258 - | /// This field is required.
|
451 + | /// /* BuilderGenerator.kt:288 */This field is required.
|
452 + | /* BuilderGenerator.kt:291 */
|
259 453 | pub fn complex_union(mut self, input: impl ::std::convert::Into<::std::boxed::Box<crate::types::ComplexUnion>>) -> Self {
|
454 + | /* BuilderGenerator.kt:292 */
|
260 455 | self.complex_union = ::std::option::Option::Some(input.into());
|
456 + | /* BuilderGenerator.kt:293 */
|
261 457 | self
|
458 + | /* BuilderGenerator.kt:291 */
|
262 459 | }
|
460 + | /* BuilderGenerator.kt:312 */
|
263 461 | #[allow(missing_docs)] // documentation missing in model
|
462 + | /* BuilderGenerator.kt:314 */
|
264 463 | pub fn set_complex_union(mut self, input: ::std::option::Option<::std::boxed::Box<crate::types::ComplexUnion>>) -> Self {
|
464 + | /* BuilderGenerator.kt:315 */
|
265 465 | self.complex_union = input;
|
266 466 | self
|
467 + | /* BuilderGenerator.kt:314 */
|
267 468 | }
|
469 + | /* BuilderGenerator.kt:334 */
|
268 470 | #[allow(missing_docs)] // documentation missing in model
|
471 + | /* BuilderGenerator.kt:336 */
|
269 472 | pub fn get_complex_union(&self) -> &::std::option::Option<::std::boxed::Box<crate::types::ComplexUnion>> {
|
473 + | /* BuilderGenerator.kt:337 */
|
270 474 | &self.complex_union
|
271 - | }
|
272 - | /// Consumes the builder and constructs a [`ComplexStructOperationOutput`](crate::operation::complex_struct_operation::ComplexStructOperationOutput).
|
273 - | /// This method will fail if any of the following fields are not set:
|
274 - | /// - [`complex_list`](crate::operation::complex_struct_operation::builders::ComplexStructOperationOutputBuilder::complex_list)
|
275 - | /// - [`complex_map`](crate::operation::complex_struct_operation::builders::ComplexStructOperationOutputBuilder::complex_map)
|
276 - | /// - [`complex_union`](crate::operation::complex_struct_operation::builders::ComplexStructOperationOutputBuilder::complex_union)
|
475 + | /* BuilderGenerator.kt:336 */
|
476 + | }
|
477 + | /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ComplexStructOperationOutput`](crate::operation::complex_struct_operation::ComplexStructOperationOutput).
|
478 + | /// /* BuilderGenerator.kt:243 */This method will fail if any of the following fields are not set:
|
479 + | /// /* BuilderGenerator.kt:246 */- [`complex_list`](crate::operation::complex_struct_operation::builders::ComplexStructOperationOutputBuilder::complex_list)
|
480 + | /// /* BuilderGenerator.kt:246 */- [`complex_map`](crate::operation::complex_struct_operation::builders::ComplexStructOperationOutputBuilder::complex_map)
|
481 + | /// /* BuilderGenerator.kt:246 */- [`complex_union`](crate::operation::complex_struct_operation::builders::ComplexStructOperationOutputBuilder::complex_union)
|
482 + | /* BuilderGenerator.kt:253 */
|
277 483 | pub fn build(
|
278 484 | self,
|
279 485 | ) -> ::std::result::Result<
|
280 486 | crate::operation::complex_struct_operation::ComplexStructOperationOutput,
|
281 487 | ::aws_smithy_types::error::operation::BuildError,
|
282 488 | > {
|
283 - | ::std::result::Result::Ok(crate::operation::complex_struct_operation::ComplexStructOperationOutput {
|
284 - | structure: self.structure,
|
285 - | empty_structure: self.empty_structure,
|
286 - | list: self.list,
|
287 - | map: self.map,
|
288 - | union: self.union,
|
289 - | unit_union: self.unit_union,
|
290 - | structure_list: self.structure_list,
|
291 - | complex_list: self.complex_list.ok_or_else(|| {
|
292 - | ::aws_smithy_types::error::operation::BuildError::missing_field(
|
293 - | "complex_list",
|
294 - | "complex_list was not specified but it is required when building ComplexStructOperationOutput",
|
295 - | )
|
296 - | })?,
|
297 - | complex_map: self.complex_map.ok_or_else(|| {
|
298 - | ::aws_smithy_types::error::operation::BuildError::missing_field(
|
299 - | "complex_map",
|
300 - | "complex_map was not specified but it is required when building ComplexStructOperationOutput",
|
301 - | )
|
302 - | })?,
|
303 - | complex_union: self.complex_union.ok_or_else(|| {
|
304 - | ::aws_smithy_types::error::operation::BuildError::missing_field(
|
305 - | "complex_union",
|
306 - | "complex_union was not specified but it is required when building ComplexStructOperationOutput",
|
307 - | )
|
308 - | })?,
|
309 - | })
|
310 - | }
|
489 + | /* BuilderGenerator.kt:254 */
|
490 + | ::std::result::Result::Ok(
|
491 + | /* BuilderGenerator.kt:477 */crate::operation::complex_struct_operation::ComplexStructOperationOutput {
|
492 + | /* BuilderGenerator.kt:481 */structure: self.structure
|
493 + | ,
|
494 + | /* BuilderGenerator.kt:481 */empty_structure: self.empty_structure
|
495 + | ,
|
496 + | /* BuilderGenerator.kt:481 */list: self.list
|
497 + | ,
|
498 + | /* BuilderGenerator.kt:481 */map: self.map
|
499 + | ,
|
500 + | /* BuilderGenerator.kt:481 */union: self.union
|
501 + | ,
|
502 + | /* BuilderGenerator.kt:481 */unit_union: self.unit_union
|
503 + | ,
|
504 + | /* BuilderGenerator.kt:481 */structure_list: self.structure_list
|
505 + | ,
|
506 + | /* BuilderGenerator.kt:481 */complex_list: self.complex_list
|
507 + | /* BuilderGenerator.kt:494 */.ok_or_else(||
|
508 + | /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("complex_list", "complex_list was not specified but it is required when building ComplexStructOperationOutput")
|
509 + | /* BuilderGenerator.kt:494 */)?
|
510 + | ,
|
511 + | /* BuilderGenerator.kt:481 */complex_map: self.complex_map
|
512 + | /* BuilderGenerator.kt:494 */.ok_or_else(||
|
513 + | /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("complex_map", "complex_map was not specified but it is required when building ComplexStructOperationOutput")
|
514 + | /* BuilderGenerator.kt:494 */)?
|
515 + | ,
|
516 + | /* BuilderGenerator.kt:481 */complex_union: self.complex_union
|
517 + | /* BuilderGenerator.kt:494 */.ok_or_else(||
|
518 + | /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("complex_union", "complex_union was not specified but it is required when building ComplexStructOperationOutput")
|
519 + | /* BuilderGenerator.kt:494 */)?
|
520 + | ,
|
521 + | /* BuilderGenerator.kt:477 */}
|
522 + | /* BuilderGenerator.kt:254 */)
|
523 + | /* BuilderGenerator.kt:253 */
|
524 + | }
|
525 + | /* BuilderGenerator.kt:355 */
|
311 526 | }
|