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 SparseJsonMapsInput {
|
8 + | pub /* StructureGenerator.kt:201 */ struct SparseJsonMapsInput {
|
9 + | /* StructureGenerator.kt:231 */
|
6 10 | #[allow(missing_docs)] // documentation missing in model
|
7 11 | pub sparse_struct_map:
|
8 12 | ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::option::Option<crate::types::GreetingStruct>>>,
|
13 + | /* StructureGenerator.kt:231 */
|
9 14 | #[allow(missing_docs)] // documentation missing in model
|
10 15 | pub sparse_number_map: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::option::Option<i32>>>,
|
16 + | /* StructureGenerator.kt:231 */
|
11 17 | #[allow(missing_docs)] // documentation missing in model
|
12 18 | pub sparse_boolean_map: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::option::Option<bool>>>,
|
19 + | /* StructureGenerator.kt:231 */
|
13 20 | #[allow(missing_docs)] // documentation missing in model
|
14 21 | pub sparse_string_map: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::option::Option<::std::string::String>>>,
|
22 + | /* StructureGenerator.kt:231 */
|
15 23 | #[allow(missing_docs)] // documentation missing in model
|
16 24 | pub sparse_set_map:
|
17 25 | ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::option::Option<::std::vec::Vec<::std::string::String>>>>,
|
26 + | /* StructureGenerator.kt:201 */
|
18 27 | }
|
28 + | /* StructureGenerator.kt:135 */
|
19 29 | impl SparseJsonMapsInput {
|
30 + | /* StructureGenerator.kt:231 */
|
20 31 | #[allow(missing_docs)] // documentation missing in model
|
32 + | /* StructureGenerator.kt:166 */
|
21 33 | pub fn sparse_struct_map(
|
22 34 | &self,
|
23 35 | ) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::option::Option<crate::types::GreetingStruct>>> {
|
36 + | /* StructureGenerator.kt:170 */
|
24 37 | self.sparse_struct_map.as_ref()
|
38 + | /* StructureGenerator.kt:166 */
|
25 39 | }
|
40 + | /* StructureGenerator.kt:231 */
|
26 41 | #[allow(missing_docs)] // documentation missing in model
|
42 + | /* StructureGenerator.kt:166 */
|
27 43 | pub fn sparse_number_map(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::option::Option<i32>>> {
|
44 + | /* StructureGenerator.kt:170 */
|
28 45 | self.sparse_number_map.as_ref()
|
46 + | /* StructureGenerator.kt:166 */
|
29 47 | }
|
48 + | /* StructureGenerator.kt:231 */
|
30 49 | #[allow(missing_docs)] // documentation missing in model
|
50 + | /* StructureGenerator.kt:166 */
|
31 51 | pub fn sparse_boolean_map(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::option::Option<bool>>> {
|
52 + | /* StructureGenerator.kt:170 */
|
32 53 | self.sparse_boolean_map.as_ref()
|
54 + | /* StructureGenerator.kt:166 */
|
33 55 | }
|
56 + | /* StructureGenerator.kt:231 */
|
34 57 | #[allow(missing_docs)] // documentation missing in model
|
58 + | /* StructureGenerator.kt:166 */
|
35 59 | pub fn sparse_string_map(
|
36 60 | &self,
|
37 61 | ) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::option::Option<::std::string::String>>> {
|
62 + | /* StructureGenerator.kt:170 */
|
38 63 | self.sparse_string_map.as_ref()
|
64 + | /* StructureGenerator.kt:166 */
|
39 65 | }
|
66 + | /* StructureGenerator.kt:231 */
|
40 67 | #[allow(missing_docs)] // documentation missing in model
|
68 + | /* StructureGenerator.kt:166 */
|
41 69 | pub fn sparse_set_map(
|
42 70 | &self,
|
43 71 | ) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::option::Option<::std::vec::Vec<::std::string::String>>>>
|
44 72 | {
|
73 + | /* StructureGenerator.kt:170 */
|
45 74 | self.sparse_set_map.as_ref()
|
75 + | /* StructureGenerator.kt:166 */
|
46 76 | }
|
77 + | /* StructureGenerator.kt:135 */
|
47 78 | }
|
79 + | /* ClientCodegenVisitor.kt:237 */
|
48 80 | impl SparseJsonMapsInput {
|
49 - | /// Creates a new builder-style object to manufacture [`SparseJsonMapsInput`](crate::operation::sparse_json_maps::SparseJsonMapsInput).
|
81 + | /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`SparseJsonMapsInput`](crate::operation::sparse_json_maps::SparseJsonMapsInput).
|
82 + | /* BuilderGenerator.kt:175 */
|
50 83 | pub fn builder() -> crate::operation::sparse_json_maps::builders::SparseJsonMapsInputBuilder {
|
84 + | /* BuilderGenerator.kt:176 */
|
51 85 | crate::operation::sparse_json_maps::builders::SparseJsonMapsInputBuilder::default()
|
86 + | /* BuilderGenerator.kt:175 */
|
52 87 | }
|
88 + | /* ClientCodegenVisitor.kt:237 */
|
53 89 | }
|
54 90 |
|
55 - | /// A builder for [`SparseJsonMapsInput`](crate::operation::sparse_json_maps::SparseJsonMapsInput).
|
91 + | /// /* BuilderGenerator.kt:342 */A builder for [`SparseJsonMapsInput`](crate::operation::sparse_json_maps::SparseJsonMapsInput).
|
92 + | /* RustType.kt:516 */
|
56 93 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
94 + | /* RustType.kt:516 */
|
57 95 | #[non_exhaustive]
|
96 + | /* BuilderGenerator.kt:345 */
|
58 97 | pub struct SparseJsonMapsInputBuilder {
|
98 + | /* BuilderGenerator.kt:275 */
|
59 99 | pub(crate) sparse_struct_map:
|
60 100 | ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::option::Option<crate::types::GreetingStruct>>>,
|
101 + | /* BuilderGenerator.kt:275 */
|
61 102 | pub(crate) sparse_number_map: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::option::Option<i32>>>,
|
103 + | /* BuilderGenerator.kt:275 */
|
62 104 | pub(crate) sparse_boolean_map: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::option::Option<bool>>>,
|
105 + | /* BuilderGenerator.kt:275 */
|
63 106 | pub(crate) sparse_string_map:
|
64 107 | ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::option::Option<::std::string::String>>>,
|
108 + | /* BuilderGenerator.kt:275 */
|
65 109 | pub(crate) sparse_set_map:
|
66 110 | ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::option::Option<::std::vec::Vec<::std::string::String>>>>,
|
111 + | /* BuilderGenerator.kt:345 */
|
67 112 | }
|
113 + | /* BuilderGenerator.kt:355 */
|
68 114 | impl SparseJsonMapsInputBuilder {
|
69 - | /// Adds a key-value pair to `sparse_struct_map`.
|
115 + | /// /* BuilderGenerator.kt:436 */Adds a key-value pair to `sparse_struct_map`.
|
116 + | /* BuilderGenerator.kt:437 */
|
70 117 | ///
|
71 - | /// To override the contents of this collection use [`set_sparse_struct_map`](Self::set_sparse_struct_map).
|
118 + | /// /* BuilderGenerator.kt:438 */To override the contents of this collection use [`set_sparse_struct_map`](Self::set_sparse_struct_map).
|
119 + | /* BuilderGenerator.kt:439 */
|
72 120 | ///
|
121 + | /* BuilderGenerator.kt:445 */
|
73 122 | pub fn sparse_struct_map(
|
74 123 | mut self,
|
75 124 | k: impl ::std::convert::Into<::std::string::String>,
|
76 125 | v: ::std::option::Option<crate::types::GreetingStruct>,
|
77 126 | ) -> Self {
|
127 + | /* BuilderGenerator.kt:448 */
|
78 128 | let mut hash_map = self.sparse_struct_map.unwrap_or_default();
|
79 129 | hash_map.insert(k.into(), v);
|
80 130 | self.sparse_struct_map = ::std::option::Option::Some(hash_map);
|
81 131 | self
|
132 + | /* BuilderGenerator.kt:445 */
|
82 133 | }
|
134 + | /* BuilderGenerator.kt:312 */
|
83 135 | #[allow(missing_docs)] // documentation missing in model
|
136 + | /* BuilderGenerator.kt:314 */
|
84 137 | pub fn set_sparse_struct_map(
|
85 138 | mut self,
|
86 139 | input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::option::Option<crate::types::GreetingStruct>>>,
|
87 140 | ) -> Self {
|
141 + | /* BuilderGenerator.kt:315 */
|
88 142 | self.sparse_struct_map = input;
|
89 143 | self
|
144 + | /* BuilderGenerator.kt:314 */
|
90 145 | }
|
146 + | /* BuilderGenerator.kt:334 */
|
91 147 | #[allow(missing_docs)] // documentation missing in model
|
148 + | /* BuilderGenerator.kt:336 */
|
92 149 | pub fn get_sparse_struct_map(
|
93 150 | &self,
|
94 151 | ) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::option::Option<crate::types::GreetingStruct>>> {
|
152 + | /* BuilderGenerator.kt:337 */
|
95 153 | &self.sparse_struct_map
|
154 + | /* BuilderGenerator.kt:336 */
|
96 155 | }
|
97 - | /// Adds a key-value pair to `sparse_number_map`.
|
156 + | /// /* BuilderGenerator.kt:436 */Adds a key-value pair to `sparse_number_map`.
|
157 + | /* BuilderGenerator.kt:437 */
|
98 158 | ///
|
99 - | /// To override the contents of this collection use [`set_sparse_number_map`](Self::set_sparse_number_map).
|
159 + | /// /* BuilderGenerator.kt:438 */To override the contents of this collection use [`set_sparse_number_map`](Self::set_sparse_number_map).
|
160 + | /* BuilderGenerator.kt:439 */
|
100 161 | ///
|
162 + | /* BuilderGenerator.kt:445 */
|
101 163 | pub fn sparse_number_map(mut self, k: impl ::std::convert::Into<::std::string::String>, v: ::std::option::Option<i32>) -> Self {
|
164 + | /* BuilderGenerator.kt:448 */
|
102 165 | let mut hash_map = self.sparse_number_map.unwrap_or_default();
|
103 166 | hash_map.insert(k.into(), v);
|
104 167 | self.sparse_number_map = ::std::option::Option::Some(hash_map);
|
105 168 | self
|
169 + | /* BuilderGenerator.kt:445 */
|
106 170 | }
|
171 + | /* BuilderGenerator.kt:312 */
|
107 172 | #[allow(missing_docs)] // documentation missing in model
|
173 + | /* BuilderGenerator.kt:314 */
|
108 174 | pub fn set_sparse_number_map(
|
109 175 | mut self,
|
110 176 | input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::option::Option<i32>>>,
|
111 177 | ) -> Self {
|
178 + | /* BuilderGenerator.kt:315 */
|
112 179 | self.sparse_number_map = input;
|
113 180 | self
|
181 + | /* BuilderGenerator.kt:314 */
|
114 182 | }
|
183 + | /* BuilderGenerator.kt:334 */
|
115 184 | #[allow(missing_docs)] // documentation missing in model
|
185 + | /* BuilderGenerator.kt:336 */
|
116 186 | pub fn get_sparse_number_map(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::option::Option<i32>>> {
|
187 + | /* BuilderGenerator.kt:337 */
|
117 188 | &self.sparse_number_map
|
189 + | /* BuilderGenerator.kt:336 */
|
118 190 | }
|
119 - | /// Adds a key-value pair to `sparse_boolean_map`.
|
191 + | /// /* BuilderGenerator.kt:436 */Adds a key-value pair to `sparse_boolean_map`.
|
192 + | /* BuilderGenerator.kt:437 */
|
120 193 | ///
|
121 - | /// To override the contents of this collection use [`set_sparse_boolean_map`](Self::set_sparse_boolean_map).
|
194 + | /// /* BuilderGenerator.kt:438 */To override the contents of this collection use [`set_sparse_boolean_map`](Self::set_sparse_boolean_map).
|
195 + | /* BuilderGenerator.kt:439 */
|
122 196 | ///
|
197 + | /* BuilderGenerator.kt:445 */
|
123 198 | pub fn sparse_boolean_map(mut self, k: impl ::std::convert::Into<::std::string::String>, v: ::std::option::Option<bool>) -> Self {
|
199 + | /* BuilderGenerator.kt:448 */
|
124 200 | let mut hash_map = self.sparse_boolean_map.unwrap_or_default();
|
125 201 | hash_map.insert(k.into(), v);
|
126 202 | self.sparse_boolean_map = ::std::option::Option::Some(hash_map);
|
127 203 | self
|
204 + | /* BuilderGenerator.kt:445 */
|
128 205 | }
|
206 + | /* BuilderGenerator.kt:312 */
|
129 207 | #[allow(missing_docs)] // documentation missing in model
|
208 + | /* BuilderGenerator.kt:314 */
|
130 209 | pub fn set_sparse_boolean_map(
|
131 210 | mut self,
|
132 211 | input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::option::Option<bool>>>,
|
133 212 | ) -> Self {
|
213 + | /* BuilderGenerator.kt:315 */
|
134 214 | self.sparse_boolean_map = input;
|
135 215 | self
|
216 + | /* BuilderGenerator.kt:314 */
|
136 217 | }
|
218 + | /* BuilderGenerator.kt:334 */
|
137 219 | #[allow(missing_docs)] // documentation missing in model
|
220 + | /* BuilderGenerator.kt:336 */
|
138 221 | pub fn get_sparse_boolean_map(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::option::Option<bool>>> {
|
222 + | /* BuilderGenerator.kt:337 */
|
139 223 | &self.sparse_boolean_map
|
224 + | /* BuilderGenerator.kt:336 */
|
140 225 | }
|
141 - | /// Adds a key-value pair to `sparse_string_map`.
|
226 + | /// /* BuilderGenerator.kt:436 */Adds a key-value pair to `sparse_string_map`.
|
227 + | /* BuilderGenerator.kt:437 */
|
142 228 | ///
|
143 - | /// To override the contents of this collection use [`set_sparse_string_map`](Self::set_sparse_string_map).
|
229 + | /// /* BuilderGenerator.kt:438 */To override the contents of this collection use [`set_sparse_string_map`](Self::set_sparse_string_map).
|
230 + | /* BuilderGenerator.kt:439 */
|
144 231 | ///
|
232 + | /* BuilderGenerator.kt:445 */
|
145 233 | pub fn sparse_string_map(mut self, k: impl ::std::convert::Into<::std::string::String>, v: ::std::option::Option<::std::string::String>) -> Self {
|
234 + | /* BuilderGenerator.kt:448 */
|
146 235 | let mut hash_map = self.sparse_string_map.unwrap_or_default();
|
147 236 | hash_map.insert(k.into(), v);
|
148 237 | self.sparse_string_map = ::std::option::Option::Some(hash_map);
|
149 238 | self
|
239 + | /* BuilderGenerator.kt:445 */
|
150 240 | }
|
241 + | /* BuilderGenerator.kt:312 */
|
151 242 | #[allow(missing_docs)] // documentation missing in model
|
243 + | /* BuilderGenerator.kt:314 */
|
152 244 | pub fn set_sparse_string_map(
|
153 245 | mut self,
|
154 246 | input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::option::Option<::std::string::String>>>,
|
155 247 | ) -> Self {
|
248 + | /* BuilderGenerator.kt:315 */
|
156 249 | self.sparse_string_map = input;
|
157 250 | self
|
251 + | /* BuilderGenerator.kt:314 */
|
158 252 | }
|
253 + | /* BuilderGenerator.kt:334 */
|
159 254 | #[allow(missing_docs)] // documentation missing in model
|
255 + | /* BuilderGenerator.kt:336 */
|
160 256 | pub fn get_sparse_string_map(
|
161 257 | &self,
|
162 258 | ) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::option::Option<::std::string::String>>> {
|
259 + | /* BuilderGenerator.kt:337 */
|
163 260 | &self.sparse_string_map
|
261 + | /* BuilderGenerator.kt:336 */
|
164 262 | }
|
165 - | /// Adds a key-value pair to `sparse_set_map`.
|
263 + | /// /* BuilderGenerator.kt:436 */Adds a key-value pair to `sparse_set_map`.
|
264 + | /* BuilderGenerator.kt:437 */
|
166 265 | ///
|
167 - | /// To override the contents of this collection use [`set_sparse_set_map`](Self::set_sparse_set_map).
|
266 + | /// /* BuilderGenerator.kt:438 */To override the contents of this collection use [`set_sparse_set_map`](Self::set_sparse_set_map).
|
267 + | /* BuilderGenerator.kt:439 */
|
168 268 | ///
|
269 + | /* BuilderGenerator.kt:445 */
|
169 270 | pub fn sparse_set_map(
|
170 271 | mut self,
|
171 272 | k: impl ::std::convert::Into<::std::string::String>,
|
172 273 | v: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
173 274 | ) -> Self {
|
275 + | /* BuilderGenerator.kt:448 */
|
174 276 | let mut hash_map = self.sparse_set_map.unwrap_or_default();
|
175 277 | hash_map.insert(k.into(), v);
|
176 278 | self.sparse_set_map = ::std::option::Option::Some(hash_map);
|
177 279 | self
|
280 + | /* BuilderGenerator.kt:445 */
|
178 281 | }
|
282 + | /* BuilderGenerator.kt:312 */
|
179 283 | #[allow(missing_docs)] // documentation missing in model
|
284 + | /* BuilderGenerator.kt:314 */
|
180 285 | pub fn set_sparse_set_map(
|
181 286 | mut self,
|
182 287 | input: ::std::option::Option<
|
183 288 | ::std::collections::HashMap<::std::string::String, ::std::option::Option<::std::vec::Vec<::std::string::String>>>,
|
184 289 | >,
|
185 290 | ) -> Self {
|
291 + | /* BuilderGenerator.kt:315 */
|
186 292 | self.sparse_set_map = input;
|
187 293 | self
|
294 + | /* BuilderGenerator.kt:314 */
|
188 295 | }
|
296 + | /* BuilderGenerator.kt:334 */
|
189 297 | #[allow(missing_docs)] // documentation missing in model
|
298 + | /* BuilderGenerator.kt:336 */
|
190 299 | pub fn get_sparse_set_map(
|
191 300 | &self,
|
192 301 | ) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::option::Option<::std::vec::Vec<::std::string::String>>>>
|
193 302 | {
|
303 + | /* BuilderGenerator.kt:337 */
|
194 304 | &self.sparse_set_map
|
305 + | /* BuilderGenerator.kt:336 */
|
195 306 | }
|
196 - | /// Consumes the builder and constructs a [`SparseJsonMapsInput`](crate::operation::sparse_json_maps::SparseJsonMapsInput).
|
307 + | /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`SparseJsonMapsInput`](crate::operation::sparse_json_maps::SparseJsonMapsInput).
|
308 + | /* BuilderGenerator.kt:253 */
|
197 309 | pub fn build(
|
198 310 | self,
|
199 311 | ) -> ::std::result::Result<crate::operation::sparse_json_maps::SparseJsonMapsInput, ::aws_smithy_types::error::operation::BuildError> {
|
200 - | ::std::result::Result::Ok(crate::operation::sparse_json_maps::SparseJsonMapsInput {
|
201 - | sparse_struct_map: self.sparse_struct_map,
|
312 + | /* BuilderGenerator.kt:254 */
|
313 + | ::std::result::Result::Ok(
|
314 + | /* BuilderGenerator.kt:477 */
|
315 + | crate::operation::sparse_json_maps::SparseJsonMapsInput {
|
316 + | /* BuilderGenerator.kt:481 */ sparse_struct_map: self.sparse_struct_map,
|
317 + | /* BuilderGenerator.kt:481 */
|
202 318 | sparse_number_map: self.sparse_number_map,
|
319 + | /* BuilderGenerator.kt:481 */
|
203 320 | sparse_boolean_map: self.sparse_boolean_map,
|
321 + | /* BuilderGenerator.kt:481 */
|
204 322 | sparse_string_map: self.sparse_string_map,
|
323 + | /* BuilderGenerator.kt:481 */
|
205 324 | sparse_set_map: self.sparse_set_map,
|
206 - | })
|
325 + | /* BuilderGenerator.kt:477 */
|
326 + | }, /* BuilderGenerator.kt:254 */
|
327 + | )
|
328 + | /* BuilderGenerator.kt:253 */
|
207 329 | }
|
330 + | /* BuilderGenerator.kt:355 */
|
208 331 | }
|