1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + | /* ServerOperationErrorGenerator.kt:63 */
|
2 3 | /// Error type for the `StartSnapshot` operation.
|
4 + | /* ServerOperationErrorGenerator.kt:64 */
|
3 5 | /// Each variant represents an error that can occur for the `StartSnapshot` operation.
|
6 + | /* RustType.kt:516 */
|
4 7 | #[derive(::std::fmt::Debug)]
|
5 - | pub enum StartSnapshotError {
|
6 - | /// <p>An internal error has occurred.</p>
|
8 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum StartSnapshotError {
|
9 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>An internal error has occurred.</p>
|
10 + | /* ServerOperationErrorGenerator.kt:71 */
|
7 11 | InternalServerException(crate::error::InternalServerException),
|
8 - | /// <p>The specified resource does not exist.</p>
|
12 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>The specified resource does not exist.</p>
|
13 + | /* ServerOperationErrorGenerator.kt:71 */
|
9 14 | ResourceNotFoundException(crate::error::ResourceNotFoundException),
|
10 - | /// <p>You do not have sufficient access to perform this action.</p>
|
15 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>You do not have sufficient access to perform this action.</p>
|
16 + | /* ServerOperationErrorGenerator.kt:71 */
|
11 17 | AccessDeniedException(crate::error::AccessDeniedException),
|
12 - | /// <p>The request uses the same client token as a previous, but non-identical request.</p>
|
18 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>The request uses the same client token as a previous, but non-identical request.</p>
|
19 + | /* ServerOperationErrorGenerator.kt:71 */
|
13 20 | ConflictException(crate::error::ConflictException),
|
14 - | /// <p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
|
21 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
|
22 + | /* ServerOperationErrorGenerator.kt:71 */
|
15 23 | RequestThrottledException(crate::error::RequestThrottledException),
|
16 - | /// <p>Your current service quotas do not allow you to perform this action.</p>
|
24 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>Your current service quotas do not allow you to perform this action.</p>
|
25 + | /* ServerOperationErrorGenerator.kt:71 */
|
17 26 | ServiceQuotaExceededException(crate::error::ServiceQuotaExceededException),
|
18 - | /// <p>You have reached the limit for concurrent API requests. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-accessing-snapshot.html#ebsapi-performance">Optimizing performance of the EBS direct APIs</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
|
27 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>You have reached the limit for concurrent API requests. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-accessing-snapshot.html#ebsapi-performance">Optimizing performance of the EBS direct APIs</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
|
28 + | /* ServerOperationErrorGenerator.kt:71 */
|
19 29 | ConcurrentLimitExceededException(crate::error::ConcurrentLimitExceededException),
|
20 - | /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
30 + | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
31 + | /* ServerOperationErrorGenerator.kt:71 */
|
21 32 | ValidationException(crate::error::ValidationException),
|
33 + | /* ServerOperationErrorGenerator.kt:68 */
|
22 34 | #[allow(missing_docs)] // documentation missing in model
|
35 + | /* ServerOperationErrorGenerator.kt:71 */
|
23 36 | InternalServerError(crate::error::InternalServerError),
|
37 + | /* ServerOperationErrorGenerator.kt:66 */
|
24 38 | }
|
39 + | /* ServerOperationErrorGenerator.kt:75 */
|
25 40 | impl ::std::fmt::Display for StartSnapshotError {
|
41 + | /* ServerOperationErrorGenerator.kt:76 */
|
26 42 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
43 + | /* ServerOperationErrorGenerator.kt:139 */
|
27 44 | match &self {
|
28 - | StartSnapshotError::InternalServerException(_inner) => _inner.fmt(f),
|
29 - | StartSnapshotError::ResourceNotFoundException(_inner) => _inner.fmt(f),
|
30 - | StartSnapshotError::AccessDeniedException(_inner) => _inner.fmt(f),
|
31 - | StartSnapshotError::ConflictException(_inner) => _inner.fmt(f),
|
32 - | StartSnapshotError::RequestThrottledException(_inner) => _inner.fmt(f),
|
33 - | StartSnapshotError::ServiceQuotaExceededException(_inner) => _inner.fmt(f),
|
34 - | StartSnapshotError::ConcurrentLimitExceededException(_inner) => _inner.fmt(f),
|
35 - | StartSnapshotError::ValidationException(_inner) => _inner.fmt(f),
|
36 - | StartSnapshotError::InternalServerError(_inner) => _inner.fmt(f),
|
45 + | /* ServerOperationErrorGenerator.kt:142 */
|
46 + | StartSnapshotError::InternalServerException(_inner) =>
|
47 + | /* ServerOperationErrorGenerator.kt:78 */
|
48 + | {
|
49 + | _inner.fmt(f)
|
50 + | }
|
51 + | ,
|
52 + | /* ServerOperationErrorGenerator.kt:142 */
|
53 + | StartSnapshotError::ResourceNotFoundException(_inner) =>
|
54 + | /* ServerOperationErrorGenerator.kt:78 */
|
55 + | {
|
56 + | _inner.fmt(f)
|
57 + | }
|
58 + | ,
|
59 + | /* ServerOperationErrorGenerator.kt:142 */
|
60 + | StartSnapshotError::AccessDeniedException(_inner) =>
|
61 + | /* ServerOperationErrorGenerator.kt:78 */
|
62 + | {
|
63 + | _inner.fmt(f)
|
37 64 | }
|
65 + | ,
|
66 + | /* ServerOperationErrorGenerator.kt:142 */
|
67 + | StartSnapshotError::ConflictException(_inner) =>
|
68 + | /* ServerOperationErrorGenerator.kt:78 */
|
69 + | {
|
70 + | _inner.fmt(f)
|
71 + | }
|
72 + | ,
|
73 + | /* ServerOperationErrorGenerator.kt:142 */
|
74 + | StartSnapshotError::RequestThrottledException(_inner) =>
|
75 + | /* ServerOperationErrorGenerator.kt:78 */
|
76 + | {
|
77 + | _inner.fmt(f)
|
78 + | }
|
79 + | ,
|
80 + | /* ServerOperationErrorGenerator.kt:142 */
|
81 + | StartSnapshotError::ServiceQuotaExceededException(_inner) =>
|
82 + | /* ServerOperationErrorGenerator.kt:78 */
|
83 + | {
|
84 + | _inner.fmt(f)
|
38 85 | }
|
86 + | ,
|
87 + | /* ServerOperationErrorGenerator.kt:142 */
|
88 + | StartSnapshotError::ConcurrentLimitExceededException(_inner) =>
|
89 + | /* ServerOperationErrorGenerator.kt:78 */
|
90 + | {
|
91 + | _inner.fmt(f)
|
92 + | }
|
93 + | ,
|
94 + | /* ServerOperationErrorGenerator.kt:142 */
|
95 + | StartSnapshotError::ValidationException(_inner) =>
|
96 + | /* ServerOperationErrorGenerator.kt:78 */
|
97 + | {
|
98 + | _inner.fmt(f)
|
99 + | }
|
100 + | ,
|
101 + | /* ServerOperationErrorGenerator.kt:142 */
|
102 + | StartSnapshotError::InternalServerError(_inner) =>
|
103 + | /* ServerOperationErrorGenerator.kt:78 */
|
104 + | {
|
105 + | _inner.fmt(f)
|
106 + | }
|
107 + | /* ServerOperationErrorGenerator.kt:139 */
|
108 + | }
|
109 + | /* ServerOperationErrorGenerator.kt:76 */
|
110 + | }
|
111 + | /* ServerOperationErrorGenerator.kt:75 */
|
39 112 | }
|
113 + | /* ServerOperationErrorGenerator.kt:83 */
|
40 114 | impl StartSnapshotError {
|
115 + | /* ServerOperationErrorGenerator.kt:87 */
|
41 116 | /// Returns `true` if the error kind is `StartSnapshotError::InternalServerException`.
|
117 + | /* ServerOperationErrorGenerator.kt:88 */
|
42 118 | pub fn is_internal_server_exception(&self) -> bool {
|
119 + | /* ServerOperationErrorGenerator.kt:89 */
|
43 120 | matches!(&self, StartSnapshotError::InternalServerException(_))
|
121 + | /* ServerOperationErrorGenerator.kt:88 */
|
44 122 | }
|
123 + | /* ServerOperationErrorGenerator.kt:87 */
|
45 124 | /// Returns `true` if the error kind is `StartSnapshotError::ResourceNotFoundException`.
|
125 + | /* ServerOperationErrorGenerator.kt:88 */
|
46 126 | pub fn is_resource_not_found_exception(&self) -> bool {
|
127 + | /* ServerOperationErrorGenerator.kt:89 */
|
47 128 | matches!(&self, StartSnapshotError::ResourceNotFoundException(_))
|
129 + | /* ServerOperationErrorGenerator.kt:88 */
|
48 130 | }
|
131 + | /* ServerOperationErrorGenerator.kt:87 */
|
49 132 | /// Returns `true` if the error kind is `StartSnapshotError::AccessDeniedException`.
|
133 + | /* ServerOperationErrorGenerator.kt:88 */
|
50 134 | pub fn is_access_denied_exception(&self) -> bool {
|
135 + | /* ServerOperationErrorGenerator.kt:89 */
|
51 136 | matches!(&self, StartSnapshotError::AccessDeniedException(_))
|
137 + | /* ServerOperationErrorGenerator.kt:88 */
|
52 138 | }
|
139 + | /* ServerOperationErrorGenerator.kt:87 */
|
53 140 | /// Returns `true` if the error kind is `StartSnapshotError::ConflictException`.
|
141 + | /* ServerOperationErrorGenerator.kt:88 */
|
54 142 | pub fn is_conflict_exception(&self) -> bool {
|
143 + | /* ServerOperationErrorGenerator.kt:89 */
|
55 144 | matches!(&self, StartSnapshotError::ConflictException(_))
|
145 + | /* ServerOperationErrorGenerator.kt:88 */
|
56 146 | }
|
147 + | /* ServerOperationErrorGenerator.kt:87 */
|
57 148 | /// Returns `true` if the error kind is `StartSnapshotError::RequestThrottledException`.
|
149 + | /* ServerOperationErrorGenerator.kt:88 */
|
58 150 | pub fn is_request_throttled_exception(&self) -> bool {
|
151 + | /* ServerOperationErrorGenerator.kt:89 */
|
59 152 | matches!(&self, StartSnapshotError::RequestThrottledException(_))
|
153 + | /* ServerOperationErrorGenerator.kt:88 */
|
60 154 | }
|
155 + | /* ServerOperationErrorGenerator.kt:87 */
|
61 156 | /// Returns `true` if the error kind is `StartSnapshotError::ServiceQuotaExceededException`.
|
157 + | /* ServerOperationErrorGenerator.kt:88 */
|
62 158 | pub fn is_service_quota_exceeded_exception(&self) -> bool {
|
159 + | /* ServerOperationErrorGenerator.kt:89 */
|
63 160 | matches!(&self, StartSnapshotError::ServiceQuotaExceededException(_))
|
161 + | /* ServerOperationErrorGenerator.kt:88 */
|
64 162 | }
|
163 + | /* ServerOperationErrorGenerator.kt:87 */
|
65 164 | /// Returns `true` if the error kind is `StartSnapshotError::ConcurrentLimitExceededException`.
|
165 + | /* ServerOperationErrorGenerator.kt:88 */
|
66 166 | pub fn is_concurrent_limit_exceeded_exception(&self) -> bool {
|
167 + | /* ServerOperationErrorGenerator.kt:89 */
|
67 168 | matches!(
|
68 169 | &self,
|
69 170 | StartSnapshotError::ConcurrentLimitExceededException(_)
|
70 171 | )
|
172 + | /* ServerOperationErrorGenerator.kt:88 */
|
71 173 | }
|
174 + | /* ServerOperationErrorGenerator.kt:87 */
|
72 175 | /// Returns `true` if the error kind is `StartSnapshotError::ValidationException`.
|
176 + | /* ServerOperationErrorGenerator.kt:88 */
|
73 177 | pub fn is_validation_exception(&self) -> bool {
|
178 + | /* ServerOperationErrorGenerator.kt:89 */
|
74 179 | matches!(&self, StartSnapshotError::ValidationException(_))
|
180 + | /* ServerOperationErrorGenerator.kt:88 */
|
75 181 | }
|
182 + | /* ServerOperationErrorGenerator.kt:87 */
|
76 183 | /// Returns `true` if the error kind is `StartSnapshotError::InternalServerError`.
|
184 + | /* ServerOperationErrorGenerator.kt:88 */
|
77 185 | pub fn is_internal_server_error(&self) -> bool {
|
186 + | /* ServerOperationErrorGenerator.kt:89 */
|
78 187 | matches!(&self, StartSnapshotError::InternalServerError(_))
|
188 + | /* ServerOperationErrorGenerator.kt:88 */
|
79 189 | }
|
190 + | /* ServerOperationErrorGenerator.kt:92 */
|
80 191 | /// Returns the error name string by matching the correct variant.
|
192 + | /* ServerOperationErrorGenerator.kt:93 */
|
81 193 | pub fn name(&self) -> &'static str {
|
194 + | /* ServerOperationErrorGenerator.kt:139 */
|
82 195 | match &self {
|
83 - | StartSnapshotError::InternalServerException(_inner) => _inner.name(),
|
84 - | StartSnapshotError::ResourceNotFoundException(_inner) => _inner.name(),
|
85 - | StartSnapshotError::AccessDeniedException(_inner) => _inner.name(),
|
86 - | StartSnapshotError::ConflictException(_inner) => _inner.name(),
|
87 - | StartSnapshotError::RequestThrottledException(_inner) => _inner.name(),
|
88 - | StartSnapshotError::ServiceQuotaExceededException(_inner) => _inner.name(),
|
89 - | StartSnapshotError::ConcurrentLimitExceededException(_inner) => _inner.name(),
|
90 - | StartSnapshotError::ValidationException(_inner) => _inner.name(),
|
91 - | StartSnapshotError::InternalServerError(_inner) => _inner.name(),
|
196 + | /* ServerOperationErrorGenerator.kt:142 */
|
197 + | StartSnapshotError::InternalServerException(_inner) =>
|
198 + | /* ServerOperationErrorGenerator.kt:95 */
|
199 + | {
|
200 + | _inner.name()
|
92 201 | }
|
202 + | ,
|
203 + | /* ServerOperationErrorGenerator.kt:142 */
|
204 + | StartSnapshotError::ResourceNotFoundException(_inner) =>
|
205 + | /* ServerOperationErrorGenerator.kt:95 */
|
206 + | {
|
207 + | _inner.name()
|
208 + | }
|
209 + | ,
|
210 + | /* ServerOperationErrorGenerator.kt:142 */
|
211 + | StartSnapshotError::AccessDeniedException(_inner) =>
|
212 + | /* ServerOperationErrorGenerator.kt:95 */
|
213 + | {
|
214 + | _inner.name()
|
215 + | }
|
216 + | ,
|
217 + | /* ServerOperationErrorGenerator.kt:142 */
|
218 + | StartSnapshotError::ConflictException(_inner) =>
|
219 + | /* ServerOperationErrorGenerator.kt:95 */
|
220 + | {
|
221 + | _inner.name()
|
222 + | }
|
223 + | ,
|
224 + | /* ServerOperationErrorGenerator.kt:142 */
|
225 + | StartSnapshotError::RequestThrottledException(_inner) =>
|
226 + | /* ServerOperationErrorGenerator.kt:95 */
|
227 + | {
|
228 + | _inner.name()
|
229 + | }
|
230 + | ,
|
231 + | /* ServerOperationErrorGenerator.kt:142 */
|
232 + | StartSnapshotError::ServiceQuotaExceededException(_inner) =>
|
233 + | /* ServerOperationErrorGenerator.kt:95 */
|
234 + | {
|
235 + | _inner.name()
|
93 236 | }
|
237 + | ,
|
238 + | /* ServerOperationErrorGenerator.kt:142 */
|
239 + | StartSnapshotError::ConcurrentLimitExceededException(_inner) =>
|
240 + | /* ServerOperationErrorGenerator.kt:95 */
|
241 + | {
|
242 + | _inner.name()
|
243 + | }
|
244 + | ,
|
245 + | /* ServerOperationErrorGenerator.kt:142 */
|
246 + | StartSnapshotError::ValidationException(_inner) =>
|
247 + | /* ServerOperationErrorGenerator.kt:95 */
|
248 + | {
|
249 + | _inner.name()
|
250 + | }
|
251 + | ,
|
252 + | /* ServerOperationErrorGenerator.kt:142 */
|
253 + | StartSnapshotError::InternalServerError(_inner) =>
|
254 + | /* ServerOperationErrorGenerator.kt:95 */
|
255 + | {
|
256 + | _inner.name()
|
257 + | }
|
258 + | /* ServerOperationErrorGenerator.kt:139 */
|
259 + | }
|
260 + | /* ServerOperationErrorGenerator.kt:93 */
|
261 + | }
|
262 + | /* ServerOperationErrorGenerator.kt:83 */
|
94 263 | }
|
264 + | /* ServerOperationErrorGenerator.kt:100 */
|
95 265 | impl ::std::error::Error for StartSnapshotError {
|
266 + | /* ServerOperationErrorGenerator.kt:101 */
|
96 267 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
268 + | /* ServerOperationErrorGenerator.kt:139 */
|
97 269 | match &self {
|
98 - | StartSnapshotError::InternalServerException(_inner) => Some(_inner),
|
99 - | StartSnapshotError::ResourceNotFoundException(_inner) => Some(_inner),
|
100 - | StartSnapshotError::AccessDeniedException(_inner) => Some(_inner),
|
101 - | StartSnapshotError::ConflictException(_inner) => Some(_inner),
|
102 - | StartSnapshotError::RequestThrottledException(_inner) => Some(_inner),
|
103 - | StartSnapshotError::ServiceQuotaExceededException(_inner) => Some(_inner),
|
104 - | StartSnapshotError::ConcurrentLimitExceededException(_inner) => Some(_inner),
|
105 - | StartSnapshotError::ValidationException(_inner) => Some(_inner),
|
106 - | StartSnapshotError::InternalServerError(_inner) => Some(_inner),
|
270 + | /* ServerOperationErrorGenerator.kt:142 */
|
271 + | StartSnapshotError::InternalServerException(_inner) =>
|
272 + | /* ServerOperationErrorGenerator.kt:103 */
|
273 + | {
|
274 + | Some(_inner)
|
107 275 | }
|
276 + | ,
|
277 + | /* ServerOperationErrorGenerator.kt:142 */
|
278 + | StartSnapshotError::ResourceNotFoundException(_inner) =>
|
279 + | /* ServerOperationErrorGenerator.kt:103 */
|
280 + | {
|
281 + | Some(_inner)
|
282 + | }
|
283 + | ,
|
284 + | /* ServerOperationErrorGenerator.kt:142 */
|
285 + | StartSnapshotError::AccessDeniedException(_inner) =>
|
286 + | /* ServerOperationErrorGenerator.kt:103 */
|
287 + | {
|
288 + | Some(_inner)
|
289 + | }
|
290 + | ,
|
291 + | /* ServerOperationErrorGenerator.kt:142 */
|
292 + | StartSnapshotError::ConflictException(_inner) =>
|
293 + | /* ServerOperationErrorGenerator.kt:103 */
|
294 + | {
|
295 + | Some(_inner)
|
108 296 | }
|
297 + | ,
|
298 + | /* ServerOperationErrorGenerator.kt:142 */
|
299 + | StartSnapshotError::RequestThrottledException(_inner) =>
|
300 + | /* ServerOperationErrorGenerator.kt:103 */
|
301 + | {
|
302 + | Some(_inner)
|
303 + | }
|
304 + | ,
|
305 + | /* ServerOperationErrorGenerator.kt:142 */
|
306 + | StartSnapshotError::ServiceQuotaExceededException(_inner) =>
|
307 + | /* ServerOperationErrorGenerator.kt:103 */
|
308 + | {
|
309 + | Some(_inner)
|
310 + | }
|
311 + | ,
|
312 + | /* ServerOperationErrorGenerator.kt:142 */
|
313 + | StartSnapshotError::ConcurrentLimitExceededException(_inner) =>
|
314 + | /* ServerOperationErrorGenerator.kt:103 */
|
315 + | {
|
316 + | Some(_inner)
|
317 + | }
|
318 + | ,
|
319 + | /* ServerOperationErrorGenerator.kt:142 */
|
320 + | StartSnapshotError::ValidationException(_inner) =>
|
321 + | /* ServerOperationErrorGenerator.kt:103 */
|
322 + | {
|
323 + | Some(_inner)
|
324 + | }
|
325 + | ,
|
326 + | /* ServerOperationErrorGenerator.kt:142 */
|
327 + | StartSnapshotError::InternalServerError(_inner) =>
|
328 + | /* ServerOperationErrorGenerator.kt:103 */
|
329 + | {
|
330 + | Some(_inner)
|
331 + | }
|
332 + | /* ServerOperationErrorGenerator.kt:139 */
|
333 + | }
|
334 + | /* ServerOperationErrorGenerator.kt:101 */
|
335 + | }
|
336 + | /* ServerOperationErrorGenerator.kt:100 */
|
109 337 | }
|
338 + | /* ServerOperationErrorGenerator.kt:110 */
|
110 339 | impl ::std::convert::From<crate::error::InternalServerException>
|
111 340 | for crate::error::StartSnapshotError
|
112 341 | {
|
342 + | /* ServerOperationErrorGenerator.kt:111 */
|
113 343 | fn from(variant: crate::error::InternalServerException) -> crate::error::StartSnapshotError {
|
344 + | /* ServerOperationErrorGenerator.kt:112 */
|
114 345 | Self::InternalServerException(variant)
|
346 + | /* ServerOperationErrorGenerator.kt:111 */
|
115 347 | }
|
348 + | /* ServerOperationErrorGenerator.kt:110 */
|
116 349 | }
|
350 + | /* ServerOperationErrorGenerator.kt:110 */
|
117 351 | impl ::std::convert::From<crate::error::ResourceNotFoundException>
|
118 352 | for crate::error::StartSnapshotError
|
119 353 | {
|
354 + | /* ServerOperationErrorGenerator.kt:111 */
|
120 355 | fn from(variant: crate::error::ResourceNotFoundException) -> crate::error::StartSnapshotError {
|
356 + | /* ServerOperationErrorGenerator.kt:112 */
|
121 357 | Self::ResourceNotFoundException(variant)
|
358 + | /* ServerOperationErrorGenerator.kt:111 */
|
122 359 | }
|
360 + | /* ServerOperationErrorGenerator.kt:110 */
|
123 361 | }
|
362 + | /* ServerOperationErrorGenerator.kt:110 */
|
124 363 | impl ::std::convert::From<crate::error::AccessDeniedException>
|
125 364 | for crate::error::StartSnapshotError
|
126 365 | {
|
366 + | /* ServerOperationErrorGenerator.kt:111 */
|
127 367 | fn from(variant: crate::error::AccessDeniedException) -> crate::error::StartSnapshotError {
|
368 + | /* ServerOperationErrorGenerator.kt:112 */
|
128 369 | Self::AccessDeniedException(variant)
|
370 + | /* ServerOperationErrorGenerator.kt:111 */
|
129 371 | }
|
372 + | /* ServerOperationErrorGenerator.kt:110 */
|
130 373 | }
|
374 + | /* ServerOperationErrorGenerator.kt:110 */
|
131 375 | impl ::std::convert::From<crate::error::ConflictException> for crate::error::StartSnapshotError {
|
376 + | /* ServerOperationErrorGenerator.kt:111 */
|
132 377 | fn from(variant: crate::error::ConflictException) -> crate::error::StartSnapshotError {
|
378 + | /* ServerOperationErrorGenerator.kt:112 */
|
133 379 | Self::ConflictException(variant)
|
380 + | /* ServerOperationErrorGenerator.kt:111 */
|
134 381 | }
|
382 + | /* ServerOperationErrorGenerator.kt:110 */
|
135 383 | }
|
384 + | /* ServerOperationErrorGenerator.kt:110 */
|
136 385 | impl ::std::convert::From<crate::error::RequestThrottledException>
|
137 386 | for crate::error::StartSnapshotError
|
138 387 | {
|
388 + | /* ServerOperationErrorGenerator.kt:111 */
|
139 389 | fn from(variant: crate::error::RequestThrottledException) -> crate::error::StartSnapshotError {
|
390 + | /* ServerOperationErrorGenerator.kt:112 */
|
140 391 | Self::RequestThrottledException(variant)
|
392 + | /* ServerOperationErrorGenerator.kt:111 */
|
141 393 | }
|
394 + | /* ServerOperationErrorGenerator.kt:110 */
|
142 395 | }
|
396 + | /* ServerOperationErrorGenerator.kt:110 */
|
143 397 | impl ::std::convert::From<crate::error::ServiceQuotaExceededException>
|
144 398 | for crate::error::StartSnapshotError
|
145 399 | {
|
400 + | /* ServerOperationErrorGenerator.kt:111 */
|
146 401 | fn from(
|
147 402 | variant: crate::error::ServiceQuotaExceededException,
|
148 403 | ) -> crate::error::StartSnapshotError {
|
404 + | /* ServerOperationErrorGenerator.kt:112 */
|
149 405 | Self::ServiceQuotaExceededException(variant)
|
406 + | /* ServerOperationErrorGenerator.kt:111 */
|
150 407 | }
|
408 + | /* ServerOperationErrorGenerator.kt:110 */
|
151 409 | }
|
410 + | /* ServerOperationErrorGenerator.kt:110 */
|
152 411 | impl ::std::convert::From<crate::error::ConcurrentLimitExceededException>
|
153 412 | for crate::error::StartSnapshotError
|
154 413 | {
|
414 + | /* ServerOperationErrorGenerator.kt:111 */
|
155 415 | fn from(
|
156 416 | variant: crate::error::ConcurrentLimitExceededException,
|
157 417 | ) -> crate::error::StartSnapshotError {
|
418 + | /* ServerOperationErrorGenerator.kt:112 */
|
158 419 | Self::ConcurrentLimitExceededException(variant)
|
420 + | /* ServerOperationErrorGenerator.kt:111 */
|
159 421 | }
|
422 + | /* ServerOperationErrorGenerator.kt:110 */
|
160 423 | }
|
424 + | /* ServerOperationErrorGenerator.kt:110 */
|
161 425 | impl ::std::convert::From<crate::error::ValidationException> for crate::error::StartSnapshotError {
|
426 + | /* ServerOperationErrorGenerator.kt:111 */
|
162 427 | fn from(variant: crate::error::ValidationException) -> crate::error::StartSnapshotError {
|
428 + | /* ServerOperationErrorGenerator.kt:112 */
|
163 429 | Self::ValidationException(variant)
|
430 + | /* ServerOperationErrorGenerator.kt:111 */
|
164 431 | }
|
432 + | /* ServerOperationErrorGenerator.kt:110 */
|
165 433 | }
|
434 + | /* ServerOperationErrorGenerator.kt:110 */
|
166 435 | impl ::std::convert::From<crate::error::InternalServerError> for crate::error::StartSnapshotError {
|
436 + | /* ServerOperationErrorGenerator.kt:111 */
|
167 437 | fn from(variant: crate::error::InternalServerError) -> crate::error::StartSnapshotError {
|
438 + | /* ServerOperationErrorGenerator.kt:112 */
|
168 439 | Self::InternalServerError(variant)
|
440 + | /* ServerOperationErrorGenerator.kt:111 */
|
169 441 | }
|
442 + | /* ServerOperationErrorGenerator.kt:110 */
|
170 443 | }
|
171 444 |
|
445 + | /* PythonServerOperationErrorGenerator.kt:38 */
|
172 446 | impl ::std::convert::From<::pyo3::PyErr> for crate::error::StartSnapshotError {
|
173 447 | fn from(variant: ::pyo3::PyErr) -> crate::error::StartSnapshotError {
|
174 448 | ::pyo3::Python::with_gil(|py| {
|
175 449 | let error = variant.value(py);
|
176 450 | if let Ok(error) = error.extract::<crate::error::InternalServerException>() {
|
177 451 | return error.into();
|
178 452 | }
|
179 453 | if let Ok(error) = error.extract::<crate::error::ResourceNotFoundException>() {
|
180 454 | return error.into();
|
181 455 | }
|
182 456 | if let Ok(error) = error.extract::<crate::error::AccessDeniedException>() {
|
183 457 | return error.into();
|
184 458 | }
|
185 459 | if let Ok(error) = error.extract::<crate::error::ConflictException>() {
|
186 460 | return error.into();
|
187 461 | }
|
188 462 | if let Ok(error) = error.extract::<crate::error::RequestThrottledException>() {
|
189 463 | return error.into();
|
190 464 | }
|
191 465 | if let Ok(error) = error.extract::<crate::error::ServiceQuotaExceededException>() {
|
192 466 | return error.into();
|
193 467 | }
|
194 468 | if let Ok(error) = error.extract::<crate::error::ConcurrentLimitExceededException>() {
|
195 469 | return error.into();
|
196 470 | }
|
197 471 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
198 472 | return error.into();
|
199 473 | }
|
200 474 | crate::error::InternalServerError {
|
201 475 | message: error.to_string(),
|
202 476 | }
|
203 477 | .into()
|
204 478 | })
|
205 479 | }
|
206 480 | }
|
207 481 |
|
482 + | /* RustType.kt:516 */
|
208 483 | #[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
|
484 + | /* PythonServerStructureGenerator.kt:63 */
|
209 485 | /// :param message str:
|
210 486 | /// :rtype None:
|
487 + | /* StructureGenerator.kt:197 */
|
211 488 | #[allow(missing_docs)] // documentation missing in model
|
489 + | /* RustType.kt:516 */
|
212 490 | #[derive(
|
213 491 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
214 492 | )]
|
215 - | pub struct InternalServerError {
|
493 + | pub /* StructureGenerator.kt:201 */ struct InternalServerError {
|
494 + | /* RustType.kt:516 */
|
216 495 | #[pyo3(get, set)]
|
496 + | /* PythonServerStructureGenerator.kt:80 */
|
217 497 | /// :type str:
|
498 + | /* StructureGenerator.kt:231 */
|
218 499 | #[allow(missing_docs)] // documentation missing in model
|
219 500 | pub message: ::std::string::String,
|
501 + | /* StructureGenerator.kt:201 */
|
220 502 | }
|
503 + | /* RustType.kt:516 */
|
221 504 | #[allow(clippy::new_without_default)]
|
505 + | /* RustType.kt:516 */
|
222 506 | #[allow(clippy::too_many_arguments)]
|
507 + | /* RustType.kt:516 */
|
223 508 | #[::pyo3::pymethods]
|
509 + | /* PythonServerStructureGenerator.kt:88 */
|
224 510 | impl InternalServerError {
|
225 511 | #[new]
|
226 512 | pub fn new(message: ::std::string::String) -> Self {
|
227 513 | Self { message }
|
228 514 | }
|
229 515 | fn __repr__(&self) -> String {
|
230 516 | format!("{self:?}")
|
231 517 | }
|
232 518 | fn __str__(&self) -> String {
|
233 519 | format!("{self:?}")
|
234 520 | }
|
235 521 | }
|
522 + | /* ErrorImplGenerator.kt:99 */
|
236 523 | impl InternalServerError {
|
524 + | /* ErrorImplGenerator.kt:128 */
|
237 525 | /// Returns the error message.
|
238 526 | pub fn message(&self) -> &str {
|
239 527 | &self.message
|
240 528 | }
|
529 + | /* ErrorImplGenerator.kt:141 */
|
241 530 | #[doc(hidden)]
|
242 531 | /// Returns the error name.
|
243 532 | pub fn name(&self) -> &'static str {
|
244 533 | "InternalServerError"
|
245 534 | }
|
535 + | /* ErrorImplGenerator.kt:99 */
|
246 536 | }
|
537 + | /* ErrorImplGenerator.kt:153 */
|
247 538 | impl ::std::fmt::Display for InternalServerError {
|
539 + | /* ErrorImplGenerator.kt:154 */
|
248 540 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
541 + | /* ErrorImplGenerator.kt:161 */
|
249 542 | ::std::write!(f, "InternalServerError")?;
|
543 + | /* ErrorImplGenerator.kt:166 */
|
250 544 | {
|
545 + | /* ErrorImplGenerator.kt:167 */
|
251 546 | ::std::write!(f, ": {}", &self.message)?;
|
547 + | /* ErrorImplGenerator.kt:166 */
|
252 548 | }
|
549 + | /* ErrorImplGenerator.kt:171 */
|
253 550 | Ok(())
|
551 + | /* ErrorImplGenerator.kt:154 */
|
254 552 | }
|
553 + | /* ErrorImplGenerator.kt:153 */
|
255 554 | }
|
555 + | /* ErrorImplGenerator.kt:175 */
|
256 556 | impl ::std::error::Error for InternalServerError {}
|
557 + | /* ServerCodegenVisitor.kt:370 */
|
257 558 | impl InternalServerError {
|
258 - | /// Creates a new builder-style object to manufacture [`InternalServerError`](crate::error::InternalServerError).
|
559 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`InternalServerError`](crate::error::InternalServerError).
|
560 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
259 561 | pub fn builder() -> crate::error::internal_server_error::Builder {
|
562 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
260 563 | crate::error::internal_server_error::Builder::default()
|
564 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
261 565 | }
|
566 + | /* ServerCodegenVisitor.kt:370 */
|
262 567 | }
|
263 568 |
|
569 + | /* RustType.kt:516 */
|
264 570 | #[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
|
571 + | /* PythonServerStructureGenerator.kt:63 */
|
265 572 | /// :param message str:
|
266 573 | /// :param field_list typing.Optional\[typing.List\[ebs.model.ValidationExceptionField\]\]:
|
267 574 | /// :rtype None:
|
268 - | /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
575 + | /// /* StructureGenerator.kt:197 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
576 + | /* RustType.kt:516 */
|
269 577 | #[derive(
|
270 578 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
271 579 | )]
|
272 - | pub struct ValidationException {
|
580 + | pub /* StructureGenerator.kt:201 */ struct ValidationException {
|
581 + | /* RustType.kt:516 */
|
273 582 | #[pyo3(get, set)]
|
583 + | /* PythonServerStructureGenerator.kt:80 */
|
274 584 | /// :type str:
|
275 - | /// A summary of the validation failure.
|
585 + | /// /* StructureGenerator.kt:231 */A summary of the validation failure.
|
276 586 | pub message: ::std::string::String,
|
587 + | /* RustType.kt:516 */
|
277 588 | #[pyo3(get, set)]
|
589 + | /* PythonServerStructureGenerator.kt:80 */
|
278 590 | /// :type typing.Optional\[typing.List\[ebs.model.ValidationExceptionField\]\]:
|
279 - | /// A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
|
591 + | /// /* StructureGenerator.kt:231 */A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
|
280 592 | pub field_list: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
|
593 + | /* StructureGenerator.kt:201 */
|
281 594 | }
|
595 + | /* StructureGenerator.kt:135 */
|
282 596 | impl ValidationException {
|
283 - | /// A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
|
597 + | /// /* StructureGenerator.kt:231 */A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
|
598 + | /* StructureGenerator.kt:166 */
|
284 599 | pub fn field_list(&self) -> ::std::option::Option<&[crate::model::ValidationExceptionField]> {
|
600 + | /* StructureGenerator.kt:169 */
|
285 601 | self.field_list.as_deref()
|
602 + | /* StructureGenerator.kt:166 */
|
286 603 | }
|
604 + | /* StructureGenerator.kt:135 */
|
287 605 | }
|
606 + | /* RustType.kt:516 */
|
288 607 | #[allow(clippy::new_without_default)]
|
608 + | /* RustType.kt:516 */
|
289 609 | #[allow(clippy::too_many_arguments)]
|
610 + | /* RustType.kt:516 */
|
290 611 | #[::pyo3::pymethods]
|
612 + | /* PythonServerStructureGenerator.kt:88 */
|
291 613 | impl ValidationException {
|
292 614 | #[new]
|
293 615 | pub fn new(
|
294 616 | message: ::std::string::String,
|
295 617 | field_list: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
|
296 618 | ) -> Self {
|
297 619 | Self {
|
298 620 | message,
|
299 621 | field_list,
|
300 622 | }
|
301 623 | }
|
302 624 | fn __repr__(&self) -> String {
|
303 625 | format!("{self:?}")
|
304 626 | }
|
305 627 | fn __str__(&self) -> String {
|
306 628 | format!("{self:?}")
|
307 629 | }
|
308 630 | }
|
631 + | /* ErrorImplGenerator.kt:99 */
|
309 632 | impl ValidationException {
|
633 + | /* ErrorImplGenerator.kt:128 */
|
310 634 | /// Returns the error message.
|
311 635 | pub fn message(&self) -> &str {
|
312 636 | &self.message
|
313 637 | }
|
638 + | /* ErrorImplGenerator.kt:141 */
|
314 639 | #[doc(hidden)]
|
315 640 | /// Returns the error name.
|
316 641 | pub fn name(&self) -> &'static str {
|
317 642 | "ValidationException"
|
318 643 | }
|
644 + | /* ErrorImplGenerator.kt:99 */
|
319 645 | }
|
646 + | /* ErrorImplGenerator.kt:153 */
|
320 647 | impl ::std::fmt::Display for ValidationException {
|
648 + | /* ErrorImplGenerator.kt:154 */
|
321 649 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
650 + | /* ErrorImplGenerator.kt:161 */
|
322 651 | ::std::write!(f, "ValidationException")?;
|
652 + | /* ErrorImplGenerator.kt:166 */
|
323 653 | {
|
654 + | /* ErrorImplGenerator.kt:167 */
|
324 655 | ::std::write!(f, ": {}", &self.message)?;
|
656 + | /* ErrorImplGenerator.kt:166 */
|
325 657 | }
|
658 + | /* ErrorImplGenerator.kt:171 */
|
326 659 | Ok(())
|
660 + | /* ErrorImplGenerator.kt:154 */
|
327 661 | }
|
662 + | /* ErrorImplGenerator.kt:153 */
|
328 663 | }
|
664 + | /* ErrorImplGenerator.kt:175 */
|
329 665 | impl ::std::error::Error for ValidationException {}
|
666 + | /* ServerCodegenVisitor.kt:370 */
|
330 667 | impl ValidationException {
|
331 - | /// Creates a new builder-style object to manufacture [`ValidationException`](crate::error::ValidationException).
|
668 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ValidationException`](crate::error::ValidationException).
|
669 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
332 670 | pub fn builder() -> crate::error::validation_exception::Builder {
|
671 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
333 672 | crate::error::validation_exception::Builder::default()
|
673 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
334 674 | }
|
675 + | /* ServerCodegenVisitor.kt:370 */
|
335 676 | }
|
336 677 |
|
678 + | /* RustType.kt:516 */
|
337 679 | #[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
|
680 + | /* PythonServerStructureGenerator.kt:63 */
|
338 681 | /// :param message typing.Optional\[str\]:
|
339 682 | /// :rtype None:
|
340 - | /// <p>You have reached the limit for concurrent API requests. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-accessing-snapshot.html#ebsapi-performance">Optimizing performance of the EBS direct APIs</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
|
683 + | /// /* StructureGenerator.kt:197 */<p>You have reached the limit for concurrent API requests. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-accessing-snapshot.html#ebsapi-performance">Optimizing performance of the EBS direct APIs</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
|
684 + | /* RustType.kt:516 */
|
341 685 | #[derive(
|
342 686 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
343 687 | )]
|
344 - | pub struct ConcurrentLimitExceededException {
|
688 + | pub /* StructureGenerator.kt:201 */ struct ConcurrentLimitExceededException {
|
689 + | /* RustType.kt:516 */
|
345 690 | #[pyo3(get, set)]
|
691 + | /* PythonServerStructureGenerator.kt:80 */
|
346 692 | /// :type typing.Optional\[str\]:
|
693 + | /* StructureGenerator.kt:231 */
|
347 694 | #[allow(missing_docs)] // documentation missing in model
|
348 695 | pub message: ::std::option::Option<::std::string::String>,
|
696 + | /* StructureGenerator.kt:201 */
|
349 697 | }
|
698 + | /* RustType.kt:516 */
|
350 699 | #[allow(clippy::new_without_default)]
|
700 + | /* RustType.kt:516 */
|
351 701 | #[allow(clippy::too_many_arguments)]
|
702 + | /* RustType.kt:516 */
|
352 703 | #[::pyo3::pymethods]
|
704 + | /* PythonServerStructureGenerator.kt:88 */
|
353 705 | impl ConcurrentLimitExceededException {
|
354 706 | #[new]
|
355 707 | pub fn new(message: ::std::option::Option<::std::string::String>) -> Self {
|
356 708 | Self { message }
|
357 709 | }
|
358 710 | fn __repr__(&self) -> String {
|
359 711 | format!("{self:?}")
|
360 712 | }
|
361 713 | fn __str__(&self) -> String {
|
362 714 | format!("{self:?}")
|
363 715 | }
|
364 716 | }
|
717 + | /* ErrorImplGenerator.kt:99 */
|
365 718 | impl ConcurrentLimitExceededException {
|
719 + | /* ErrorImplGenerator.kt:128 */
|
366 720 | /// Returns the error message.
|
367 721 | pub fn message(&self) -> ::std::option::Option<&str> {
|
368 722 | self.message.as_deref()
|
369 723 | }
|
724 + | /* ErrorImplGenerator.kt:141 */
|
370 725 | #[doc(hidden)]
|
371 726 | /// Returns the error name.
|
372 727 | pub fn name(&self) -> &'static str {
|
373 728 | "ConcurrentLimitExceededException"
|
374 729 | }
|
730 + | /* ErrorImplGenerator.kt:99 */
|
375 731 | }
|
732 + | /* ErrorImplGenerator.kt:153 */
|
376 733 | impl ::std::fmt::Display for ConcurrentLimitExceededException {
|
734 + | /* ErrorImplGenerator.kt:154 */
|
377 735 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
736 + | /* ErrorImplGenerator.kt:161 */
|
378 737 | ::std::write!(f, "ConcurrentLimitExceededException")?;
|
738 + | /* ErrorImplGenerator.kt:166 */
|
379 739 | if let ::std::option::Option::Some(inner_1) = &self.message {
|
740 + | /* ErrorImplGenerator.kt:166 */
|
380 741 | {
|
742 + | /* ErrorImplGenerator.kt:167 */
|
381 743 | ::std::write!(f, ": {}", inner_1)?;
|
744 + | /* ErrorImplGenerator.kt:166 */
|
382 745 | }
|
746 + | /* ErrorImplGenerator.kt:166 */
|
383 747 | }
|
748 + | /* ErrorImplGenerator.kt:171 */
|
384 749 | Ok(())
|
750 + | /* ErrorImplGenerator.kt:154 */
|
385 751 | }
|
752 + | /* ErrorImplGenerator.kt:153 */
|
386 753 | }
|
754 + | /* ErrorImplGenerator.kt:175 */
|
387 755 | impl ::std::error::Error for ConcurrentLimitExceededException {}
|
756 + | /* ServerCodegenVisitor.kt:370 */
|
388 757 | impl ConcurrentLimitExceededException {
|
389 - | /// Creates a new builder-style object to manufacture [`ConcurrentLimitExceededException`](crate::error::ConcurrentLimitExceededException).
|
758 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ConcurrentLimitExceededException`](crate::error::ConcurrentLimitExceededException).
|
759 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
390 760 | pub fn builder() -> crate::error::concurrent_limit_exceeded_exception::Builder {
|
761 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
391 762 | crate::error::concurrent_limit_exceeded_exception::Builder::default()
|
763 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
392 764 | }
|
765 + | /* ServerCodegenVisitor.kt:370 */
|
393 766 | }
|
394 767 |
|
768 + | /* RustType.kt:516 */
|
395 769 | #[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
|
770 + | /* PythonServerStructureGenerator.kt:63 */
|
396 771 | /// :param reason typing.Optional\[ebs.model.ServiceQuotaExceededExceptionReason\]:
|
397 772 | /// :param message typing.Optional\[str\]:
|
398 773 | /// :rtype None:
|
399 - | /// <p>Your current service quotas do not allow you to perform this action.</p>
|
774 + | /// /* StructureGenerator.kt:197 */<p>Your current service quotas do not allow you to perform this action.</p>
|
775 + | /* RustType.kt:516 */
|
400 776 | #[derive(
|
401 777 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
402 778 | )]
|
403 - | pub struct ServiceQuotaExceededException {
|
779 + | pub /* StructureGenerator.kt:201 */ struct ServiceQuotaExceededException {
|
780 + | /* RustType.kt:516 */
|
404 781 | #[pyo3(get, set)]
|
782 + | /* PythonServerStructureGenerator.kt:80 */
|
405 783 | /// :type typing.Optional\[ebs.model.ServiceQuotaExceededExceptionReason\]:
|
406 - | /// <p>The reason for the exception.</p>
|
784 + | /// /* StructureGenerator.kt:231 */<p>The reason for the exception.</p>
|
407 785 | pub reason: ::std::option::Option<crate::model::ServiceQuotaExceededExceptionReason>,
|
786 + | /* RustType.kt:516 */
|
408 787 | #[pyo3(get, set)]
|
788 + | /* PythonServerStructureGenerator.kt:80 */
|
409 789 | /// :type typing.Optional\[str\]:
|
790 + | /* StructureGenerator.kt:231 */
|
410 791 | #[allow(missing_docs)] // documentation missing in model
|
411 792 | pub message: ::std::option::Option<::std::string::String>,
|
793 + | /* StructureGenerator.kt:201 */
|
412 794 | }
|
795 + | /* StructureGenerator.kt:135 */
|
413 796 | impl ServiceQuotaExceededException {
|
414 - | /// <p>The reason for the exception.</p>
|
797 + | /// /* StructureGenerator.kt:231 */<p>The reason for the exception.</p>
|
798 + | /* StructureGenerator.kt:166 */
|
415 799 | pub fn reason(
|
416 800 | &self,
|
417 801 | ) -> ::std::option::Option<&crate::model::ServiceQuotaExceededExceptionReason> {
|
802 + | /* StructureGenerator.kt:170 */
|
418 803 | self.reason.as_ref()
|
804 + | /* StructureGenerator.kt:166 */
|
419 805 | }
|
806 + | /* StructureGenerator.kt:135 */
|
420 807 | }
|
808 + | /* RustType.kt:516 */
|
421 809 | #[allow(clippy::new_without_default)]
|
810 + | /* RustType.kt:516 */
|
422 811 | #[allow(clippy::too_many_arguments)]
|
812 + | /* RustType.kt:516 */
|
423 813 | #[::pyo3::pymethods]
|
814 + | /* PythonServerStructureGenerator.kt:88 */
|
424 815 | impl ServiceQuotaExceededException {
|
425 816 | #[new]
|
426 817 | pub fn new(
|
427 818 | reason: ::std::option::Option<crate::model::ServiceQuotaExceededExceptionReason>,
|
428 819 | message: ::std::option::Option<::std::string::String>,
|
429 820 | ) -> Self {
|
430 821 | Self { reason, message }
|
431 822 | }
|
432 823 | fn __repr__(&self) -> String {
|
433 824 | format!("{self:?}")
|
434 825 | }
|
435 826 | fn __str__(&self) -> String {
|
436 827 | format!("{self:?}")
|
437 828 | }
|
438 829 | }
|
830 + | /* ErrorImplGenerator.kt:99 */
|
439 831 | impl ServiceQuotaExceededException {
|
832 + | /* ErrorImplGenerator.kt:128 */
|
440 833 | /// Returns the error message.
|
441 834 | pub fn message(&self) -> ::std::option::Option<&str> {
|
442 835 | self.message.as_deref()
|
443 836 | }
|
837 + | /* ErrorImplGenerator.kt:141 */
|
444 838 | #[doc(hidden)]
|
445 839 | /// Returns the error name.
|
446 840 | pub fn name(&self) -> &'static str {
|
447 841 | "ServiceQuotaExceededException"
|
448 842 | }
|
843 + | /* ErrorImplGenerator.kt:99 */
|
449 844 | }
|
845 + | /* ErrorImplGenerator.kt:153 */
|
450 846 | impl ::std::fmt::Display for ServiceQuotaExceededException {
|
847 + | /* ErrorImplGenerator.kt:154 */
|
451 848 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
849 + | /* ErrorImplGenerator.kt:161 */
|
452 850 | ::std::write!(f, "ServiceQuotaExceededException")?;
|
851 + | /* ErrorImplGenerator.kt:166 */
|
453 852 | if let ::std::option::Option::Some(inner_2) = &self.message {
|
853 + | /* ErrorImplGenerator.kt:166 */
|
454 854 | {
|
855 + | /* ErrorImplGenerator.kt:167 */
|
455 856 | ::std::write!(f, ": {}", inner_2)?;
|
857 + | /* ErrorImplGenerator.kt:166 */
|
456 858 | }
|
859 + | /* ErrorImplGenerator.kt:166 */
|
457 860 | }
|
861 + | /* ErrorImplGenerator.kt:171 */
|
458 862 | Ok(())
|
863 + | /* ErrorImplGenerator.kt:154 */
|
459 864 | }
|
865 + | /* ErrorImplGenerator.kt:153 */
|
460 866 | }
|
867 + | /* ErrorImplGenerator.kt:175 */
|
461 868 | impl ::std::error::Error for ServiceQuotaExceededException {}
|
869 + | /* ServerCodegenVisitor.kt:370 */
|
462 870 | impl ServiceQuotaExceededException {
|
463 - | /// Creates a new builder-style object to manufacture [`ServiceQuotaExceededException`](crate::error::ServiceQuotaExceededException).
|
871 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ServiceQuotaExceededException`](crate::error::ServiceQuotaExceededException).
|
872 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
464 873 | pub fn builder() -> crate::error::service_quota_exceeded_exception::Builder {
|
874 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
465 875 | crate::error::service_quota_exceeded_exception::Builder::default()
|
876 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
466 877 | }
|
878 + | /* ServerCodegenVisitor.kt:370 */
|
467 879 | }
|
468 880 |
|
881 + | /* RustType.kt:516 */
|
469 882 | #[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
|
883 + | /* PythonServerStructureGenerator.kt:63 */
|
470 884 | /// :param message typing.Optional\[str\]:
|
471 885 | /// :param reason typing.Optional\[ebs.model.RequestThrottledExceptionReason\]:
|
472 886 | /// :rtype None:
|
473 - | /// <p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
|
887 + | /// /* StructureGenerator.kt:197 */<p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
|
888 + | /* RustType.kt:516 */
|
474 889 | #[derive(
|
475 890 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
476 891 | )]
|
477 - | pub struct RequestThrottledException {
|
892 + | pub /* StructureGenerator.kt:201 */ struct RequestThrottledException {
|
893 + | /* RustType.kt:516 */
|
478 894 | #[pyo3(get, set)]
|
895 + | /* PythonServerStructureGenerator.kt:80 */
|
479 896 | /// :type typing.Optional\[str\]:
|
897 + | /* StructureGenerator.kt:231 */
|
480 898 | #[allow(missing_docs)] // documentation missing in model
|
481 899 | pub message: ::std::option::Option<::std::string::String>,
|
900 + | /* RustType.kt:516 */
|
482 901 | #[pyo3(get, set)]
|
902 + | /* PythonServerStructureGenerator.kt:80 */
|
483 903 | /// :type typing.Optional\[ebs.model.RequestThrottledExceptionReason\]:
|
484 - | /// <p>The reason for the exception.</p>
|
904 + | /// /* StructureGenerator.kt:231 */<p>The reason for the exception.</p>
|
485 905 | pub reason: ::std::option::Option<crate::model::RequestThrottledExceptionReason>,
|
906 + | /* StructureGenerator.kt:201 */
|
486 907 | }
|
908 + | /* StructureGenerator.kt:135 */
|
487 909 | impl RequestThrottledException {
|
488 - | /// <p>The reason for the exception.</p>
|
910 + | /// /* StructureGenerator.kt:231 */<p>The reason for the exception.</p>
|
911 + | /* StructureGenerator.kt:166 */
|
489 912 | pub fn reason(&self) -> ::std::option::Option<&crate::model::RequestThrottledExceptionReason> {
|
913 + | /* StructureGenerator.kt:170 */
|
490 914 | self.reason.as_ref()
|
915 + | /* StructureGenerator.kt:166 */
|
491 916 | }
|
917 + | /* StructureGenerator.kt:135 */
|
492 918 | }
|
919 + | /* RustType.kt:516 */
|
493 920 | #[allow(clippy::new_without_default)]
|
921 + | /* RustType.kt:516 */
|
494 922 | #[allow(clippy::too_many_arguments)]
|
923 + | /* RustType.kt:516 */
|
495 924 | #[::pyo3::pymethods]
|
925 + | /* PythonServerStructureGenerator.kt:88 */
|
496 926 | impl RequestThrottledException {
|
497 927 | #[new]
|
498 928 | pub fn new(
|
499 929 | message: ::std::option::Option<::std::string::String>,
|
500 930 | reason: ::std::option::Option<crate::model::RequestThrottledExceptionReason>,
|
501 931 | ) -> Self {
|
502 932 | Self { message, reason }
|
503 933 | }
|
504 934 | fn __repr__(&self) -> String {
|
505 935 | format!("{self:?}")
|
506 936 | }
|
507 937 | fn __str__(&self) -> String {
|
508 938 | format!("{self:?}")
|
509 939 | }
|
510 940 | }
|
941 + | /* ErrorImplGenerator.kt:99 */
|
511 942 | impl RequestThrottledException {
|
943 + | /* ErrorImplGenerator.kt:128 */
|
512 944 | /// Returns the error message.
|
513 945 | pub fn message(&self) -> ::std::option::Option<&str> {
|
514 946 | self.message.as_deref()
|
515 947 | }
|
948 + | /* ErrorImplGenerator.kt:141 */
|
516 949 | #[doc(hidden)]
|
517 950 | /// Returns the error name.
|
518 951 | pub fn name(&self) -> &'static str {
|
519 952 | "RequestThrottledException"
|
520 953 | }
|
954 + | /* ErrorImplGenerator.kt:99 */
|
521 955 | }
|
956 + | /* ErrorImplGenerator.kt:153 */
|
522 957 | impl ::std::fmt::Display for RequestThrottledException {
|
958 + | /* ErrorImplGenerator.kt:154 */
|
523 959 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
960 + | /* ErrorImplGenerator.kt:161 */
|
524 961 | ::std::write!(f, "RequestThrottledException")?;
|
962 + | /* ErrorImplGenerator.kt:166 */
|
525 963 | if let ::std::option::Option::Some(inner_3) = &self.message {
|
964 + | /* ErrorImplGenerator.kt:166 */
|
526 965 | {
|
966 + | /* ErrorImplGenerator.kt:167 */
|
527 967 | ::std::write!(f, ": {}", inner_3)?;
|
968 + | /* ErrorImplGenerator.kt:166 */
|
528 969 | }
|
970 + | /* ErrorImplGenerator.kt:166 */
|
529 971 | }
|
972 + | /* ErrorImplGenerator.kt:171 */
|
530 973 | Ok(())
|
974 + | /* ErrorImplGenerator.kt:154 */
|
531 975 | }
|
976 + | /* ErrorImplGenerator.kt:153 */
|
532 977 | }
|
978 + | /* ErrorImplGenerator.kt:175 */
|
533 979 | impl ::std::error::Error for RequestThrottledException {}
|
980 + | /* ServerCodegenVisitor.kt:370 */
|
534 981 | impl RequestThrottledException {
|
535 - | /// Creates a new builder-style object to manufacture [`RequestThrottledException`](crate::error::RequestThrottledException).
|
982 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`RequestThrottledException`](crate::error::RequestThrottledException).
|
983 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
536 984 | pub fn builder() -> crate::error::request_throttled_exception::Builder {
|
985 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
537 986 | crate::error::request_throttled_exception::Builder::default()
|
987 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
538 988 | }
|
989 + | /* ServerCodegenVisitor.kt:370 */
|
539 990 | }
|
540 991 |
|
992 + | /* RustType.kt:516 */
|
541 993 | #[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
|
994 + | /* PythonServerStructureGenerator.kt:63 */
|
542 995 | /// :param message typing.Optional\[str\]:
|
543 996 | /// :rtype None:
|
544 - | /// <p>The request uses the same client token as a previous, but non-identical request.</p>
|
997 + | /// /* StructureGenerator.kt:197 */<p>The request uses the same client token as a previous, but non-identical request.</p>
|
998 + | /* RustType.kt:516 */
|
545 999 | #[derive(
|
546 1000 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
547 1001 | )]
|
548 - | pub struct ConflictException {
|
1002 + | pub /* StructureGenerator.kt:201 */ struct ConflictException {
|
1003 + | /* RustType.kt:516 */
|
549 1004 | #[pyo3(get, set)]
|
1005 + | /* PythonServerStructureGenerator.kt:80 */
|
550 1006 | /// :type typing.Optional\[str\]:
|
1007 + | /* StructureGenerator.kt:231 */
|
551 1008 | #[allow(missing_docs)] // documentation missing in model
|
552 1009 | pub message: ::std::option::Option<::std::string::String>,
|
1010 + | /* StructureGenerator.kt:201 */
|
553 1011 | }
|
1012 + | /* RustType.kt:516 */
|
554 1013 | #[allow(clippy::new_without_default)]
|
1014 + | /* RustType.kt:516 */
|
555 1015 | #[allow(clippy::too_many_arguments)]
|
1016 + | /* RustType.kt:516 */
|
556 1017 | #[::pyo3::pymethods]
|
1018 + | /* PythonServerStructureGenerator.kt:88 */
|
557 1019 | impl ConflictException {
|
558 1020 | #[new]
|
559 1021 | pub fn new(message: ::std::option::Option<::std::string::String>) -> Self {
|
560 1022 | Self { message }
|
561 1023 | }
|
562 1024 | fn __repr__(&self) -> String {
|
563 1025 | format!("{self:?}")
|
564 1026 | }
|
565 1027 | fn __str__(&self) -> String {
|
566 1028 | format!("{self:?}")
|
567 1029 | }
|
568 1030 | }
|
1031 + | /* ErrorImplGenerator.kt:99 */
|
569 1032 | impl ConflictException {
|
1033 + | /* ErrorImplGenerator.kt:128 */
|
570 1034 | /// Returns the error message.
|
571 1035 | pub fn message(&self) -> ::std::option::Option<&str> {
|
572 1036 | self.message.as_deref()
|
573 1037 | }
|
1038 + | /* ErrorImplGenerator.kt:141 */
|
574 1039 | #[doc(hidden)]
|
575 1040 | /// Returns the error name.
|
576 1041 | pub fn name(&self) -> &'static str {
|
577 1042 | "ConflictException"
|
578 1043 | }
|
1044 + | /* ErrorImplGenerator.kt:99 */
|
579 1045 | }
|
1046 + | /* ErrorImplGenerator.kt:153 */
|
580 1047 | impl ::std::fmt::Display for ConflictException {
|
1048 + | /* ErrorImplGenerator.kt:154 */
|
581 1049 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1050 + | /* ErrorImplGenerator.kt:161 */
|
582 1051 | ::std::write!(f, "ConflictException")?;
|
1052 + | /* ErrorImplGenerator.kt:166 */
|
583 1053 | if let ::std::option::Option::Some(inner_4) = &self.message {
|
1054 + | /* ErrorImplGenerator.kt:166 */
|
584 1055 | {
|
1056 + | /* ErrorImplGenerator.kt:167 */
|
585 1057 | ::std::write!(f, ": {}", inner_4)?;
|
1058 + | /* ErrorImplGenerator.kt:166 */
|
586 1059 | }
|
1060 + | /* ErrorImplGenerator.kt:166 */
|
587 1061 | }
|
1062 + | /* ErrorImplGenerator.kt:171 */
|
588 1063 | Ok(())
|
1064 + | /* ErrorImplGenerator.kt:154 */
|
589 1065 | }
|
1066 + | /* ErrorImplGenerator.kt:153 */
|
590 1067 | }
|
1068 + | /* ErrorImplGenerator.kt:175 */
|
591 1069 | impl ::std::error::Error for ConflictException {}
|
1070 + | /* ServerCodegenVisitor.kt:370 */
|
592 1071 | impl ConflictException {
|
593 - | /// Creates a new builder-style object to manufacture [`ConflictException`](crate::error::ConflictException).
|
1072 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ConflictException`](crate::error::ConflictException).
|
1073 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
594 1074 | pub fn builder() -> crate::error::conflict_exception::Builder {
|
1075 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
595 1076 | crate::error::conflict_exception::Builder::default()
|
1077 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
596 1078 | }
|
1079 + | /* ServerCodegenVisitor.kt:370 */
|
597 1080 | }
|
598 1081 |
|
1082 + | /* RustType.kt:516 */
|
599 1083 | #[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
|
600 - | /// :param message typing.Optional\[str\]:
|
1084 + | /* PythonServerStructureGenerator.kt:63 */
|
601 1085 | /// :param reason ebs.model.AccessDeniedExceptionReason:
|
1086 + | /// :param message typing.Optional\[str\]:
|
602 1087 | /// :rtype None:
|
603 - | /// <p>You do not have sufficient access to perform this action.</p>
|
1088 + | /// /* StructureGenerator.kt:197 */<p>You do not have sufficient access to perform this action.</p>
|
1089 + | /* RustType.kt:516 */
|
604 1090 | #[derive(
|
605 1091 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
606 1092 | )]
|
607 - | pub struct AccessDeniedException {
|
1093 + | pub /* StructureGenerator.kt:201 */ struct AccessDeniedException {
|
1094 + | /* RustType.kt:516 */
|
608 1095 | #[pyo3(get, set)]
|
1096 + | /* PythonServerStructureGenerator.kt:80 */
|
609 1097 | /// :type typing.Optional\[str\]:
|
1098 + | /* StructureGenerator.kt:231 */
|
610 1099 | #[allow(missing_docs)] // documentation missing in model
|
611 1100 | pub message: ::std::option::Option<::std::string::String>,
|
1101 + | /* RustType.kt:516 */
|
612 1102 | #[pyo3(get, set)]
|
1103 + | /* PythonServerStructureGenerator.kt:80 */
|
613 1104 | /// :type ebs.model.AccessDeniedExceptionReason:
|
614 - | /// <p>The reason for the exception.</p>
|
1105 + | /// /* StructureGenerator.kt:231 */<p>The reason for the exception.</p>
|
615 1106 | pub reason: crate::model::AccessDeniedExceptionReason,
|
1107 + | /* StructureGenerator.kt:201 */
|
616 1108 | }
|
1109 + | /* StructureGenerator.kt:135 */
|
617 1110 | impl AccessDeniedException {
|
618 - | /// <p>The reason for the exception.</p>
|
1111 + | /// /* StructureGenerator.kt:231 */<p>The reason for the exception.</p>
|
1112 + | /* StructureGenerator.kt:166 */
|
619 1113 | pub fn reason(&self) -> &crate::model::AccessDeniedExceptionReason {
|
1114 + | /* StructureGenerator.kt:172 */
|
620 1115 | &self.reason
|
1116 + | /* StructureGenerator.kt:166 */
|
621 1117 | }
|
1118 + | /* StructureGenerator.kt:135 */
|
622 1119 | }
|
1120 + | /* RustType.kt:516 */
|
623 1121 | #[allow(clippy::new_without_default)]
|
1122 + | /* RustType.kt:516 */
|
624 1123 | #[allow(clippy::too_many_arguments)]
|
1124 + | /* RustType.kt:516 */
|
625 1125 | #[::pyo3::pymethods]
|
1126 + | /* PythonServerStructureGenerator.kt:88 */
|
626 1127 | impl AccessDeniedException {
|
627 1128 | #[new]
|
628 1129 | pub fn new(
|
629 - | message: ::std::option::Option<::std::string::String>,
|
630 1130 | reason: crate::model::AccessDeniedExceptionReason,
|
1131 + | message: ::std::option::Option<::std::string::String>,
|
631 1132 | ) -> Self {
|
632 - | Self { message, reason }
|
1133 + | Self { reason, message }
|
633 1134 | }
|
634 1135 | fn __repr__(&self) -> String {
|
635 1136 | format!("{self:?}")
|
636 1137 | }
|
637 1138 | fn __str__(&self) -> String {
|
638 1139 | format!("{self:?}")
|
639 1140 | }
|
640 1141 | }
|
1142 + | /* ErrorImplGenerator.kt:99 */
|
641 1143 | impl AccessDeniedException {
|
1144 + | /* ErrorImplGenerator.kt:128 */
|
642 1145 | /// Returns the error message.
|
643 1146 | pub fn message(&self) -> ::std::option::Option<&str> {
|
644 1147 | self.message.as_deref()
|
645 1148 | }
|
1149 + | /* ErrorImplGenerator.kt:141 */
|
646 1150 | #[doc(hidden)]
|
647 1151 | /// Returns the error name.
|
648 1152 | pub fn name(&self) -> &'static str {
|
649 1153 | "AccessDeniedException"
|
650 1154 | }
|
1155 + | /* ErrorImplGenerator.kt:99 */
|
651 1156 | }
|
1157 + | /* ErrorImplGenerator.kt:153 */
|
652 1158 | impl ::std::fmt::Display for AccessDeniedException {
|
1159 + | /* ErrorImplGenerator.kt:154 */
|
653 1160 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1161 + | /* ErrorImplGenerator.kt:161 */
|
654 1162 | ::std::write!(f, "AccessDeniedException")?;
|
1163 + | /* ErrorImplGenerator.kt:166 */
|
655 1164 | if let ::std::option::Option::Some(inner_5) = &self.message {
|
1165 + | /* ErrorImplGenerator.kt:166 */
|
656 1166 | {
|
1167 + | /* ErrorImplGenerator.kt:167 */
|
657 1168 | ::std::write!(f, ": {}", inner_5)?;
|
1169 + | /* ErrorImplGenerator.kt:166 */
|
658 1170 | }
|
1171 + | /* ErrorImplGenerator.kt:166 */
|
659 1172 | }
|
1173 + | /* ErrorImplGenerator.kt:171 */
|
660 1174 | Ok(())
|
1175 + | /* ErrorImplGenerator.kt:154 */
|
661 1176 | }
|
1177 + | /* ErrorImplGenerator.kt:153 */
|
662 1178 | }
|
1179 + | /* ErrorImplGenerator.kt:175 */
|
663 1180 | impl ::std::error::Error for AccessDeniedException {}
|
1181 + | /* ServerCodegenVisitor.kt:370 */
|
664 1182 | impl AccessDeniedException {
|
665 - | /// Creates a new builder-style object to manufacture [`AccessDeniedException`](crate::error::AccessDeniedException).
|
1183 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`AccessDeniedException`](crate::error::AccessDeniedException).
|
1184 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
666 1185 | pub fn builder() -> crate::error::access_denied_exception::Builder {
|
1186 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
667 1187 | crate::error::access_denied_exception::Builder::default()
|
1188 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
668 1189 | }
|
1190 + | /* ServerCodegenVisitor.kt:370 */
|
669 1191 | }
|
670 1192 |
|
1193 + | /* RustType.kt:516 */
|
671 1194 | #[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
|
1195 + | /* PythonServerStructureGenerator.kt:63 */
|
672 1196 | /// :param message typing.Optional\[str\]:
|
673 1197 | /// :param reason typing.Optional\[ebs.model.ResourceNotFoundExceptionReason\]:
|
674 1198 | /// :rtype None:
|
675 - | /// <p>The specified resource does not exist.</p>
|
1199 + | /// /* StructureGenerator.kt:197 */<p>The specified resource does not exist.</p>
|
1200 + | /* RustType.kt:516 */
|
676 1201 | #[derive(
|
677 1202 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
678 1203 | )]
|
679 - | pub struct ResourceNotFoundException {
|
1204 + | pub /* StructureGenerator.kt:201 */ struct ResourceNotFoundException {
|
1205 + | /* RustType.kt:516 */
|
680 1206 | #[pyo3(get, set)]
|
1207 + | /* PythonServerStructureGenerator.kt:80 */
|
681 1208 | /// :type typing.Optional\[str\]:
|
1209 + | /* StructureGenerator.kt:231 */
|
682 1210 | #[allow(missing_docs)] // documentation missing in model
|
683 1211 | pub message: ::std::option::Option<::std::string::String>,
|
1212 + | /* RustType.kt:516 */
|
684 1213 | #[pyo3(get, set)]
|
1214 + | /* PythonServerStructureGenerator.kt:80 */
|
685 1215 | /// :type typing.Optional\[ebs.model.ResourceNotFoundExceptionReason\]:
|
686 - | /// <p>The reason for the exception.</p>
|
1216 + | /// /* StructureGenerator.kt:231 */<p>The reason for the exception.</p>
|
687 1217 | pub reason: ::std::option::Option<crate::model::ResourceNotFoundExceptionReason>,
|
1218 + | /* StructureGenerator.kt:201 */
|
688 1219 | }
|
1220 + | /* StructureGenerator.kt:135 */
|
689 1221 | impl ResourceNotFoundException {
|
690 - | /// <p>The reason for the exception.</p>
|
1222 + | /// /* StructureGenerator.kt:231 */<p>The reason for the exception.</p>
|
1223 + | /* StructureGenerator.kt:166 */
|
691 1224 | pub fn reason(&self) -> ::std::option::Option<&crate::model::ResourceNotFoundExceptionReason> {
|
1225 + | /* StructureGenerator.kt:170 */
|
692 1226 | self.reason.as_ref()
|
1227 + | /* StructureGenerator.kt:166 */
|
693 1228 | }
|
1229 + | /* StructureGenerator.kt:135 */
|
694 1230 | }
|
1231 + | /* RustType.kt:516 */
|
695 1232 | #[allow(clippy::new_without_default)]
|
1233 + | /* RustType.kt:516 */
|
696 1234 | #[allow(clippy::too_many_arguments)]
|
1235 + | /* RustType.kt:516 */
|
697 1236 | #[::pyo3::pymethods]
|
1237 + | /* PythonServerStructureGenerator.kt:88 */
|
698 1238 | impl ResourceNotFoundException {
|
699 1239 | #[new]
|
700 1240 | pub fn new(
|
701 1241 | message: ::std::option::Option<::std::string::String>,
|
702 1242 | reason: ::std::option::Option<crate::model::ResourceNotFoundExceptionReason>,
|
703 1243 | ) -> Self {
|
704 1244 | Self { message, reason }
|
705 1245 | }
|
706 1246 | fn __repr__(&self) -> String {
|
707 1247 | format!("{self:?}")
|
708 1248 | }
|
709 1249 | fn __str__(&self) -> String {
|
710 1250 | format!("{self:?}")
|
711 1251 | }
|
712 1252 | }
|
1253 + | /* ErrorImplGenerator.kt:99 */
|
713 1254 | impl ResourceNotFoundException {
|
1255 + | /* ErrorImplGenerator.kt:128 */
|
714 1256 | /// Returns the error message.
|
715 1257 | pub fn message(&self) -> ::std::option::Option<&str> {
|
716 1258 | self.message.as_deref()
|
717 1259 | }
|
1260 + | /* ErrorImplGenerator.kt:141 */
|
718 1261 | #[doc(hidden)]
|
719 1262 | /// Returns the error name.
|
720 1263 | pub fn name(&self) -> &'static str {
|
721 1264 | "ResourceNotFoundException"
|
722 1265 | }
|
1266 + | /* ErrorImplGenerator.kt:99 */
|
723 1267 | }
|
1268 + | /* ErrorImplGenerator.kt:153 */
|
724 1269 | impl ::std::fmt::Display for ResourceNotFoundException {
|
1270 + | /* ErrorImplGenerator.kt:154 */
|
725 1271 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1272 + | /* ErrorImplGenerator.kt:161 */
|
726 1273 | ::std::write!(f, "ResourceNotFoundException")?;
|
1274 + | /* ErrorImplGenerator.kt:166 */
|
727 1275 | if let ::std::option::Option::Some(inner_6) = &self.message {
|
1276 + | /* ErrorImplGenerator.kt:166 */
|
728 1277 | {
|
1278 + | /* ErrorImplGenerator.kt:167 */
|
729 1279 | ::std::write!(f, ": {}", inner_6)?;
|
1280 + | /* ErrorImplGenerator.kt:166 */
|
730 1281 | }
|
1282 + | /* ErrorImplGenerator.kt:166 */
|
731 1283 | }
|
1284 + | /* ErrorImplGenerator.kt:171 */
|
732 1285 | Ok(())
|
1286 + | /* ErrorImplGenerator.kt:154 */
|
733 1287 | }
|
1288 + | /* ErrorImplGenerator.kt:153 */
|
734 1289 | }
|
1290 + | /* ErrorImplGenerator.kt:175 */
|
735 1291 | impl ::std::error::Error for ResourceNotFoundException {}
|
1292 + | /* ServerCodegenVisitor.kt:370 */
|
736 1293 | impl ResourceNotFoundException {
|
737 - | /// Creates a new builder-style object to manufacture [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
|
1294 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
|
1295 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
738 1296 | pub fn builder() -> crate::error::resource_not_found_exception::Builder {
|
1297 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
739 1298 | crate::error::resource_not_found_exception::Builder::default()
|
1299 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
740 1300 | }
|
1301 + | /* ServerCodegenVisitor.kt:370 */
|
741 1302 | }
|
742 1303 |
|
1304 + | /* RustType.kt:516 */
|
743 1305 | #[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
|
1306 + | /* PythonServerStructureGenerator.kt:63 */
|
744 1307 | /// :param message typing.Optional\[str\]:
|
745 1308 | /// :rtype None:
|
746 - | /// <p>An internal error has occurred.</p>
|
1309 + | /// /* StructureGenerator.kt:197 */<p>An internal error has occurred.</p>
|
1310 + | /* RustType.kt:516 */
|
747 1311 | #[derive(
|
748 1312 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
749 1313 | )]
|
750 - | pub struct InternalServerException {
|
1314 + | pub /* StructureGenerator.kt:201 */ struct InternalServerException {
|
1315 + | /* RustType.kt:516 */
|
751 1316 | #[pyo3(get, set)]
|
1317 + | /* PythonServerStructureGenerator.kt:80 */
|
752 1318 | /// :type typing.Optional\[str\]:
|
1319 + | /* StructureGenerator.kt:231 */
|
753 1320 | #[allow(missing_docs)] // documentation missing in model
|
754 1321 | pub message: ::std::option::Option<::std::string::String>,
|
1322 + | /* StructureGenerator.kt:201 */
|
755 1323 | }
|
1324 + | /* RustType.kt:516 */
|
756 1325 | #[allow(clippy::new_without_default)]
|
1326 + | /* RustType.kt:516 */
|
757 1327 | #[allow(clippy::too_many_arguments)]
|
1328 + | /* RustType.kt:516 */
|
758 1329 | #[::pyo3::pymethods]
|
1330 + | /* PythonServerStructureGenerator.kt:88 */
|
759 1331 | impl InternalServerException {
|
760 1332 | #[new]
|
761 1333 | pub fn new(message: ::std::option::Option<::std::string::String>) -> Self {
|
762 1334 | Self { message }
|
763 1335 | }
|
764 1336 | fn __repr__(&self) -> String {
|
765 1337 | format!("{self:?}")
|
766 1338 | }
|
767 1339 | fn __str__(&self) -> String {
|
768 1340 | format!("{self:?}")
|
769 1341 | }
|
770 1342 | }
|
1343 + | /* ErrorImplGenerator.kt:99 */
|
771 1344 | impl InternalServerException {
|
1345 + | /* ErrorImplGenerator.kt:128 */
|
772 1346 | /// Returns the error message.
|
773 1347 | pub fn message(&self) -> ::std::option::Option<&str> {
|
774 1348 | self.message.as_deref()
|
775 1349 | }
|
1350 + | /* ErrorImplGenerator.kt:141 */
|
776 1351 | #[doc(hidden)]
|
777 1352 | /// Returns the error name.
|
778 1353 | pub fn name(&self) -> &'static str {
|
779 1354 | "InternalServerException"
|
780 1355 | }
|
1356 + | /* ErrorImplGenerator.kt:99 */
|
781 1357 | }
|
1358 + | /* ErrorImplGenerator.kt:153 */
|
782 1359 | impl ::std::fmt::Display for InternalServerException {
|
1360 + | /* ErrorImplGenerator.kt:154 */
|
783 1361 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1362 + | /* ErrorImplGenerator.kt:161 */
|
784 1363 | ::std::write!(f, "InternalServerException")?;
|
1364 + | /* ErrorImplGenerator.kt:166 */
|
785 1365 | if let ::std::option::Option::Some(inner_7) = &self.message {
|
1366 + | /* ErrorImplGenerator.kt:166 */
|
786 1367 | {
|
1368 + | /* ErrorImplGenerator.kt:167 */
|
787 1369 | ::std::write!(f, ": {}", inner_7)?;
|
1370 + | /* ErrorImplGenerator.kt:166 */
|
788 1371 | }
|
1372 + | /* ErrorImplGenerator.kt:166 */
|
789 1373 | }
|
1374 + | /* ErrorImplGenerator.kt:171 */
|
790 1375 | Ok(())
|
1376 + | /* ErrorImplGenerator.kt:154 */
|
791 1377 | }
|
1378 + | /* ErrorImplGenerator.kt:153 */
|
792 1379 | }
|
1380 + | /* ErrorImplGenerator.kt:175 */
|
793 1381 | impl ::std::error::Error for InternalServerException {}
|
1382 + | /* ServerCodegenVisitor.kt:370 */
|
794 1383 | impl InternalServerException {
|
795 - | /// Creates a new builder-style object to manufacture [`InternalServerException`](crate::error::InternalServerException).
|
1384 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`InternalServerException`](crate::error::InternalServerException).
|
1385 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
796 1386 | pub fn builder() -> crate::error::internal_server_exception::Builder {
|
1387 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
797 1388 | crate::error::internal_server_exception::Builder::default()
|
1389 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
798 1390 | }
|
1391 + | /* ServerCodegenVisitor.kt:370 */
|
799 1392 | }
|
800 1393 |
|
1394 + | /* ServerOperationErrorGenerator.kt:63 */
|
801 1395 | /// Error type for the `PutSnapshotBlock` operation.
|
1396 + | /* ServerOperationErrorGenerator.kt:64 */
|
802 1397 | /// Each variant represents an error that can occur for the `PutSnapshotBlock` operation.
|
1398 + | /* RustType.kt:516 */
|
803 1399 | #[derive(::std::fmt::Debug)]
|
804 - | pub enum PutSnapshotBlockError {
|
805 - | /// <p>An internal error has occurred.</p>
|
1400 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum PutSnapshotBlockError {
|
1401 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>An internal error has occurred.</p>
|
1402 + | /* ServerOperationErrorGenerator.kt:71 */
|
806 1403 | InternalServerException(crate::error::InternalServerException),
|
807 - | /// <p>The specified resource does not exist.</p>
|
1404 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>The specified resource does not exist.</p>
|
1405 + | /* ServerOperationErrorGenerator.kt:71 */
|
808 1406 | ResourceNotFoundException(crate::error::ResourceNotFoundException),
|
809 - | /// <p>You do not have sufficient access to perform this action.</p>
|
1407 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>You do not have sufficient access to perform this action.</p>
|
1408 + | /* ServerOperationErrorGenerator.kt:71 */
|
810 1409 | AccessDeniedException(crate::error::AccessDeniedException),
|
811 - | /// <p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
|
1410 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
|
1411 + | /* ServerOperationErrorGenerator.kt:71 */
|
812 1412 | RequestThrottledException(crate::error::RequestThrottledException),
|
813 - | /// <p>Your current service quotas do not allow you to perform this action.</p>
|
1413 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>Your current service quotas do not allow you to perform this action.</p>
|
1414 + | /* ServerOperationErrorGenerator.kt:71 */
|
814 1415 | ServiceQuotaExceededException(crate::error::ServiceQuotaExceededException),
|
815 - | /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
1416 + | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
1417 + | /* ServerOperationErrorGenerator.kt:71 */
|
816 1418 | ValidationException(crate::error::ValidationException),
|
1419 + | /* ServerOperationErrorGenerator.kt:68 */
|
817 1420 | #[allow(missing_docs)] // documentation missing in model
|
1421 + | /* ServerOperationErrorGenerator.kt:71 */
|
818 1422 | InternalServerError(crate::error::InternalServerError),
|
1423 + | /* ServerOperationErrorGenerator.kt:66 */
|
819 1424 | }
|
1425 + | /* ServerOperationErrorGenerator.kt:75 */
|
820 1426 | impl ::std::fmt::Display for PutSnapshotBlockError {
|
1427 + | /* ServerOperationErrorGenerator.kt:76 */
|
821 1428 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1429 + | /* ServerOperationErrorGenerator.kt:139 */
|
822 1430 | match &self {
|
823 - | PutSnapshotBlockError::InternalServerException(_inner) => _inner.fmt(f),
|
824 - | PutSnapshotBlockError::ResourceNotFoundException(_inner) => _inner.fmt(f),
|
825 - | PutSnapshotBlockError::AccessDeniedException(_inner) => _inner.fmt(f),
|
826 - | PutSnapshotBlockError::RequestThrottledException(_inner) => _inner.fmt(f),
|
827 - | PutSnapshotBlockError::ServiceQuotaExceededException(_inner) => _inner.fmt(f),
|
828 - | PutSnapshotBlockError::ValidationException(_inner) => _inner.fmt(f),
|
829 - | PutSnapshotBlockError::InternalServerError(_inner) => _inner.fmt(f),
|
1431 + | /* ServerOperationErrorGenerator.kt:142 */
|
1432 + | PutSnapshotBlockError::InternalServerException(_inner) =>
|
1433 + | /* ServerOperationErrorGenerator.kt:78 */
|
1434 + | {
|
1435 + | _inner.fmt(f)
|
1436 + | }
|
1437 + | ,
|
1438 + | /* ServerOperationErrorGenerator.kt:142 */
|
1439 + | PutSnapshotBlockError::ResourceNotFoundException(_inner) =>
|
1440 + | /* ServerOperationErrorGenerator.kt:78 */
|
1441 + | {
|
1442 + | _inner.fmt(f)
|
1443 + | }
|
1444 + | ,
|
1445 + | /* ServerOperationErrorGenerator.kt:142 */
|
1446 + | PutSnapshotBlockError::AccessDeniedException(_inner) =>
|
1447 + | /* ServerOperationErrorGenerator.kt:78 */
|
1448 + | {
|
1449 + | _inner.fmt(f)
|
1450 + | }
|
1451 + | ,
|
1452 + | /* ServerOperationErrorGenerator.kt:142 */
|
1453 + | PutSnapshotBlockError::RequestThrottledException(_inner) =>
|
1454 + | /* ServerOperationErrorGenerator.kt:78 */
|
1455 + | {
|
1456 + | _inner.fmt(f)
|
1457 + | }
|
1458 + | ,
|
1459 + | /* ServerOperationErrorGenerator.kt:142 */
|
1460 + | PutSnapshotBlockError::ServiceQuotaExceededException(_inner) =>
|
1461 + | /* ServerOperationErrorGenerator.kt:78 */
|
1462 + | {
|
1463 + | _inner.fmt(f)
|
1464 + | }
|
1465 + | ,
|
1466 + | /* ServerOperationErrorGenerator.kt:142 */
|
1467 + | PutSnapshotBlockError::ValidationException(_inner) =>
|
1468 + | /* ServerOperationErrorGenerator.kt:78 */
|
1469 + | {
|
1470 + | _inner.fmt(f)
|
1471 + | }
|
1472 + | ,
|
1473 + | /* ServerOperationErrorGenerator.kt:142 */
|
1474 + | PutSnapshotBlockError::InternalServerError(_inner) =>
|
1475 + | /* ServerOperationErrorGenerator.kt:78 */
|
1476 + | {
|
1477 + | _inner.fmt(f)
|
1478 + | }
|
1479 + | /* ServerOperationErrorGenerator.kt:139 */
|
830 1480 | }
|
1481 + | /* ServerOperationErrorGenerator.kt:76 */
|
831 1482 | }
|
1483 + | /* ServerOperationErrorGenerator.kt:75 */
|
832 1484 | }
|
1485 + | /* ServerOperationErrorGenerator.kt:83 */
|
833 1486 | impl PutSnapshotBlockError {
|
1487 + | /* ServerOperationErrorGenerator.kt:87 */
|
834 1488 | /// Returns `true` if the error kind is `PutSnapshotBlockError::InternalServerException`.
|
1489 + | /* ServerOperationErrorGenerator.kt:88 */
|
835 1490 | pub fn is_internal_server_exception(&self) -> bool {
|
1491 + | /* ServerOperationErrorGenerator.kt:89 */
|
836 1492 | matches!(&self, PutSnapshotBlockError::InternalServerException(_))
|
1493 + | /* ServerOperationErrorGenerator.kt:88 */
|
837 1494 | }
|
1495 + | /* ServerOperationErrorGenerator.kt:87 */
|
838 1496 | /// Returns `true` if the error kind is `PutSnapshotBlockError::ResourceNotFoundException`.
|
1497 + | /* ServerOperationErrorGenerator.kt:88 */
|
839 1498 | pub fn is_resource_not_found_exception(&self) -> bool {
|
1499 + | /* ServerOperationErrorGenerator.kt:89 */
|
840 1500 | matches!(&self, PutSnapshotBlockError::ResourceNotFoundException(_))
|
1501 + | /* ServerOperationErrorGenerator.kt:88 */
|
841 1502 | }
|
1503 + | /* ServerOperationErrorGenerator.kt:87 */
|
842 1504 | /// Returns `true` if the error kind is `PutSnapshotBlockError::AccessDeniedException`.
|
1505 + | /* ServerOperationErrorGenerator.kt:88 */
|
843 1506 | pub fn is_access_denied_exception(&self) -> bool {
|
1507 + | /* ServerOperationErrorGenerator.kt:89 */
|
844 1508 | matches!(&self, PutSnapshotBlockError::AccessDeniedException(_))
|
1509 + | /* ServerOperationErrorGenerator.kt:88 */
|
845 1510 | }
|
1511 + | /* ServerOperationErrorGenerator.kt:87 */
|
846 1512 | /// Returns `true` if the error kind is `PutSnapshotBlockError::RequestThrottledException`.
|
1513 + | /* ServerOperationErrorGenerator.kt:88 */
|
847 1514 | pub fn is_request_throttled_exception(&self) -> bool {
|
1515 + | /* ServerOperationErrorGenerator.kt:89 */
|
848 1516 | matches!(&self, PutSnapshotBlockError::RequestThrottledException(_))
|
1517 + | /* ServerOperationErrorGenerator.kt:88 */
|
849 1518 | }
|
1519 + | /* ServerOperationErrorGenerator.kt:87 */
|
850 1520 | /// Returns `true` if the error kind is `PutSnapshotBlockError::ServiceQuotaExceededException`.
|
1521 + | /* ServerOperationErrorGenerator.kt:88 */
|
851 1522 | pub fn is_service_quota_exceeded_exception(&self) -> bool {
|
1523 + | /* ServerOperationErrorGenerator.kt:89 */
|
852 1524 | matches!(
|
853 1525 | &self,
|
854 1526 | PutSnapshotBlockError::ServiceQuotaExceededException(_)
|
855 1527 | )
|
1528 + | /* ServerOperationErrorGenerator.kt:88 */
|
856 1529 | }
|
1530 + | /* ServerOperationErrorGenerator.kt:87 */
|
857 1531 | /// Returns `true` if the error kind is `PutSnapshotBlockError::ValidationException`.
|
1532 + | /* ServerOperationErrorGenerator.kt:88 */
|
858 1533 | pub fn is_validation_exception(&self) -> bool {
|
1534 + | /* ServerOperationErrorGenerator.kt:89 */
|
859 1535 | matches!(&self, PutSnapshotBlockError::ValidationException(_))
|
1536 + | /* ServerOperationErrorGenerator.kt:88 */
|
860 1537 | }
|
1538 + | /* ServerOperationErrorGenerator.kt:87 */
|
861 1539 | /// Returns `true` if the error kind is `PutSnapshotBlockError::InternalServerError`.
|
1540 + | /* ServerOperationErrorGenerator.kt:88 */
|
862 1541 | pub fn is_internal_server_error(&self) -> bool {
|
1542 + | /* ServerOperationErrorGenerator.kt:89 */
|
863 1543 | matches!(&self, PutSnapshotBlockError::InternalServerError(_))
|
1544 + | /* ServerOperationErrorGenerator.kt:88 */
|
864 1545 | }
|
1546 + | /* ServerOperationErrorGenerator.kt:92 */
|
865 1547 | /// Returns the error name string by matching the correct variant.
|
1548 + | /* ServerOperationErrorGenerator.kt:93 */
|
866 1549 | pub fn name(&self) -> &'static str {
|
1550 + | /* ServerOperationErrorGenerator.kt:139 */
|
867 1551 | match &self {
|
868 - | PutSnapshotBlockError::InternalServerException(_inner) => _inner.name(),
|
869 - | PutSnapshotBlockError::ResourceNotFoundException(_inner) => _inner.name(),
|
870 - | PutSnapshotBlockError::AccessDeniedException(_inner) => _inner.name(),
|
871 - | PutSnapshotBlockError::RequestThrottledException(_inner) => _inner.name(),
|
872 - | PutSnapshotBlockError::ServiceQuotaExceededException(_inner) => _inner.name(),
|
873 - | PutSnapshotBlockError::ValidationException(_inner) => _inner.name(),
|
874 - | PutSnapshotBlockError::InternalServerError(_inner) => _inner.name(),
|
1552 + | /* ServerOperationErrorGenerator.kt:142 */
|
1553 + | PutSnapshotBlockError::InternalServerException(_inner) =>
|
1554 + | /* ServerOperationErrorGenerator.kt:95 */
|
1555 + | {
|
1556 + | _inner.name()
|
1557 + | }
|
1558 + | ,
|
1559 + | /* ServerOperationErrorGenerator.kt:142 */
|
1560 + | PutSnapshotBlockError::ResourceNotFoundException(_inner) =>
|
1561 + | /* ServerOperationErrorGenerator.kt:95 */
|
1562 + | {
|
1563 + | _inner.name()
|
1564 + | }
|
1565 + | ,
|
1566 + | /* ServerOperationErrorGenerator.kt:142 */
|
1567 + | PutSnapshotBlockError::AccessDeniedException(_inner) =>
|
1568 + | /* ServerOperationErrorGenerator.kt:95 */
|
1569 + | {
|
1570 + | _inner.name()
|
875 1571 | }
|
1572 + | ,
|
1573 + | /* ServerOperationErrorGenerator.kt:142 */
|
1574 + | PutSnapshotBlockError::RequestThrottledException(_inner) =>
|
1575 + | /* ServerOperationErrorGenerator.kt:95 */
|
1576 + | {
|
1577 + | _inner.name()
|
1578 + | }
|
1579 + | ,
|
1580 + | /* ServerOperationErrorGenerator.kt:142 */
|
1581 + | PutSnapshotBlockError::ServiceQuotaExceededException(_inner) =>
|
1582 + | /* ServerOperationErrorGenerator.kt:95 */
|
1583 + | {
|
1584 + | _inner.name()
|
1585 + | }
|
1586 + | ,
|
1587 + | /* ServerOperationErrorGenerator.kt:142 */
|
1588 + | PutSnapshotBlockError::ValidationException(_inner) =>
|
1589 + | /* ServerOperationErrorGenerator.kt:95 */
|
1590 + | {
|
1591 + | _inner.name()
|
876 1592 | }
|
1593 + | ,
|
1594 + | /* ServerOperationErrorGenerator.kt:142 */
|
1595 + | PutSnapshotBlockError::InternalServerError(_inner) =>
|
1596 + | /* ServerOperationErrorGenerator.kt:95 */
|
1597 + | {
|
1598 + | _inner.name()
|
1599 + | }
|
1600 + | /* ServerOperationErrorGenerator.kt:139 */
|
1601 + | }
|
1602 + | /* ServerOperationErrorGenerator.kt:93 */
|
1603 + | }
|
1604 + | /* ServerOperationErrorGenerator.kt:83 */
|
877 1605 | }
|
1606 + | /* ServerOperationErrorGenerator.kt:100 */
|
878 1607 | impl ::std::error::Error for PutSnapshotBlockError {
|
1608 + | /* ServerOperationErrorGenerator.kt:101 */
|
879 1609 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1610 + | /* ServerOperationErrorGenerator.kt:139 */
|
880 1611 | match &self {
|
881 - | PutSnapshotBlockError::InternalServerException(_inner) => Some(_inner),
|
882 - | PutSnapshotBlockError::ResourceNotFoundException(_inner) => Some(_inner),
|
883 - | PutSnapshotBlockError::AccessDeniedException(_inner) => Some(_inner),
|
884 - | PutSnapshotBlockError::RequestThrottledException(_inner) => Some(_inner),
|
885 - | PutSnapshotBlockError::ServiceQuotaExceededException(_inner) => Some(_inner),
|
886 - | PutSnapshotBlockError::ValidationException(_inner) => Some(_inner),
|
887 - | PutSnapshotBlockError::InternalServerError(_inner) => Some(_inner),
|
1612 + | /* ServerOperationErrorGenerator.kt:142 */
|
1613 + | PutSnapshotBlockError::InternalServerException(_inner) =>
|
1614 + | /* ServerOperationErrorGenerator.kt:103 */
|
1615 + | {
|
1616 + | Some(_inner)
|
888 1617 | }
|
1618 + | ,
|
1619 + | /* ServerOperationErrorGenerator.kt:142 */
|
1620 + | PutSnapshotBlockError::ResourceNotFoundException(_inner) =>
|
1621 + | /* ServerOperationErrorGenerator.kt:103 */
|
1622 + | {
|
1623 + | Some(_inner)
|
1624 + | }
|
1625 + | ,
|
1626 + | /* ServerOperationErrorGenerator.kt:142 */
|
1627 + | PutSnapshotBlockError::AccessDeniedException(_inner) =>
|
1628 + | /* ServerOperationErrorGenerator.kt:103 */
|
1629 + | {
|
1630 + | Some(_inner)
|
889 1631 | }
|
1632 + | ,
|
1633 + | /* ServerOperationErrorGenerator.kt:142 */
|
1634 + | PutSnapshotBlockError::RequestThrottledException(_inner) =>
|
1635 + | /* ServerOperationErrorGenerator.kt:103 */
|
1636 + | {
|
1637 + | Some(_inner)
|
1638 + | }
|
1639 + | ,
|
1640 + | /* ServerOperationErrorGenerator.kt:142 */
|
1641 + | PutSnapshotBlockError::ServiceQuotaExceededException(_inner) =>
|
1642 + | /* ServerOperationErrorGenerator.kt:103 */
|
1643 + | {
|
1644 + | Some(_inner)
|
1645 + | }
|
1646 + | ,
|
1647 + | /* ServerOperationErrorGenerator.kt:142 */
|
1648 + | PutSnapshotBlockError::ValidationException(_inner) =>
|
1649 + | /* ServerOperationErrorGenerator.kt:103 */
|
1650 + | {
|
1651 + | Some(_inner)
|
1652 + | }
|
1653 + | ,
|
1654 + | /* ServerOperationErrorGenerator.kt:142 */
|
1655 + | PutSnapshotBlockError::InternalServerError(_inner) =>
|
1656 + | /* ServerOperationErrorGenerator.kt:103 */
|
1657 + | {
|
1658 + | Some(_inner)
|
1659 + | }
|
1660 + | /* ServerOperationErrorGenerator.kt:139 */
|
1661 + | }
|
1662 + | /* ServerOperationErrorGenerator.kt:101 */
|
1663 + | }
|
1664 + | /* ServerOperationErrorGenerator.kt:100 */
|
890 1665 | }
|
1666 + | /* ServerOperationErrorGenerator.kt:110 */
|
891 1667 | impl ::std::convert::From<crate::error::InternalServerException>
|
892 1668 | for crate::error::PutSnapshotBlockError
|
893 1669 | {
|
1670 + | /* ServerOperationErrorGenerator.kt:111 */
|
894 1671 | fn from(variant: crate::error::InternalServerException) -> crate::error::PutSnapshotBlockError {
|
1672 + | /* ServerOperationErrorGenerator.kt:112 */
|
895 1673 | Self::InternalServerException(variant)
|
1674 + | /* ServerOperationErrorGenerator.kt:111 */
|
896 1675 | }
|
1676 + | /* ServerOperationErrorGenerator.kt:110 */
|
897 1677 | }
|
1678 + | /* ServerOperationErrorGenerator.kt:110 */
|
898 1679 | impl ::std::convert::From<crate::error::ResourceNotFoundException>
|
899 1680 | for crate::error::PutSnapshotBlockError
|
900 1681 | {
|
1682 + | /* ServerOperationErrorGenerator.kt:111 */
|
901 1683 | fn from(
|
902 1684 | variant: crate::error::ResourceNotFoundException,
|
903 1685 | ) -> crate::error::PutSnapshotBlockError {
|
1686 + | /* ServerOperationErrorGenerator.kt:112 */
|
904 1687 | Self::ResourceNotFoundException(variant)
|
1688 + | /* ServerOperationErrorGenerator.kt:111 */
|
905 1689 | }
|
1690 + | /* ServerOperationErrorGenerator.kt:110 */
|
906 1691 | }
|
1692 + | /* ServerOperationErrorGenerator.kt:110 */
|
907 1693 | impl ::std::convert::From<crate::error::AccessDeniedException>
|
908 1694 | for crate::error::PutSnapshotBlockError
|
909 1695 | {
|
1696 + | /* ServerOperationErrorGenerator.kt:111 */
|
910 1697 | fn from(variant: crate::error::AccessDeniedException) -> crate::error::PutSnapshotBlockError {
|
1698 + | /* ServerOperationErrorGenerator.kt:112 */
|
911 1699 | Self::AccessDeniedException(variant)
|
1700 + | /* ServerOperationErrorGenerator.kt:111 */
|
912 1701 | }
|
1702 + | /* ServerOperationErrorGenerator.kt:110 */
|
913 1703 | }
|
1704 + | /* ServerOperationErrorGenerator.kt:110 */
|
914 1705 | impl ::std::convert::From<crate::error::RequestThrottledException>
|
915 1706 | for crate::error::PutSnapshotBlockError
|
916 1707 | {
|
1708 + | /* ServerOperationErrorGenerator.kt:111 */
|
917 1709 | fn from(
|
918 1710 | variant: crate::error::RequestThrottledException,
|
919 1711 | ) -> crate::error::PutSnapshotBlockError {
|
1712 + | /* ServerOperationErrorGenerator.kt:112 */
|
920 1713 | Self::RequestThrottledException(variant)
|
1714 + | /* ServerOperationErrorGenerator.kt:111 */
|
921 1715 | }
|
1716 + | /* ServerOperationErrorGenerator.kt:110 */
|
922 1717 | }
|
1718 + | /* ServerOperationErrorGenerator.kt:110 */
|
923 1719 | impl ::std::convert::From<crate::error::ServiceQuotaExceededException>
|
924 1720 | for crate::error::PutSnapshotBlockError
|
925 1721 | {
|
1722 + | /* ServerOperationErrorGenerator.kt:111 */
|
926 1723 | fn from(
|
927 1724 | variant: crate::error::ServiceQuotaExceededException,
|
928 1725 | ) -> crate::error::PutSnapshotBlockError {
|
1726 + | /* ServerOperationErrorGenerator.kt:112 */
|
929 1727 | Self::ServiceQuotaExceededException(variant)
|
1728 + | /* ServerOperationErrorGenerator.kt:111 */
|
930 1729 | }
|
1730 + | /* ServerOperationErrorGenerator.kt:110 */
|
931 1731 | }
|
1732 + | /* ServerOperationErrorGenerator.kt:110 */
|
932 1733 | impl ::std::convert::From<crate::error::ValidationException>
|
933 1734 | for crate::error::PutSnapshotBlockError
|
934 1735 | {
|
1736 + | /* ServerOperationErrorGenerator.kt:111 */
|
935 1737 | fn from(variant: crate::error::ValidationException) -> crate::error::PutSnapshotBlockError {
|
1738 + | /* ServerOperationErrorGenerator.kt:112 */
|
936 1739 | Self::ValidationException(variant)
|
1740 + | /* ServerOperationErrorGenerator.kt:111 */
|
937 1741 | }
|
1742 + | /* ServerOperationErrorGenerator.kt:110 */
|
938 1743 | }
|
1744 + | /* ServerOperationErrorGenerator.kt:110 */
|
939 1745 | impl ::std::convert::From<crate::error::InternalServerError>
|
940 1746 | for crate::error::PutSnapshotBlockError
|
941 1747 | {
|
1748 + | /* ServerOperationErrorGenerator.kt:111 */
|
942 1749 | fn from(variant: crate::error::InternalServerError) -> crate::error::PutSnapshotBlockError {
|
1750 + | /* ServerOperationErrorGenerator.kt:112 */
|
943 1751 | Self::InternalServerError(variant)
|
1752 + | /* ServerOperationErrorGenerator.kt:111 */
|
944 1753 | }
|
1754 + | /* ServerOperationErrorGenerator.kt:110 */
|
945 1755 | }
|
946 1756 |
|
1757 + | /* PythonServerOperationErrorGenerator.kt:38 */
|
947 1758 | impl ::std::convert::From<::pyo3::PyErr> for crate::error::PutSnapshotBlockError {
|
948 1759 | fn from(variant: ::pyo3::PyErr) -> crate::error::PutSnapshotBlockError {
|
949 1760 | ::pyo3::Python::with_gil(|py| {
|
950 1761 | let error = variant.value(py);
|
951 1762 | if let Ok(error) = error.extract::<crate::error::InternalServerException>() {
|
952 1763 | return error.into();
|
953 1764 | }
|
954 1765 | if let Ok(error) = error.extract::<crate::error::ResourceNotFoundException>() {
|
955 1766 | return error.into();
|
956 1767 | }
|
957 1768 | if let Ok(error) = error.extract::<crate::error::AccessDeniedException>() {
|
958 1769 | return error.into();
|
959 1770 | }
|
960 1771 | if let Ok(error) = error.extract::<crate::error::RequestThrottledException>() {
|
961 1772 | return error.into();
|
962 1773 | }
|
963 1774 | if let Ok(error) = error.extract::<crate::error::ServiceQuotaExceededException>() {
|
964 1775 | return error.into();
|
965 1776 | }
|
966 1777 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
967 1778 | return error.into();
|
968 1779 | }
|
969 1780 | crate::error::InternalServerError {
|
970 1781 | message: error.to_string(),
|
971 1782 | }
|
972 1783 | .into()
|
973 1784 | })
|
974 1785 | }
|
975 1786 | }
|
976 1787 |
|
1788 + | /* ServerOperationErrorGenerator.kt:63 */
|
977 1789 | /// Error type for the `ListSnapshotBlocks` operation.
|
1790 + | /* ServerOperationErrorGenerator.kt:64 */
|
978 1791 | /// Each variant represents an error that can occur for the `ListSnapshotBlocks` operation.
|
1792 + | /* RustType.kt:516 */
|
979 1793 | #[derive(::std::fmt::Debug)]
|
980 - | pub enum ListSnapshotBlocksError {
|
981 - | /// <p>An internal error has occurred.</p>
|
1794 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum ListSnapshotBlocksError {
|
1795 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>An internal error has occurred.</p>
|
1796 + | /* ServerOperationErrorGenerator.kt:71 */
|
982 1797 | InternalServerException(crate::error::InternalServerException),
|
983 - | /// <p>The specified resource does not exist.</p>
|
1798 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>The specified resource does not exist.</p>
|
1799 + | /* ServerOperationErrorGenerator.kt:71 */
|
984 1800 | ResourceNotFoundException(crate::error::ResourceNotFoundException),
|
985 - | /// <p>You do not have sufficient access to perform this action.</p>
|
1801 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>You do not have sufficient access to perform this action.</p>
|
1802 + | /* ServerOperationErrorGenerator.kt:71 */
|
986 1803 | AccessDeniedException(crate::error::AccessDeniedException),
|
987 - | /// <p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
|
1804 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
|
1805 + | /* ServerOperationErrorGenerator.kt:71 */
|
988 1806 | RequestThrottledException(crate::error::RequestThrottledException),
|
989 - | /// <p>Your current service quotas do not allow you to perform this action.</p>
|
1807 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>Your current service quotas do not allow you to perform this action.</p>
|
1808 + | /* ServerOperationErrorGenerator.kt:71 */
|
990 1809 | ServiceQuotaExceededException(crate::error::ServiceQuotaExceededException),
|
991 - | /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
1810 + | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
1811 + | /* ServerOperationErrorGenerator.kt:71 */
|
992 1812 | ValidationException(crate::error::ValidationException),
|
1813 + | /* ServerOperationErrorGenerator.kt:68 */
|
993 1814 | #[allow(missing_docs)] // documentation missing in model
|
1815 + | /* ServerOperationErrorGenerator.kt:71 */
|
994 1816 | InternalServerError(crate::error::InternalServerError),
|
1817 + | /* ServerOperationErrorGenerator.kt:66 */
|
995 1818 | }
|
1819 + | /* ServerOperationErrorGenerator.kt:75 */
|
996 1820 | impl ::std::fmt::Display for ListSnapshotBlocksError {
|
1821 + | /* ServerOperationErrorGenerator.kt:76 */
|
997 1822 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1823 + | /* ServerOperationErrorGenerator.kt:139 */
|
998 1824 | match &self {
|
999 - | ListSnapshotBlocksError::InternalServerException(_inner) => _inner.fmt(f),
|
1000 - | ListSnapshotBlocksError::ResourceNotFoundException(_inner) => _inner.fmt(f),
|
1001 - | ListSnapshotBlocksError::AccessDeniedException(_inner) => _inner.fmt(f),
|
1002 - | ListSnapshotBlocksError::RequestThrottledException(_inner) => _inner.fmt(f),
|
1003 - | ListSnapshotBlocksError::ServiceQuotaExceededException(_inner) => _inner.fmt(f),
|
1004 - | ListSnapshotBlocksError::ValidationException(_inner) => _inner.fmt(f),
|
1005 - | ListSnapshotBlocksError::InternalServerError(_inner) => _inner.fmt(f),
|
1825 + | /* ServerOperationErrorGenerator.kt:142 */
|
1826 + | ListSnapshotBlocksError::InternalServerException(_inner) =>
|
1827 + | /* ServerOperationErrorGenerator.kt:78 */
|
1828 + | {
|
1829 + | _inner.fmt(f)
|
1830 + | }
|
1831 + | ,
|
1832 + | /* ServerOperationErrorGenerator.kt:142 */
|
1833 + | ListSnapshotBlocksError::ResourceNotFoundException(_inner) =>
|
1834 + | /* ServerOperationErrorGenerator.kt:78 */
|
1835 + | {
|
1836 + | _inner.fmt(f)
|
1837 + | }
|
1838 + | ,
|
1839 + | /* ServerOperationErrorGenerator.kt:142 */
|
1840 + | ListSnapshotBlocksError::AccessDeniedException(_inner) =>
|
1841 + | /* ServerOperationErrorGenerator.kt:78 */
|
1842 + | {
|
1843 + | _inner.fmt(f)
|
1844 + | }
|
1845 + | ,
|
1846 + | /* ServerOperationErrorGenerator.kt:142 */
|
1847 + | ListSnapshotBlocksError::RequestThrottledException(_inner) =>
|
1848 + | /* ServerOperationErrorGenerator.kt:78 */
|
1849 + | {
|
1850 + | _inner.fmt(f)
|
1851 + | }
|
1852 + | ,
|
1853 + | /* ServerOperationErrorGenerator.kt:142 */
|
1854 + | ListSnapshotBlocksError::ServiceQuotaExceededException(_inner) =>
|
1855 + | /* ServerOperationErrorGenerator.kt:78 */
|
1856 + | {
|
1857 + | _inner.fmt(f)
|
1006 1858 | }
|
1859 + | ,
|
1860 + | /* ServerOperationErrorGenerator.kt:142 */
|
1861 + | ListSnapshotBlocksError::ValidationException(_inner) =>
|
1862 + | /* ServerOperationErrorGenerator.kt:78 */
|
1863 + | {
|
1864 + | _inner.fmt(f)
|
1865 + | }
|
1866 + | ,
|
1867 + | /* ServerOperationErrorGenerator.kt:142 */
|
1868 + | ListSnapshotBlocksError::InternalServerError(_inner) =>
|
1869 + | /* ServerOperationErrorGenerator.kt:78 */
|
1870 + | {
|
1871 + | _inner.fmt(f)
|
1872 + | }
|
1873 + | /* ServerOperationErrorGenerator.kt:139 */
|
1874 + | }
|
1875 + | /* ServerOperationErrorGenerator.kt:76 */
|
1007 1876 | }
|
1877 + | /* ServerOperationErrorGenerator.kt:75 */
|
1008 1878 | }
|
1879 + | /* ServerOperationErrorGenerator.kt:83 */
|
1009 1880 | impl ListSnapshotBlocksError {
|
1881 + | /* ServerOperationErrorGenerator.kt:87 */
|
1010 1882 | /// Returns `true` if the error kind is `ListSnapshotBlocksError::InternalServerException`.
|
1883 + | /* ServerOperationErrorGenerator.kt:88 */
|
1011 1884 | pub fn is_internal_server_exception(&self) -> bool {
|
1885 + | /* ServerOperationErrorGenerator.kt:89 */
|
1012 1886 | matches!(&self, ListSnapshotBlocksError::InternalServerException(_))
|
1887 + | /* ServerOperationErrorGenerator.kt:88 */
|
1013 1888 | }
|
1889 + | /* ServerOperationErrorGenerator.kt:87 */
|
1014 1890 | /// Returns `true` if the error kind is `ListSnapshotBlocksError::ResourceNotFoundException`.
|
1891 + | /* ServerOperationErrorGenerator.kt:88 */
|
1015 1892 | pub fn is_resource_not_found_exception(&self) -> bool {
|
1893 + | /* ServerOperationErrorGenerator.kt:89 */
|
1016 1894 | matches!(&self, ListSnapshotBlocksError::ResourceNotFoundException(_))
|
1895 + | /* ServerOperationErrorGenerator.kt:88 */
|
1017 1896 | }
|
1897 + | /* ServerOperationErrorGenerator.kt:87 */
|
1018 1898 | /// Returns `true` if the error kind is `ListSnapshotBlocksError::AccessDeniedException`.
|
1899 + | /* ServerOperationErrorGenerator.kt:88 */
|
1019 1900 | pub fn is_access_denied_exception(&self) -> bool {
|
1901 + | /* ServerOperationErrorGenerator.kt:89 */
|
1020 1902 | matches!(&self, ListSnapshotBlocksError::AccessDeniedException(_))
|
1903 + | /* ServerOperationErrorGenerator.kt:88 */
|
1021 1904 | }
|
1905 + | /* ServerOperationErrorGenerator.kt:87 */
|
1022 1906 | /// Returns `true` if the error kind is `ListSnapshotBlocksError::RequestThrottledException`.
|
1907 + | /* ServerOperationErrorGenerator.kt:88 */
|
1023 1908 | pub fn is_request_throttled_exception(&self) -> bool {
|
1909 + | /* ServerOperationErrorGenerator.kt:89 */
|
1024 1910 | matches!(&self, ListSnapshotBlocksError::RequestThrottledException(_))
|
1911 + | /* ServerOperationErrorGenerator.kt:88 */
|
1025 1912 | }
|
1913 + | /* ServerOperationErrorGenerator.kt:87 */
|
1026 1914 | /// Returns `true` if the error kind is `ListSnapshotBlocksError::ServiceQuotaExceededException`.
|
1915 + | /* ServerOperationErrorGenerator.kt:88 */
|
1027 1916 | pub fn is_service_quota_exceeded_exception(&self) -> bool {
|
1917 + | /* ServerOperationErrorGenerator.kt:89 */
|
1028 1918 | matches!(
|
1029 1919 | &self,
|
1030 1920 | ListSnapshotBlocksError::ServiceQuotaExceededException(_)
|
1031 1921 | )
|
1922 + | /* ServerOperationErrorGenerator.kt:88 */
|
1032 1923 | }
|
1924 + | /* ServerOperationErrorGenerator.kt:87 */
|
1033 1925 | /// Returns `true` if the error kind is `ListSnapshotBlocksError::ValidationException`.
|
1926 + | /* ServerOperationErrorGenerator.kt:88 */
|
1034 1927 | pub fn is_validation_exception(&self) -> bool {
|
1928 + | /* ServerOperationErrorGenerator.kt:89 */
|
1035 1929 | matches!(&self, ListSnapshotBlocksError::ValidationException(_))
|
1930 + | /* ServerOperationErrorGenerator.kt:88 */
|
1036 1931 | }
|
1932 + | /* ServerOperationErrorGenerator.kt:87 */
|
1037 1933 | /// Returns `true` if the error kind is `ListSnapshotBlocksError::InternalServerError`.
|
1934 + | /* ServerOperationErrorGenerator.kt:88 */
|
1038 1935 | pub fn is_internal_server_error(&self) -> bool {
|
1936 + | /* ServerOperationErrorGenerator.kt:89 */
|
1039 1937 | matches!(&self, ListSnapshotBlocksError::InternalServerError(_))
|
1938 + | /* ServerOperationErrorGenerator.kt:88 */
|
1040 1939 | }
|
1940 + | /* ServerOperationErrorGenerator.kt:92 */
|
1041 1941 | /// Returns the error name string by matching the correct variant.
|
1942 + | /* ServerOperationErrorGenerator.kt:93 */
|
1042 1943 | pub fn name(&self) -> &'static str {
|
1944 + | /* ServerOperationErrorGenerator.kt:139 */
|
1043 1945 | match &self {
|
1044 - | ListSnapshotBlocksError::InternalServerException(_inner) => _inner.name(),
|
1045 - | ListSnapshotBlocksError::ResourceNotFoundException(_inner) => _inner.name(),
|
1046 - | ListSnapshotBlocksError::AccessDeniedException(_inner) => _inner.name(),
|
1047 - | ListSnapshotBlocksError::RequestThrottledException(_inner) => _inner.name(),
|
1048 - | ListSnapshotBlocksError::ServiceQuotaExceededException(_inner) => _inner.name(),
|
1049 - | ListSnapshotBlocksError::ValidationException(_inner) => _inner.name(),
|
1050 - | ListSnapshotBlocksError::InternalServerError(_inner) => _inner.name(),
|
1946 + | /* ServerOperationErrorGenerator.kt:142 */
|
1947 + | ListSnapshotBlocksError::InternalServerException(_inner) =>
|
1948 + | /* ServerOperationErrorGenerator.kt:95 */
|
1949 + | {
|
1950 + | _inner.name()
|
1951 + | }
|
1952 + | ,
|
1953 + | /* ServerOperationErrorGenerator.kt:142 */
|
1954 + | ListSnapshotBlocksError::ResourceNotFoundException(_inner) =>
|
1955 + | /* ServerOperationErrorGenerator.kt:95 */
|
1956 + | {
|
1957 + | _inner.name()
|
1958 + | }
|
1959 + | ,
|
1960 + | /* ServerOperationErrorGenerator.kt:142 */
|
1961 + | ListSnapshotBlocksError::AccessDeniedException(_inner) =>
|
1962 + | /* ServerOperationErrorGenerator.kt:95 */
|
1963 + | {
|
1964 + | _inner.name()
|
1965 + | }
|
1966 + | ,
|
1967 + | /* ServerOperationErrorGenerator.kt:142 */
|
1968 + | ListSnapshotBlocksError::RequestThrottledException(_inner) =>
|
1969 + | /* ServerOperationErrorGenerator.kt:95 */
|
1970 + | {
|
1971 + | _inner.name()
|
1972 + | }
|
1973 + | ,
|
1974 + | /* ServerOperationErrorGenerator.kt:142 */
|
1975 + | ListSnapshotBlocksError::ServiceQuotaExceededException(_inner) =>
|
1976 + | /* ServerOperationErrorGenerator.kt:95 */
|
1977 + | {
|
1978 + | _inner.name()
|
1979 + | }
|
1980 + | ,
|
1981 + | /* ServerOperationErrorGenerator.kt:142 */
|
1982 + | ListSnapshotBlocksError::ValidationException(_inner) =>
|
1983 + | /* ServerOperationErrorGenerator.kt:95 */
|
1984 + | {
|
1985 + | _inner.name()
|
1986 + | }
|
1987 + | ,
|
1988 + | /* ServerOperationErrorGenerator.kt:142 */
|
1989 + | ListSnapshotBlocksError::InternalServerError(_inner) =>
|
1990 + | /* ServerOperationErrorGenerator.kt:95 */
|
1991 + | {
|
1992 + | _inner.name()
|
1993 + | }
|
1994 + | /* ServerOperationErrorGenerator.kt:139 */
|
1051 1995 | }
|
1996 + | /* ServerOperationErrorGenerator.kt:93 */
|
1052 1997 | }
|
1998 + | /* ServerOperationErrorGenerator.kt:83 */
|
1053 1999 | }
|
2000 + | /* ServerOperationErrorGenerator.kt:100 */
|
1054 2001 | impl ::std::error::Error for ListSnapshotBlocksError {
|
2002 + | /* ServerOperationErrorGenerator.kt:101 */
|
1055 2003 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
2004 + | /* ServerOperationErrorGenerator.kt:139 */
|
1056 2005 | match &self {
|
1057 - | ListSnapshotBlocksError::InternalServerException(_inner) => Some(_inner),
|
1058 - | ListSnapshotBlocksError::ResourceNotFoundException(_inner) => Some(_inner),
|
1059 - | ListSnapshotBlocksError::AccessDeniedException(_inner) => Some(_inner),
|
1060 - | ListSnapshotBlocksError::RequestThrottledException(_inner) => Some(_inner),
|
1061 - | ListSnapshotBlocksError::ServiceQuotaExceededException(_inner) => Some(_inner),
|
1062 - | ListSnapshotBlocksError::ValidationException(_inner) => Some(_inner),
|
1063 - | ListSnapshotBlocksError::InternalServerError(_inner) => Some(_inner),
|
2006 + | /* ServerOperationErrorGenerator.kt:142 */
|
2007 + | ListSnapshotBlocksError::InternalServerException(_inner) =>
|
2008 + | /* ServerOperationErrorGenerator.kt:103 */
|
2009 + | {
|
2010 + | Some(_inner)
|
2011 + | }
|
2012 + | ,
|
2013 + | /* ServerOperationErrorGenerator.kt:142 */
|
2014 + | ListSnapshotBlocksError::ResourceNotFoundException(_inner) =>
|
2015 + | /* ServerOperationErrorGenerator.kt:103 */
|
2016 + | {
|
2017 + | Some(_inner)
|
2018 + | }
|
2019 + | ,
|
2020 + | /* ServerOperationErrorGenerator.kt:142 */
|
2021 + | ListSnapshotBlocksError::AccessDeniedException(_inner) =>
|
2022 + | /* ServerOperationErrorGenerator.kt:103 */
|
2023 + | {
|
2024 + | Some(_inner)
|
2025 + | }
|
2026 + | ,
|
2027 + | /* ServerOperationErrorGenerator.kt:142 */
|
2028 + | ListSnapshotBlocksError::RequestThrottledException(_inner) =>
|
2029 + | /* ServerOperationErrorGenerator.kt:103 */
|
2030 + | {
|
2031 + | Some(_inner)
|
2032 + | }
|
2033 + | ,
|
2034 + | /* ServerOperationErrorGenerator.kt:142 */
|
2035 + | ListSnapshotBlocksError::ServiceQuotaExceededException(_inner) =>
|
2036 + | /* ServerOperationErrorGenerator.kt:103 */
|
2037 + | {
|
2038 + | Some(_inner)
|
1064 2039 | }
|
2040 + | ,
|
2041 + | /* ServerOperationErrorGenerator.kt:142 */
|
2042 + | ListSnapshotBlocksError::ValidationException(_inner) =>
|
2043 + | /* ServerOperationErrorGenerator.kt:103 */
|
2044 + | {
|
2045 + | Some(_inner)
|
2046 + | }
|
2047 + | ,
|
2048 + | /* ServerOperationErrorGenerator.kt:142 */
|
2049 + | ListSnapshotBlocksError::InternalServerError(_inner) =>
|
2050 + | /* ServerOperationErrorGenerator.kt:103 */
|
2051 + | {
|
2052 + | Some(_inner)
|
2053 + | }
|
2054 + | /* ServerOperationErrorGenerator.kt:139 */
|
2055 + | }
|
2056 + | /* ServerOperationErrorGenerator.kt:101 */
|
1065 2057 | }
|
2058 + | /* ServerOperationErrorGenerator.kt:100 */
|
1066 2059 | }
|
2060 + | /* ServerOperationErrorGenerator.kt:110 */
|
1067 2061 | impl ::std::convert::From<crate::error::InternalServerException>
|
1068 2062 | for crate::error::ListSnapshotBlocksError
|
1069 2063 | {
|
2064 + | /* ServerOperationErrorGenerator.kt:111 */
|
1070 2065 | fn from(
|
1071 2066 | variant: crate::error::InternalServerException,
|
1072 2067 | ) -> crate::error::ListSnapshotBlocksError {
|
2068 + | /* ServerOperationErrorGenerator.kt:112 */
|
1073 2069 | Self::InternalServerException(variant)
|
2070 + | /* ServerOperationErrorGenerator.kt:111 */
|
1074 2071 | }
|
2072 + | /* ServerOperationErrorGenerator.kt:110 */
|
1075 2073 | }
|
2074 + | /* ServerOperationErrorGenerator.kt:110 */
|
1076 2075 | impl ::std::convert::From<crate::error::ResourceNotFoundException>
|
1077 2076 | for crate::error::ListSnapshotBlocksError
|
1078 2077 | {
|
2078 + | /* ServerOperationErrorGenerator.kt:111 */
|
1079 2079 | fn from(
|
1080 2080 | variant: crate::error::ResourceNotFoundException,
|
1081 2081 | ) -> crate::error::ListSnapshotBlocksError {
|
2082 + | /* ServerOperationErrorGenerator.kt:112 */
|
1082 2083 | Self::ResourceNotFoundException(variant)
|
2084 + | /* ServerOperationErrorGenerator.kt:111 */
|
1083 2085 | }
|
2086 + | /* ServerOperationErrorGenerator.kt:110 */
|
1084 2087 | }
|
2088 + | /* ServerOperationErrorGenerator.kt:110 */
|
1085 2089 | impl ::std::convert::From<crate::error::AccessDeniedException>
|
1086 2090 | for crate::error::ListSnapshotBlocksError
|
1087 2091 | {
|
2092 + | /* ServerOperationErrorGenerator.kt:111 */
|
1088 2093 | fn from(variant: crate::error::AccessDeniedException) -> crate::error::ListSnapshotBlocksError {
|
2094 + | /* ServerOperationErrorGenerator.kt:112 */
|
1089 2095 | Self::AccessDeniedException(variant)
|
2096 + | /* ServerOperationErrorGenerator.kt:111 */
|
1090 2097 | }
|
2098 + | /* ServerOperationErrorGenerator.kt:110 */
|
1091 2099 | }
|
2100 + | /* ServerOperationErrorGenerator.kt:110 */
|
1092 2101 | impl ::std::convert::From<crate::error::RequestThrottledException>
|
1093 2102 | for crate::error::ListSnapshotBlocksError
|
1094 2103 | {
|
2104 + | /* ServerOperationErrorGenerator.kt:111 */
|
1095 2105 | fn from(
|
1096 2106 | variant: crate::error::RequestThrottledException,
|
1097 2107 | ) -> crate::error::ListSnapshotBlocksError {
|
2108 + | /* ServerOperationErrorGenerator.kt:112 */
|
1098 2109 | Self::RequestThrottledException(variant)
|
2110 + | /* ServerOperationErrorGenerator.kt:111 */
|
1099 2111 | }
|
2112 + | /* ServerOperationErrorGenerator.kt:110 */
|
1100 2113 | }
|
2114 + | /* ServerOperationErrorGenerator.kt:110 */
|
1101 2115 | impl ::std::convert::From<crate::error::ServiceQuotaExceededException>
|
1102 2116 | for crate::error::ListSnapshotBlocksError
|
1103 2117 | {
|
2118 + | /* ServerOperationErrorGenerator.kt:111 */
|
1104 2119 | fn from(
|
1105 2120 | variant: crate::error::ServiceQuotaExceededException,
|
1106 2121 | ) -> crate::error::ListSnapshotBlocksError {
|
2122 + | /* ServerOperationErrorGenerator.kt:112 */
|
1107 2123 | Self::ServiceQuotaExceededException(variant)
|
2124 + | /* ServerOperationErrorGenerator.kt:111 */
|
1108 2125 | }
|
2126 + | /* ServerOperationErrorGenerator.kt:110 */
|
1109 2127 | }
|
2128 + | /* ServerOperationErrorGenerator.kt:110 */
|
1110 2129 | impl ::std::convert::From<crate::error::ValidationException>
|
1111 2130 | for crate::error::ListSnapshotBlocksError
|
1112 2131 | {
|
2132 + | /* ServerOperationErrorGenerator.kt:111 */
|
1113 2133 | fn from(variant: crate::error::ValidationException) -> crate::error::ListSnapshotBlocksError {
|
2134 + | /* ServerOperationErrorGenerator.kt:112 */
|
1114 2135 | Self::ValidationException(variant)
|
2136 + | /* ServerOperationErrorGenerator.kt:111 */
|
1115 2137 | }
|
2138 + | /* ServerOperationErrorGenerator.kt:110 */
|
1116 2139 | }
|
2140 + | /* ServerOperationErrorGenerator.kt:110 */
|
1117 2141 | impl ::std::convert::From<crate::error::InternalServerError>
|
1118 2142 | for crate::error::ListSnapshotBlocksError
|
1119 2143 | {
|
2144 + | /* ServerOperationErrorGenerator.kt:111 */
|
1120 2145 | fn from(variant: crate::error::InternalServerError) -> crate::error::ListSnapshotBlocksError {
|
2146 + | /* ServerOperationErrorGenerator.kt:112 */
|
1121 2147 | Self::InternalServerError(variant)
|
2148 + | /* ServerOperationErrorGenerator.kt:111 */
|
1122 2149 | }
|
2150 + | /* ServerOperationErrorGenerator.kt:110 */
|
1123 2151 | }
|
1124 2152 |
|
2153 + | /* PythonServerOperationErrorGenerator.kt:38 */
|
1125 2154 | impl ::std::convert::From<::pyo3::PyErr> for crate::error::ListSnapshotBlocksError {
|
1126 2155 | fn from(variant: ::pyo3::PyErr) -> crate::error::ListSnapshotBlocksError {
|
1127 2156 | ::pyo3::Python::with_gil(|py| {
|
1128 2157 | let error = variant.value(py);
|
1129 2158 | if let Ok(error) = error.extract::<crate::error::InternalServerException>() {
|
1130 2159 | return error.into();
|
1131 2160 | }
|
1132 2161 | if let Ok(error) = error.extract::<crate::error::ResourceNotFoundException>() {
|
1133 2162 | return error.into();
|
1134 2163 | }
|
1135 2164 | if let Ok(error) = error.extract::<crate::error::AccessDeniedException>() {
|
1136 2165 | return error.into();
|
1137 2166 | }
|
1138 2167 | if let Ok(error) = error.extract::<crate::error::RequestThrottledException>() {
|
1139 2168 | return error.into();
|
1140 2169 | }
|
1141 2170 | if let Ok(error) = error.extract::<crate::error::ServiceQuotaExceededException>() {
|
1142 2171 | return error.into();
|
1143 2172 | }
|
1144 2173 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
1145 2174 | return error.into();
|
1146 2175 | }
|
1147 2176 | crate::error::InternalServerError {
|
1148 2177 | message: error.to_string(),
|
1149 2178 | }
|
1150 2179 | .into()
|
1151 2180 | })
|
1152 2181 | }
|
1153 2182 | }
|
1154 2183 |
|
2184 + | /* ServerOperationErrorGenerator.kt:63 */
|
1155 2185 | /// Error type for the `ListChangedBlocks` operation.
|
2186 + | /* ServerOperationErrorGenerator.kt:64 */
|
1156 2187 | /// Each variant represents an error that can occur for the `ListChangedBlocks` operation.
|
2188 + | /* RustType.kt:516 */
|
1157 2189 | #[derive(::std::fmt::Debug)]
|
1158 - | pub enum ListChangedBlocksError {
|
1159 - | /// <p>An internal error has occurred.</p>
|
2190 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum ListChangedBlocksError {
|
2191 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>An internal error has occurred.</p>
|
2192 + | /* ServerOperationErrorGenerator.kt:71 */
|
1160 2193 | InternalServerException(crate::error::InternalServerException),
|
1161 - | /// <p>The specified resource does not exist.</p>
|
2194 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>The specified resource does not exist.</p>
|
2195 + | /* ServerOperationErrorGenerator.kt:71 */
|
1162 2196 | ResourceNotFoundException(crate::error::ResourceNotFoundException),
|
1163 - | /// <p>You do not have sufficient access to perform this action.</p>
|
2197 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>You do not have sufficient access to perform this action.</p>
|
2198 + | /* ServerOperationErrorGenerator.kt:71 */
|
1164 2199 | AccessDeniedException(crate::error::AccessDeniedException),
|
1165 - | /// <p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
|
2200 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
|
2201 + | /* ServerOperationErrorGenerator.kt:71 */
|
1166 2202 | RequestThrottledException(crate::error::RequestThrottledException),
|
1167 - | /// <p>Your current service quotas do not allow you to perform this action.</p>
|
2203 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>Your current service quotas do not allow you to perform this action.</p>
|
2204 + | /* ServerOperationErrorGenerator.kt:71 */
|
1168 2205 | ServiceQuotaExceededException(crate::error::ServiceQuotaExceededException),
|
1169 - | /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
2206 + | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
2207 + | /* ServerOperationErrorGenerator.kt:71 */
|
1170 2208 | ValidationException(crate::error::ValidationException),
|
2209 + | /* ServerOperationErrorGenerator.kt:68 */
|
1171 2210 | #[allow(missing_docs)] // documentation missing in model
|
2211 + | /* ServerOperationErrorGenerator.kt:71 */
|
1172 2212 | InternalServerError(crate::error::InternalServerError),
|
2213 + | /* ServerOperationErrorGenerator.kt:66 */
|
1173 2214 | }
|
2215 + | /* ServerOperationErrorGenerator.kt:75 */
|
1174 2216 | impl ::std::fmt::Display for ListChangedBlocksError {
|
2217 + | /* ServerOperationErrorGenerator.kt:76 */
|
1175 2218 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2219 + | /* ServerOperationErrorGenerator.kt:139 */
|
1176 2220 | match &self {
|
1177 - | ListChangedBlocksError::InternalServerException(_inner) => _inner.fmt(f),
|
1178 - | ListChangedBlocksError::ResourceNotFoundException(_inner) => _inner.fmt(f),
|
1179 - | ListChangedBlocksError::AccessDeniedException(_inner) => _inner.fmt(f),
|
1180 - | ListChangedBlocksError::RequestThrottledException(_inner) => _inner.fmt(f),
|
1181 - | ListChangedBlocksError::ServiceQuotaExceededException(_inner) => _inner.fmt(f),
|
1182 - | ListChangedBlocksError::ValidationException(_inner) => _inner.fmt(f),
|
1183 - | ListChangedBlocksError::InternalServerError(_inner) => _inner.fmt(f),
|
2221 + | /* ServerOperationErrorGenerator.kt:142 */
|
2222 + | ListChangedBlocksError::InternalServerException(_inner) =>
|
2223 + | /* ServerOperationErrorGenerator.kt:78 */
|
2224 + | {
|
2225 + | _inner.fmt(f)
|
2226 + | }
|
2227 + | ,
|
2228 + | /* ServerOperationErrorGenerator.kt:142 */
|
2229 + | ListChangedBlocksError::ResourceNotFoundException(_inner) =>
|
2230 + | /* ServerOperationErrorGenerator.kt:78 */
|
2231 + | {
|
2232 + | _inner.fmt(f)
|
1184 2233 | }
|
2234 + | ,
|
2235 + | /* ServerOperationErrorGenerator.kt:142 */
|
2236 + | ListChangedBlocksError::AccessDeniedException(_inner) =>
|
2237 + | /* ServerOperationErrorGenerator.kt:78 */
|
2238 + | {
|
2239 + | _inner.fmt(f)
|
1185 2240 | }
|
2241 + | ,
|
2242 + | /* ServerOperationErrorGenerator.kt:142 */
|
2243 + | ListChangedBlocksError::RequestThrottledException(_inner) =>
|
2244 + | /* ServerOperationErrorGenerator.kt:78 */
|
2245 + | {
|
2246 + | _inner.fmt(f)
|
2247 + | }
|
2248 + | ,
|
2249 + | /* ServerOperationErrorGenerator.kt:142 */
|
2250 + | ListChangedBlocksError::ServiceQuotaExceededException(_inner) =>
|
2251 + | /* ServerOperationErrorGenerator.kt:78 */
|
2252 + | {
|
2253 + | _inner.fmt(f)
|
2254 + | }
|
2255 + | ,
|
2256 + | /* ServerOperationErrorGenerator.kt:142 */
|
2257 + | ListChangedBlocksError::ValidationException(_inner) =>
|
2258 + | /* ServerOperationErrorGenerator.kt:78 */
|
2259 + | {
|
2260 + | _inner.fmt(f)
|
2261 + | }
|
2262 + | ,
|
2263 + | /* ServerOperationErrorGenerator.kt:142 */
|
2264 + | ListChangedBlocksError::InternalServerError(_inner) =>
|
2265 + | /* ServerOperationErrorGenerator.kt:78 */
|
2266 + | {
|
2267 + | _inner.fmt(f)
|
2268 + | }
|
2269 + | /* ServerOperationErrorGenerator.kt:139 */
|
2270 + | }
|
2271 + | /* ServerOperationErrorGenerator.kt:76 */
|
2272 + | }
|
2273 + | /* ServerOperationErrorGenerator.kt:75 */
|
1186 2274 | }
|
2275 + | /* ServerOperationErrorGenerator.kt:83 */
|
1187 2276 | impl ListChangedBlocksError {
|
2277 + | /* ServerOperationErrorGenerator.kt:87 */
|
1188 2278 | /// Returns `true` if the error kind is `ListChangedBlocksError::InternalServerException`.
|
2279 + | /* ServerOperationErrorGenerator.kt:88 */
|
1189 2280 | pub fn is_internal_server_exception(&self) -> bool {
|
2281 + | /* ServerOperationErrorGenerator.kt:89 */
|
1190 2282 | matches!(&self, ListChangedBlocksError::InternalServerException(_))
|
2283 + | /* ServerOperationErrorGenerator.kt:88 */
|
1191 2284 | }
|
2285 + | /* ServerOperationErrorGenerator.kt:87 */
|
1192 2286 | /// Returns `true` if the error kind is `ListChangedBlocksError::ResourceNotFoundException`.
|
2287 + | /* ServerOperationErrorGenerator.kt:88 */
|
1193 2288 | pub fn is_resource_not_found_exception(&self) -> bool {
|
2289 + | /* ServerOperationErrorGenerator.kt:89 */
|
1194 2290 | matches!(&self, ListChangedBlocksError::ResourceNotFoundException(_))
|
2291 + | /* ServerOperationErrorGenerator.kt:88 */
|
1195 2292 | }
|
2293 + | /* ServerOperationErrorGenerator.kt:87 */
|
1196 2294 | /// Returns `true` if the error kind is `ListChangedBlocksError::AccessDeniedException`.
|
2295 + | /* ServerOperationErrorGenerator.kt:88 */
|
1197 2296 | pub fn is_access_denied_exception(&self) -> bool {
|
2297 + | /* ServerOperationErrorGenerator.kt:89 */
|
1198 2298 | matches!(&self, ListChangedBlocksError::AccessDeniedException(_))
|
2299 + | /* ServerOperationErrorGenerator.kt:88 */
|
1199 2300 | }
|
2301 + | /* ServerOperationErrorGenerator.kt:87 */
|
1200 2302 | /// Returns `true` if the error kind is `ListChangedBlocksError::RequestThrottledException`.
|
2303 + | /* ServerOperationErrorGenerator.kt:88 */
|
1201 2304 | pub fn is_request_throttled_exception(&self) -> bool {
|
2305 + | /* ServerOperationErrorGenerator.kt:89 */
|
1202 2306 | matches!(&self, ListChangedBlocksError::RequestThrottledException(_))
|
2307 + | /* ServerOperationErrorGenerator.kt:88 */
|
1203 2308 | }
|
2309 + | /* ServerOperationErrorGenerator.kt:87 */
|
1204 2310 | /// Returns `true` if the error kind is `ListChangedBlocksError::ServiceQuotaExceededException`.
|
2311 + | /* ServerOperationErrorGenerator.kt:88 */
|
1205 2312 | pub fn is_service_quota_exceeded_exception(&self) -> bool {
|
2313 + | /* ServerOperationErrorGenerator.kt:89 */
|
1206 2314 | matches!(
|
1207 2315 | &self,
|
1208 2316 | ListChangedBlocksError::ServiceQuotaExceededException(_)
|
1209 2317 | )
|
2318 + | /* ServerOperationErrorGenerator.kt:88 */
|
1210 2319 | }
|
2320 + | /* ServerOperationErrorGenerator.kt:87 */
|
1211 2321 | /// Returns `true` if the error kind is `ListChangedBlocksError::ValidationException`.
|
2322 + | /* ServerOperationErrorGenerator.kt:88 */
|
1212 2323 | pub fn is_validation_exception(&self) -> bool {
|
2324 + | /* ServerOperationErrorGenerator.kt:89 */
|
1213 2325 | matches!(&self, ListChangedBlocksError::ValidationException(_))
|
2326 + | /* ServerOperationErrorGenerator.kt:88 */
|
1214 2327 | }
|
2328 + | /* ServerOperationErrorGenerator.kt:87 */
|
1215 2329 | /// Returns `true` if the error kind is `ListChangedBlocksError::InternalServerError`.
|
2330 + | /* ServerOperationErrorGenerator.kt:88 */
|
1216 2331 | pub fn is_internal_server_error(&self) -> bool {
|
2332 + | /* ServerOperationErrorGenerator.kt:89 */
|
1217 2333 | matches!(&self, ListChangedBlocksError::InternalServerError(_))
|
2334 + | /* ServerOperationErrorGenerator.kt:88 */
|
1218 2335 | }
|
2336 + | /* ServerOperationErrorGenerator.kt:92 */
|
1219 2337 | /// Returns the error name string by matching the correct variant.
|
2338 + | /* ServerOperationErrorGenerator.kt:93 */
|
1220 2339 | pub fn name(&self) -> &'static str {
|
2340 + | /* ServerOperationErrorGenerator.kt:139 */
|
1221 2341 | match &self {
|
1222 - | ListChangedBlocksError::InternalServerException(_inner) => _inner.name(),
|
1223 - | ListChangedBlocksError::ResourceNotFoundException(_inner) => _inner.name(),
|
1224 - | ListChangedBlocksError::AccessDeniedException(_inner) => _inner.name(),
|
1225 - | ListChangedBlocksError::RequestThrottledException(_inner) => _inner.name(),
|
1226 - | ListChangedBlocksError::ServiceQuotaExceededException(_inner) => _inner.name(),
|
1227 - | ListChangedBlocksError::ValidationException(_inner) => _inner.name(),
|
1228 - | ListChangedBlocksError::InternalServerError(_inner) => _inner.name(),
|
2342 + | /* ServerOperationErrorGenerator.kt:142 */
|
2343 + | ListChangedBlocksError::InternalServerException(_inner) =>
|
2344 + | /* ServerOperationErrorGenerator.kt:95 */
|
2345 + | {
|
2346 + | _inner.name()
|
1229 2347 | }
|
2348 + | ,
|
2349 + | /* ServerOperationErrorGenerator.kt:142 */
|
2350 + | ListChangedBlocksError::ResourceNotFoundException(_inner) =>
|
2351 + | /* ServerOperationErrorGenerator.kt:95 */
|
2352 + | {
|
2353 + | _inner.name()
|
1230 2354 | }
|
2355 + | ,
|
2356 + | /* ServerOperationErrorGenerator.kt:142 */
|
2357 + | ListChangedBlocksError::AccessDeniedException(_inner) =>
|
2358 + | /* ServerOperationErrorGenerator.kt:95 */
|
2359 + | {
|
2360 + | _inner.name()
|
2361 + | }
|
2362 + | ,
|
2363 + | /* ServerOperationErrorGenerator.kt:142 */
|
2364 + | ListChangedBlocksError::RequestThrottledException(_inner) =>
|
2365 + | /* ServerOperationErrorGenerator.kt:95 */
|
2366 + | {
|
2367 + | _inner.name()
|
2368 + | }
|
2369 + | ,
|
2370 + | /* ServerOperationErrorGenerator.kt:142 */
|
2371 + | ListChangedBlocksError::ServiceQuotaExceededException(_inner) =>
|
2372 + | /* ServerOperationErrorGenerator.kt:95 */
|
2373 + | {
|
2374 + | _inner.name()
|
2375 + | }
|
2376 + | ,
|
2377 + | /* ServerOperationErrorGenerator.kt:142 */
|
2378 + | ListChangedBlocksError::ValidationException(_inner) =>
|
2379 + | /* ServerOperationErrorGenerator.kt:95 */
|
2380 + | {
|
2381 + | _inner.name()
|
2382 + | }
|
2383 + | ,
|
2384 + | /* ServerOperationErrorGenerator.kt:142 */
|
2385 + | ListChangedBlocksError::InternalServerError(_inner) =>
|
2386 + | /* ServerOperationErrorGenerator.kt:95 */
|
2387 + | {
|
2388 + | _inner.name()
|
2389 + | }
|
2390 + | /* ServerOperationErrorGenerator.kt:139 */
|
2391 + | }
|
2392 + | /* ServerOperationErrorGenerator.kt:93 */
|
2393 + | }
|
2394 + | /* ServerOperationErrorGenerator.kt:83 */
|
1231 2395 | }
|
2396 + | /* ServerOperationErrorGenerator.kt:100 */
|
1232 2397 | impl ::std::error::Error for ListChangedBlocksError {
|
2398 + | /* ServerOperationErrorGenerator.kt:101 */
|
1233 2399 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
2400 + | /* ServerOperationErrorGenerator.kt:139 */
|
1234 2401 | match &self {
|
1235 - | ListChangedBlocksError::InternalServerException(_inner) => Some(_inner),
|
1236 - | ListChangedBlocksError::ResourceNotFoundException(_inner) => Some(_inner),
|
1237 - | ListChangedBlocksError::AccessDeniedException(_inner) => Some(_inner),
|
1238 - | ListChangedBlocksError::RequestThrottledException(_inner) => Some(_inner),
|
1239 - | ListChangedBlocksError::ServiceQuotaExceededException(_inner) => Some(_inner),
|
1240 - | ListChangedBlocksError::ValidationException(_inner) => Some(_inner),
|
1241 - | ListChangedBlocksError::InternalServerError(_inner) => Some(_inner),
|
2402 + | /* ServerOperationErrorGenerator.kt:142 */
|
2403 + | ListChangedBlocksError::InternalServerException(_inner) =>
|
2404 + | /* ServerOperationErrorGenerator.kt:103 */
|
2405 + | {
|
2406 + | Some(_inner)
|
2407 + | }
|
2408 + | ,
|
2409 + | /* ServerOperationErrorGenerator.kt:142 */
|
2410 + | ListChangedBlocksError::ResourceNotFoundException(_inner) =>
|
2411 + | /* ServerOperationErrorGenerator.kt:103 */
|
2412 + | {
|
2413 + | Some(_inner)
|
2414 + | }
|
2415 + | ,
|
2416 + | /* ServerOperationErrorGenerator.kt:142 */
|
2417 + | ListChangedBlocksError::AccessDeniedException(_inner) =>
|
2418 + | /* ServerOperationErrorGenerator.kt:103 */
|
2419 + | {
|
2420 + | Some(_inner)
|
2421 + | }
|
2422 + | ,
|
2423 + | /* ServerOperationErrorGenerator.kt:142 */
|
2424 + | ListChangedBlocksError::RequestThrottledException(_inner) =>
|
2425 + | /* ServerOperationErrorGenerator.kt:103 */
|
2426 + | {
|
2427 + | Some(_inner)
|
2428 + | }
|
2429 + | ,
|
2430 + | /* ServerOperationErrorGenerator.kt:142 */
|
2431 + | ListChangedBlocksError::ServiceQuotaExceededException(_inner) =>
|
2432 + | /* ServerOperationErrorGenerator.kt:103 */
|
2433 + | {
|
2434 + | Some(_inner)
|
2435 + | }
|
2436 + | ,
|
2437 + | /* ServerOperationErrorGenerator.kt:142 */
|
2438 + | ListChangedBlocksError::ValidationException(_inner) =>
|
2439 + | /* ServerOperationErrorGenerator.kt:103 */
|
2440 + | {
|
2441 + | Some(_inner)
|
2442 + | }
|
2443 + | ,
|
2444 + | /* ServerOperationErrorGenerator.kt:142 */
|
2445 + | ListChangedBlocksError::InternalServerError(_inner) =>
|
2446 + | /* ServerOperationErrorGenerator.kt:103 */
|
2447 + | {
|
2448 + | Some(_inner)
|
1242 2449 | }
|
2450 + | /* ServerOperationErrorGenerator.kt:139 */
|
1243 2451 | }
|
2452 + | /* ServerOperationErrorGenerator.kt:101 */
|
2453 + | }
|
2454 + | /* ServerOperationErrorGenerator.kt:100 */
|
1244 2455 | }
|
2456 + | /* ServerOperationErrorGenerator.kt:110 */
|
1245 2457 | impl ::std::convert::From<crate::error::InternalServerException>
|
1246 2458 | for crate::error::ListChangedBlocksError
|
1247 2459 | {
|
2460 + | /* ServerOperationErrorGenerator.kt:111 */
|
1248 2461 | fn from(
|
1249 2462 | variant: crate::error::InternalServerException,
|
1250 2463 | ) -> crate::error::ListChangedBlocksError {
|
2464 + | /* ServerOperationErrorGenerator.kt:112 */
|
1251 2465 | Self::InternalServerException(variant)
|
2466 + | /* ServerOperationErrorGenerator.kt:111 */
|
1252 2467 | }
|
2468 + | /* ServerOperationErrorGenerator.kt:110 */
|
1253 2469 | }
|
2470 + | /* ServerOperationErrorGenerator.kt:110 */
|
1254 2471 | impl ::std::convert::From<crate::error::ResourceNotFoundException>
|
1255 2472 | for crate::error::ListChangedBlocksError
|
1256 2473 | {
|
2474 + | /* ServerOperationErrorGenerator.kt:111 */
|
1257 2475 | fn from(
|
1258 2476 | variant: crate::error::ResourceNotFoundException,
|
1259 2477 | ) -> crate::error::ListChangedBlocksError {
|
2478 + | /* ServerOperationErrorGenerator.kt:112 */
|
1260 2479 | Self::ResourceNotFoundException(variant)
|
2480 + | /* ServerOperationErrorGenerator.kt:111 */
|
1261 2481 | }
|
2482 + | /* ServerOperationErrorGenerator.kt:110 */
|
1262 2483 | }
|
2484 + | /* ServerOperationErrorGenerator.kt:110 */
|
1263 2485 | impl ::std::convert::From<crate::error::AccessDeniedException>
|
1264 2486 | for crate::error::ListChangedBlocksError
|
1265 2487 | {
|
2488 + | /* ServerOperationErrorGenerator.kt:111 */
|
1266 2489 | fn from(variant: crate::error::AccessDeniedException) -> crate::error::ListChangedBlocksError {
|
2490 + | /* ServerOperationErrorGenerator.kt:112 */
|
1267 2491 | Self::AccessDeniedException(variant)
|
2492 + | /* ServerOperationErrorGenerator.kt:111 */
|
1268 2493 | }
|
2494 + | /* ServerOperationErrorGenerator.kt:110 */
|
1269 2495 | }
|
2496 + | /* ServerOperationErrorGenerator.kt:110 */
|
1270 2497 | impl ::std::convert::From<crate::error::RequestThrottledException>
|
1271 2498 | for crate::error::ListChangedBlocksError
|
1272 2499 | {
|
2500 + | /* ServerOperationErrorGenerator.kt:111 */
|
1273 2501 | fn from(
|
1274 2502 | variant: crate::error::RequestThrottledException,
|
1275 2503 | ) -> crate::error::ListChangedBlocksError {
|
2504 + | /* ServerOperationErrorGenerator.kt:112 */
|
1276 2505 | Self::RequestThrottledException(variant)
|
2506 + | /* ServerOperationErrorGenerator.kt:111 */
|
1277 2507 | }
|
2508 + | /* ServerOperationErrorGenerator.kt:110 */
|
1278 2509 | }
|
2510 + | /* ServerOperationErrorGenerator.kt:110 */
|
1279 2511 | impl ::std::convert::From<crate::error::ServiceQuotaExceededException>
|
1280 2512 | for crate::error::ListChangedBlocksError
|
1281 2513 | {
|
2514 + | /* ServerOperationErrorGenerator.kt:111 */
|
1282 2515 | fn from(
|
1283 2516 | variant: crate::error::ServiceQuotaExceededException,
|
1284 2517 | ) -> crate::error::ListChangedBlocksError {
|
2518 + | /* ServerOperationErrorGenerator.kt:112 */
|
1285 2519 | Self::ServiceQuotaExceededException(variant)
|
2520 + | /* ServerOperationErrorGenerator.kt:111 */
|
1286 2521 | }
|
2522 + | /* ServerOperationErrorGenerator.kt:110 */
|
1287 2523 | }
|
2524 + | /* ServerOperationErrorGenerator.kt:110 */
|
1288 2525 | impl ::std::convert::From<crate::error::ValidationException>
|
1289 2526 | for crate::error::ListChangedBlocksError
|
1290 2527 | {
|
2528 + | /* ServerOperationErrorGenerator.kt:111 */
|
1291 2529 | fn from(variant: crate::error::ValidationException) -> crate::error::ListChangedBlocksError {
|
2530 + | /* ServerOperationErrorGenerator.kt:112 */
|
1292 2531 | Self::ValidationException(variant)
|
2532 + | /* ServerOperationErrorGenerator.kt:111 */
|
1293 2533 | }
|
2534 + | /* ServerOperationErrorGenerator.kt:110 */
|
1294 2535 | }
|
2536 + | /* ServerOperationErrorGenerator.kt:110 */
|
1295 2537 | impl ::std::convert::From<crate::error::InternalServerError>
|
1296 2538 | for crate::error::ListChangedBlocksError
|
1297 2539 | {
|
2540 + | /* ServerOperationErrorGenerator.kt:111 */
|
1298 2541 | fn from(variant: crate::error::InternalServerError) -> crate::error::ListChangedBlocksError {
|
2542 + | /* ServerOperationErrorGenerator.kt:112 */
|
1299 2543 | Self::InternalServerError(variant)
|
2544 + | /* ServerOperationErrorGenerator.kt:111 */
|
1300 2545 | }
|
2546 + | /* ServerOperationErrorGenerator.kt:110 */
|
1301 2547 | }
|
1302 2548 |
|
2549 + | /* PythonServerOperationErrorGenerator.kt:38 */
|
1303 2550 | impl ::std::convert::From<::pyo3::PyErr> for crate::error::ListChangedBlocksError {
|
1304 2551 | fn from(variant: ::pyo3::PyErr) -> crate::error::ListChangedBlocksError {
|
1305 2552 | ::pyo3::Python::with_gil(|py| {
|
1306 2553 | let error = variant.value(py);
|
1307 2554 | if let Ok(error) = error.extract::<crate::error::InternalServerException>() {
|
1308 2555 | return error.into();
|
1309 2556 | }
|
1310 2557 | if let Ok(error) = error.extract::<crate::error::ResourceNotFoundException>() {
|
1311 2558 | return error.into();
|
1312 2559 | }
|
1313 2560 | if let Ok(error) = error.extract::<crate::error::AccessDeniedException>() {
|
1314 2561 | return error.into();
|
1315 2562 | }
|
1316 2563 | if let Ok(error) = error.extract::<crate::error::RequestThrottledException>() {
|
1317 2564 | return error.into();
|
1318 2565 | }
|
1319 2566 | if let Ok(error) = error.extract::<crate::error::ServiceQuotaExceededException>() {
|
1320 2567 | return error.into();
|
1321 2568 | }
|
1322 2569 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
1323 2570 | return error.into();
|
1324 2571 | }
|
1325 2572 | crate::error::InternalServerError {
|
1326 2573 | message: error.to_string(),
|
1327 2574 | }
|
1328 2575 | .into()
|
1329 2576 | })
|
1330 2577 | }
|
1331 2578 | }
|
1332 2579 |
|
2580 + | /* ServerOperationErrorGenerator.kt:63 */
|
1333 2581 | /// Error type for the `GetSnapshotBlock` operation.
|
2582 + | /* ServerOperationErrorGenerator.kt:64 */
|
1334 2583 | /// Each variant represents an error that can occur for the `GetSnapshotBlock` operation.
|
2584 + | /* RustType.kt:516 */
|
1335 2585 | #[derive(::std::fmt::Debug)]
|
1336 - | pub enum GetSnapshotBlockError {
|
1337 - | /// <p>An internal error has occurred.</p>
|
2586 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum GetSnapshotBlockError {
|
2587 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>An internal error has occurred.</p>
|
2588 + | /* ServerOperationErrorGenerator.kt:71 */
|
1338 2589 | InternalServerException(crate::error::InternalServerException),
|
1339 - | /// <p>The specified resource does not exist.</p>
|
2590 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>The specified resource does not exist.</p>
|
2591 + | /* ServerOperationErrorGenerator.kt:71 */
|
1340 2592 | ResourceNotFoundException(crate::error::ResourceNotFoundException),
|
1341 - | /// <p>You do not have sufficient access to perform this action.</p>
|
2593 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>You do not have sufficient access to perform this action.</p>
|
2594 + | /* ServerOperationErrorGenerator.kt:71 */
|
1342 2595 | AccessDeniedException(crate::error::AccessDeniedException),
|
1343 - | /// <p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
|
2596 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
|
2597 + | /* ServerOperationErrorGenerator.kt:71 */
|
1344 2598 | RequestThrottledException(crate::error::RequestThrottledException),
|
1345 - | /// <p>Your current service quotas do not allow you to perform this action.</p>
|
2599 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>Your current service quotas do not allow you to perform this action.</p>
|
2600 + | /* ServerOperationErrorGenerator.kt:71 */
|
1346 2601 | ServiceQuotaExceededException(crate::error::ServiceQuotaExceededException),
|
1347 - | /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
2602 + | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
2603 + | /* ServerOperationErrorGenerator.kt:71 */
|
1348 2604 | ValidationException(crate::error::ValidationException),
|
2605 + | /* ServerOperationErrorGenerator.kt:68 */
|
1349 2606 | #[allow(missing_docs)] // documentation missing in model
|
2607 + | /* ServerOperationErrorGenerator.kt:71 */
|
1350 2608 | InternalServerError(crate::error::InternalServerError),
|
2609 + | /* ServerOperationErrorGenerator.kt:66 */
|
1351 2610 | }
|
2611 + | /* ServerOperationErrorGenerator.kt:75 */
|
1352 2612 | impl ::std::fmt::Display for GetSnapshotBlockError {
|
2613 + | /* ServerOperationErrorGenerator.kt:76 */
|
1353 2614 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2615 + | /* ServerOperationErrorGenerator.kt:139 */
|
1354 2616 | match &self {
|
1355 - | GetSnapshotBlockError::InternalServerException(_inner) => _inner.fmt(f),
|
1356 - | GetSnapshotBlockError::ResourceNotFoundException(_inner) => _inner.fmt(f),
|
1357 - | GetSnapshotBlockError::AccessDeniedException(_inner) => _inner.fmt(f),
|
1358 - | GetSnapshotBlockError::RequestThrottledException(_inner) => _inner.fmt(f),
|
1359 - | GetSnapshotBlockError::ServiceQuotaExceededException(_inner) => _inner.fmt(f),
|
1360 - | GetSnapshotBlockError::ValidationException(_inner) => _inner.fmt(f),
|
1361 - | GetSnapshotBlockError::InternalServerError(_inner) => _inner.fmt(f),
|
2617 + | /* ServerOperationErrorGenerator.kt:142 */
|
2618 + | GetSnapshotBlockError::InternalServerException(_inner) =>
|
2619 + | /* ServerOperationErrorGenerator.kt:78 */
|
2620 + | {
|
2621 + | _inner.fmt(f)
|
2622 + | }
|
2623 + | ,
|
2624 + | /* ServerOperationErrorGenerator.kt:142 */
|
2625 + | GetSnapshotBlockError::ResourceNotFoundException(_inner) =>
|
2626 + | /* ServerOperationErrorGenerator.kt:78 */
|
2627 + | {
|
2628 + | _inner.fmt(f)
|
2629 + | }
|
2630 + | ,
|
2631 + | /* ServerOperationErrorGenerator.kt:142 */
|
2632 + | GetSnapshotBlockError::AccessDeniedException(_inner) =>
|
2633 + | /* ServerOperationErrorGenerator.kt:78 */
|
2634 + | {
|
2635 + | _inner.fmt(f)
|
1362 2636 | }
|
2637 + | ,
|
2638 + | /* ServerOperationErrorGenerator.kt:142 */
|
2639 + | GetSnapshotBlockError::RequestThrottledException(_inner) =>
|
2640 + | /* ServerOperationErrorGenerator.kt:78 */
|
2641 + | {
|
2642 + | _inner.fmt(f)
|
1363 2643 | }
|
2644 + | ,
|
2645 + | /* ServerOperationErrorGenerator.kt:142 */
|
2646 + | GetSnapshotBlockError::ServiceQuotaExceededException(_inner) =>
|
2647 + | /* ServerOperationErrorGenerator.kt:78 */
|
2648 + | {
|
2649 + | _inner.fmt(f)
|
2650 + | }
|
2651 + | ,
|
2652 + | /* ServerOperationErrorGenerator.kt:142 */
|
2653 + | GetSnapshotBlockError::ValidationException(_inner) =>
|
2654 + | /* ServerOperationErrorGenerator.kt:78 */
|
2655 + | {
|
2656 + | _inner.fmt(f)
|
2657 + | }
|
2658 + | ,
|
2659 + | /* ServerOperationErrorGenerator.kt:142 */
|
2660 + | GetSnapshotBlockError::InternalServerError(_inner) =>
|
2661 + | /* ServerOperationErrorGenerator.kt:78 */
|
2662 + | {
|
2663 + | _inner.fmt(f)
|
2664 + | }
|
2665 + | /* ServerOperationErrorGenerator.kt:139 */
|
2666 + | }
|
2667 + | /* ServerOperationErrorGenerator.kt:76 */
|
2668 + | }
|
2669 + | /* ServerOperationErrorGenerator.kt:75 */
|
1364 2670 | }
|
2671 + | /* ServerOperationErrorGenerator.kt:83 */
|
1365 2672 | impl GetSnapshotBlockError {
|
2673 + | /* ServerOperationErrorGenerator.kt:87 */
|
1366 2674 | /// Returns `true` if the error kind is `GetSnapshotBlockError::InternalServerException`.
|
2675 + | /* ServerOperationErrorGenerator.kt:88 */
|
1367 2676 | pub fn is_internal_server_exception(&self) -> bool {
|
2677 + | /* ServerOperationErrorGenerator.kt:89 */
|
1368 2678 | matches!(&self, GetSnapshotBlockError::InternalServerException(_))
|
2679 + | /* ServerOperationErrorGenerator.kt:88 */
|
1369 2680 | }
|
2681 + | /* ServerOperationErrorGenerator.kt:87 */
|
1370 2682 | /// Returns `true` if the error kind is `GetSnapshotBlockError::ResourceNotFoundException`.
|
2683 + | /* ServerOperationErrorGenerator.kt:88 */
|
1371 2684 | pub fn is_resource_not_found_exception(&self) -> bool {
|
2685 + | /* ServerOperationErrorGenerator.kt:89 */
|
1372 2686 | matches!(&self, GetSnapshotBlockError::ResourceNotFoundException(_))
|
2687 + | /* ServerOperationErrorGenerator.kt:88 */
|
1373 2688 | }
|
2689 + | /* ServerOperationErrorGenerator.kt:87 */
|
1374 2690 | /// Returns `true` if the error kind is `GetSnapshotBlockError::AccessDeniedException`.
|
2691 + | /* ServerOperationErrorGenerator.kt:88 */
|
1375 2692 | pub fn is_access_denied_exception(&self) -> bool {
|
2693 + | /* ServerOperationErrorGenerator.kt:89 */
|
1376 2694 | matches!(&self, GetSnapshotBlockError::AccessDeniedException(_))
|
2695 + | /* ServerOperationErrorGenerator.kt:88 */
|
1377 2696 | }
|
2697 + | /* ServerOperationErrorGenerator.kt:87 */
|
1378 2698 | /// Returns `true` if the error kind is `GetSnapshotBlockError::RequestThrottledException`.
|
2699 + | /* ServerOperationErrorGenerator.kt:88 */
|
1379 2700 | pub fn is_request_throttled_exception(&self) -> bool {
|
2701 + | /* ServerOperationErrorGenerator.kt:89 */
|
1380 2702 | matches!(&self, GetSnapshotBlockError::RequestThrottledException(_))
|
2703 + | /* ServerOperationErrorGenerator.kt:88 */
|
1381 2704 | }
|
2705 + | /* ServerOperationErrorGenerator.kt:87 */
|
1382 2706 | /// Returns `true` if the error kind is `GetSnapshotBlockError::ServiceQuotaExceededException`.
|
2707 + | /* ServerOperationErrorGenerator.kt:88 */
|
1383 2708 | pub fn is_service_quota_exceeded_exception(&self) -> bool {
|
2709 + | /* ServerOperationErrorGenerator.kt:89 */
|
1384 2710 | matches!(
|
1385 2711 | &self,
|
1386 2712 | GetSnapshotBlockError::ServiceQuotaExceededException(_)
|
1387 2713 | )
|
2714 + | /* ServerOperationErrorGenerator.kt:88 */
|
1388 2715 | }
|
2716 + | /* ServerOperationErrorGenerator.kt:87 */
|
1389 2717 | /// Returns `true` if the error kind is `GetSnapshotBlockError::ValidationException`.
|
2718 + | /* ServerOperationErrorGenerator.kt:88 */
|
1390 2719 | pub fn is_validation_exception(&self) -> bool {
|
2720 + | /* ServerOperationErrorGenerator.kt:89 */
|
1391 2721 | matches!(&self, GetSnapshotBlockError::ValidationException(_))
|
2722 + | /* ServerOperationErrorGenerator.kt:88 */
|
1392 2723 | }
|
2724 + | /* ServerOperationErrorGenerator.kt:87 */
|
1393 2725 | /// Returns `true` if the error kind is `GetSnapshotBlockError::InternalServerError`.
|
2726 + | /* ServerOperationErrorGenerator.kt:88 */
|
1394 2727 | pub fn is_internal_server_error(&self) -> bool {
|
2728 + | /* ServerOperationErrorGenerator.kt:89 */
|
1395 2729 | matches!(&self, GetSnapshotBlockError::InternalServerError(_))
|
2730 + | /* ServerOperationErrorGenerator.kt:88 */
|
1396 2731 | }
|
2732 + | /* ServerOperationErrorGenerator.kt:92 */
|
1397 2733 | /// Returns the error name string by matching the correct variant.
|
2734 + | /* ServerOperationErrorGenerator.kt:93 */
|
1398 2735 | pub fn name(&self) -> &'static str {
|
2736 + | /* ServerOperationErrorGenerator.kt:139 */
|
1399 2737 | match &self {
|
1400 - | GetSnapshotBlockError::InternalServerException(_inner) => _inner.name(),
|
1401 - | GetSnapshotBlockError::ResourceNotFoundException(_inner) => _inner.name(),
|
1402 - | GetSnapshotBlockError::AccessDeniedException(_inner) => _inner.name(),
|
1403 - | GetSnapshotBlockError::RequestThrottledException(_inner) => _inner.name(),
|
1404 - | GetSnapshotBlockError::ServiceQuotaExceededException(_inner) => _inner.name(),
|
1405 - | GetSnapshotBlockError::ValidationException(_inner) => _inner.name(),
|
1406 - | GetSnapshotBlockError::InternalServerError(_inner) => _inner.name(),
|
2738 + | /* ServerOperationErrorGenerator.kt:142 */
|
2739 + | GetSnapshotBlockError::InternalServerException(_inner) =>
|
2740 + | /* ServerOperationErrorGenerator.kt:95 */
|
2741 + | {
|
2742 + | _inner.name()
|
2743 + | }
|
2744 + | ,
|
2745 + | /* ServerOperationErrorGenerator.kt:142 */
|
2746 + | GetSnapshotBlockError::ResourceNotFoundException(_inner) =>
|
2747 + | /* ServerOperationErrorGenerator.kt:95 */
|
2748 + | {
|
2749 + | _inner.name()
|
1407 2750 | }
|
2751 + | ,
|
2752 + | /* ServerOperationErrorGenerator.kt:142 */
|
2753 + | GetSnapshotBlockError::AccessDeniedException(_inner) =>
|
2754 + | /* ServerOperationErrorGenerator.kt:95 */
|
2755 + | {
|
2756 + | _inner.name()
|
1408 2757 | }
|
2758 + | ,
|
2759 + | /* ServerOperationErrorGenerator.kt:142 */
|
2760 + | GetSnapshotBlockError::RequestThrottledException(_inner) =>
|
2761 + | /* ServerOperationErrorGenerator.kt:95 */
|
2762 + | {
|
2763 + | _inner.name()
|
2764 + | }
|
2765 + | ,
|
2766 + | /* ServerOperationErrorGenerator.kt:142 */
|
2767 + | GetSnapshotBlockError::ServiceQuotaExceededException(_inner) =>
|
2768 + | /* ServerOperationErrorGenerator.kt:95 */
|
2769 + | {
|
2770 + | _inner.name()
|
2771 + | }
|
2772 + | ,
|
2773 + | /* ServerOperationErrorGenerator.kt:142 */
|
2774 + | GetSnapshotBlockError::ValidationException(_inner) =>
|
2775 + | /* ServerOperationErrorGenerator.kt:95 */
|
2776 + | {
|
2777 + | _inner.name()
|
2778 + | }
|
2779 + | ,
|
2780 + | /* ServerOperationErrorGenerator.kt:142 */
|
2781 + | GetSnapshotBlockError::InternalServerError(_inner) =>
|
2782 + | /* ServerOperationErrorGenerator.kt:95 */
|
2783 + | {
|
2784 + | _inner.name()
|
2785 + | }
|
2786 + | /* ServerOperationErrorGenerator.kt:139 */
|
2787 + | }
|
2788 + | /* ServerOperationErrorGenerator.kt:93 */
|
2789 + | }
|
2790 + | /* ServerOperationErrorGenerator.kt:83 */
|
1409 2791 | }
|
2792 + | /* ServerOperationErrorGenerator.kt:100 */
|
1410 2793 | impl ::std::error::Error for GetSnapshotBlockError {
|
2794 + | /* ServerOperationErrorGenerator.kt:101 */
|
1411 2795 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
2796 + | /* ServerOperationErrorGenerator.kt:139 */
|
1412 2797 | match &self {
|
1413 - | GetSnapshotBlockError::InternalServerException(_inner) => Some(_inner),
|
1414 - | GetSnapshotBlockError::ResourceNotFoundException(_inner) => Some(_inner),
|
1415 - | GetSnapshotBlockError::AccessDeniedException(_inner) => Some(_inner),
|
1416 - | GetSnapshotBlockError::RequestThrottledException(_inner) => Some(_inner),
|
1417 - | GetSnapshotBlockError::ServiceQuotaExceededException(_inner) => Some(_inner),
|
1418 - | GetSnapshotBlockError::ValidationException(_inner) => Some(_inner),
|
1419 - | GetSnapshotBlockError::InternalServerError(_inner) => Some(_inner),
|
2798 + | /* ServerOperationErrorGenerator.kt:142 */
|
2799 + | GetSnapshotBlockError::InternalServerException(_inner) =>
|
2800 + | /* ServerOperationErrorGenerator.kt:103 */
|
2801 + | {
|
2802 + | Some(_inner)
|
1420 2803 | }
|
2804 + | ,
|
2805 + | /* ServerOperationErrorGenerator.kt:142 */
|
2806 + | GetSnapshotBlockError::ResourceNotFoundException(_inner) =>
|
2807 + | /* ServerOperationErrorGenerator.kt:103 */
|
2808 + | {
|
2809 + | Some(_inner)
|
2810 + | }
|
2811 + | ,
|
2812 + | /* ServerOperationErrorGenerator.kt:142 */
|
2813 + | GetSnapshotBlockError::AccessDeniedException(_inner) =>
|
2814 + | /* ServerOperationErrorGenerator.kt:103 */
|
2815 + | {
|
2816 + | Some(_inner)
|
2817 + | }
|
2818 + | ,
|
2819 + | /* ServerOperationErrorGenerator.kt:142 */
|
2820 + | GetSnapshotBlockError::RequestThrottledException(_inner) =>
|
2821 + | /* ServerOperationErrorGenerator.kt:103 */
|
2822 + | {
|
2823 + | Some(_inner)
|
2824 + | }
|
2825 + | ,
|
2826 + | /* ServerOperationErrorGenerator.kt:142 */
|
2827 + | GetSnapshotBlockError::ServiceQuotaExceededException(_inner) =>
|
2828 + | /* ServerOperationErrorGenerator.kt:103 */
|
2829 + | {
|
2830 + | Some(_inner)
|
1421 2831 | }
|
2832 + | ,
|
2833 + | /* ServerOperationErrorGenerator.kt:142 */
|
2834 + | GetSnapshotBlockError::ValidationException(_inner) =>
|
2835 + | /* ServerOperationErrorGenerator.kt:103 */
|
2836 + | {
|
2837 + | Some(_inner)
|
2838 + | }
|
2839 + | ,
|
2840 + | /* ServerOperationErrorGenerator.kt:142 */
|
2841 + | GetSnapshotBlockError::InternalServerError(_inner) =>
|
2842 + | /* ServerOperationErrorGenerator.kt:103 */
|
2843 + | {
|
2844 + | Some(_inner)
|
2845 + | }
|
2846 + | /* ServerOperationErrorGenerator.kt:139 */
|
2847 + | }
|
2848 + | /* ServerOperationErrorGenerator.kt:101 */
|
2849 + | }
|
2850 + | /* ServerOperationErrorGenerator.kt:100 */
|
1422 2851 | }
|
2852 + | /* ServerOperationErrorGenerator.kt:110 */
|
1423 2853 | impl ::std::convert::From<crate::error::InternalServerException>
|
1424 2854 | for crate::error::GetSnapshotBlockError
|
1425 2855 | {
|
2856 + | /* ServerOperationErrorGenerator.kt:111 */
|
1426 2857 | fn from(variant: crate::error::InternalServerException) -> crate::error::GetSnapshotBlockError {
|
2858 + | /* ServerOperationErrorGenerator.kt:112 */
|
1427 2859 | Self::InternalServerException(variant)
|
2860 + | /* ServerOperationErrorGenerator.kt:111 */
|
1428 2861 | }
|
2862 + | /* ServerOperationErrorGenerator.kt:110 */
|
1429 2863 | }
|
2864 + | /* ServerOperationErrorGenerator.kt:110 */
|
1430 2865 | impl ::std::convert::From<crate::error::ResourceNotFoundException>
|
1431 2866 | for crate::error::GetSnapshotBlockError
|
1432 2867 | {
|
2868 + | /* ServerOperationErrorGenerator.kt:111 */
|
1433 2869 | fn from(
|
1434 2870 | variant: crate::error::ResourceNotFoundException,
|
1435 2871 | ) -> crate::error::GetSnapshotBlockError {
|
2872 + | /* ServerOperationErrorGenerator.kt:112 */
|
1436 2873 | Self::ResourceNotFoundException(variant)
|
2874 + | /* ServerOperationErrorGenerator.kt:111 */
|
1437 2875 | }
|
2876 + | /* ServerOperationErrorGenerator.kt:110 */
|
1438 2877 | }
|
2878 + | /* ServerOperationErrorGenerator.kt:110 */
|
1439 2879 | impl ::std::convert::From<crate::error::AccessDeniedException>
|
1440 2880 | for crate::error::GetSnapshotBlockError
|
1441 2881 | {
|
2882 + | /* ServerOperationErrorGenerator.kt:111 */
|
1442 2883 | fn from(variant: crate::error::AccessDeniedException) -> crate::error::GetSnapshotBlockError {
|
2884 + | /* ServerOperationErrorGenerator.kt:112 */
|
1443 2885 | Self::AccessDeniedException(variant)
|
2886 + | /* ServerOperationErrorGenerator.kt:111 */
|
1444 2887 | }
|
2888 + | /* ServerOperationErrorGenerator.kt:110 */
|
1445 2889 | }
|
2890 + | /* ServerOperationErrorGenerator.kt:110 */
|
1446 2891 | impl ::std::convert::From<crate::error::RequestThrottledException>
|
1447 2892 | for crate::error::GetSnapshotBlockError
|
1448 2893 | {
|
2894 + | /* ServerOperationErrorGenerator.kt:111 */
|
1449 2895 | fn from(
|
1450 2896 | variant: crate::error::RequestThrottledException,
|
1451 2897 | ) -> crate::error::GetSnapshotBlockError {
|
2898 + | /* ServerOperationErrorGenerator.kt:112 */
|
1452 2899 | Self::RequestThrottledException(variant)
|
2900 + | /* ServerOperationErrorGenerator.kt:111 */
|
1453 2901 | }
|
2902 + | /* ServerOperationErrorGenerator.kt:110 */
|
1454 2903 | }
|
2904 + | /* ServerOperationErrorGenerator.kt:110 */
|
1455 2905 | impl ::std::convert::From<crate::error::ServiceQuotaExceededException>
|
1456 2906 | for crate::error::GetSnapshotBlockError
|
1457 2907 | {
|
2908 + | /* ServerOperationErrorGenerator.kt:111 */
|
1458 2909 | fn from(
|
1459 2910 | variant: crate::error::ServiceQuotaExceededException,
|
1460 2911 | ) -> crate::error::GetSnapshotBlockError {
|
2912 + | /* ServerOperationErrorGenerator.kt:112 */
|
1461 2913 | Self::ServiceQuotaExceededException(variant)
|
2914 + | /* ServerOperationErrorGenerator.kt:111 */
|
1462 2915 | }
|
2916 + | /* ServerOperationErrorGenerator.kt:110 */
|
1463 2917 | }
|
2918 + | /* ServerOperationErrorGenerator.kt:110 */
|
1464 2919 | impl ::std::convert::From<crate::error::ValidationException>
|
1465 2920 | for crate::error::GetSnapshotBlockError
|
1466 2921 | {
|
2922 + | /* ServerOperationErrorGenerator.kt:111 */
|
1467 2923 | fn from(variant: crate::error::ValidationException) -> crate::error::GetSnapshotBlockError {
|
2924 + | /* ServerOperationErrorGenerator.kt:112 */
|
1468 2925 | Self::ValidationException(variant)
|
2926 + | /* ServerOperationErrorGenerator.kt:111 */
|
1469 2927 | }
|
2928 + | /* ServerOperationErrorGenerator.kt:110 */
|
1470 2929 | }
|
2930 + | /* ServerOperationErrorGenerator.kt:110 */
|
1471 2931 | impl ::std::convert::From<crate::error::InternalServerError>
|
1472 2932 | for crate::error::GetSnapshotBlockError
|
1473 2933 | {
|
2934 + | /* ServerOperationErrorGenerator.kt:111 */
|
1474 2935 | fn from(variant: crate::error::InternalServerError) -> crate::error::GetSnapshotBlockError {
|
2936 + | /* ServerOperationErrorGenerator.kt:112 */
|
1475 2937 | Self::InternalServerError(variant)
|
2938 + | /* ServerOperationErrorGenerator.kt:111 */
|
1476 2939 | }
|
2940 + | /* ServerOperationErrorGenerator.kt:110 */
|
1477 2941 | }
|
1478 2942 |
|
2943 + | /* PythonServerOperationErrorGenerator.kt:38 */
|
1479 2944 | impl ::std::convert::From<::pyo3::PyErr> for crate::error::GetSnapshotBlockError {
|
1480 2945 | fn from(variant: ::pyo3::PyErr) -> crate::error::GetSnapshotBlockError {
|
1481 2946 | ::pyo3::Python::with_gil(|py| {
|
1482 2947 | let error = variant.value(py);
|
1483 2948 | if let Ok(error) = error.extract::<crate::error::InternalServerException>() {
|
1484 2949 | return error.into();
|
1485 2950 | }
|
1486 2951 | if let Ok(error) = error.extract::<crate::error::ResourceNotFoundException>() {
|
1487 2952 | return error.into();
|
1488 2953 | }
|
1489 2954 | if let Ok(error) = error.extract::<crate::error::AccessDeniedException>() {
|
1490 2955 | return error.into();
|
1491 2956 | }
|
1492 2957 | if let Ok(error) = error.extract::<crate::error::RequestThrottledException>() {
|
1493 2958 | return error.into();
|
1494 2959 | }
|
1495 2960 | if let Ok(error) = error.extract::<crate::error::ServiceQuotaExceededException>() {
|
1496 2961 | return error.into();
|
1497 2962 | }
|
1498 2963 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
1499 2964 | return error.into();
|
1500 2965 | }
|
1501 2966 | crate::error::InternalServerError {
|
1502 2967 | message: error.to_string(),
|
1503 2968 | }
|
1504 2969 | .into()
|
1505 2970 | })
|
1506 2971 | }
|
1507 2972 | }
|
1508 2973 |
|
2974 + | /* ServerOperationErrorGenerator.kt:63 */
|
1509 2975 | /// Error type for the `CompleteSnapshot` operation.
|
2976 + | /* ServerOperationErrorGenerator.kt:64 */
|
1510 2977 | /// Each variant represents an error that can occur for the `CompleteSnapshot` operation.
|
2978 + | /* RustType.kt:516 */
|
1511 2979 | #[derive(::std::fmt::Debug)]
|
1512 - | pub enum CompleteSnapshotError {
|
1513 - | /// <p>An internal error has occurred.</p>
|
2980 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum CompleteSnapshotError {
|
2981 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>An internal error has occurred.</p>
|
2982 + | /* ServerOperationErrorGenerator.kt:71 */
|
1514 2983 | InternalServerException(crate::error::InternalServerException),
|
1515 - | /// <p>The specified resource does not exist.</p>
|
2984 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>The specified resource does not exist.</p>
|
2985 + | /* ServerOperationErrorGenerator.kt:71 */
|
1516 2986 | ResourceNotFoundException(crate::error::ResourceNotFoundException),
|
1517 - | /// <p>You do not have sufficient access to perform this action.</p>
|
2987 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>You do not have sufficient access to perform this action.</p>
|
2988 + | /* ServerOperationErrorGenerator.kt:71 */
|
1518 2989 | AccessDeniedException(crate::error::AccessDeniedException),
|
1519 - | /// <p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
|
2990 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
|
2991 + | /* ServerOperationErrorGenerator.kt:71 */
|
1520 2992 | RequestThrottledException(crate::error::RequestThrottledException),
|
1521 - | /// <p>Your current service quotas do not allow you to perform this action.</p>
|
2993 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>Your current service quotas do not allow you to perform this action.</p>
|
2994 + | /* ServerOperationErrorGenerator.kt:71 */
|
1522 2995 | ServiceQuotaExceededException(crate::error::ServiceQuotaExceededException),
|
1523 - | /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
2996 + | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
2997 + | /* ServerOperationErrorGenerator.kt:71 */
|
1524 2998 | ValidationException(crate::error::ValidationException),
|
2999 + | /* ServerOperationErrorGenerator.kt:68 */
|
1525 3000 | #[allow(missing_docs)] // documentation missing in model
|
3001 + | /* ServerOperationErrorGenerator.kt:71 */
|
1526 3002 | InternalServerError(crate::error::InternalServerError),
|
3003 + | /* ServerOperationErrorGenerator.kt:66 */
|
1527 3004 | }
|
3005 + | /* ServerOperationErrorGenerator.kt:75 */
|
1528 3006 | impl ::std::fmt::Display for CompleteSnapshotError {
|
3007 + | /* ServerOperationErrorGenerator.kt:76 */
|
1529 3008 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3009 + | /* ServerOperationErrorGenerator.kt:139 */
|
1530 3010 | match &self {
|
1531 - | CompleteSnapshotError::InternalServerException(_inner) => _inner.fmt(f),
|
1532 - | CompleteSnapshotError::ResourceNotFoundException(_inner) => _inner.fmt(f),
|
1533 - | CompleteSnapshotError::AccessDeniedException(_inner) => _inner.fmt(f),
|
1534 - | CompleteSnapshotError::RequestThrottledException(_inner) => _inner.fmt(f),
|
1535 - | CompleteSnapshotError::ServiceQuotaExceededException(_inner) => _inner.fmt(f),
|
1536 - | CompleteSnapshotError::ValidationException(_inner) => _inner.fmt(f),
|
1537 - | CompleteSnapshotError::InternalServerError(_inner) => _inner.fmt(f),
|
3011 + | /* ServerOperationErrorGenerator.kt:142 */
|
3012 + | CompleteSnapshotError::InternalServerException(_inner) =>
|
3013 + | /* ServerOperationErrorGenerator.kt:78 */
|
3014 + | {
|
3015 + | _inner.fmt(f)
|
3016 + | }
|
3017 + | ,
|
3018 + | /* ServerOperationErrorGenerator.kt:142 */
|
3019 + | CompleteSnapshotError::ResourceNotFoundException(_inner) =>
|
3020 + | /* ServerOperationErrorGenerator.kt:78 */
|
3021 + | {
|
3022 + | _inner.fmt(f)
|
3023 + | }
|
3024 + | ,
|
3025 + | /* ServerOperationErrorGenerator.kt:142 */
|
3026 + | CompleteSnapshotError::AccessDeniedException(_inner) =>
|
3027 + | /* ServerOperationErrorGenerator.kt:78 */
|
3028 + | {
|
3029 + | _inner.fmt(f)
|
3030 + | }
|
3031 + | ,
|
3032 + | /* ServerOperationErrorGenerator.kt:142 */
|
3033 + | CompleteSnapshotError::RequestThrottledException(_inner) =>
|
3034 + | /* ServerOperationErrorGenerator.kt:78 */
|
3035 + | {
|
3036 + | _inner.fmt(f)
|
3037 + | }
|
3038 + | ,
|
3039 + | /* ServerOperationErrorGenerator.kt:142 */
|
3040 + | CompleteSnapshotError::ServiceQuotaExceededException(_inner) =>
|
3041 + | /* ServerOperationErrorGenerator.kt:78 */
|
3042 + | {
|
3043 + | _inner.fmt(f)
|
3044 + | }
|
3045 + | ,
|
3046 + | /* ServerOperationErrorGenerator.kt:142 */
|
3047 + | CompleteSnapshotError::ValidationException(_inner) =>
|
3048 + | /* ServerOperationErrorGenerator.kt:78 */
|
3049 + | {
|
3050 + | _inner.fmt(f)
|
3051 + | }
|
3052 + | ,
|
3053 + | /* ServerOperationErrorGenerator.kt:142 */
|
3054 + | CompleteSnapshotError::InternalServerError(_inner) =>
|
3055 + | /* ServerOperationErrorGenerator.kt:78 */
|
3056 + | {
|
3057 + | _inner.fmt(f)
|
1538 3058 | }
|
3059 + | /* ServerOperationErrorGenerator.kt:139 */
|
1539 3060 | }
|
3061 + | /* ServerOperationErrorGenerator.kt:76 */
|
3062 + | }
|
3063 + | /* ServerOperationErrorGenerator.kt:75 */
|
1540 3064 | }
|
3065 + | /* ServerOperationErrorGenerator.kt:83 */
|
1541 3066 | impl CompleteSnapshotError {
|
3067 + | /* ServerOperationErrorGenerator.kt:87 */
|
1542 3068 | /// Returns `true` if the error kind is `CompleteSnapshotError::InternalServerException`.
|
3069 + | /* ServerOperationErrorGenerator.kt:88 */
|
1543 3070 | pub fn is_internal_server_exception(&self) -> bool {
|
3071 + | /* ServerOperationErrorGenerator.kt:89 */
|
1544 3072 | matches!(&self, CompleteSnapshotError::InternalServerException(_))
|
3073 + | /* ServerOperationErrorGenerator.kt:88 */
|
1545 3074 | }
|
3075 + | /* ServerOperationErrorGenerator.kt:87 */
|
1546 3076 | /// Returns `true` if the error kind is `CompleteSnapshotError::ResourceNotFoundException`.
|
3077 + | /* ServerOperationErrorGenerator.kt:88 */
|
1547 3078 | pub fn is_resource_not_found_exception(&self) -> bool {
|
3079 + | /* ServerOperationErrorGenerator.kt:89 */
|
1548 3080 | matches!(&self, CompleteSnapshotError::ResourceNotFoundException(_))
|
3081 + | /* ServerOperationErrorGenerator.kt:88 */
|
1549 3082 | }
|
3083 + | /* ServerOperationErrorGenerator.kt:87 */
|
1550 3084 | /// Returns `true` if the error kind is `CompleteSnapshotError::AccessDeniedException`.
|
3085 + | /* ServerOperationErrorGenerator.kt:88 */
|
1551 3086 | pub fn is_access_denied_exception(&self) -> bool {
|
3087 + | /* ServerOperationErrorGenerator.kt:89 */
|
1552 3088 | matches!(&self, CompleteSnapshotError::AccessDeniedException(_))
|
3089 + | /* ServerOperationErrorGenerator.kt:88 */
|
1553 3090 | }
|
3091 + | /* ServerOperationErrorGenerator.kt:87 */
|
1554 3092 | /// Returns `true` if the error kind is `CompleteSnapshotError::RequestThrottledException`.
|
3093 + | /* ServerOperationErrorGenerator.kt:88 */
|
1555 3094 | pub fn is_request_throttled_exception(&self) -> bool {
|
3095 + | /* ServerOperationErrorGenerator.kt:89 */
|
1556 3096 | matches!(&self, CompleteSnapshotError::RequestThrottledException(_))
|
3097 + | /* ServerOperationErrorGenerator.kt:88 */
|
1557 3098 | }
|
3099 + | /* ServerOperationErrorGenerator.kt:87 */
|
1558 3100 | /// Returns `true` if the error kind is `CompleteSnapshotError::ServiceQuotaExceededException`.
|
3101 + | /* ServerOperationErrorGenerator.kt:88 */
|
1559 3102 | pub fn is_service_quota_exceeded_exception(&self) -> bool {
|
3103 + | /* ServerOperationErrorGenerator.kt:89 */
|
1560 3104 | matches!(
|
1561 3105 | &self,
|
1562 3106 | CompleteSnapshotError::ServiceQuotaExceededException(_)
|
1563 3107 | )
|
3108 + | /* ServerOperationErrorGenerator.kt:88 */
|
1564 3109 | }
|
3110 + | /* ServerOperationErrorGenerator.kt:87 */
|
1565 3111 | /// Returns `true` if the error kind is `CompleteSnapshotError::ValidationException`.
|
3112 + | /* ServerOperationErrorGenerator.kt:88 */
|
1566 3113 | pub fn is_validation_exception(&self) -> bool {
|
3114 + | /* ServerOperationErrorGenerator.kt:89 */
|
1567 3115 | matches!(&self, CompleteSnapshotError::ValidationException(_))
|
3116 + | /* ServerOperationErrorGenerator.kt:88 */
|
1568 3117 | }
|
3118 + | /* ServerOperationErrorGenerator.kt:87 */
|
1569 3119 | /// Returns `true` if the error kind is `CompleteSnapshotError::InternalServerError`.
|
3120 + | /* ServerOperationErrorGenerator.kt:88 */
|
1570 3121 | pub fn is_internal_server_error(&self) -> bool {
|
3122 + | /* ServerOperationErrorGenerator.kt:89 */
|
1571 3123 | matches!(&self, CompleteSnapshotError::InternalServerError(_))
|
3124 + | /* ServerOperationErrorGenerator.kt:88 */
|
1572 3125 | }
|
3126 + | /* ServerOperationErrorGenerator.kt:92 */
|
1573 3127 | /// Returns the error name string by matching the correct variant.
|
3128 + | /* ServerOperationErrorGenerator.kt:93 */
|
1574 3129 | pub fn name(&self) -> &'static str {
|
3130 + | /* ServerOperationErrorGenerator.kt:139 */
|
1575 3131 | match &self {
|
1576 - | CompleteSnapshotError::InternalServerException(_inner) => _inner.name(),
|
1577 - | CompleteSnapshotError::ResourceNotFoundException(_inner) => _inner.name(),
|
1578 - | CompleteSnapshotError::AccessDeniedException(_inner) => _inner.name(),
|
1579 - | CompleteSnapshotError::RequestThrottledException(_inner) => _inner.name(),
|
1580 - | CompleteSnapshotError::ServiceQuotaExceededException(_inner) => _inner.name(),
|
1581 - | CompleteSnapshotError::ValidationException(_inner) => _inner.name(),
|
1582 - | CompleteSnapshotError::InternalServerError(_inner) => _inner.name(),
|
3132 + | /* ServerOperationErrorGenerator.kt:142 */
|
3133 + | CompleteSnapshotError::InternalServerException(_inner) =>
|
3134 + | /* ServerOperationErrorGenerator.kt:95 */
|
3135 + | {
|
3136 + | _inner.name()
|
3137 + | }
|
3138 + | ,
|
3139 + | /* ServerOperationErrorGenerator.kt:142 */
|
3140 + | CompleteSnapshotError::ResourceNotFoundException(_inner) =>
|
3141 + | /* ServerOperationErrorGenerator.kt:95 */
|
3142 + | {
|
3143 + | _inner.name()
|
3144 + | }
|
3145 + | ,
|
3146 + | /* ServerOperationErrorGenerator.kt:142 */
|
3147 + | CompleteSnapshotError::AccessDeniedException(_inner) =>
|
3148 + | /* ServerOperationErrorGenerator.kt:95 */
|
3149 + | {
|
3150 + | _inner.name()
|
3151 + | }
|
3152 + | ,
|
3153 + | /* ServerOperationErrorGenerator.kt:142 */
|
3154 + | CompleteSnapshotError::RequestThrottledException(_inner) =>
|
3155 + | /* ServerOperationErrorGenerator.kt:95 */
|
3156 + | {
|
3157 + | _inner.name()
|
3158 + | }
|
3159 + | ,
|
3160 + | /* ServerOperationErrorGenerator.kt:142 */
|
3161 + | CompleteSnapshotError::ServiceQuotaExceededException(_inner) =>
|
3162 + | /* ServerOperationErrorGenerator.kt:95 */
|
3163 + | {
|
3164 + | _inner.name()
|
3165 + | }
|
3166 + | ,
|
3167 + | /* ServerOperationErrorGenerator.kt:142 */
|
3168 + | CompleteSnapshotError::ValidationException(_inner) =>
|
3169 + | /* ServerOperationErrorGenerator.kt:95 */
|
3170 + | {
|
3171 + | _inner.name()
|
3172 + | }
|
3173 + | ,
|
3174 + | /* ServerOperationErrorGenerator.kt:142 */
|
3175 + | CompleteSnapshotError::InternalServerError(_inner) =>
|
3176 + | /* ServerOperationErrorGenerator.kt:95 */
|
3177 + | {
|
3178 + | _inner.name()
|
1583 3179 | }
|
3180 + | /* ServerOperationErrorGenerator.kt:139 */
|
1584 3181 | }
|
3182 + | /* ServerOperationErrorGenerator.kt:93 */
|
3183 + | }
|
3184 + | /* ServerOperationErrorGenerator.kt:83 */
|
1585 3185 | }
|
3186 + | /* ServerOperationErrorGenerator.kt:100 */
|
1586 3187 | impl ::std::error::Error for CompleteSnapshotError {
|
3188 + | /* ServerOperationErrorGenerator.kt:101 */
|
1587 3189 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
3190 + | /* ServerOperationErrorGenerator.kt:139 */
|
1588 3191 | match &self {
|
1589 - | CompleteSnapshotError::InternalServerException(_inner) => Some(_inner),
|
1590 - | CompleteSnapshotError::ResourceNotFoundException(_inner) => Some(_inner),
|
1591 - | CompleteSnapshotError::AccessDeniedException(_inner) => Some(_inner),
|
1592 - | CompleteSnapshotError::RequestThrottledException(_inner) => Some(_inner),
|
1593 - | CompleteSnapshotError::ServiceQuotaExceededException(_inner) => Some(_inner),
|
1594 - | CompleteSnapshotError::ValidationException(_inner) => Some(_inner),
|
1595 - | CompleteSnapshotError::InternalServerError(_inner) => Some(_inner),
|
3192 + | /* ServerOperationErrorGenerator.kt:142 */
|
3193 + | CompleteSnapshotError::InternalServerException(_inner) =>
|
3194 + | /* ServerOperationErrorGenerator.kt:103 */
|
3195 + | {
|
3196 + | Some(_inner)
|
1596 3197 | }
|
3198 + | ,
|
3199 + | /* ServerOperationErrorGenerator.kt:142 */
|
3200 + | CompleteSnapshotError::ResourceNotFoundException(_inner) =>
|
3201 + | /* ServerOperationErrorGenerator.kt:103 */
|
3202 + | {
|
3203 + | Some(_inner)
|
1597 3204 | }
|
3205 + | ,
|
3206 + | /* ServerOperationErrorGenerator.kt:142 */
|
3207 + | CompleteSnapshotError::AccessDeniedException(_inner) =>
|
3208 + | /* ServerOperationErrorGenerator.kt:103 */
|
3209 + | {
|
3210 + | Some(_inner)
|
3211 + | }
|
3212 + | ,
|
3213 + | /* ServerOperationErrorGenerator.kt:142 */
|
3214 + | CompleteSnapshotError::RequestThrottledException(_inner) =>
|
3215 + | /* ServerOperationErrorGenerator.kt:103 */
|
3216 + | {
|
3217 + | Some(_inner)
|
3218 + | }
|
3219 + | ,
|
3220 + | /* ServerOperationErrorGenerator.kt:142 */
|
3221 + | CompleteSnapshotError::ServiceQuotaExceededException(_inner) =>
|
3222 + | /* ServerOperationErrorGenerator.kt:103 */
|
3223 + | {
|
3224 + | Some(_inner)
|
3225 + | }
|
3226 + | ,
|
3227 + | /* ServerOperationErrorGenerator.kt:142 */
|
3228 + | CompleteSnapshotError::ValidationException(_inner) =>
|
3229 + | /* ServerOperationErrorGenerator.kt:103 */
|
3230 + | {
|
3231 + | Some(_inner)
|
3232 + | }
|
3233 + | ,
|
3234 + | /* ServerOperationErrorGenerator.kt:142 */
|
3235 + | CompleteSnapshotError::InternalServerError(_inner) =>
|
3236 + | /* ServerOperationErrorGenerator.kt:103 */
|
3237 + | {
|
3238 + | Some(_inner)
|
3239 + | }
|
3240 + | /* ServerOperationErrorGenerator.kt:139 */
|
3241 + | }
|
3242 + | /* ServerOperationErrorGenerator.kt:101 */
|
3243 + | }
|
3244 + | /* ServerOperationErrorGenerator.kt:100 */
|
1598 3245 | }
|
3246 + | /* ServerOperationErrorGenerator.kt:110 */
|
1599 3247 | impl ::std::convert::From<crate::error::InternalServerException>
|
1600 3248 | for crate::error::CompleteSnapshotError
|
1601 3249 | {
|
3250 + | /* ServerOperationErrorGenerator.kt:111 */
|
1602 3251 | fn from(variant: crate::error::InternalServerException) -> crate::error::CompleteSnapshotError {
|
3252 + | /* ServerOperationErrorGenerator.kt:112 */
|
1603 3253 | Self::InternalServerException(variant)
|
3254 + | /* ServerOperationErrorGenerator.kt:111 */
|
1604 3255 | }
|
3256 + | /* ServerOperationErrorGenerator.kt:110 */
|
1605 3257 | }
|
3258 + | /* ServerOperationErrorGenerator.kt:110 */
|
1606 3259 | impl ::std::convert::From<crate::error::ResourceNotFoundException>
|
1607 3260 | for crate::error::CompleteSnapshotError
|
1608 3261 | {
|
3262 + | /* ServerOperationErrorGenerator.kt:111 */
|
1609 3263 | fn from(
|
1610 3264 | variant: crate::error::ResourceNotFoundException,
|
1611 3265 | ) -> crate::error::CompleteSnapshotError {
|
3266 + | /* ServerOperationErrorGenerator.kt:112 */
|
1612 3267 | Self::ResourceNotFoundException(variant)
|
3268 + | /* ServerOperationErrorGenerator.kt:111 */
|
1613 3269 | }
|
3270 + | /* ServerOperationErrorGenerator.kt:110 */
|
1614 3271 | }
|
3272 + | /* ServerOperationErrorGenerator.kt:110 */
|
1615 3273 | impl ::std::convert::From<crate::error::AccessDeniedException>
|
1616 3274 | for crate::error::CompleteSnapshotError
|
1617 3275 | {
|
3276 + | /* ServerOperationErrorGenerator.kt:111 */
|
1618 3277 | fn from(variant: crate::error::AccessDeniedException) -> crate::error::CompleteSnapshotError {
|
3278 + | /* ServerOperationErrorGenerator.kt:112 */
|
1619 3279 | Self::AccessDeniedException(variant)
|
3280 + | /* ServerOperationErrorGenerator.kt:111 */
|
1620 3281 | }
|
3282 + | /* ServerOperationErrorGenerator.kt:110 */
|
1621 3283 | }
|
3284 + | /* ServerOperationErrorGenerator.kt:110 */
|
1622 3285 | impl ::std::convert::From<crate::error::RequestThrottledException>
|
1623 3286 | for crate::error::CompleteSnapshotError
|
1624 3287 | {
|
3288 + | /* ServerOperationErrorGenerator.kt:111 */
|
1625 3289 | fn from(
|
1626 3290 | variant: crate::error::RequestThrottledException,
|
1627 3291 | ) -> crate::error::CompleteSnapshotError {
|
3292 + | /* ServerOperationErrorGenerator.kt:112 */
|
1628 3293 | Self::RequestThrottledException(variant)
|
3294 + | /* ServerOperationErrorGenerator.kt:111 */
|
1629 3295 | }
|
3296 + | /* ServerOperationErrorGenerator.kt:110 */
|
1630 3297 | }
|
3298 + | /* ServerOperationErrorGenerator.kt:110 */
|
1631 3299 | impl ::std::convert::From<crate::error::ServiceQuotaExceededException>
|
1632 3300 | for crate::error::CompleteSnapshotError
|
1633 3301 | {
|
3302 + | /* ServerOperationErrorGenerator.kt:111 */
|
1634 3303 | fn from(
|
1635 3304 | variant: crate::error::ServiceQuotaExceededException,
|
1636 3305 | ) -> crate::error::CompleteSnapshotError {
|
3306 + | /* ServerOperationErrorGenerator.kt:112 */
|
1637 3307 | Self::ServiceQuotaExceededException(variant)
|
3308 + | /* ServerOperationErrorGenerator.kt:111 */
|
1638 3309 | }
|
3310 + | /* ServerOperationErrorGenerator.kt:110 */
|
1639 3311 | }
|
3312 + | /* ServerOperationErrorGenerator.kt:110 */
|
1640 3313 | impl ::std::convert::From<crate::error::ValidationException>
|
1641 3314 | for crate::error::CompleteSnapshotError
|
1642 3315 | {
|
3316 + | /* ServerOperationErrorGenerator.kt:111 */
|
1643 3317 | fn from(variant: crate::error::ValidationException) -> crate::error::CompleteSnapshotError {
|
3318 + | /* ServerOperationErrorGenerator.kt:112 */
|
1644 3319 | Self::ValidationException(variant)
|
3320 + | /* ServerOperationErrorGenerator.kt:111 */
|
1645 3321 | }
|
3322 + | /* ServerOperationErrorGenerator.kt:110 */
|
1646 3323 | }
|
3324 + | /* ServerOperationErrorGenerator.kt:110 */
|
1647 3325 | impl ::std::convert::From<crate::error::InternalServerError>
|
1648 3326 | for crate::error::CompleteSnapshotError
|
1649 3327 | {
|
3328 + | /* ServerOperationErrorGenerator.kt:111 */
|
1650 3329 | fn from(variant: crate::error::InternalServerError) -> crate::error::CompleteSnapshotError {
|
3330 + | /* ServerOperationErrorGenerator.kt:112 */
|
1651 3331 | Self::InternalServerError(variant)
|
3332 + | /* ServerOperationErrorGenerator.kt:111 */
|
1652 3333 | }
|
3334 + | /* ServerOperationErrorGenerator.kt:110 */
|
1653 3335 | }
|
1654 3336 |
|
3337 + | /* PythonServerOperationErrorGenerator.kt:38 */
|
1655 3338 | impl ::std::convert::From<::pyo3::PyErr> for crate::error::CompleteSnapshotError {
|
1656 3339 | fn from(variant: ::pyo3::PyErr) -> crate::error::CompleteSnapshotError {
|
1657 3340 | ::pyo3::Python::with_gil(|py| {
|
1658 3341 | let error = variant.value(py);
|
1659 3342 | if let Ok(error) = error.extract::<crate::error::InternalServerException>() {
|
1660 3343 | return error.into();
|
1661 3344 | }
|
1662 3345 | if let Ok(error) = error.extract::<crate::error::ResourceNotFoundException>() {
|
1663 3346 | return error.into();
|
1664 3347 | }
|
1665 3348 | if let Ok(error) = error.extract::<crate::error::AccessDeniedException>() {
|
1666 3349 | return error.into();
|
1667 3350 | }
|
1668 3351 | if let Ok(error) = error.extract::<crate::error::RequestThrottledException>() {
|
1669 3352 | return error.into();
|
1670 3353 | }
|
1671 3354 | if let Ok(error) = error.extract::<crate::error::ServiceQuotaExceededException>() {
|
1672 3355 | return error.into();
|
1673 3356 | }
|
1674 3357 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
1675 3358 | return error.into();
|
1676 3359 | }
|
1677 3360 | crate::error::InternalServerError {
|
1678 3361 | message: error.to_string(),
|
1679 3362 | }
|
1680 3363 | .into()
|
1681 3364 | })
|
1682 3365 | }
|
1683 3366 | }
|
1684 - | /// See [`InternalServerError`](crate::error::InternalServerError).
|
3367 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`InternalServerError`](crate::error::InternalServerError).
|
1685 3368 | pub mod internal_server_error {
|
1686 3369 |
|
3370 + | /* RustType.kt:516 */
|
1687 3371 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1688 - | /// Holds one variant for each of the ways the builder can fail.
|
1689 - |
|
3372 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
3373 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1690 3374 | #[allow(clippy::enum_variant_names)]
|
1691 3375 | pub enum ConstraintViolation {
|
1692 - | /// `message` was not provided but it is required when building `InternalServerError`.
|
3376 + | /// /* ServerBuilderConstraintViolations.kt:138 */`message` was not provided but it is required when building `InternalServerError`.
|
3377 + | /* ServerBuilderConstraintViolations.kt:143 */
|
1693 3378 | MissingMessage,
|
3379 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1694 3380 | }
|
3381 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1695 3382 | impl ::std::fmt::Display for ConstraintViolation {
|
3383 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1696 3384 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3385 + | /* ServerBuilderConstraintViolations.kt:119 */
|
1697 3386 | match self {
|
1698 - | ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `InternalServerError`"),
|
1699 - | }
|
3387 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `InternalServerError`"),
|
3388 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
3389 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1700 3390 | }
|
3391 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1701 3392 | }
|
3393 + | /* ServerBuilderConstraintViolations.kt:84 */
|
1702 3394 | impl ::std::error::Error for ConstraintViolation {}
|
3395 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
1703 3396 | impl ::std::convert::TryFrom<Builder> for crate::error::InternalServerError {
|
1704 3397 | type Error = ConstraintViolation;
|
1705 3398 |
|
1706 3399 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1707 3400 | builder.build()
|
1708 3401 | }
|
1709 3402 | }
|
1710 - | /// A builder for [`InternalServerError`](crate::error::InternalServerError).
|
3403 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`InternalServerError`](crate::error::InternalServerError).
|
3404 + | /* RustType.kt:516 */
|
1711 3405 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3406 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1712 3407 | pub struct Builder {
|
3408 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
1713 3409 | pub(crate) message: ::std::option::Option<::std::string::String>,
|
3410 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1714 3411 | }
|
3412 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1715 3413 | impl Builder {
|
3414 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
1716 3415 | #[allow(missing_docs)] // documentation missing in model
|
3416 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1717 3417 | pub fn message(mut self, input: ::std::string::String) -> Self {
|
1718 - | self.message = Some(input);
|
3418 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
3419 + | self.message =
|
3420 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
3421 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
3422 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
3423 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
1719 3424 | self
|
3425 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1720 3426 | }
|
1721 - | /// Consumes the builder and constructs a [`InternalServerError`](crate::error::InternalServerError).
|
1722 - | ///
|
3427 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`InternalServerError`](crate::error::InternalServerError).
|
3428 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
1723 3429 | /// The builder fails to construct a [`InternalServerError`](crate::error::InternalServerError) if you do not provide a value for all non-`Option`al members.
|
1724 3430 | ///
|
3431 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
1725 3432 | pub fn build(self) -> Result<crate::error::InternalServerError, ConstraintViolation> {
|
1726 3433 | self.build_enforcing_required_and_enum_traits()
|
1727 3434 | }
|
3435 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1728 3436 | fn build_enforcing_required_and_enum_traits(
|
1729 3437 | self,
|
1730 3438 | ) -> Result<crate::error::InternalServerError, ConstraintViolation> {
|
1731 - | Ok(crate::error::InternalServerError {
|
1732 - | message: self.message.ok_or(ConstraintViolation::MissingMessage)?,
|
1733 - | })
|
3439 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
3440 + | Ok(
|
3441 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
3442 + | crate::error::InternalServerError {
|
3443 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
3444 + | message: self
|
3445 + | .message
|
3446 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
3447 + | .ok_or(ConstraintViolation::MissingMessage)?,
|
3448 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
3449 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
3450 + | )
|
3451 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1734 3452 | }
|
3453 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1735 3454 | }
|
3455 + |
|
3456 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1736 3457 | }
|
1737 - | /// See [`ValidationException`](crate::error::ValidationException).
|
3458 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ValidationException`](crate::error::ValidationException).
|
1738 3459 | pub mod validation_exception {
|
1739 3460 |
|
3461 + | /* RustType.kt:516 */
|
1740 3462 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1741 - | /// Holds one variant for each of the ways the builder can fail.
|
1742 - |
|
3463 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
3464 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1743 3465 | #[allow(clippy::enum_variant_names)]
|
1744 3466 | pub enum ConstraintViolation {
|
1745 - | /// `message` was not provided but it is required when building `ValidationException`.
|
3467 + | /// /* ServerBuilderConstraintViolations.kt:138 */`message` was not provided but it is required when building `ValidationException`.
|
3468 + | /* ServerBuilderConstraintViolations.kt:143 */
|
1746 3469 | MissingMessage,
|
3470 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1747 3471 | }
|
3472 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1748 3473 | impl ::std::fmt::Display for ConstraintViolation {
|
3474 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1749 3475 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3476 + | /* ServerBuilderConstraintViolations.kt:119 */
|
1750 3477 | match self {
|
1751 - | ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationException`"),
|
1752 - | }
|
3478 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationException`"),
|
3479 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
3480 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1753 3481 | }
|
3482 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1754 3483 | }
|
3484 + | /* ServerBuilderConstraintViolations.kt:84 */
|
1755 3485 | impl ::std::error::Error for ConstraintViolation {}
|
3486 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
1756 3487 | impl ::std::convert::TryFrom<Builder> for crate::error::ValidationException {
|
1757 3488 | type Error = ConstraintViolation;
|
1758 3489 |
|
1759 3490 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1760 3491 | builder.build()
|
1761 3492 | }
|
1762 3493 | }
|
1763 - | /// A builder for [`ValidationException`](crate::error::ValidationException).
|
3494 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ValidationException`](crate::error::ValidationException).
|
3495 + | /* RustType.kt:516 */
|
1764 3496 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3497 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1765 3498 | pub struct Builder {
|
3499 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
1766 3500 | pub(crate) message: ::std::option::Option<::std::string::String>,
|
3501 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
1767 3502 | pub(crate) field_list:
|
1768 3503 | ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
|
3504 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1769 3505 | }
|
3506 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1770 3507 | impl Builder {
|
1771 - | /// A summary of the validation failure.
|
3508 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */A summary of the validation failure.
|
3509 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1772 3510 | pub fn message(mut self, input: ::std::string::String) -> Self {
|
1773 - | self.message = Some(input);
|
3511 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
3512 + | self.message =
|
3513 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
3514 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
3515 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
3516 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
1774 3517 | self
|
3518 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1775 3519 | }
|
1776 - | /// A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
|
3520 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
|
3521 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1777 3522 | pub fn field_list(
|
1778 3523 | mut self,
|
1779 3524 | input: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
|
1780 3525 | ) -> Self {
|
1781 - | self.field_list = input;
|
3526 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
3527 + | self.field_list =
|
3528 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
3529 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
1782 3530 | self
|
3531 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1783 3532 | }
|
1784 - | /// Consumes the builder and constructs a [`ValidationException`](crate::error::ValidationException).
|
1785 - | ///
|
3533 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ValidationException`](crate::error::ValidationException).
|
3534 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
1786 3535 | /// The builder fails to construct a [`ValidationException`](crate::error::ValidationException) if you do not provide a value for all non-`Option`al members.
|
1787 3536 | ///
|
3537 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
1788 3538 | pub fn build(self) -> Result<crate::error::ValidationException, ConstraintViolation> {
|
1789 3539 | self.build_enforcing_required_and_enum_traits()
|
1790 3540 | }
|
3541 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1791 3542 | fn build_enforcing_required_and_enum_traits(
|
1792 3543 | self,
|
1793 3544 | ) -> Result<crate::error::ValidationException, ConstraintViolation> {
|
1794 - | Ok(crate::error::ValidationException {
|
1795 - | message: self.message.ok_or(ConstraintViolation::MissingMessage)?,
|
3545 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
3546 + | Ok(
|
3547 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
3548 + | crate::error::ValidationException {
|
3549 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
3550 + | message: self
|
3551 + | .message
|
3552 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
3553 + | .ok_or(ConstraintViolation::MissingMessage)?,
|
3554 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
1796 3555 | field_list: self.field_list,
|
1797 - | })
|
3556 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
3557 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
3558 + | )
|
3559 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1798 3560 | }
|
3561 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1799 3562 | }
|
3563 + |
|
3564 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1800 3565 | }
|
1801 - | /// See [`ConcurrentLimitExceededException`](crate::error::ConcurrentLimitExceededException).
|
3566 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ConcurrentLimitExceededException`](crate::error::ConcurrentLimitExceededException).
|
1802 3567 | pub mod concurrent_limit_exceeded_exception {
|
1803 3568 |
|
3569 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
1804 3570 | impl ::std::convert::From<Builder> for crate::error::ConcurrentLimitExceededException {
|
1805 3571 | fn from(builder: Builder) -> Self {
|
1806 3572 | builder.build()
|
1807 3573 | }
|
1808 3574 | }
|
1809 - | /// A builder for [`ConcurrentLimitExceededException`](crate::error::ConcurrentLimitExceededException).
|
3575 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ConcurrentLimitExceededException`](crate::error::ConcurrentLimitExceededException).
|
3576 + | /* RustType.kt:516 */
|
1810 3577 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3578 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1811 3579 | pub struct Builder {
|
3580 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
1812 3581 | pub(crate) message: ::std::option::Option<::std::string::String>,
|
3582 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1813 3583 | }
|
3584 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1814 3585 | impl Builder {
|
3586 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
1815 3587 | #[allow(missing_docs)] // documentation missing in model
|
3588 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1816 3589 | pub fn message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
1817 - | self.message = input;
|
3590 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
3591 + | self.message =
|
3592 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
3593 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
1818 3594 | self
|
3595 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1819 3596 | }
|
1820 - | /// Consumes the builder and constructs a [`ConcurrentLimitExceededException`](crate::error::ConcurrentLimitExceededException).
|
3597 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ConcurrentLimitExceededException`](crate::error::ConcurrentLimitExceededException).
|
3598 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
1821 3599 | pub fn build(self) -> crate::error::ConcurrentLimitExceededException {
|
1822 3600 | self.build_enforcing_required_and_enum_traits()
|
1823 3601 | }
|
3602 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1824 3603 | fn build_enforcing_required_and_enum_traits(
|
1825 3604 | self,
|
1826 3605 | ) -> crate::error::ConcurrentLimitExceededException {
|
3606 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1827 3607 | crate::error::ConcurrentLimitExceededException {
|
3608 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
1828 3609 | message: self.message,
|
3610 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1829 3611 | }
|
3612 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1830 3613 | }
|
3614 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1831 3615 | }
|
3616 + |
|
3617 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1832 3618 | }
|
1833 - | /// See [`ServiceQuotaExceededException`](crate::error::ServiceQuotaExceededException).
|
3619 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ServiceQuotaExceededException`](crate::error::ServiceQuotaExceededException).
|
1834 3620 | pub mod service_quota_exceeded_exception {
|
1835 3621 |
|
3622 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
1836 3623 | impl ::std::convert::From<Builder> for crate::error::ServiceQuotaExceededException {
|
1837 3624 | fn from(builder: Builder) -> Self {
|
1838 3625 | builder.build()
|
1839 3626 | }
|
1840 3627 | }
|
1841 - | /// A builder for [`ServiceQuotaExceededException`](crate::error::ServiceQuotaExceededException).
|
3628 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ServiceQuotaExceededException`](crate::error::ServiceQuotaExceededException).
|
3629 + | /* RustType.kt:516 */
|
1842 3630 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3631 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1843 3632 | pub struct Builder {
|
3633 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
1844 3634 | pub(crate) reason: ::std::option::Option<crate::model::ServiceQuotaExceededExceptionReason>,
|
3635 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
1845 3636 | pub(crate) message: ::std::option::Option<::std::string::String>,
|
3637 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1846 3638 | }
|
3639 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1847 3640 | impl Builder {
|
1848 - | /// <p>The reason for the exception.</p>
|
3641 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */<p>The reason for the exception.</p>
|
3642 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1849 3643 | pub fn reason(
|
1850 3644 | mut self,
|
1851 3645 | input: ::std::option::Option<crate::model::ServiceQuotaExceededExceptionReason>,
|
1852 3646 | ) -> Self {
|
1853 - | self.reason = input;
|
3647 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
3648 + | self.reason =
|
3649 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
3650 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
1854 3651 | self
|
3652 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1855 3653 | }
|
3654 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
1856 3655 | #[allow(missing_docs)] // documentation missing in model
|
3656 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1857 3657 | pub fn message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
1858 - | self.message = input;
|
3658 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
3659 + | self.message =
|
3660 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
3661 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
1859 3662 | self
|
3663 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1860 3664 | }
|
1861 - | /// Consumes the builder and constructs a [`ServiceQuotaExceededException`](crate::error::ServiceQuotaExceededException).
|
3665 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ServiceQuotaExceededException`](crate::error::ServiceQuotaExceededException).
|
3666 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
1862 3667 | pub fn build(self) -> crate::error::ServiceQuotaExceededException {
|
1863 3668 | self.build_enforcing_required_and_enum_traits()
|
1864 3669 | }
|
3670 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1865 3671 | fn build_enforcing_required_and_enum_traits(
|
1866 3672 | self,
|
1867 3673 | ) -> crate::error::ServiceQuotaExceededException {
|
3674 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1868 3675 | crate::error::ServiceQuotaExceededException {
|
3676 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
1869 3677 | reason: self.reason,
|
3678 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
1870 3679 | message: self.message,
|
3680 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1871 3681 | }
|
3682 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1872 3683 | }
|
3684 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1873 3685 | }
|
3686 + |
|
3687 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1874 3688 | }
|
1875 - | /// See [`RequestThrottledException`](crate::error::RequestThrottledException).
|
3689 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`RequestThrottledException`](crate::error::RequestThrottledException).
|
1876 3690 | pub mod request_throttled_exception {
|
1877 3691 |
|
3692 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
1878 3693 | impl ::std::convert::From<Builder> for crate::error::RequestThrottledException {
|
1879 3694 | fn from(builder: Builder) -> Self {
|
1880 3695 | builder.build()
|
1881 3696 | }
|
1882 3697 | }
|
1883 - | /// A builder for [`RequestThrottledException`](crate::error::RequestThrottledException).
|
3698 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`RequestThrottledException`](crate::error::RequestThrottledException).
|
3699 + | /* RustType.kt:516 */
|
1884 3700 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3701 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1885 3702 | pub struct Builder {
|
3703 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
1886 3704 | pub(crate) message: ::std::option::Option<::std::string::String>,
|
3705 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
1887 3706 | pub(crate) reason: ::std::option::Option<crate::model::RequestThrottledExceptionReason>,
|
3707 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1888 3708 | }
|
3709 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1889 3710 | impl Builder {
|
3711 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
1890 3712 | #[allow(missing_docs)] // documentation missing in model
|
3713 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1891 3714 | pub fn message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
1892 - | self.message = input;
|
3715 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
3716 + | self.message =
|
3717 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
3718 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
1893 3719 | self
|
3720 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1894 3721 | }
|
1895 - | /// <p>The reason for the exception.</p>
|
3722 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */<p>The reason for the exception.</p>
|
3723 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1896 3724 | pub fn reason(
|
1897 3725 | mut self,
|
1898 3726 | input: ::std::option::Option<crate::model::RequestThrottledExceptionReason>,
|
1899 3727 | ) -> Self {
|
1900 - | self.reason = input;
|
3728 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
3729 + | self.reason =
|
3730 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
3731 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
1901 3732 | self
|
3733 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1902 3734 | }
|
1903 - | /// Consumes the builder and constructs a [`RequestThrottledException`](crate::error::RequestThrottledException).
|
3735 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`RequestThrottledException`](crate::error::RequestThrottledException).
|
3736 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
1904 3737 | pub fn build(self) -> crate::error::RequestThrottledException {
|
1905 3738 | self.build_enforcing_required_and_enum_traits()
|
1906 3739 | }
|
3740 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1907 3741 | fn build_enforcing_required_and_enum_traits(
|
1908 3742 | self,
|
1909 3743 | ) -> crate::error::RequestThrottledException {
|
3744 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1910 3745 | crate::error::RequestThrottledException {
|
3746 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
1911 3747 | message: self.message,
|
3748 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
1912 3749 | reason: self.reason,
|
3750 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1913 3751 | }
|
3752 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1914 3753 | }
|
3754 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1915 3755 | }
|
3756 + |
|
3757 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1916 3758 | }
|
1917 - | /// See [`ConflictException`](crate::error::ConflictException).
|
3759 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ConflictException`](crate::error::ConflictException).
|
1918 3760 | pub mod conflict_exception {
|
1919 3761 |
|
3762 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
1920 3763 | impl ::std::convert::From<Builder> for crate::error::ConflictException {
|
1921 3764 | fn from(builder: Builder) -> Self {
|
1922 3765 | builder.build()
|
1923 3766 | }
|
1924 3767 | }
|
1925 - | /// A builder for [`ConflictException`](crate::error::ConflictException).
|
3768 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ConflictException`](crate::error::ConflictException).
|
3769 + | /* RustType.kt:516 */
|
1926 3770 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3771 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1927 3772 | pub struct Builder {
|
3773 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
1928 3774 | pub(crate) message: ::std::option::Option<::std::string::String>,
|
3775 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1929 3776 | }
|
3777 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1930 3778 | impl Builder {
|
3779 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
1931 3780 | #[allow(missing_docs)] // documentation missing in model
|
3781 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1932 3782 | pub fn message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
1933 - | self.message = input;
|
3783 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
3784 + | self.message =
|
3785 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
3786 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
1934 3787 | self
|
3788 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1935 3789 | }
|
1936 - | /// Consumes the builder and constructs a [`ConflictException`](crate::error::ConflictException).
|
3790 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ConflictException`](crate::error::ConflictException).
|
3791 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
1937 3792 | pub fn build(self) -> crate::error::ConflictException {
|
1938 3793 | self.build_enforcing_required_and_enum_traits()
|
1939 3794 | }
|
3795 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1940 3796 | fn build_enforcing_required_and_enum_traits(self) -> crate::error::ConflictException {
|
3797 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1941 3798 | crate::error::ConflictException {
|
3799 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
1942 3800 | message: self.message,
|
3801 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1943 3802 | }
|
3803 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1944 3804 | }
|
3805 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1945 3806 | }
|
3807 + |
|
3808 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1946 3809 | }
|
1947 - | /// See [`AccessDeniedException`](crate::error::AccessDeniedException).
|
3810 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`AccessDeniedException`](crate::error::AccessDeniedException).
|
1948 3811 | pub mod access_denied_exception {
|
1949 3812 |
|
3813 + | /* RustType.kt:516 */
|
1950 3814 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1951 - | /// Holds one variant for each of the ways the builder can fail.
|
1952 - |
|
3815 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
3816 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1953 3817 | #[allow(clippy::enum_variant_names)]
|
1954 3818 | pub enum ConstraintViolation {
|
1955 - | /// `reason` was not provided but it is required when building `AccessDeniedException`.
|
3819 + | /// /* ServerBuilderConstraintViolations.kt:138 */`reason` was not provided but it is required when building `AccessDeniedException`.
|
3820 + | /* ServerBuilderConstraintViolations.kt:143 */
|
1956 3821 | MissingReason,
|
3822 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1957 3823 | }
|
3824 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1958 3825 | impl ::std::fmt::Display for ConstraintViolation {
|
3826 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1959 3827 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3828 + | /* ServerBuilderConstraintViolations.kt:119 */
|
1960 3829 | match self {
|
1961 - | ConstraintViolation::MissingReason => write!(f, "`reason` was not provided but it is required when building `AccessDeniedException`"),
|
1962 - | }
|
3830 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingReason => write!(f, "`reason` was not provided but it is required when building `AccessDeniedException`"),
|
3831 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
3832 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1963 3833 | }
|
3834 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1964 3835 | }
|
3836 + | /* ServerBuilderConstraintViolations.kt:84 */
|
1965 3837 | impl ::std::error::Error for ConstraintViolation {}
|
3838 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
1966 3839 | impl ::std::convert::TryFrom<Builder> for crate::error::AccessDeniedException {
|
1967 3840 | type Error = ConstraintViolation;
|
1968 3841 |
|
1969 3842 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1970 3843 | builder.build()
|
1971 3844 | }
|
1972 3845 | }
|
1973 - | /// A builder for [`AccessDeniedException`](crate::error::AccessDeniedException).
|
3846 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`AccessDeniedException`](crate::error::AccessDeniedException).
|
3847 + | /* RustType.kt:516 */
|
1974 3848 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3849 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1975 3850 | pub struct Builder {
|
3851 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
1976 3852 | pub(crate) message: ::std::option::Option<::std::string::String>,
|
3853 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
1977 3854 | pub(crate) reason: ::std::option::Option<crate::model::AccessDeniedExceptionReason>,
|
3855 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1978 3856 | }
|
3857 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1979 3858 | impl Builder {
|
3859 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
1980 3860 | #[allow(missing_docs)] // documentation missing in model
|
3861 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1981 3862 | pub fn message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
1982 - | self.message = input;
|
3863 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
3864 + | self.message =
|
3865 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
3866 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
1983 3867 | self
|
3868 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1984 3869 | }
|
1985 - | /// <p>The reason for the exception.</p>
|
3870 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */<p>The reason for the exception.</p>
|
3871 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1986 3872 | pub fn reason(mut self, input: crate::model::AccessDeniedExceptionReason) -> Self {
|
1987 - | self.reason = Some(input);
|
3873 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
3874 + | self.reason =
|
3875 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
3876 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
3877 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
3878 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
1988 3879 | self
|
3880 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1989 3881 | }
|
1990 - | /// Consumes the builder and constructs a [`AccessDeniedException`](crate::error::AccessDeniedException).
|
1991 - | ///
|
3882 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`AccessDeniedException`](crate::error::AccessDeniedException).
|
3883 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
1992 3884 | /// The builder fails to construct a [`AccessDeniedException`](crate::error::AccessDeniedException) if you do not provide a value for all non-`Option`al members.
|
1993 3885 | ///
|
3886 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
1994 3887 | pub fn build(self) -> Result<crate::error::AccessDeniedException, ConstraintViolation> {
|
1995 3888 | self.build_enforcing_required_and_enum_traits()
|
1996 3889 | }
|
3890 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1997 3891 | fn build_enforcing_required_and_enum_traits(
|
1998 3892 | self,
|
1999 3893 | ) -> Result<crate::error::AccessDeniedException, ConstraintViolation> {
|
2000 - | Ok(crate::error::AccessDeniedException {
|
3894 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
3895 + | Ok(
|
3896 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
3897 + | crate::error::AccessDeniedException {
|
3898 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
2001 3899 | message: self.message,
|
2002 - | reason: self.reason.ok_or(ConstraintViolation::MissingReason)?,
|
2003 - | })
|
3900 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
3901 + | reason: self
|
3902 + | .reason
|
3903 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
3904 + | .ok_or(ConstraintViolation::MissingReason)?,
|
3905 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
3906 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
3907 + | )
|
3908 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2004 3909 | }
|
3910 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2005 3911 | }
|
3912 + |
|
3913 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2006 3914 | }
|
2007 - | /// See [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
|
3915 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
|
2008 3916 | pub mod resource_not_found_exception {
|
2009 3917 |
|
3918 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
2010 3919 | impl ::std::convert::From<Builder> for crate::error::ResourceNotFoundException {
|
2011 3920 | fn from(builder: Builder) -> Self {
|
2012 3921 | builder.build()
|
2013 3922 | }
|
2014 3923 | }
|
2015 - | /// A builder for [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
|
3924 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
|
3925 + | /* RustType.kt:516 */
|
2016 3926 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3927 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2017 3928 | pub struct Builder {
|
3929 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
2018 3930 | pub(crate) message: ::std::option::Option<::std::string::String>,
|
3931 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
2019 3932 | pub(crate) reason: ::std::option::Option<crate::model::ResourceNotFoundExceptionReason>,
|
3933 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2020 3934 | }
|
3935 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2021 3936 | impl Builder {
|
3937 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
2022 3938 | #[allow(missing_docs)] // documentation missing in model
|
3939 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2023 3940 | pub fn message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
2024 - | self.message = input;
|
3941 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
3942 + | self.message =
|
3943 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
3944 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
2025 3945 | self
|
3946 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2026 3947 | }
|
2027 - | /// <p>The reason for the exception.</p>
|
3948 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */<p>The reason for the exception.</p>
|
3949 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2028 3950 | pub fn reason(
|
2029 3951 | mut self,
|
2030 3952 | input: ::std::option::Option<crate::model::ResourceNotFoundExceptionReason>,
|
2031 3953 | ) -> Self {
|
2032 - | self.reason = input;
|
3954 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
3955 + | self.reason =
|
3956 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
3957 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
2033 3958 | self
|
3959 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2034 3960 | }
|
2035 - | /// Consumes the builder and constructs a [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
|
3961 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
|
3962 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
2036 3963 | pub fn build(self) -> crate::error::ResourceNotFoundException {
|
2037 3964 | self.build_enforcing_required_and_enum_traits()
|
2038 3965 | }
|
3966 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2039 3967 | fn build_enforcing_required_and_enum_traits(
|
2040 3968 | self,
|
2041 3969 | ) -> crate::error::ResourceNotFoundException {
|
3970 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2042 3971 | crate::error::ResourceNotFoundException {
|
3972 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
2043 3973 | message: self.message,
|
3974 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
2044 3975 | reason: self.reason,
|
3976 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2045 3977 | }
|
3978 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2046 3979 | }
|
3980 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2047 3981 | }
|
3982 + |
|
3983 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2048 3984 | }
|
2049 - | /// See [`InternalServerException`](crate::error::InternalServerException).
|
3985 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`InternalServerException`](crate::error::InternalServerException).
|
2050 3986 | pub mod internal_server_exception {
|
2051 3987 |
|
3988 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
2052 3989 | impl ::std::convert::From<Builder> for crate::error::InternalServerException {
|
2053 3990 | fn from(builder: Builder) -> Self {
|
2054 3991 | builder.build()
|
2055 3992 | }
|
2056 3993 | }
|
2057 - | /// A builder for [`InternalServerException`](crate::error::InternalServerException).
|
3994 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`InternalServerException`](crate::error::InternalServerException).
|
3995 + | /* RustType.kt:516 */
|
2058 3996 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3997 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2059 3998 | pub struct Builder {
|
3999 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
2060 4000 | pub(crate) message: ::std::option::Option<::std::string::String>,
|
4001 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2061 4002 | }
|
4003 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2062 4004 | impl Builder {
|
4005 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
2063 4006 | #[allow(missing_docs)] // documentation missing in model
|
4007 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2064 4008 | pub fn message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
2065 - | self.message = input;
|
4009 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
4010 + | self.message =
|
4011 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
4012 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
2066 4013 | self
|
4014 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2067 4015 | }
|
2068 - | /// Consumes the builder and constructs a [`InternalServerException`](crate::error::InternalServerException).
|
4016 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`InternalServerException`](crate::error::InternalServerException).
|
4017 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
2069 4018 | pub fn build(self) -> crate::error::InternalServerException {
|
2070 4019 | self.build_enforcing_required_and_enum_traits()
|
2071 4020 | }
|
4021 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2072 4022 | fn build_enforcing_required_and_enum_traits(self) -> crate::error::InternalServerException {
|
4023 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2073 4024 | crate::error::InternalServerException {
|
4025 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
2074 4026 | message: self.message,
|
4027 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2075 4028 | }
|
4029 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2076 4030 | }
|
4031 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2077 4032 | }
|
4033 + |
|
4034 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2078 4035 | }
|