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 CaptureEvent {
|
8 + | pub /* StructureGenerator.kt:201 */ struct CaptureEvent {
|
9 + | /* StructureGenerator.kt:231 */
|
6 10 | #[allow(missing_docs)] // documentation missing in model
|
7 11 | pub name: ::std::option::Option<::std::string::String>,
|
8 - | #[allow(missing_docs)] // documentation missing in model
|
12 + | /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
|
9 13 | pub captured: ::std::option::Option<bool>,
|
10 - | #[allow(missing_docs)] // documentation missing in model
|
14 + | /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
|
11 15 | pub shiny: ::std::option::Option<bool>,
|
16 + | /* StructureGenerator.kt:231 */
|
12 17 | #[allow(missing_docs)] // documentation missing in model
|
13 18 | pub pokedex_update: ::std::option::Option<::aws_smithy_types::Blob>,
|
19 + | /* StructureGenerator.kt:201 */
|
14 20 | }
|
21 + | /* StructureGenerator.kt:135 */
|
15 22 | impl CaptureEvent {
|
23 + | /* StructureGenerator.kt:231 */
|
16 24 | #[allow(missing_docs)] // documentation missing in model
|
25 + | /* StructureGenerator.kt:166 */
|
17 26 | pub fn name(&self) -> ::std::option::Option<&str> {
|
27 + | /* StructureGenerator.kt:169 */
|
18 28 | self.name.as_deref()
|
29 + | /* StructureGenerator.kt:166 */
|
19 30 | }
|
31 + | /* StructureGenerator.kt:231 */
|
20 32 | #[allow(missing_docs)] // documentation missing in model
|
33 + | /* StructureGenerator.kt:166 */
|
21 34 | pub fn captured(&self) -> ::std::option::Option<bool> {
|
35 + | /* StructureGenerator.kt:168 */
|
22 36 | self.captured
|
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 shiny(&self) -> ::std::option::Option<bool> {
|
43 + | /* StructureGenerator.kt:168 */
|
26 44 | self.shiny
|
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 pokedex_update(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
|
51 + | /* StructureGenerator.kt:170 */
|
30 52 | self.pokedex_update.as_ref()
|
53 + | /* StructureGenerator.kt:166 */
|
31 54 | }
|
55 + | /* StructureGenerator.kt:135 */
|
32 56 | }
|
57 + | /* ClientCodegenVisitor.kt:237 */
|
33 58 | impl CaptureEvent {
|
34 - | /// Creates a new builder-style object to manufacture [`CaptureEvent`](crate::types::CaptureEvent).
|
59 + | /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`CaptureEvent`](crate::types::CaptureEvent).
|
60 + | /* BuilderGenerator.kt:175 */
|
35 61 | pub fn builder() -> crate::types::builders::CaptureEventBuilder {
|
62 + | /* BuilderGenerator.kt:176 */
|
36 63 | crate::types::builders::CaptureEventBuilder::default()
|
64 + | /* BuilderGenerator.kt:175 */
|
37 65 | }
|
66 + | /* ClientCodegenVisitor.kt:237 */
|
38 67 | }
|
39 68 |
|
40 - | /// A builder for [`CaptureEvent`](crate::types::CaptureEvent).
|
69 + | /// /* BuilderGenerator.kt:342 */A builder for [`CaptureEvent`](crate::types::CaptureEvent).
|
70 + | /* RustType.kt:516 */
|
41 71 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
72 + | /* RustType.kt:516 */
|
42 73 | #[non_exhaustive]
|
74 + | /* BuilderGenerator.kt:345 */
|
43 75 | pub struct CaptureEventBuilder {
|
44 - | pub(crate) name: ::std::option::Option<::std::string::String>,
|
45 - | pub(crate) captured: ::std::option::Option<bool>,
|
46 - | pub(crate) shiny: ::std::option::Option<bool>,
|
76 + | /* BuilderGenerator.kt:275 */ pub(crate) name: ::std::option::Option<::std::string::String>,
|
77 + | /* BuilderGenerator.kt:275 */ pub(crate) captured: ::std::option::Option<bool>,
|
78 + | /* BuilderGenerator.kt:275 */ pub(crate) shiny: ::std::option::Option<bool>,
|
79 + | /* BuilderGenerator.kt:275 */
|
47 80 | pub(crate) pokedex_update: ::std::option::Option<::aws_smithy_types::Blob>,
|
81 + | /* BuilderGenerator.kt:345 */
|
48 82 | }
|
83 + | /* BuilderGenerator.kt:355 */
|
49 84 | impl CaptureEventBuilder {
|
85 + | /* BuilderGenerator.kt:286 */
|
50 86 | #[allow(missing_docs)] // documentation missing in model
|
87 + | /* BuilderGenerator.kt:291 */
|
51 88 | pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
89 + | /* BuilderGenerator.kt:292 */
|
52 90 | self.name = ::std::option::Option::Some(input.into());
|
91 + | /* BuilderGenerator.kt:293 */
|
53 92 | self
|
93 + | /* BuilderGenerator.kt:291 */
|
54 94 | }
|
95 + | /* BuilderGenerator.kt:312 */
|
55 96 | #[allow(missing_docs)] // documentation missing in model
|
97 + | /* BuilderGenerator.kt:314 */
|
56 98 | pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
99 + | /* BuilderGenerator.kt:315 */
|
57 100 | self.name = input;
|
58 101 | self
|
102 + | /* BuilderGenerator.kt:314 */
|
59 103 | }
|
104 + | /* BuilderGenerator.kt:334 */
|
60 105 | #[allow(missing_docs)] // documentation missing in model
|
106 + | /* BuilderGenerator.kt:336 */
|
61 107 | pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
|
108 + | /* BuilderGenerator.kt:337 */
|
62 109 | &self.name
|
110 + | /* BuilderGenerator.kt:336 */
|
63 111 | }
|
112 + | /* BuilderGenerator.kt:286 */
|
64 113 | #[allow(missing_docs)] // documentation missing in model
|
114 + | /* BuilderGenerator.kt:291 */
|
65 115 | pub fn captured(mut self, input: bool) -> Self {
|
116 + | /* BuilderGenerator.kt:292 */
|
66 117 | self.captured = ::std::option::Option::Some(input);
|
118 + | /* BuilderGenerator.kt:293 */
|
67 119 | self
|
120 + | /* BuilderGenerator.kt:291 */
|
68 121 | }
|
122 + | /* BuilderGenerator.kt:312 */
|
69 123 | #[allow(missing_docs)] // documentation missing in model
|
124 + | /* BuilderGenerator.kt:314 */
|
70 125 | pub fn set_captured(mut self, input: ::std::option::Option<bool>) -> Self {
|
126 + | /* BuilderGenerator.kt:315 */
|
71 127 | self.captured = input;
|
72 128 | self
|
129 + | /* BuilderGenerator.kt:314 */
|
73 130 | }
|
131 + | /* BuilderGenerator.kt:334 */
|
74 132 | #[allow(missing_docs)] // documentation missing in model
|
133 + | /* BuilderGenerator.kt:336 */
|
75 134 | pub fn get_captured(&self) -> &::std::option::Option<bool> {
|
135 + | /* BuilderGenerator.kt:337 */
|
76 136 | &self.captured
|
137 + | /* BuilderGenerator.kt:336 */
|
77 138 | }
|
139 + | /* BuilderGenerator.kt:286 */
|
78 140 | #[allow(missing_docs)] // documentation missing in model
|
141 + | /* BuilderGenerator.kt:291 */
|
79 142 | pub fn shiny(mut self, input: bool) -> Self {
|
143 + | /* BuilderGenerator.kt:292 */
|
80 144 | self.shiny = ::std::option::Option::Some(input);
|
145 + | /* BuilderGenerator.kt:293 */
|
81 146 | self
|
147 + | /* BuilderGenerator.kt:291 */
|
82 148 | }
|
149 + | /* BuilderGenerator.kt:312 */
|
83 150 | #[allow(missing_docs)] // documentation missing in model
|
151 + | /* BuilderGenerator.kt:314 */
|
84 152 | pub fn set_shiny(mut self, input: ::std::option::Option<bool>) -> Self {
|
153 + | /* BuilderGenerator.kt:315 */
|
85 154 | self.shiny = input;
|
86 155 | self
|
156 + | /* BuilderGenerator.kt:314 */
|
87 157 | }
|
158 + | /* BuilderGenerator.kt:334 */
|
88 159 | #[allow(missing_docs)] // documentation missing in model
|
160 + | /* BuilderGenerator.kt:336 */
|
89 161 | pub fn get_shiny(&self) -> &::std::option::Option<bool> {
|
162 + | /* BuilderGenerator.kt:337 */
|
90 163 | &self.shiny
|
164 + | /* BuilderGenerator.kt:336 */
|
91 165 | }
|
166 + | /* BuilderGenerator.kt:286 */
|
92 167 | #[allow(missing_docs)] // documentation missing in model
|
168 + | /* BuilderGenerator.kt:291 */
|
93 169 | pub fn pokedex_update(mut self, input: ::aws_smithy_types::Blob) -> Self {
|
170 + | /* BuilderGenerator.kt:292 */
|
94 171 | self.pokedex_update = ::std::option::Option::Some(input);
|
172 + | /* BuilderGenerator.kt:293 */
|
95 173 | self
|
174 + | /* BuilderGenerator.kt:291 */
|
96 175 | }
|
176 + | /* BuilderGenerator.kt:312 */
|
97 177 | #[allow(missing_docs)] // documentation missing in model
|
178 + | /* BuilderGenerator.kt:314 */
|
98 179 | pub fn set_pokedex_update(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
|
180 + | /* BuilderGenerator.kt:315 */
|
99 181 | self.pokedex_update = input;
|
100 182 | self
|
183 + | /* BuilderGenerator.kt:314 */
|
101 184 | }
|
185 + | /* BuilderGenerator.kt:334 */
|
102 186 | #[allow(missing_docs)] // documentation missing in model
|
187 + | /* BuilderGenerator.kt:336 */
|
103 188 | pub fn get_pokedex_update(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
|
189 + | /* BuilderGenerator.kt:337 */
|
104 190 | &self.pokedex_update
|
191 + | /* BuilderGenerator.kt:336 */
|
105 192 | }
|
106 - | /// Consumes the builder and constructs a [`CaptureEvent`](crate::types::CaptureEvent).
|
193 + | /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`CaptureEvent`](crate::types::CaptureEvent).
|
194 + | /* BuilderGenerator.kt:253 */
|
107 195 | pub fn build(self) -> crate::types::CaptureEvent {
|
196 + | /* BuilderGenerator.kt:477 */
|
108 197 | crate::types::CaptureEvent {
|
109 - | name: self.name,
|
198 + | /* BuilderGenerator.kt:481 */ name: self.name,
|
199 + | /* BuilderGenerator.kt:481 */
|
110 200 | captured: self.captured,
|
201 + | /* BuilderGenerator.kt:481 */
|
111 202 | shiny: self.shiny,
|
203 + | /* BuilderGenerator.kt:481 */
|
112 204 | pokedex_update: self.pokedex_update,
|
205 + | /* BuilderGenerator.kt:477 */
|
113 206 | }
|
207 + | /* BuilderGenerator.kt:253 */
|
114 208 | }
|
209 + | /* BuilderGenerator.kt:355 */
|
115 210 | }
|