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 XmlNestedUnionStruct {
|
8 + | pub /* StructureGenerator.kt:201 */ struct XmlNestedUnionStruct {
|
9 + | /* StructureGenerator.kt:231 */
|
6 10 | #[allow(missing_docs)] // documentation missing in model
|
7 11 | pub string_value: ::std::option::Option<::std::string::String>,
|
12 + | /* StructureGenerator.kt:231 */
|
8 13 | #[allow(missing_docs)] // documentation missing in model
|
9 14 | pub boolean_value: ::std::option::Option<bool>,
|
10 - | #[allow(missing_docs)] // documentation missing in model
|
15 + | /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
|
11 16 | pub byte_value: ::std::option::Option<i8>,
|
12 - | #[allow(missing_docs)] // documentation missing in model
|
17 + | /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
|
13 18 | pub short_value: ::std::option::Option<i16>,
|
14 - | #[allow(missing_docs)] // documentation missing in model
|
19 + | /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
|
15 20 | pub integer_value: ::std::option::Option<i32>,
|
16 - | #[allow(missing_docs)] // documentation missing in model
|
21 + | /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
|
17 22 | pub long_value: ::std::option::Option<i64>,
|
18 - | #[allow(missing_docs)] // documentation missing in model
|
23 + | /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
|
19 24 | pub float_value: ::std::option::Option<f32>,
|
25 + | /* StructureGenerator.kt:231 */
|
20 26 | #[allow(missing_docs)] // documentation missing in model
|
21 27 | pub double_value: ::std::option::Option<f64>,
|
28 + | /* StructureGenerator.kt:201 */
|
22 29 | }
|
30 + | /* StructureGenerator.kt:135 */
|
23 31 | impl XmlNestedUnionStruct {
|
32 + | /* StructureGenerator.kt:231 */
|
24 33 | #[allow(missing_docs)] // documentation missing in model
|
34 + | /* StructureGenerator.kt:166 */
|
25 35 | pub fn string_value(&self) -> ::std::option::Option<&str> {
|
36 + | /* StructureGenerator.kt:169 */
|
26 37 | self.string_value.as_deref()
|
38 + | /* StructureGenerator.kt:166 */
|
27 39 | }
|
40 + | /* StructureGenerator.kt:231 */
|
28 41 | #[allow(missing_docs)] // documentation missing in model
|
42 + | /* StructureGenerator.kt:166 */
|
29 43 | pub fn boolean_value(&self) -> ::std::option::Option<bool> {
|
44 + | /* StructureGenerator.kt:168 */
|
30 45 | self.boolean_value
|
46 + | /* StructureGenerator.kt:166 */
|
31 47 | }
|
48 + | /* StructureGenerator.kt:231 */
|
32 49 | #[allow(missing_docs)] // documentation missing in model
|
50 + | /* StructureGenerator.kt:166 */
|
33 51 | pub fn byte_value(&self) -> ::std::option::Option<i8> {
|
52 + | /* StructureGenerator.kt:168 */
|
34 53 | self.byte_value
|
54 + | /* StructureGenerator.kt:166 */
|
35 55 | }
|
56 + | /* StructureGenerator.kt:231 */
|
36 57 | #[allow(missing_docs)] // documentation missing in model
|
58 + | /* StructureGenerator.kt:166 */
|
37 59 | pub fn short_value(&self) -> ::std::option::Option<i16> {
|
60 + | /* StructureGenerator.kt:168 */
|
38 61 | self.short_value
|
62 + | /* StructureGenerator.kt:166 */
|
39 63 | }
|
64 + | /* StructureGenerator.kt:231 */
|
40 65 | #[allow(missing_docs)] // documentation missing in model
|
66 + | /* StructureGenerator.kt:166 */
|
41 67 | pub fn integer_value(&self) -> ::std::option::Option<i32> {
|
68 + | /* StructureGenerator.kt:168 */
|
42 69 | self.integer_value
|
70 + | /* StructureGenerator.kt:166 */
|
43 71 | }
|
72 + | /* StructureGenerator.kt:231 */
|
44 73 | #[allow(missing_docs)] // documentation missing in model
|
74 + | /* StructureGenerator.kt:166 */
|
45 75 | pub fn long_value(&self) -> ::std::option::Option<i64> {
|
76 + | /* StructureGenerator.kt:168 */
|
46 77 | self.long_value
|
78 + | /* StructureGenerator.kt:166 */
|
47 79 | }
|
80 + | /* StructureGenerator.kt:231 */
|
48 81 | #[allow(missing_docs)] // documentation missing in model
|
82 + | /* StructureGenerator.kt:166 */
|
49 83 | pub fn float_value(&self) -> ::std::option::Option<f32> {
|
84 + | /* StructureGenerator.kt:168 */
|
50 85 | self.float_value
|
86 + | /* StructureGenerator.kt:166 */
|
51 87 | }
|
88 + | /* StructureGenerator.kt:231 */
|
52 89 | #[allow(missing_docs)] // documentation missing in model
|
90 + | /* StructureGenerator.kt:166 */
|
53 91 | pub fn double_value(&self) -> ::std::option::Option<f64> {
|
92 + | /* StructureGenerator.kt:168 */
|
54 93 | self.double_value
|
94 + | /* StructureGenerator.kt:166 */
|
55 95 | }
|
96 + | /* StructureGenerator.kt:135 */
|
56 97 | }
|
98 + | /* ClientCodegenVisitor.kt:237 */
|
57 99 | impl XmlNestedUnionStruct {
|
58 - | /// Creates a new builder-style object to manufacture [`XmlNestedUnionStruct`](crate::types::XmlNestedUnionStruct).
|
100 + | /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`XmlNestedUnionStruct`](crate::types::XmlNestedUnionStruct).
|
101 + | /* BuilderGenerator.kt:175 */
|
59 102 | pub fn builder() -> crate::types::builders::XmlNestedUnionStructBuilder {
|
103 + | /* BuilderGenerator.kt:176 */
|
60 104 | crate::types::builders::XmlNestedUnionStructBuilder::default()
|
105 + | /* BuilderGenerator.kt:175 */
|
61 106 | }
|
107 + | /* ClientCodegenVisitor.kt:237 */
|
62 108 | }
|
63 109 |
|
64 - | /// A builder for [`XmlNestedUnionStruct`](crate::types::XmlNestedUnionStruct).
|
110 + | /// /* BuilderGenerator.kt:342 */A builder for [`XmlNestedUnionStruct`](crate::types::XmlNestedUnionStruct).
|
111 + | /* RustType.kt:516 */
|
65 112 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
113 + | /* RustType.kt:516 */
|
66 114 | #[non_exhaustive]
|
115 + | /* BuilderGenerator.kt:345 */
|
67 116 | pub struct XmlNestedUnionStructBuilder {
|
68 - | pub(crate) string_value: ::std::option::Option<::std::string::String>,
|
69 - | pub(crate) boolean_value: ::std::option::Option<bool>,
|
70 - | pub(crate) byte_value: ::std::option::Option<i8>,
|
71 - | pub(crate) short_value: ::std::option::Option<i16>,
|
72 - | pub(crate) integer_value: ::std::option::Option<i32>,
|
73 - | pub(crate) long_value: ::std::option::Option<i64>,
|
74 - | pub(crate) float_value: ::std::option::Option<f32>,
|
75 - | pub(crate) double_value: ::std::option::Option<f64>,
|
117 + | /* BuilderGenerator.kt:275 */ pub(crate) string_value: ::std::option::Option<::std::string::String>,
|
118 + | /* BuilderGenerator.kt:275 */ pub(crate) boolean_value: ::std::option::Option<bool>,
|
119 + | /* BuilderGenerator.kt:275 */ pub(crate) byte_value: ::std::option::Option<i8>,
|
120 + | /* BuilderGenerator.kt:275 */ pub(crate) short_value: ::std::option::Option<i16>,
|
121 + | /* BuilderGenerator.kt:275 */ pub(crate) integer_value: ::std::option::Option<i32>,
|
122 + | /* BuilderGenerator.kt:275 */ pub(crate) long_value: ::std::option::Option<i64>,
|
123 + | /* BuilderGenerator.kt:275 */ pub(crate) float_value: ::std::option::Option<f32>,
|
124 + | /* BuilderGenerator.kt:275 */ pub(crate) double_value: ::std::option::Option<f64>,
|
125 + | /* BuilderGenerator.kt:345 */
|
76 126 | }
|
127 + | /* BuilderGenerator.kt:355 */
|
77 128 | impl XmlNestedUnionStructBuilder {
|
129 + | /* BuilderGenerator.kt:286 */
|
78 130 | #[allow(missing_docs)] // documentation missing in model
|
131 + | /* BuilderGenerator.kt:291 */
|
79 132 | pub fn string_value(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
133 + | /* BuilderGenerator.kt:292 */
|
80 134 | self.string_value = ::std::option::Option::Some(input.into());
|
135 + | /* BuilderGenerator.kt:293 */
|
81 136 | self
|
137 + | /* BuilderGenerator.kt:291 */
|
82 138 | }
|
139 + | /* BuilderGenerator.kt:312 */
|
83 140 | #[allow(missing_docs)] // documentation missing in model
|
141 + | /* BuilderGenerator.kt:314 */
|
84 142 | pub fn set_string_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
143 + | /* BuilderGenerator.kt:315 */
|
85 144 | self.string_value = input;
|
86 145 | self
|
146 + | /* BuilderGenerator.kt:314 */
|
87 147 | }
|
148 + | /* BuilderGenerator.kt:334 */
|
88 149 | #[allow(missing_docs)] // documentation missing in model
|
150 + | /* BuilderGenerator.kt:336 */
|
89 151 | pub fn get_string_value(&self) -> &::std::option::Option<::std::string::String> {
|
152 + | /* BuilderGenerator.kt:337 */
|
90 153 | &self.string_value
|
154 + | /* BuilderGenerator.kt:336 */
|
91 155 | }
|
156 + | /* BuilderGenerator.kt:286 */
|
92 157 | #[allow(missing_docs)] // documentation missing in model
|
158 + | /* BuilderGenerator.kt:291 */
|
93 159 | pub fn boolean_value(mut self, input: bool) -> Self {
|
160 + | /* BuilderGenerator.kt:292 */
|
94 161 | self.boolean_value = ::std::option::Option::Some(input);
|
162 + | /* BuilderGenerator.kt:293 */
|
95 163 | self
|
164 + | /* BuilderGenerator.kt:291 */
|
96 165 | }
|
166 + | /* BuilderGenerator.kt:312 */
|
97 167 | #[allow(missing_docs)] // documentation missing in model
|
168 + | /* BuilderGenerator.kt:314 */
|
98 169 | pub fn set_boolean_value(mut self, input: ::std::option::Option<bool>) -> Self {
|
170 + | /* BuilderGenerator.kt:315 */
|
99 171 | self.boolean_value = input;
|
100 172 | self
|
173 + | /* BuilderGenerator.kt:314 */
|
101 174 | }
|
175 + | /* BuilderGenerator.kt:334 */
|
102 176 | #[allow(missing_docs)] // documentation missing in model
|
177 + | /* BuilderGenerator.kt:336 */
|
103 178 | pub fn get_boolean_value(&self) -> &::std::option::Option<bool> {
|
179 + | /* BuilderGenerator.kt:337 */
|
104 180 | &self.boolean_value
|
181 + | /* BuilderGenerator.kt:336 */
|
105 182 | }
|
183 + | /* BuilderGenerator.kt:286 */
|
106 184 | #[allow(missing_docs)] // documentation missing in model
|
185 + | /* BuilderGenerator.kt:291 */
|
107 186 | pub fn byte_value(mut self, input: i8) -> Self {
|
187 + | /* BuilderGenerator.kt:292 */
|
108 188 | self.byte_value = ::std::option::Option::Some(input);
|
189 + | /* BuilderGenerator.kt:293 */
|
109 190 | self
|
191 + | /* BuilderGenerator.kt:291 */
|
110 192 | }
|
193 + | /* BuilderGenerator.kt:312 */
|
111 194 | #[allow(missing_docs)] // documentation missing in model
|
195 + | /* BuilderGenerator.kt:314 */
|
112 196 | pub fn set_byte_value(mut self, input: ::std::option::Option<i8>) -> Self {
|
197 + | /* BuilderGenerator.kt:315 */
|
113 198 | self.byte_value = input;
|
114 199 | self
|
200 + | /* BuilderGenerator.kt:314 */
|
115 201 | }
|
202 + | /* BuilderGenerator.kt:334 */
|
116 203 | #[allow(missing_docs)] // documentation missing in model
|
204 + | /* BuilderGenerator.kt:336 */
|
117 205 | pub fn get_byte_value(&self) -> &::std::option::Option<i8> {
|
206 + | /* BuilderGenerator.kt:337 */
|
118 207 | &self.byte_value
|
208 + | /* BuilderGenerator.kt:336 */
|
119 209 | }
|
210 + | /* BuilderGenerator.kt:286 */
|
120 211 | #[allow(missing_docs)] // documentation missing in model
|
212 + | /* BuilderGenerator.kt:291 */
|
121 213 | pub fn short_value(mut self, input: i16) -> Self {
|
214 + | /* BuilderGenerator.kt:292 */
|
122 215 | self.short_value = ::std::option::Option::Some(input);
|
216 + | /* BuilderGenerator.kt:293 */
|
123 217 | self
|
218 + | /* BuilderGenerator.kt:291 */
|
124 219 | }
|
220 + | /* BuilderGenerator.kt:312 */
|
125 221 | #[allow(missing_docs)] // documentation missing in model
|
222 + | /* BuilderGenerator.kt:314 */
|
126 223 | pub fn set_short_value(mut self, input: ::std::option::Option<i16>) -> Self {
|
224 + | /* BuilderGenerator.kt:315 */
|
127 225 | self.short_value = input;
|
128 226 | self
|
227 + | /* BuilderGenerator.kt:314 */
|
129 228 | }
|
229 + | /* BuilderGenerator.kt:334 */
|
130 230 | #[allow(missing_docs)] // documentation missing in model
|
231 + | /* BuilderGenerator.kt:336 */
|
131 232 | pub fn get_short_value(&self) -> &::std::option::Option<i16> {
|
233 + | /* BuilderGenerator.kt:337 */
|
132 234 | &self.short_value
|
235 + | /* BuilderGenerator.kt:336 */
|
133 236 | }
|
237 + | /* BuilderGenerator.kt:286 */
|
134 238 | #[allow(missing_docs)] // documentation missing in model
|
239 + | /* BuilderGenerator.kt:291 */
|
135 240 | pub fn integer_value(mut self, input: i32) -> Self {
|
241 + | /* BuilderGenerator.kt:292 */
|
136 242 | self.integer_value = ::std::option::Option::Some(input);
|
243 + | /* BuilderGenerator.kt:293 */
|
137 244 | self
|
245 + | /* BuilderGenerator.kt:291 */
|
138 246 | }
|
247 + | /* BuilderGenerator.kt:312 */
|
139 248 | #[allow(missing_docs)] // documentation missing in model
|
249 + | /* BuilderGenerator.kt:314 */
|
140 250 | pub fn set_integer_value(mut self, input: ::std::option::Option<i32>) -> Self {
|
251 + | /* BuilderGenerator.kt:315 */
|
141 252 | self.integer_value = input;
|
142 253 | self
|
254 + | /* BuilderGenerator.kt:314 */
|
143 255 | }
|
256 + | /* BuilderGenerator.kt:334 */
|
144 257 | #[allow(missing_docs)] // documentation missing in model
|
258 + | /* BuilderGenerator.kt:336 */
|
145 259 | pub fn get_integer_value(&self) -> &::std::option::Option<i32> {
|
260 + | /* BuilderGenerator.kt:337 */
|
146 261 | &self.integer_value
|
262 + | /* BuilderGenerator.kt:336 */
|
147 263 | }
|
264 + | /* BuilderGenerator.kt:286 */
|
148 265 | #[allow(missing_docs)] // documentation missing in model
|
266 + | /* BuilderGenerator.kt:291 */
|
149 267 | pub fn long_value(mut self, input: i64) -> Self {
|
268 + | /* BuilderGenerator.kt:292 */
|
150 269 | self.long_value = ::std::option::Option::Some(input);
|
270 + | /* BuilderGenerator.kt:293 */
|
151 271 | self
|
272 + | /* BuilderGenerator.kt:291 */
|
152 273 | }
|
274 + | /* BuilderGenerator.kt:312 */
|
153 275 | #[allow(missing_docs)] // documentation missing in model
|
276 + | /* BuilderGenerator.kt:314 */
|
154 277 | pub fn set_long_value(mut self, input: ::std::option::Option<i64>) -> Self {
|
278 + | /* BuilderGenerator.kt:315 */
|
155 279 | self.long_value = input;
|
156 280 | self
|
281 + | /* BuilderGenerator.kt:314 */
|
157 282 | }
|
283 + | /* BuilderGenerator.kt:334 */
|
158 284 | #[allow(missing_docs)] // documentation missing in model
|
285 + | /* BuilderGenerator.kt:336 */
|
159 286 | pub fn get_long_value(&self) -> &::std::option::Option<i64> {
|
287 + | /* BuilderGenerator.kt:337 */
|
160 288 | &self.long_value
|
289 + | /* BuilderGenerator.kt:336 */
|
161 290 | }
|
291 + | /* BuilderGenerator.kt:286 */
|
162 292 | #[allow(missing_docs)] // documentation missing in model
|
293 + | /* BuilderGenerator.kt:291 */
|
163 294 | pub fn float_value(mut self, input: f32) -> Self {
|
295 + | /* BuilderGenerator.kt:292 */
|
164 296 | self.float_value = ::std::option::Option::Some(input);
|
297 + | /* BuilderGenerator.kt:293 */
|
165 298 | self
|
299 + | /* BuilderGenerator.kt:291 */
|
166 300 | }
|
301 + | /* BuilderGenerator.kt:312 */
|
167 302 | #[allow(missing_docs)] // documentation missing in model
|
303 + | /* BuilderGenerator.kt:314 */
|
168 304 | pub fn set_float_value(mut self, input: ::std::option::Option<f32>) -> Self {
|
305 + | /* BuilderGenerator.kt:315 */
|
169 306 | self.float_value = input;
|
170 307 | self
|
308 + | /* BuilderGenerator.kt:314 */
|
171 309 | }
|
310 + | /* BuilderGenerator.kt:334 */
|
172 311 | #[allow(missing_docs)] // documentation missing in model
|
312 + | /* BuilderGenerator.kt:336 */
|
173 313 | pub fn get_float_value(&self) -> &::std::option::Option<f32> {
|
314 + | /* BuilderGenerator.kt:337 */
|
174 315 | &self.float_value
|
316 + | /* BuilderGenerator.kt:336 */
|
175 317 | }
|
318 + | /* BuilderGenerator.kt:286 */
|
176 319 | #[allow(missing_docs)] // documentation missing in model
|
320 + | /* BuilderGenerator.kt:291 */
|
177 321 | pub fn double_value(mut self, input: f64) -> Self {
|
322 + | /* BuilderGenerator.kt:292 */
|
178 323 | self.double_value = ::std::option::Option::Some(input);
|
324 + | /* BuilderGenerator.kt:293 */
|
179 325 | self
|
326 + | /* BuilderGenerator.kt:291 */
|
180 327 | }
|
328 + | /* BuilderGenerator.kt:312 */
|
181 329 | #[allow(missing_docs)] // documentation missing in model
|
330 + | /* BuilderGenerator.kt:314 */
|
182 331 | pub fn set_double_value(mut self, input: ::std::option::Option<f64>) -> Self {
|
332 + | /* BuilderGenerator.kt:315 */
|
183 333 | self.double_value = input;
|
184 334 | self
|
335 + | /* BuilderGenerator.kt:314 */
|
185 336 | }
|
337 + | /* BuilderGenerator.kt:334 */
|
186 338 | #[allow(missing_docs)] // documentation missing in model
|
339 + | /* BuilderGenerator.kt:336 */
|
187 340 | pub fn get_double_value(&self) -> &::std::option::Option<f64> {
|
341 + | /* BuilderGenerator.kt:337 */
|
188 342 | &self.double_value
|
343 + | /* BuilderGenerator.kt:336 */
|
189 344 | }
|
190 - | /// Consumes the builder and constructs a [`XmlNestedUnionStruct`](crate::types::XmlNestedUnionStruct).
|
345 + | /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`XmlNestedUnionStruct`](crate::types::XmlNestedUnionStruct).
|
346 + | /* BuilderGenerator.kt:253 */
|
191 347 | pub fn build(self) -> crate::types::XmlNestedUnionStruct {
|
348 + | /* BuilderGenerator.kt:477 */
|
192 349 | crate::types::XmlNestedUnionStruct {
|
193 - | string_value: self.string_value,
|
350 + | /* BuilderGenerator.kt:481 */ string_value: self.string_value,
|
351 + | /* BuilderGenerator.kt:481 */
|
194 352 | boolean_value: self.boolean_value,
|
353 + | /* BuilderGenerator.kt:481 */
|
195 354 | byte_value: self.byte_value,
|
355 + | /* BuilderGenerator.kt:481 */
|
196 356 | short_value: self.short_value,
|
357 + | /* BuilderGenerator.kt:481 */
|
197 358 | integer_value: self.integer_value,
|
359 + | /* BuilderGenerator.kt:481 */
|
198 360 | long_value: self.long_value,
|
361 + | /* BuilderGenerator.kt:481 */
|
199 362 | float_value: self.float_value,
|
363 + | /* BuilderGenerator.kt:481 */
|
200 364 | double_value: self.double_value,
|
365 + | /* BuilderGenerator.kt:477 */
|
201 366 | }
|
367 + | /* BuilderGenerator.kt:253 */
|
202 368 | }
|
369 + | /* BuilderGenerator.kt:355 */
|
203 370 | }
|