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 SomethingElse {
|
8 + | pub /* StructureGenerator.kt:201 */ struct SomethingElse {
|
9 + | /* StructureGenerator.kt:231 */
|
6 10 | #[allow(missing_docs)] // documentation missing in model
|
7 11 | pub result: ::std::option::Option<crate::types::Result>,
|
12 + | /* StructureGenerator.kt:231 */
|
8 13 | #[allow(missing_docs)] // documentation missing in model
|
9 14 | pub result_list: ::std::option::Option<::std::vec::Vec<crate::types::Result>>,
|
15 + | /* StructureGenerator.kt:231 */
|
10 16 | #[allow(missing_docs)] // documentation missing in model
|
11 17 | pub option: ::std::option::Option<crate::types::Option>,
|
18 + | /* StructureGenerator.kt:231 */
|
12 19 | #[allow(missing_docs)] // documentation missing in model
|
13 20 | pub option_list: ::std::option::Option<::std::vec::Vec<crate::types::Result>>,
|
21 + | /* StructureGenerator.kt:231 */
|
14 22 | #[allow(missing_docs)] // documentation missing in model
|
15 23 | pub some_union: ::std::option::Option<crate::types::SomeUnion>,
|
24 + | /* StructureGenerator.kt:201 */
|
16 25 | }
|
26 + | /* StructureGenerator.kt:135 */
|
17 27 | impl SomethingElse {
|
28 + | /* StructureGenerator.kt:231 */
|
18 29 | #[allow(missing_docs)] // documentation missing in model
|
30 + | /* StructureGenerator.kt:166 */
|
19 31 | pub fn result(&self) -> ::std::option::Option<&crate::types::Result> {
|
32 + | /* StructureGenerator.kt:170 */
|
20 33 | self.result.as_ref()
|
34 + | /* StructureGenerator.kt:166 */
|
21 35 | }
|
36 + | /* StructureGenerator.kt:231 */
|
22 37 | #[allow(missing_docs)] // documentation missing in model
|
23 - | ///
|
24 - | /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.result_list.is_none()`.
|
38 + | /// /* StructureGenerator.kt:162 */
|
39 + | /// /* 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 `.result_list.is_none()`.
|
40 + | /* StructureGenerator.kt:166 */
|
25 41 | pub fn result_list(&self) -> &[crate::types::Result] {
|
26 - | self.result_list.as_deref().unwrap_or_default()
|
42 + | /* StructureGenerator.kt:169 */
|
43 + | self.result_list
|
44 + | .as_deref()
|
45 + | /* StructureGenerator.kt:175 */
|
46 + | .unwrap_or_default()
|
47 + | /* StructureGenerator.kt:166 */
|
27 48 | }
|
49 + | /* StructureGenerator.kt:231 */
|
28 50 | #[allow(missing_docs)] // documentation missing in model
|
51 + | /* StructureGenerator.kt:166 */
|
29 52 | pub fn option(&self) -> ::std::option::Option<&crate::types::Option> {
|
53 + | /* StructureGenerator.kt:170 */
|
30 54 | self.option.as_ref()
|
55 + | /* StructureGenerator.kt:166 */
|
31 56 | }
|
57 + | /* StructureGenerator.kt:231 */
|
32 58 | #[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 `.option_list.is_none()`.
|
59 + | /// /* StructureGenerator.kt:162 */
|
60 + | /// /* 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 `.option_list.is_none()`.
|
61 + | /* StructureGenerator.kt:166 */
|
35 62 | pub fn option_list(&self) -> &[crate::types::Result] {
|
36 - | self.option_list.as_deref().unwrap_or_default()
|
63 + | /* StructureGenerator.kt:169 */
|
64 + | self.option_list
|
65 + | .as_deref()
|
66 + | /* StructureGenerator.kt:175 */
|
67 + | .unwrap_or_default()
|
68 + | /* StructureGenerator.kt:166 */
|
37 69 | }
|
70 + | /* StructureGenerator.kt:231 */
|
38 71 | #[allow(missing_docs)] // documentation missing in model
|
72 + | /* StructureGenerator.kt:166 */
|
39 73 | pub fn some_union(&self) -> ::std::option::Option<&crate::types::SomeUnion> {
|
74 + | /* StructureGenerator.kt:170 */
|
40 75 | self.some_union.as_ref()
|
76 + | /* StructureGenerator.kt:166 */
|
41 77 | }
|
78 + | /* StructureGenerator.kt:135 */
|
42 79 | }
|
80 + | /* ClientCodegenVisitor.kt:237 */
|
43 81 | impl SomethingElse {
|
44 - | /// Creates a new builder-style object to manufacture [`SomethingElse`](crate::types::SomethingElse).
|
82 + | /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`SomethingElse`](crate::types::SomethingElse).
|
83 + | /* BuilderGenerator.kt:175 */
|
45 84 | pub fn builder() -> crate::types::builders::SomethingElseBuilder {
|
85 + | /* BuilderGenerator.kt:176 */
|
46 86 | crate::types::builders::SomethingElseBuilder::default()
|
87 + | /* BuilderGenerator.kt:175 */
|
47 88 | }
|
89 + | /* ClientCodegenVisitor.kt:237 */
|
48 90 | }
|
49 91 |
|
50 - | /// A builder for [`SomethingElse`](crate::types::SomethingElse).
|
92 + | /// /* BuilderGenerator.kt:342 */A builder for [`SomethingElse`](crate::types::SomethingElse).
|
93 + | /* RustType.kt:516 */
|
51 94 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
95 + | /* RustType.kt:516 */
|
52 96 | #[non_exhaustive]
|
97 + | /* BuilderGenerator.kt:345 */
|
53 98 | pub struct SomethingElseBuilder {
|
54 - | pub(crate) result: ::std::option::Option<crate::types::Result>,
|
55 - | pub(crate) result_list: ::std::option::Option<::std::vec::Vec<crate::types::Result>>,
|
56 - | pub(crate) option: ::std::option::Option<crate::types::Option>,
|
57 - | pub(crate) option_list: ::std::option::Option<::std::vec::Vec<crate::types::Result>>,
|
58 - | pub(crate) some_union: ::std::option::Option<crate::types::SomeUnion>,
|
99 + | /* BuilderGenerator.kt:275 */ pub(crate) result: ::std::option::Option<crate::types::Result>,
|
100 + | /* BuilderGenerator.kt:275 */ pub(crate) result_list: ::std::option::Option<::std::vec::Vec<crate::types::Result>>,
|
101 + | /* BuilderGenerator.kt:275 */ pub(crate) option: ::std::option::Option<crate::types::Option>,
|
102 + | /* BuilderGenerator.kt:275 */ pub(crate) option_list: ::std::option::Option<::std::vec::Vec<crate::types::Result>>,
|
103 + | /* BuilderGenerator.kt:275 */ pub(crate) some_union: ::std::option::Option<crate::types::SomeUnion>,
|
104 + | /* BuilderGenerator.kt:345 */
|
59 105 | }
|
106 + | /* BuilderGenerator.kt:355 */
|
60 107 | impl SomethingElseBuilder {
|
108 + | /* BuilderGenerator.kt:286 */
|
61 109 | #[allow(missing_docs)] // documentation missing in model
|
110 + | /* BuilderGenerator.kt:291 */
|
62 111 | pub fn result(mut self, input: crate::types::Result) -> Self {
|
112 + | /* BuilderGenerator.kt:292 */
|
63 113 | self.result = ::std::option::Option::Some(input);
|
114 + | /* BuilderGenerator.kt:293 */
|
64 115 | self
|
116 + | /* BuilderGenerator.kt:291 */
|
65 117 | }
|
118 + | /* BuilderGenerator.kt:312 */
|
66 119 | #[allow(missing_docs)] // documentation missing in model
|
120 + | /* BuilderGenerator.kt:314 */
|
67 121 | pub fn set_result(mut self, input: ::std::option::Option<crate::types::Result>) -> Self {
|
122 + | /* BuilderGenerator.kt:315 */
|
68 123 | self.result = input;
|
69 124 | self
|
125 + | /* BuilderGenerator.kt:314 */
|
70 126 | }
|
127 + | /* BuilderGenerator.kt:334 */
|
71 128 | #[allow(missing_docs)] // documentation missing in model
|
129 + | /* BuilderGenerator.kt:336 */
|
72 130 | pub fn get_result(&self) -> &::std::option::Option<crate::types::Result> {
|
131 + | /* BuilderGenerator.kt:337 */
|
73 132 | &self.result
|
133 + | /* BuilderGenerator.kt:336 */
|
74 134 | }
|
75 - | /// Appends an item to `result_list`.
|
135 + | /// /* BuilderGenerator.kt:410 */Appends an item to `result_list`.
|
136 + | /* BuilderGenerator.kt:411 */
|
76 137 | ///
|
77 - | /// To override the contents of this collection use [`set_result_list`](Self::set_result_list).
|
138 + | /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_result_list`](Self::set_result_list).
|
139 + | /* BuilderGenerator.kt:413 */
|
78 140 | ///
|
141 + | /* BuilderGenerator.kt:418 */
|
79 142 | pub fn result_list(mut self, input: crate::types::Result) -> Self {
|
143 + | /* BuilderGenerator.kt:419 */
|
80 144 | let mut v = self.result_list.unwrap_or_default();
|
81 145 | v.push(input);
|
82 146 | self.result_list = ::std::option::Option::Some(v);
|
83 147 | self
|
148 + | /* BuilderGenerator.kt:418 */
|
84 149 | }
|
150 + | /* BuilderGenerator.kt:312 */
|
85 151 | #[allow(missing_docs)] // documentation missing in model
|
152 + | /* BuilderGenerator.kt:314 */
|
86 153 | pub fn set_result_list(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Result>>) -> Self {
|
154 + | /* BuilderGenerator.kt:315 */
|
87 155 | self.result_list = input;
|
88 156 | self
|
157 + | /* BuilderGenerator.kt:314 */
|
89 158 | }
|
159 + | /* BuilderGenerator.kt:334 */
|
90 160 | #[allow(missing_docs)] // documentation missing in model
|
161 + | /* BuilderGenerator.kt:336 */
|
91 162 | pub fn get_result_list(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Result>> {
|
163 + | /* BuilderGenerator.kt:337 */
|
92 164 | &self.result_list
|
165 + | /* BuilderGenerator.kt:336 */
|
93 166 | }
|
167 + | /* BuilderGenerator.kt:286 */
|
94 168 | #[allow(missing_docs)] // documentation missing in model
|
169 + | /* BuilderGenerator.kt:291 */
|
95 170 | pub fn option(mut self, input: crate::types::Option) -> Self {
|
171 + | /* BuilderGenerator.kt:292 */
|
96 172 | self.option = ::std::option::Option::Some(input);
|
173 + | /* BuilderGenerator.kt:293 */
|
97 174 | self
|
175 + | /* BuilderGenerator.kt:291 */
|
98 176 | }
|
177 + | /* BuilderGenerator.kt:312 */
|
99 178 | #[allow(missing_docs)] // documentation missing in model
|
179 + | /* BuilderGenerator.kt:314 */
|
100 180 | pub fn set_option(mut self, input: ::std::option::Option<crate::types::Option>) -> Self {
|
181 + | /* BuilderGenerator.kt:315 */
|
101 182 | self.option = input;
|
102 183 | self
|
184 + | /* BuilderGenerator.kt:314 */
|
103 185 | }
|
186 + | /* BuilderGenerator.kt:334 */
|
104 187 | #[allow(missing_docs)] // documentation missing in model
|
188 + | /* BuilderGenerator.kt:336 */
|
105 189 | pub fn get_option(&self) -> &::std::option::Option<crate::types::Option> {
|
190 + | /* BuilderGenerator.kt:337 */
|
106 191 | &self.option
|
192 + | /* BuilderGenerator.kt:336 */
|
107 193 | }
|
108 - | /// Appends an item to `option_list`.
|
194 + | /// /* BuilderGenerator.kt:410 */Appends an item to `option_list`.
|
195 + | /* BuilderGenerator.kt:411 */
|
109 196 | ///
|
110 - | /// To override the contents of this collection use [`set_option_list`](Self::set_option_list).
|
197 + | /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_option_list`](Self::set_option_list).
|
198 + | /* BuilderGenerator.kt:413 */
|
111 199 | ///
|
200 + | /* BuilderGenerator.kt:418 */
|
112 201 | pub fn option_list(mut self, input: crate::types::Result) -> Self {
|
202 + | /* BuilderGenerator.kt:419 */
|
113 203 | let mut v = self.option_list.unwrap_or_default();
|
114 204 | v.push(input);
|
115 205 | self.option_list = ::std::option::Option::Some(v);
|
116 206 | self
|
207 + | /* BuilderGenerator.kt:418 */
|
117 208 | }
|
209 + | /* BuilderGenerator.kt:312 */
|
118 210 | #[allow(missing_docs)] // documentation missing in model
|
211 + | /* BuilderGenerator.kt:314 */
|
119 212 | pub fn set_option_list(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Result>>) -> Self {
|
213 + | /* BuilderGenerator.kt:315 */
|
120 214 | self.option_list = input;
|
121 215 | self
|
216 + | /* BuilderGenerator.kt:314 */
|
122 217 | }
|
218 + | /* BuilderGenerator.kt:334 */
|
123 219 | #[allow(missing_docs)] // documentation missing in model
|
220 + | /* BuilderGenerator.kt:336 */
|
124 221 | pub fn get_option_list(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Result>> {
|
222 + | /* BuilderGenerator.kt:337 */
|
125 223 | &self.option_list
|
224 + | /* BuilderGenerator.kt:336 */
|
126 225 | }
|
226 + | /* BuilderGenerator.kt:286 */
|
127 227 | #[allow(missing_docs)] // documentation missing in model
|
228 + | /* BuilderGenerator.kt:291 */
|
128 229 | pub fn some_union(mut self, input: crate::types::SomeUnion) -> Self {
|
230 + | /* BuilderGenerator.kt:292 */
|
129 231 | self.some_union = ::std::option::Option::Some(input);
|
232 + | /* BuilderGenerator.kt:293 */
|
130 233 | self
|
234 + | /* BuilderGenerator.kt:291 */
|
131 235 | }
|
236 + | /* BuilderGenerator.kt:312 */
|
132 237 | #[allow(missing_docs)] // documentation missing in model
|
238 + | /* BuilderGenerator.kt:314 */
|
133 239 | pub fn set_some_union(mut self, input: ::std::option::Option<crate::types::SomeUnion>) -> Self {
|
240 + | /* BuilderGenerator.kt:315 */
|
134 241 | self.some_union = input;
|
135 242 | self
|
243 + | /* BuilderGenerator.kt:314 */
|
136 244 | }
|
245 + | /* BuilderGenerator.kt:334 */
|
137 246 | #[allow(missing_docs)] // documentation missing in model
|
247 + | /* BuilderGenerator.kt:336 */
|
138 248 | pub fn get_some_union(&self) -> &::std::option::Option<crate::types::SomeUnion> {
|
249 + | /* BuilderGenerator.kt:337 */
|
139 250 | &self.some_union
|
251 + | /* BuilderGenerator.kt:336 */
|
140 252 | }
|
141 - | /// Consumes the builder and constructs a [`SomethingElse`](crate::types::SomethingElse).
|
253 + | /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`SomethingElse`](crate::types::SomethingElse).
|
254 + | /* BuilderGenerator.kt:253 */
|
142 255 | pub fn build(self) -> crate::types::SomethingElse {
|
256 + | /* BuilderGenerator.kt:477 */
|
143 257 | crate::types::SomethingElse {
|
144 - | result: self.result,
|
258 + | /* BuilderGenerator.kt:481 */ result: self.result,
|
259 + | /* BuilderGenerator.kt:481 */
|
145 260 | result_list: self.result_list,
|
261 + | /* BuilderGenerator.kt:481 */
|
146 262 | option: self.option,
|
263 + | /* BuilderGenerator.kt:481 */
|
147 264 | option_list: self.option_list,
|
265 + | /* BuilderGenerator.kt:481 */
|
148 266 | some_union: self.some_union,
|
267 + | /* BuilderGenerator.kt:477 */
|
149 268 | }
|
269 + | /* BuilderGenerator.kt:253 */
|
150 270 | }
|
271 + | /* BuilderGenerator.kt:355 */
|
151 272 | }
|