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