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