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:66 */
|
22 34 | }
|
35 + | /* ServerOperationErrorGenerator.kt:75 */
|
23 36 | impl ::std::fmt::Display for StartSnapshotError {
|
37 + | /* ServerOperationErrorGenerator.kt:76 */
|
24 38 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
39 + | /* ServerOperationErrorGenerator.kt:139 */
|
25 40 | match &self {
|
26 - | StartSnapshotError::InternalServerException(_inner) => _inner.fmt(f),
|
27 - | StartSnapshotError::ResourceNotFoundException(_inner) => _inner.fmt(f),
|
28 - | StartSnapshotError::AccessDeniedException(_inner) => _inner.fmt(f),
|
29 - | StartSnapshotError::ConflictException(_inner) => _inner.fmt(f),
|
30 - | StartSnapshotError::RequestThrottledException(_inner) => _inner.fmt(f),
|
31 - | StartSnapshotError::ServiceQuotaExceededException(_inner) => _inner.fmt(f),
|
32 - | StartSnapshotError::ConcurrentLimitExceededException(_inner) => _inner.fmt(f),
|
33 - | StartSnapshotError::ValidationException(_inner) => _inner.fmt(f),
|
41 + | /* ServerOperationErrorGenerator.kt:142 */
|
42 + | StartSnapshotError::InternalServerException(_inner) =>
|
43 + | /* ServerOperationErrorGenerator.kt:78 */
|
44 + | {
|
45 + | _inner.fmt(f)
|
46 + | }
|
47 + | ,
|
48 + | /* ServerOperationErrorGenerator.kt:142 */
|
49 + | StartSnapshotError::ResourceNotFoundException(_inner) =>
|
50 + | /* ServerOperationErrorGenerator.kt:78 */
|
51 + | {
|
52 + | _inner.fmt(f)
|
53 + | }
|
54 + | ,
|
55 + | /* ServerOperationErrorGenerator.kt:142 */
|
56 + | StartSnapshotError::AccessDeniedException(_inner) =>
|
57 + | /* ServerOperationErrorGenerator.kt:78 */
|
58 + | {
|
59 + | _inner.fmt(f)
|
60 + | }
|
61 + | ,
|
62 + | /* ServerOperationErrorGenerator.kt:142 */
|
63 + | StartSnapshotError::ConflictException(_inner) =>
|
64 + | /* ServerOperationErrorGenerator.kt:78 */
|
65 + | {
|
66 + | _inner.fmt(f)
|
67 + | }
|
68 + | ,
|
69 + | /* ServerOperationErrorGenerator.kt:142 */
|
70 + | StartSnapshotError::RequestThrottledException(_inner) =>
|
71 + | /* ServerOperationErrorGenerator.kt:78 */
|
72 + | {
|
73 + | _inner.fmt(f)
|
74 + | }
|
75 + | ,
|
76 + | /* ServerOperationErrorGenerator.kt:142 */
|
77 + | StartSnapshotError::ServiceQuotaExceededException(_inner) =>
|
78 + | /* ServerOperationErrorGenerator.kt:78 */
|
79 + | {
|
80 + | _inner.fmt(f)
|
81 + | }
|
82 + | ,
|
83 + | /* ServerOperationErrorGenerator.kt:142 */
|
84 + | StartSnapshotError::ConcurrentLimitExceededException(_inner) =>
|
85 + | /* ServerOperationErrorGenerator.kt:78 */
|
86 + | {
|
87 + | _inner.fmt(f)
|
88 + | }
|
89 + | ,
|
90 + | /* ServerOperationErrorGenerator.kt:142 */
|
91 + | StartSnapshotError::ValidationException(_inner) =>
|
92 + | /* ServerOperationErrorGenerator.kt:78 */
|
93 + | {
|
94 + | _inner.fmt(f)
|
95 + | }
|
96 + | /* ServerOperationErrorGenerator.kt:139 */
|
34 97 | }
|
98 + | /* ServerOperationErrorGenerator.kt:76 */
|
35 99 | }
|
100 + | /* ServerOperationErrorGenerator.kt:75 */
|
36 101 | }
|
102 + | /* ServerOperationErrorGenerator.kt:83 */
|
37 103 | impl StartSnapshotError {
|
104 + | /* ServerOperationErrorGenerator.kt:87 */
|
38 105 | /// Returns `true` if the error kind is `StartSnapshotError::InternalServerException`.
|
106 + | /* ServerOperationErrorGenerator.kt:88 */
|
39 107 | pub fn is_internal_server_exception(&self) -> bool {
|
108 + | /* ServerOperationErrorGenerator.kt:89 */
|
40 109 | matches!(&self, StartSnapshotError::InternalServerException(_))
|
110 + | /* ServerOperationErrorGenerator.kt:88 */
|
41 111 | }
|
112 + | /* ServerOperationErrorGenerator.kt:87 */
|
42 113 | /// Returns `true` if the error kind is `StartSnapshotError::ResourceNotFoundException`.
|
114 + | /* ServerOperationErrorGenerator.kt:88 */
|
43 115 | pub fn is_resource_not_found_exception(&self) -> bool {
|
116 + | /* ServerOperationErrorGenerator.kt:89 */
|
44 117 | matches!(&self, StartSnapshotError::ResourceNotFoundException(_))
|
118 + | /* ServerOperationErrorGenerator.kt:88 */
|
45 119 | }
|
120 + | /* ServerOperationErrorGenerator.kt:87 */
|
46 121 | /// Returns `true` if the error kind is `StartSnapshotError::AccessDeniedException`.
|
122 + | /* ServerOperationErrorGenerator.kt:88 */
|
47 123 | pub fn is_access_denied_exception(&self) -> bool {
|
124 + | /* ServerOperationErrorGenerator.kt:89 */
|
48 125 | matches!(&self, StartSnapshotError::AccessDeniedException(_))
|
126 + | /* ServerOperationErrorGenerator.kt:88 */
|
49 127 | }
|
128 + | /* ServerOperationErrorGenerator.kt:87 */
|
50 129 | /// Returns `true` if the error kind is `StartSnapshotError::ConflictException`.
|
130 + | /* ServerOperationErrorGenerator.kt:88 */
|
51 131 | pub fn is_conflict_exception(&self) -> bool {
|
132 + | /* ServerOperationErrorGenerator.kt:89 */
|
52 133 | matches!(&self, StartSnapshotError::ConflictException(_))
|
134 + | /* ServerOperationErrorGenerator.kt:88 */
|
53 135 | }
|
136 + | /* ServerOperationErrorGenerator.kt:87 */
|
54 137 | /// Returns `true` if the error kind is `StartSnapshotError::RequestThrottledException`.
|
138 + | /* ServerOperationErrorGenerator.kt:88 */
|
55 139 | pub fn is_request_throttled_exception(&self) -> bool {
|
140 + | /* ServerOperationErrorGenerator.kt:89 */
|
56 141 | matches!(&self, StartSnapshotError::RequestThrottledException(_))
|
142 + | /* ServerOperationErrorGenerator.kt:88 */
|
57 143 | }
|
144 + | /* ServerOperationErrorGenerator.kt:87 */
|
58 145 | /// Returns `true` if the error kind is `StartSnapshotError::ServiceQuotaExceededException`.
|
146 + | /* ServerOperationErrorGenerator.kt:88 */
|
59 147 | pub fn is_service_quota_exceeded_exception(&self) -> bool {
|
148 + | /* ServerOperationErrorGenerator.kt:89 */
|
60 149 | matches!(&self, StartSnapshotError::ServiceQuotaExceededException(_))
|
150 + | /* ServerOperationErrorGenerator.kt:88 */
|
61 151 | }
|
152 + | /* ServerOperationErrorGenerator.kt:87 */
|
62 153 | /// Returns `true` if the error kind is `StartSnapshotError::ConcurrentLimitExceededException`.
|
154 + | /* ServerOperationErrorGenerator.kt:88 */
|
63 155 | pub fn is_concurrent_limit_exceeded_exception(&self) -> bool {
|
156 + | /* ServerOperationErrorGenerator.kt:89 */
|
64 157 | matches!(
|
65 158 | &self,
|
66 159 | StartSnapshotError::ConcurrentLimitExceededException(_)
|
67 160 | )
|
161 + | /* ServerOperationErrorGenerator.kt:88 */
|
68 162 | }
|
163 + | /* ServerOperationErrorGenerator.kt:87 */
|
69 164 | /// Returns `true` if the error kind is `StartSnapshotError::ValidationException`.
|
165 + | /* ServerOperationErrorGenerator.kt:88 */
|
70 166 | pub fn is_validation_exception(&self) -> bool {
|
167 + | /* ServerOperationErrorGenerator.kt:89 */
|
71 168 | matches!(&self, StartSnapshotError::ValidationException(_))
|
169 + | /* ServerOperationErrorGenerator.kt:88 */
|
72 170 | }
|
171 + | /* ServerOperationErrorGenerator.kt:92 */
|
73 172 | /// Returns the error name string by matching the correct variant.
|
173 + | /* ServerOperationErrorGenerator.kt:93 */
|
74 174 | pub fn name(&self) -> &'static str {
|
175 + | /* ServerOperationErrorGenerator.kt:139 */
|
75 176 | match &self {
|
76 - | StartSnapshotError::InternalServerException(_inner) => _inner.name(),
|
77 - | StartSnapshotError::ResourceNotFoundException(_inner) => _inner.name(),
|
78 - | StartSnapshotError::AccessDeniedException(_inner) => _inner.name(),
|
79 - | StartSnapshotError::ConflictException(_inner) => _inner.name(),
|
80 - | StartSnapshotError::RequestThrottledException(_inner) => _inner.name(),
|
81 - | StartSnapshotError::ServiceQuotaExceededException(_inner) => _inner.name(),
|
82 - | StartSnapshotError::ConcurrentLimitExceededException(_inner) => _inner.name(),
|
83 - | StartSnapshotError::ValidationException(_inner) => _inner.name(),
|
177 + | /* ServerOperationErrorGenerator.kt:142 */
|
178 + | StartSnapshotError::InternalServerException(_inner) =>
|
179 + | /* ServerOperationErrorGenerator.kt:95 */
|
180 + | {
|
181 + | _inner.name()
|
182 + | }
|
183 + | ,
|
184 + | /* ServerOperationErrorGenerator.kt:142 */
|
185 + | StartSnapshotError::ResourceNotFoundException(_inner) =>
|
186 + | /* ServerOperationErrorGenerator.kt:95 */
|
187 + | {
|
188 + | _inner.name()
|
189 + | }
|
190 + | ,
|
191 + | /* ServerOperationErrorGenerator.kt:142 */
|
192 + | StartSnapshotError::AccessDeniedException(_inner) =>
|
193 + | /* ServerOperationErrorGenerator.kt:95 */
|
194 + | {
|
195 + | _inner.name()
|
196 + | }
|
197 + | ,
|
198 + | /* ServerOperationErrorGenerator.kt:142 */
|
199 + | StartSnapshotError::ConflictException(_inner) =>
|
200 + | /* ServerOperationErrorGenerator.kt:95 */
|
201 + | {
|
202 + | _inner.name()
|
203 + | }
|
204 + | ,
|
205 + | /* ServerOperationErrorGenerator.kt:142 */
|
206 + | StartSnapshotError::RequestThrottledException(_inner) =>
|
207 + | /* ServerOperationErrorGenerator.kt:95 */
|
208 + | {
|
209 + | _inner.name()
|
210 + | }
|
211 + | ,
|
212 + | /* ServerOperationErrorGenerator.kt:142 */
|
213 + | StartSnapshotError::ServiceQuotaExceededException(_inner) =>
|
214 + | /* ServerOperationErrorGenerator.kt:95 */
|
215 + | {
|
216 + | _inner.name()
|
217 + | }
|
218 + | ,
|
219 + | /* ServerOperationErrorGenerator.kt:142 */
|
220 + | StartSnapshotError::ConcurrentLimitExceededException(_inner) =>
|
221 + | /* ServerOperationErrorGenerator.kt:95 */
|
222 + | {
|
223 + | _inner.name()
|
224 + | }
|
225 + | ,
|
226 + | /* ServerOperationErrorGenerator.kt:142 */
|
227 + | StartSnapshotError::ValidationException(_inner) =>
|
228 + | /* ServerOperationErrorGenerator.kt:95 */
|
229 + | {
|
230 + | _inner.name()
|
84 231 | }
|
232 + | /* ServerOperationErrorGenerator.kt:139 */
|
85 233 | }
|
234 + | /* ServerOperationErrorGenerator.kt:93 */
|
235 + | }
|
236 + | /* ServerOperationErrorGenerator.kt:83 */
|
86 237 | }
|
238 + | /* ServerOperationErrorGenerator.kt:100 */
|
87 239 | impl ::std::error::Error for StartSnapshotError {
|
240 + | /* ServerOperationErrorGenerator.kt:101 */
|
88 241 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
242 + | /* ServerOperationErrorGenerator.kt:139 */
|
89 243 | match &self {
|
90 - | StartSnapshotError::InternalServerException(_inner) => Some(_inner),
|
91 - | StartSnapshotError::ResourceNotFoundException(_inner) => Some(_inner),
|
92 - | StartSnapshotError::AccessDeniedException(_inner) => Some(_inner),
|
93 - | StartSnapshotError::ConflictException(_inner) => Some(_inner),
|
94 - | StartSnapshotError::RequestThrottledException(_inner) => Some(_inner),
|
95 - | StartSnapshotError::ServiceQuotaExceededException(_inner) => Some(_inner),
|
96 - | StartSnapshotError::ConcurrentLimitExceededException(_inner) => Some(_inner),
|
97 - | StartSnapshotError::ValidationException(_inner) => Some(_inner),
|
244 + | /* ServerOperationErrorGenerator.kt:142 */
|
245 + | StartSnapshotError::InternalServerException(_inner) =>
|
246 + | /* ServerOperationErrorGenerator.kt:103 */
|
247 + | {
|
248 + | Some(_inner)
|
249 + | }
|
250 + | ,
|
251 + | /* ServerOperationErrorGenerator.kt:142 */
|
252 + | StartSnapshotError::ResourceNotFoundException(_inner) =>
|
253 + | /* ServerOperationErrorGenerator.kt:103 */
|
254 + | {
|
255 + | Some(_inner)
|
256 + | }
|
257 + | ,
|
258 + | /* ServerOperationErrorGenerator.kt:142 */
|
259 + | StartSnapshotError::AccessDeniedException(_inner) =>
|
260 + | /* ServerOperationErrorGenerator.kt:103 */
|
261 + | {
|
262 + | Some(_inner)
|
263 + | }
|
264 + | ,
|
265 + | /* ServerOperationErrorGenerator.kt:142 */
|
266 + | StartSnapshotError::ConflictException(_inner) =>
|
267 + | /* ServerOperationErrorGenerator.kt:103 */
|
268 + | {
|
269 + | Some(_inner)
|
270 + | }
|
271 + | ,
|
272 + | /* ServerOperationErrorGenerator.kt:142 */
|
273 + | StartSnapshotError::RequestThrottledException(_inner) =>
|
274 + | /* ServerOperationErrorGenerator.kt:103 */
|
275 + | {
|
276 + | Some(_inner)
|
277 + | }
|
278 + | ,
|
279 + | /* ServerOperationErrorGenerator.kt:142 */
|
280 + | StartSnapshotError::ServiceQuotaExceededException(_inner) =>
|
281 + | /* ServerOperationErrorGenerator.kt:103 */
|
282 + | {
|
283 + | Some(_inner)
|
284 + | }
|
285 + | ,
|
286 + | /* ServerOperationErrorGenerator.kt:142 */
|
287 + | StartSnapshotError::ConcurrentLimitExceededException(_inner) =>
|
288 + | /* ServerOperationErrorGenerator.kt:103 */
|
289 + | {
|
290 + | Some(_inner)
|
291 + | }
|
292 + | ,
|
293 + | /* ServerOperationErrorGenerator.kt:142 */
|
294 + | StartSnapshotError::ValidationException(_inner) =>
|
295 + | /* ServerOperationErrorGenerator.kt:103 */
|
296 + | {
|
297 + | Some(_inner)
|
298 + | }
|
299 + | /* ServerOperationErrorGenerator.kt:139 */
|
98 300 | }
|
301 + | /* ServerOperationErrorGenerator.kt:101 */
|
99 302 | }
|
303 + | /* ServerOperationErrorGenerator.kt:100 */
|
100 304 | }
|
305 + | /* ServerOperationErrorGenerator.kt:110 */
|
101 306 | impl ::std::convert::From<crate::error::InternalServerException>
|
102 307 | for crate::error::StartSnapshotError
|
103 308 | {
|
309 + | /* ServerOperationErrorGenerator.kt:111 */
|
104 310 | fn from(variant: crate::error::InternalServerException) -> crate::error::StartSnapshotError {
|
311 + | /* ServerOperationErrorGenerator.kt:112 */
|
105 312 | Self::InternalServerException(variant)
|
313 + | /* ServerOperationErrorGenerator.kt:111 */
|
106 314 | }
|
315 + | /* ServerOperationErrorGenerator.kt:110 */
|
107 316 | }
|
317 + | /* ServerOperationErrorGenerator.kt:110 */
|
108 318 | impl ::std::convert::From<crate::error::ResourceNotFoundException>
|
109 319 | for crate::error::StartSnapshotError
|
110 320 | {
|
321 + | /* ServerOperationErrorGenerator.kt:111 */
|
111 322 | fn from(variant: crate::error::ResourceNotFoundException) -> crate::error::StartSnapshotError {
|
323 + | /* ServerOperationErrorGenerator.kt:112 */
|
112 324 | Self::ResourceNotFoundException(variant)
|
325 + | /* ServerOperationErrorGenerator.kt:111 */
|
113 326 | }
|
327 + | /* ServerOperationErrorGenerator.kt:110 */
|
114 328 | }
|
329 + | /* ServerOperationErrorGenerator.kt:110 */
|
115 330 | impl ::std::convert::From<crate::error::AccessDeniedException>
|
116 331 | for crate::error::StartSnapshotError
|
117 332 | {
|
333 + | /* ServerOperationErrorGenerator.kt:111 */
|
118 334 | fn from(variant: crate::error::AccessDeniedException) -> crate::error::StartSnapshotError {
|
335 + | /* ServerOperationErrorGenerator.kt:112 */
|
119 336 | Self::AccessDeniedException(variant)
|
337 + | /* ServerOperationErrorGenerator.kt:111 */
|
120 338 | }
|
339 + | /* ServerOperationErrorGenerator.kt:110 */
|
121 340 | }
|
341 + | /* ServerOperationErrorGenerator.kt:110 */
|
122 342 | impl ::std::convert::From<crate::error::ConflictException> for crate::error::StartSnapshotError {
|
343 + | /* ServerOperationErrorGenerator.kt:111 */
|
123 344 | fn from(variant: crate::error::ConflictException) -> crate::error::StartSnapshotError {
|
345 + | /* ServerOperationErrorGenerator.kt:112 */
|
124 346 | Self::ConflictException(variant)
|
347 + | /* ServerOperationErrorGenerator.kt:111 */
|
125 348 | }
|
349 + | /* ServerOperationErrorGenerator.kt:110 */
|
126 350 | }
|
351 + | /* ServerOperationErrorGenerator.kt:110 */
|
127 352 | impl ::std::convert::From<crate::error::RequestThrottledException>
|
128 353 | for crate::error::StartSnapshotError
|
129 354 | {
|
355 + | /* ServerOperationErrorGenerator.kt:111 */
|
130 356 | fn from(variant: crate::error::RequestThrottledException) -> crate::error::StartSnapshotError {
|
357 + | /* ServerOperationErrorGenerator.kt:112 */
|
131 358 | Self::RequestThrottledException(variant)
|
359 + | /* ServerOperationErrorGenerator.kt:111 */
|
132 360 | }
|
361 + | /* ServerOperationErrorGenerator.kt:110 */
|
133 362 | }
|
363 + | /* ServerOperationErrorGenerator.kt:110 */
|
134 364 | impl ::std::convert::From<crate::error::ServiceQuotaExceededException>
|
135 365 | for crate::error::StartSnapshotError
|
136 366 | {
|
367 + | /* ServerOperationErrorGenerator.kt:111 */
|
137 368 | fn from(
|
138 369 | variant: crate::error::ServiceQuotaExceededException,
|
139 370 | ) -> crate::error::StartSnapshotError {
|
371 + | /* ServerOperationErrorGenerator.kt:112 */
|
140 372 | Self::ServiceQuotaExceededException(variant)
|
373 + | /* ServerOperationErrorGenerator.kt:111 */
|
141 374 | }
|
375 + | /* ServerOperationErrorGenerator.kt:110 */
|
142 376 | }
|
377 + | /* ServerOperationErrorGenerator.kt:110 */
|
143 378 | impl ::std::convert::From<crate::error::ConcurrentLimitExceededException>
|
144 379 | for crate::error::StartSnapshotError
|
145 380 | {
|
381 + | /* ServerOperationErrorGenerator.kt:111 */
|
146 382 | fn from(
|
147 383 | variant: crate::error::ConcurrentLimitExceededException,
|
148 384 | ) -> crate::error::StartSnapshotError {
|
385 + | /* ServerOperationErrorGenerator.kt:112 */
|
149 386 | Self::ConcurrentLimitExceededException(variant)
|
387 + | /* ServerOperationErrorGenerator.kt:111 */
|
150 388 | }
|
389 + | /* ServerOperationErrorGenerator.kt:110 */
|
151 390 | }
|
391 + | /* ServerOperationErrorGenerator.kt:110 */
|
152 392 | impl ::std::convert::From<crate::error::ValidationException> for crate::error::StartSnapshotError {
|
393 + | /* ServerOperationErrorGenerator.kt:111 */
|
153 394 | fn from(variant: crate::error::ValidationException) -> crate::error::StartSnapshotError {
|
395 + | /* ServerOperationErrorGenerator.kt:112 */
|
154 396 | Self::ValidationException(variant)
|
397 + | /* ServerOperationErrorGenerator.kt:111 */
|
155 398 | }
|
399 + | /* ServerOperationErrorGenerator.kt:110 */
|
156 400 | }
|
157 401 |
|
158 - | /// 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.
|
402 + | /// /* 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.
|
403 + | /* RustType.kt:516 */
|
159 404 | #[derive(
|
160 405 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
161 406 | )]
|
162 - | pub struct ValidationException {
|
163 - | /// A summary of the validation failure.
|
407 + | pub /* StructureGenerator.kt:201 */ struct ValidationException {
|
408 + | /// /* StructureGenerator.kt:231 */A summary of the validation failure.
|
164 409 | pub message: ::std::string::String,
|
165 - | /// 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.
|
410 + | /// /* 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.
|
166 411 | pub field_list: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
|
412 + | /* StructureGenerator.kt:201 */
|
167 413 | }
|
414 + | /* StructureGenerator.kt:135 */
|
168 415 | impl ValidationException {
|
169 - | /// 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.
|
416 + | /// /* 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.
|
417 + | /* StructureGenerator.kt:166 */
|
170 418 | pub fn field_list(&self) -> ::std::option::Option<&[crate::model::ValidationExceptionField]> {
|
419 + | /* StructureGenerator.kt:169 */
|
171 420 | self.field_list.as_deref()
|
421 + | /* StructureGenerator.kt:166 */
|
172 422 | }
|
423 + | /* StructureGenerator.kt:135 */
|
173 424 | }
|
425 + | /* ErrorImplGenerator.kt:99 */
|
174 426 | impl ValidationException {
|
427 + | /* ErrorImplGenerator.kt:128 */
|
175 428 | /// Returns the error message.
|
176 429 | pub fn message(&self) -> &str {
|
177 430 | &self.message
|
178 431 | }
|
432 + | /* ErrorImplGenerator.kt:141 */
|
179 433 | #[doc(hidden)]
|
180 434 | /// Returns the error name.
|
181 435 | pub fn name(&self) -> &'static str {
|
182 436 | "ValidationException"
|
183 437 | }
|
438 + | /* ErrorImplGenerator.kt:99 */
|
184 439 | }
|
440 + | /* ErrorImplGenerator.kt:153 */
|
185 441 | impl ::std::fmt::Display for ValidationException {
|
442 + | /* ErrorImplGenerator.kt:154 */
|
186 443 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
444 + | /* ErrorImplGenerator.kt:161 */
|
187 445 | ::std::write!(f, "ValidationException")?;
|
446 + | /* ErrorImplGenerator.kt:166 */
|
188 447 | {
|
448 + | /* ErrorImplGenerator.kt:167 */
|
189 449 | ::std::write!(f, ": {}", &self.message)?;
|
450 + | /* ErrorImplGenerator.kt:166 */
|
190 451 | }
|
452 + | /* ErrorImplGenerator.kt:171 */
|
191 453 | Ok(())
|
454 + | /* ErrorImplGenerator.kt:154 */
|
192 455 | }
|
456 + | /* ErrorImplGenerator.kt:153 */
|
193 457 | }
|
458 + | /* ErrorImplGenerator.kt:175 */
|
194 459 | impl ::std::error::Error for ValidationException {}
|
460 + | /* ServerCodegenVisitor.kt:345 */
|
195 461 | impl ValidationException {
|
196 - | /// Creates a new builder-style object to manufacture [`ValidationException`](crate::error::ValidationException).
|
462 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ValidationException`](crate::error::ValidationException).
|
463 + | /* ServerBuilderGenerator.kt:295 */
|
197 464 | pub fn builder() -> crate::error::validation_exception::Builder {
|
465 + | /* ServerBuilderGenerator.kt:296 */
|
198 466 | crate::error::validation_exception::Builder::default()
|
467 + | /* ServerBuilderGenerator.kt:295 */
|
199 468 | }
|
469 + | /* ServerCodegenVisitor.kt:345 */
|
200 470 | }
|
201 471 |
|
202 - | /// <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>
|
472 + | /// /* 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>
|
473 + | /* RustType.kt:516 */
|
203 474 | #[derive(
|
204 475 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
205 476 | )]
|
206 - | pub struct ConcurrentLimitExceededException {
|
477 + | pub /* StructureGenerator.kt:201 */ struct ConcurrentLimitExceededException {
|
478 + | /* StructureGenerator.kt:231 */
|
207 479 | #[allow(missing_docs)] // documentation missing in model
|
208 480 | pub message: ::std::option::Option<crate::model::ErrorMessage>,
|
481 + | /* StructureGenerator.kt:201 */
|
209 482 | }
|
483 + | /* ErrorImplGenerator.kt:99 */
|
210 484 | impl ConcurrentLimitExceededException {
|
485 + | /* ErrorImplGenerator.kt:128 */
|
211 486 | /// Returns the error message.
|
212 487 | pub fn message(&self) -> Option<&crate::model::ErrorMessage> {
|
213 488 | self.message.as_ref()
|
214 489 | }
|
490 + | /* ErrorImplGenerator.kt:141 */
|
215 491 | #[doc(hidden)]
|
216 492 | /// Returns the error name.
|
217 493 | pub fn name(&self) -> &'static str {
|
218 494 | "ConcurrentLimitExceededException"
|
219 495 | }
|
496 + | /* ErrorImplGenerator.kt:99 */
|
220 497 | }
|
498 + | /* ErrorImplGenerator.kt:153 */
|
221 499 | impl ::std::fmt::Display for ConcurrentLimitExceededException {
|
500 + | /* ErrorImplGenerator.kt:154 */
|
222 501 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
502 + | /* ErrorImplGenerator.kt:161 */
|
223 503 | ::std::write!(f, "ConcurrentLimitExceededException")?;
|
504 + | /* ErrorImplGenerator.kt:166 */
|
224 505 | if let ::std::option::Option::Some(inner_1) = &self.message {
|
506 + | /* ErrorImplGenerator.kt:166 */
|
225 507 | {
|
508 + | /* ErrorImplGenerator.kt:167 */
|
226 509 | ::std::write!(f, ": {}", inner_1)?;
|
510 + | /* ErrorImplGenerator.kt:166 */
|
227 511 | }
|
512 + | /* ErrorImplGenerator.kt:166 */
|
228 513 | }
|
514 + | /* ErrorImplGenerator.kt:171 */
|
229 515 | Ok(())
|
516 + | /* ErrorImplGenerator.kt:154 */
|
230 517 | }
|
518 + | /* ErrorImplGenerator.kt:153 */
|
231 519 | }
|
520 + | /* ErrorImplGenerator.kt:175 */
|
232 521 | impl ::std::error::Error for ConcurrentLimitExceededException {}
|
522 + | /* ServerCodegenVisitor.kt:345 */
|
233 523 | impl ConcurrentLimitExceededException {
|
234 - | /// Creates a new builder-style object to manufacture [`ConcurrentLimitExceededException`](crate::error::ConcurrentLimitExceededException).
|
524 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ConcurrentLimitExceededException`](crate::error::ConcurrentLimitExceededException).
|
525 + | /* ServerBuilderGenerator.kt:295 */
|
235 526 | pub fn builder() -> crate::error::concurrent_limit_exceeded_exception::Builder {
|
527 + | /* ServerBuilderGenerator.kt:296 */
|
236 528 | crate::error::concurrent_limit_exceeded_exception::Builder::default()
|
529 + | /* ServerBuilderGenerator.kt:295 */
|
237 530 | }
|
531 + | /* ServerCodegenVisitor.kt:345 */
|
238 532 | }
|
239 533 |
|
240 - | /// <p>Your current service quotas do not allow you to perform this action.</p>
|
534 + | /// /* StructureGenerator.kt:197 */<p>Your current service quotas do not allow you to perform this action.</p>
|
535 + | /* RustType.kt:516 */
|
241 536 | #[derive(
|
242 537 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
243 538 | )]
|
244 - | pub struct ServiceQuotaExceededException {
|
245 - | /// <p>The reason for the exception.</p>
|
539 + | pub /* StructureGenerator.kt:201 */ struct ServiceQuotaExceededException {
|
540 + | /// /* StructureGenerator.kt:231 */<p>The reason for the exception.</p>
|
246 541 | pub reason: ::std::option::Option<crate::model::ServiceQuotaExceededExceptionReason>,
|
542 + | /* StructureGenerator.kt:231 */
|
247 543 | #[allow(missing_docs)] // documentation missing in model
|
248 544 | pub message: ::std::option::Option<crate::model::ErrorMessage>,
|
545 + | /* StructureGenerator.kt:201 */
|
249 546 | }
|
547 + | /* StructureGenerator.kt:135 */
|
250 548 | impl ServiceQuotaExceededException {
|
251 - | /// <p>The reason for the exception.</p>
|
549 + | /// /* StructureGenerator.kt:231 */<p>The reason for the exception.</p>
|
550 + | /* StructureGenerator.kt:166 */
|
252 551 | pub fn reason(
|
253 552 | &self,
|
254 553 | ) -> ::std::option::Option<&crate::model::ServiceQuotaExceededExceptionReason> {
|
554 + | /* StructureGenerator.kt:170 */
|
255 555 | self.reason.as_ref()
|
556 + | /* StructureGenerator.kt:166 */
|
256 557 | }
|
558 + | /* StructureGenerator.kt:135 */
|
257 559 | }
|
560 + | /* ErrorImplGenerator.kt:99 */
|
258 561 | impl ServiceQuotaExceededException {
|
562 + | /* ErrorImplGenerator.kt:128 */
|
259 563 | /// Returns the error message.
|
260 564 | pub fn message(&self) -> Option<&crate::model::ErrorMessage> {
|
261 565 | self.message.as_ref()
|
262 566 | }
|
567 + | /* ErrorImplGenerator.kt:141 */
|
263 568 | #[doc(hidden)]
|
264 569 | /// Returns the error name.
|
265 570 | pub fn name(&self) -> &'static str {
|
266 571 | "ServiceQuotaExceededException"
|
267 572 | }
|
573 + | /* ErrorImplGenerator.kt:99 */
|
268 574 | }
|
575 + | /* ErrorImplGenerator.kt:153 */
|
269 576 | impl ::std::fmt::Display for ServiceQuotaExceededException {
|
577 + | /* ErrorImplGenerator.kt:154 */
|
270 578 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
579 + | /* ErrorImplGenerator.kt:161 */
|
271 580 | ::std::write!(f, "ServiceQuotaExceededException")?;
|
581 + | /* ErrorImplGenerator.kt:166 */
|
272 582 | if let ::std::option::Option::Some(inner_2) = &self.message {
|
583 + | /* ErrorImplGenerator.kt:166 */
|
273 584 | {
|
585 + | /* ErrorImplGenerator.kt:167 */
|
274 586 | ::std::write!(f, ": {}", inner_2)?;
|
587 + | /* ErrorImplGenerator.kt:166 */
|
275 588 | }
|
589 + | /* ErrorImplGenerator.kt:166 */
|
276 590 | }
|
591 + | /* ErrorImplGenerator.kt:171 */
|
277 592 | Ok(())
|
593 + | /* ErrorImplGenerator.kt:154 */
|
278 594 | }
|
595 + | /* ErrorImplGenerator.kt:153 */
|
279 596 | }
|
597 + | /* ErrorImplGenerator.kt:175 */
|
280 598 | impl ::std::error::Error for ServiceQuotaExceededException {}
|
599 + | /* ServerCodegenVisitor.kt:345 */
|
281 600 | impl ServiceQuotaExceededException {
|
282 - | /// Creates a new builder-style object to manufacture [`ServiceQuotaExceededException`](crate::error::ServiceQuotaExceededException).
|
601 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ServiceQuotaExceededException`](crate::error::ServiceQuotaExceededException).
|
602 + | /* ServerBuilderGenerator.kt:295 */
|
283 603 | pub fn builder() -> crate::error::service_quota_exceeded_exception::Builder {
|
604 + | /* ServerBuilderGenerator.kt:296 */
|
284 605 | crate::error::service_quota_exceeded_exception::Builder::default()
|
606 + | /* ServerBuilderGenerator.kt:295 */
|
285 607 | }
|
608 + | /* ServerCodegenVisitor.kt:345 */
|
286 609 | }
|
287 610 |
|
288 - | /// <p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
|
611 + | /// /* StructureGenerator.kt:197 */<p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
|
612 + | /* RustType.kt:516 */
|
289 613 | #[derive(
|
290 614 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
291 615 | )]
|
292 - | pub struct RequestThrottledException {
|
616 + | pub /* StructureGenerator.kt:201 */ struct RequestThrottledException {
|
617 + | /* StructureGenerator.kt:231 */
|
293 618 | #[allow(missing_docs)] // documentation missing in model
|
294 619 | pub message: ::std::option::Option<crate::model::ErrorMessage>,
|
295 - | /// <p>The reason for the exception.</p>
|
620 + | /// /* StructureGenerator.kt:231 */<p>The reason for the exception.</p>
|
296 621 | pub reason: ::std::option::Option<crate::model::RequestThrottledExceptionReason>,
|
622 + | /* StructureGenerator.kt:201 */
|
297 623 | }
|
624 + | /* StructureGenerator.kt:135 */
|
298 625 | impl RequestThrottledException {
|
299 - | /// <p>The reason for the exception.</p>
|
626 + | /// /* StructureGenerator.kt:231 */<p>The reason for the exception.</p>
|
627 + | /* StructureGenerator.kt:166 */
|
300 628 | pub fn reason(&self) -> ::std::option::Option<&crate::model::RequestThrottledExceptionReason> {
|
629 + | /* StructureGenerator.kt:170 */
|
301 630 | self.reason.as_ref()
|
631 + | /* StructureGenerator.kt:166 */
|
302 632 | }
|
633 + | /* StructureGenerator.kt:135 */
|
303 634 | }
|
635 + | /* ErrorImplGenerator.kt:99 */
|
304 636 | impl RequestThrottledException {
|
637 + | /* ErrorImplGenerator.kt:128 */
|
305 638 | /// Returns the error message.
|
306 639 | pub fn message(&self) -> Option<&crate::model::ErrorMessage> {
|
307 640 | self.message.as_ref()
|
308 641 | }
|
642 + | /* ErrorImplGenerator.kt:141 */
|
309 643 | #[doc(hidden)]
|
310 644 | /// Returns the error name.
|
311 645 | pub fn name(&self) -> &'static str {
|
312 646 | "RequestThrottledException"
|
313 647 | }
|
648 + | /* ErrorImplGenerator.kt:99 */
|
314 649 | }
|
650 + | /* ErrorImplGenerator.kt:153 */
|
315 651 | impl ::std::fmt::Display for RequestThrottledException {
|
652 + | /* ErrorImplGenerator.kt:154 */
|
316 653 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
654 + | /* ErrorImplGenerator.kt:161 */
|
317 655 | ::std::write!(f, "RequestThrottledException")?;
|
656 + | /* ErrorImplGenerator.kt:166 */
|
318 657 | if let ::std::option::Option::Some(inner_3) = &self.message {
|
658 + | /* ErrorImplGenerator.kt:166 */
|
319 659 | {
|
660 + | /* ErrorImplGenerator.kt:167 */
|
320 661 | ::std::write!(f, ": {}", inner_3)?;
|
662 + | /* ErrorImplGenerator.kt:166 */
|
321 663 | }
|
664 + | /* ErrorImplGenerator.kt:166 */
|
322 665 | }
|
666 + | /* ErrorImplGenerator.kt:171 */
|
323 667 | Ok(())
|
668 + | /* ErrorImplGenerator.kt:154 */
|
324 669 | }
|
670 + | /* ErrorImplGenerator.kt:153 */
|
325 671 | }
|
672 + | /* ErrorImplGenerator.kt:175 */
|
326 673 | impl ::std::error::Error for RequestThrottledException {}
|
674 + | /* ServerCodegenVisitor.kt:345 */
|
327 675 | impl RequestThrottledException {
|
328 - | /// Creates a new builder-style object to manufacture [`RequestThrottledException`](crate::error::RequestThrottledException).
|
676 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`RequestThrottledException`](crate::error::RequestThrottledException).
|
677 + | /* ServerBuilderGenerator.kt:295 */
|
329 678 | pub fn builder() -> crate::error::request_throttled_exception::Builder {
|
679 + | /* ServerBuilderGenerator.kt:296 */
|
330 680 | crate::error::request_throttled_exception::Builder::default()
|
681 + | /* ServerBuilderGenerator.kt:295 */
|
331 682 | }
|
683 + | /* ServerCodegenVisitor.kt:345 */
|
332 684 | }
|
333 685 |
|
334 - | /// <p>The request uses the same client token as a previous, but non-identical request.</p>
|
686 + | /// /* StructureGenerator.kt:197 */<p>The request uses the same client token as a previous, but non-identical request.</p>
|
687 + | /* RustType.kt:516 */
|
335 688 | #[derive(
|
336 689 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
337 690 | )]
|
338 - | pub struct ConflictException {
|
691 + | pub /* StructureGenerator.kt:201 */ struct ConflictException {
|
692 + | /* StructureGenerator.kt:231 */
|
339 693 | #[allow(missing_docs)] // documentation missing in model
|
340 694 | pub message: ::std::option::Option<crate::model::ErrorMessage>,
|
695 + | /* StructureGenerator.kt:201 */
|
341 696 | }
|
697 + | /* ErrorImplGenerator.kt:99 */
|
342 698 | impl ConflictException {
|
699 + | /* ErrorImplGenerator.kt:128 */
|
343 700 | /// Returns the error message.
|
344 701 | pub fn message(&self) -> Option<&crate::model::ErrorMessage> {
|
345 702 | self.message.as_ref()
|
346 703 | }
|
704 + | /* ErrorImplGenerator.kt:141 */
|
347 705 | #[doc(hidden)]
|
348 706 | /// Returns the error name.
|
349 707 | pub fn name(&self) -> &'static str {
|
350 708 | "ConflictException"
|
351 709 | }
|
710 + | /* ErrorImplGenerator.kt:99 */
|
352 711 | }
|
712 + | /* ErrorImplGenerator.kt:153 */
|
353 713 | impl ::std::fmt::Display for ConflictException {
|
714 + | /* ErrorImplGenerator.kt:154 */
|
354 715 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
716 + | /* ErrorImplGenerator.kt:161 */
|
355 717 | ::std::write!(f, "ConflictException")?;
|
718 + | /* ErrorImplGenerator.kt:166 */
|
356 719 | if let ::std::option::Option::Some(inner_4) = &self.message {
|
720 + | /* ErrorImplGenerator.kt:166 */
|
357 721 | {
|
722 + | /* ErrorImplGenerator.kt:167 */
|
358 723 | ::std::write!(f, ": {}", inner_4)?;
|
724 + | /* ErrorImplGenerator.kt:166 */
|
359 725 | }
|
726 + | /* ErrorImplGenerator.kt:166 */
|
360 727 | }
|
728 + | /* ErrorImplGenerator.kt:171 */
|
361 729 | Ok(())
|
730 + | /* ErrorImplGenerator.kt:154 */
|
362 731 | }
|
732 + | /* ErrorImplGenerator.kt:153 */
|
363 733 | }
|
734 + | /* ErrorImplGenerator.kt:175 */
|
364 735 | impl ::std::error::Error for ConflictException {}
|
736 + | /* ServerCodegenVisitor.kt:345 */
|
365 737 | impl ConflictException {
|
366 - | /// Creates a new builder-style object to manufacture [`ConflictException`](crate::error::ConflictException).
|
738 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ConflictException`](crate::error::ConflictException).
|
739 + | /* ServerBuilderGenerator.kt:295 */
|
367 740 | pub fn builder() -> crate::error::conflict_exception::Builder {
|
741 + | /* ServerBuilderGenerator.kt:296 */
|
368 742 | crate::error::conflict_exception::Builder::default()
|
743 + | /* ServerBuilderGenerator.kt:295 */
|
369 744 | }
|
745 + | /* ServerCodegenVisitor.kt:345 */
|
370 746 | }
|
371 747 |
|
372 - | /// <p>You do not have sufficient access to perform this action.</p>
|
748 + | /// /* StructureGenerator.kt:197 */<p>You do not have sufficient access to perform this action.</p>
|
749 + | /* RustType.kt:516 */
|
373 750 | #[derive(
|
374 751 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
375 752 | )]
|
376 - | pub struct AccessDeniedException {
|
753 + | pub /* StructureGenerator.kt:201 */ struct AccessDeniedException {
|
754 + | /* StructureGenerator.kt:231 */
|
377 755 | #[allow(missing_docs)] // documentation missing in model
|
378 756 | pub message: ::std::option::Option<crate::model::ErrorMessage>,
|
379 - | /// <p>The reason for the exception.</p>
|
757 + | /// /* StructureGenerator.kt:231 */<p>The reason for the exception.</p>
|
380 758 | pub reason: crate::model::AccessDeniedExceptionReason,
|
759 + | /* StructureGenerator.kt:201 */
|
381 760 | }
|
761 + | /* StructureGenerator.kt:135 */
|
382 762 | impl AccessDeniedException {
|
383 - | /// <p>The reason for the exception.</p>
|
763 + | /// /* StructureGenerator.kt:231 */<p>The reason for the exception.</p>
|
764 + | /* StructureGenerator.kt:166 */
|
384 765 | pub fn reason(&self) -> &crate::model::AccessDeniedExceptionReason {
|
766 + | /* StructureGenerator.kt:172 */
|
385 767 | &self.reason
|
768 + | /* StructureGenerator.kt:166 */
|
386 769 | }
|
770 + | /* StructureGenerator.kt:135 */
|
387 771 | }
|
772 + | /* ErrorImplGenerator.kt:99 */
|
388 773 | impl AccessDeniedException {
|
774 + | /* ErrorImplGenerator.kt:128 */
|
389 775 | /// Returns the error message.
|
390 776 | pub fn message(&self) -> Option<&crate::model::ErrorMessage> {
|
391 777 | self.message.as_ref()
|
392 778 | }
|
779 + | /* ErrorImplGenerator.kt:141 */
|
393 780 | #[doc(hidden)]
|
394 781 | /// Returns the error name.
|
395 782 | pub fn name(&self) -> &'static str {
|
396 783 | "AccessDeniedException"
|
397 784 | }
|
785 + | /* ErrorImplGenerator.kt:99 */
|
398 786 | }
|
787 + | /* ErrorImplGenerator.kt:153 */
|
399 788 | impl ::std::fmt::Display for AccessDeniedException {
|
789 + | /* ErrorImplGenerator.kt:154 */
|
400 790 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
791 + | /* ErrorImplGenerator.kt:161 */
|
401 792 | ::std::write!(f, "AccessDeniedException")?;
|
793 + | /* ErrorImplGenerator.kt:166 */
|
402 794 | if let ::std::option::Option::Some(inner_5) = &self.message {
|
795 + | /* ErrorImplGenerator.kt:166 */
|
403 796 | {
|
797 + | /* ErrorImplGenerator.kt:167 */
|
404 798 | ::std::write!(f, ": {}", inner_5)?;
|
799 + | /* ErrorImplGenerator.kt:166 */
|
405 800 | }
|
801 + | /* ErrorImplGenerator.kt:166 */
|
406 802 | }
|
803 + | /* ErrorImplGenerator.kt:171 */
|
407 804 | Ok(())
|
805 + | /* ErrorImplGenerator.kt:154 */
|
408 806 | }
|
807 + | /* ErrorImplGenerator.kt:153 */
|
409 808 | }
|
809 + | /* ErrorImplGenerator.kt:175 */
|
410 810 | impl ::std::error::Error for AccessDeniedException {}
|
811 + | /* ServerCodegenVisitor.kt:345 */
|
411 812 | impl AccessDeniedException {
|
412 - | /// Creates a new builder-style object to manufacture [`AccessDeniedException`](crate::error::AccessDeniedException).
|
813 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`AccessDeniedException`](crate::error::AccessDeniedException).
|
814 + | /* ServerBuilderGenerator.kt:295 */
|
413 815 | pub fn builder() -> crate::error::access_denied_exception::Builder {
|
816 + | /* ServerBuilderGenerator.kt:296 */
|
414 817 | crate::error::access_denied_exception::Builder::default()
|
818 + | /* ServerBuilderGenerator.kt:295 */
|
415 819 | }
|
820 + | /* ServerCodegenVisitor.kt:345 */
|
416 821 | }
|
417 822 |
|
418 - | /// <p>The specified resource does not exist.</p>
|
823 + | /// /* StructureGenerator.kt:197 */<p>The specified resource does not exist.</p>
|
824 + | /* RustType.kt:516 */
|
419 825 | #[derive(
|
420 826 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
421 827 | )]
|
422 - | pub struct ResourceNotFoundException {
|
828 + | pub /* StructureGenerator.kt:201 */ struct ResourceNotFoundException {
|
829 + | /* StructureGenerator.kt:231 */
|
423 830 | #[allow(missing_docs)] // documentation missing in model
|
424 831 | pub message: ::std::option::Option<crate::model::ErrorMessage>,
|
425 - | /// <p>The reason for the exception.</p>
|
832 + | /// /* StructureGenerator.kt:231 */<p>The reason for the exception.</p>
|
426 833 | pub reason: ::std::option::Option<crate::model::ResourceNotFoundExceptionReason>,
|
834 + | /* StructureGenerator.kt:201 */
|
427 835 | }
|
836 + | /* StructureGenerator.kt:135 */
|
428 837 | impl ResourceNotFoundException {
|
429 - | /// <p>The reason for the exception.</p>
|
838 + | /// /* StructureGenerator.kt:231 */<p>The reason for the exception.</p>
|
839 + | /* StructureGenerator.kt:166 */
|
430 840 | pub fn reason(&self) -> ::std::option::Option<&crate::model::ResourceNotFoundExceptionReason> {
|
841 + | /* StructureGenerator.kt:170 */
|
431 842 | self.reason.as_ref()
|
843 + | /* StructureGenerator.kt:166 */
|
432 844 | }
|
845 + | /* StructureGenerator.kt:135 */
|
433 846 | }
|
847 + | /* ErrorImplGenerator.kt:99 */
|
434 848 | impl ResourceNotFoundException {
|
849 + | /* ErrorImplGenerator.kt:128 */
|
435 850 | /// Returns the error message.
|
436 851 | pub fn message(&self) -> Option<&crate::model::ErrorMessage> {
|
437 852 | self.message.as_ref()
|
438 853 | }
|
854 + | /* ErrorImplGenerator.kt:141 */
|
439 855 | #[doc(hidden)]
|
440 856 | /// Returns the error name.
|
441 857 | pub fn name(&self) -> &'static str {
|
442 858 | "ResourceNotFoundException"
|
443 859 | }
|
860 + | /* ErrorImplGenerator.kt:99 */
|
444 861 | }
|
862 + | /* ErrorImplGenerator.kt:153 */
|
445 863 | impl ::std::fmt::Display for ResourceNotFoundException {
|
864 + | /* ErrorImplGenerator.kt:154 */
|
446 865 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
866 + | /* ErrorImplGenerator.kt:161 */
|
447 867 | ::std::write!(f, "ResourceNotFoundException")?;
|
868 + | /* ErrorImplGenerator.kt:166 */
|
448 869 | if let ::std::option::Option::Some(inner_6) = &self.message {
|
870 + | /* ErrorImplGenerator.kt:166 */
|
449 871 | {
|
872 + | /* ErrorImplGenerator.kt:167 */
|
450 873 | ::std::write!(f, ": {}", inner_6)?;
|
874 + | /* ErrorImplGenerator.kt:166 */
|
451 875 | }
|
876 + | /* ErrorImplGenerator.kt:166 */
|
452 877 | }
|
878 + | /* ErrorImplGenerator.kt:171 */
|
453 879 | Ok(())
|
880 + | /* ErrorImplGenerator.kt:154 */
|
454 881 | }
|
882 + | /* ErrorImplGenerator.kt:153 */
|
455 883 | }
|
884 + | /* ErrorImplGenerator.kt:175 */
|
456 885 | impl ::std::error::Error for ResourceNotFoundException {}
|
886 + | /* ServerCodegenVisitor.kt:345 */
|
457 887 | impl ResourceNotFoundException {
|
458 - | /// Creates a new builder-style object to manufacture [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
|
888 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
|
889 + | /* ServerBuilderGenerator.kt:295 */
|
459 890 | pub fn builder() -> crate::error::resource_not_found_exception::Builder {
|
891 + | /* ServerBuilderGenerator.kt:296 */
|
460 892 | crate::error::resource_not_found_exception::Builder::default()
|
893 + | /* ServerBuilderGenerator.kt:295 */
|
461 894 | }
|
895 + | /* ServerCodegenVisitor.kt:345 */
|
462 896 | }
|
463 897 |
|
464 - | /// <p>An internal error has occurred.</p>
|
898 + | /// /* StructureGenerator.kt:197 */<p>An internal error has occurred.</p>
|
899 + | /* RustType.kt:516 */
|
465 900 | #[derive(
|
466 901 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
467 902 | )]
|
468 - | pub struct InternalServerException {
|
903 + | pub /* StructureGenerator.kt:201 */ struct InternalServerException {
|
904 + | /* StructureGenerator.kt:231 */
|
469 905 | #[allow(missing_docs)] // documentation missing in model
|
470 906 | pub message: ::std::option::Option<crate::model::ErrorMessage>,
|
907 + | /* StructureGenerator.kt:201 */
|
471 908 | }
|
909 + | /* ErrorImplGenerator.kt:99 */
|
472 910 | impl InternalServerException {
|
911 + | /* ErrorImplGenerator.kt:128 */
|
473 912 | /// Returns the error message.
|
474 913 | pub fn message(&self) -> Option<&crate::model::ErrorMessage> {
|
475 914 | self.message.as_ref()
|
476 915 | }
|
916 + | /* ErrorImplGenerator.kt:141 */
|
477 917 | #[doc(hidden)]
|
478 918 | /// Returns the error name.
|
479 919 | pub fn name(&self) -> &'static str {
|
480 920 | "InternalServerException"
|
481 921 | }
|
922 + | /* ErrorImplGenerator.kt:99 */
|
482 923 | }
|
924 + | /* ErrorImplGenerator.kt:153 */
|
483 925 | impl ::std::fmt::Display for InternalServerException {
|
926 + | /* ErrorImplGenerator.kt:154 */
|
484 927 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
928 + | /* ErrorImplGenerator.kt:161 */
|
485 929 | ::std::write!(f, "InternalServerException")?;
|
930 + | /* ErrorImplGenerator.kt:166 */
|
486 931 | if let ::std::option::Option::Some(inner_7) = &self.message {
|
932 + | /* ErrorImplGenerator.kt:166 */
|
487 933 | {
|
934 + | /* ErrorImplGenerator.kt:167 */
|
488 935 | ::std::write!(f, ": {}", inner_7)?;
|
936 + | /* ErrorImplGenerator.kt:166 */
|
489 937 | }
|
938 + | /* ErrorImplGenerator.kt:166 */
|
490 939 | }
|
940 + | /* ErrorImplGenerator.kt:171 */
|
491 941 | Ok(())
|
942 + | /* ErrorImplGenerator.kt:154 */
|
492 943 | }
|
944 + | /* ErrorImplGenerator.kt:153 */
|
493 945 | }
|
946 + | /* ErrorImplGenerator.kt:175 */
|
494 947 | impl ::std::error::Error for InternalServerException {}
|
948 + | /* ServerCodegenVisitor.kt:345 */
|
495 949 | impl InternalServerException {
|
496 - | /// Creates a new builder-style object to manufacture [`InternalServerException`](crate::error::InternalServerException).
|
950 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`InternalServerException`](crate::error::InternalServerException).
|
951 + | /* ServerBuilderGenerator.kt:295 */
|
497 952 | pub fn builder() -> crate::error::internal_server_exception::Builder {
|
953 + | /* ServerBuilderGenerator.kt:296 */
|
498 954 | crate::error::internal_server_exception::Builder::default()
|
955 + | /* ServerBuilderGenerator.kt:295 */
|
499 956 | }
|
957 + | /* ServerCodegenVisitor.kt:345 */
|
500 958 | }
|
501 959 |
|
960 + | /* ServerOperationErrorGenerator.kt:63 */
|
502 961 | /// Error type for the `PutSnapshotBlock` operation.
|
962 + | /* ServerOperationErrorGenerator.kt:64 */
|
503 963 | /// Each variant represents an error that can occur for the `PutSnapshotBlock` operation.
|
964 + | /* RustType.kt:516 */
|
504 965 | #[derive(::std::fmt::Debug)]
|
505 - | pub enum PutSnapshotBlockError {
|
506 - | /// <p>An internal error has occurred.</p>
|
966 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum PutSnapshotBlockError {
|
967 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>An internal error has occurred.</p>
|
968 + | /* ServerOperationErrorGenerator.kt:71 */
|
507 969 | InternalServerException(crate::error::InternalServerException),
|
508 - | /// <p>The specified resource does not exist.</p>
|
970 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>The specified resource does not exist.</p>
|
971 + | /* ServerOperationErrorGenerator.kt:71 */
|
509 972 | ResourceNotFoundException(crate::error::ResourceNotFoundException),
|
510 - | /// <p>You do not have sufficient access to perform this action.</p>
|
973 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>You do not have sufficient access to perform this action.</p>
|
974 + | /* ServerOperationErrorGenerator.kt:71 */
|
511 975 | AccessDeniedException(crate::error::AccessDeniedException),
|
512 - | /// <p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
|
976 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
|
977 + | /* ServerOperationErrorGenerator.kt:71 */
|
513 978 | RequestThrottledException(crate::error::RequestThrottledException),
|
514 - | /// <p>Your current service quotas do not allow you to perform this action.</p>
|
979 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>Your current service quotas do not allow you to perform this action.</p>
|
980 + | /* ServerOperationErrorGenerator.kt:71 */
|
515 981 | ServiceQuotaExceededException(crate::error::ServiceQuotaExceededException),
|
516 - | /// 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.
|
982 + | /// /* 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.
|
983 + | /* ServerOperationErrorGenerator.kt:71 */
|
517 984 | ValidationException(crate::error::ValidationException),
|
985 + | /* ServerOperationErrorGenerator.kt:66 */
|
518 986 | }
|
987 + | /* ServerOperationErrorGenerator.kt:75 */
|
519 988 | impl ::std::fmt::Display for PutSnapshotBlockError {
|
989 + | /* ServerOperationErrorGenerator.kt:76 */
|
520 990 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
991 + | /* ServerOperationErrorGenerator.kt:139 */
|
521 992 | match &self {
|
522 - | PutSnapshotBlockError::InternalServerException(_inner) => _inner.fmt(f),
|
523 - | PutSnapshotBlockError::ResourceNotFoundException(_inner) => _inner.fmt(f),
|
524 - | PutSnapshotBlockError::AccessDeniedException(_inner) => _inner.fmt(f),
|
525 - | PutSnapshotBlockError::RequestThrottledException(_inner) => _inner.fmt(f),
|
526 - | PutSnapshotBlockError::ServiceQuotaExceededException(_inner) => _inner.fmt(f),
|
527 - | PutSnapshotBlockError::ValidationException(_inner) => _inner.fmt(f),
|
993 + | /* ServerOperationErrorGenerator.kt:142 */
|
994 + | PutSnapshotBlockError::InternalServerException(_inner) =>
|
995 + | /* ServerOperationErrorGenerator.kt:78 */
|
996 + | {
|
997 + | _inner.fmt(f)
|
998 + | }
|
999 + | ,
|
1000 + | /* ServerOperationErrorGenerator.kt:142 */
|
1001 + | PutSnapshotBlockError::ResourceNotFoundException(_inner) =>
|
1002 + | /* ServerOperationErrorGenerator.kt:78 */
|
1003 + | {
|
1004 + | _inner.fmt(f)
|
1005 + | }
|
1006 + | ,
|
1007 + | /* ServerOperationErrorGenerator.kt:142 */
|
1008 + | PutSnapshotBlockError::AccessDeniedException(_inner) =>
|
1009 + | /* ServerOperationErrorGenerator.kt:78 */
|
1010 + | {
|
1011 + | _inner.fmt(f)
|
528 1012 | }
|
1013 + | ,
|
1014 + | /* ServerOperationErrorGenerator.kt:142 */
|
1015 + | PutSnapshotBlockError::RequestThrottledException(_inner) =>
|
1016 + | /* ServerOperationErrorGenerator.kt:78 */
|
1017 + | {
|
1018 + | _inner.fmt(f)
|
529 1019 | }
|
1020 + | ,
|
1021 + | /* ServerOperationErrorGenerator.kt:142 */
|
1022 + | PutSnapshotBlockError::ServiceQuotaExceededException(_inner) =>
|
1023 + | /* ServerOperationErrorGenerator.kt:78 */
|
1024 + | {
|
1025 + | _inner.fmt(f)
|
1026 + | }
|
1027 + | ,
|
1028 + | /* ServerOperationErrorGenerator.kt:142 */
|
1029 + | PutSnapshotBlockError::ValidationException(_inner) =>
|
1030 + | /* ServerOperationErrorGenerator.kt:78 */
|
1031 + | {
|
1032 + | _inner.fmt(f)
|
1033 + | }
|
1034 + | /* ServerOperationErrorGenerator.kt:139 */
|
1035 + | }
|
1036 + | /* ServerOperationErrorGenerator.kt:76 */
|
1037 + | }
|
1038 + | /* ServerOperationErrorGenerator.kt:75 */
|
530 1039 | }
|
1040 + | /* ServerOperationErrorGenerator.kt:83 */
|
531 1041 | impl PutSnapshotBlockError {
|
1042 + | /* ServerOperationErrorGenerator.kt:87 */
|
532 1043 | /// Returns `true` if the error kind is `PutSnapshotBlockError::InternalServerException`.
|
1044 + | /* ServerOperationErrorGenerator.kt:88 */
|
533 1045 | pub fn is_internal_server_exception(&self) -> bool {
|
1046 + | /* ServerOperationErrorGenerator.kt:89 */
|
534 1047 | matches!(&self, PutSnapshotBlockError::InternalServerException(_))
|
1048 + | /* ServerOperationErrorGenerator.kt:88 */
|
535 1049 | }
|
1050 + | /* ServerOperationErrorGenerator.kt:87 */
|
536 1051 | /// Returns `true` if the error kind is `PutSnapshotBlockError::ResourceNotFoundException`.
|
1052 + | /* ServerOperationErrorGenerator.kt:88 */
|
537 1053 | pub fn is_resource_not_found_exception(&self) -> bool {
|
1054 + | /* ServerOperationErrorGenerator.kt:89 */
|
538 1055 | matches!(&self, PutSnapshotBlockError::ResourceNotFoundException(_))
|
1056 + | /* ServerOperationErrorGenerator.kt:88 */
|
539 1057 | }
|
1058 + | /* ServerOperationErrorGenerator.kt:87 */
|
540 1059 | /// Returns `true` if the error kind is `PutSnapshotBlockError::AccessDeniedException`.
|
1060 + | /* ServerOperationErrorGenerator.kt:88 */
|
541 1061 | pub fn is_access_denied_exception(&self) -> bool {
|
1062 + | /* ServerOperationErrorGenerator.kt:89 */
|
542 1063 | matches!(&self, PutSnapshotBlockError::AccessDeniedException(_))
|
1064 + | /* ServerOperationErrorGenerator.kt:88 */
|
543 1065 | }
|
1066 + | /* ServerOperationErrorGenerator.kt:87 */
|
544 1067 | /// Returns `true` if the error kind is `PutSnapshotBlockError::RequestThrottledException`.
|
1068 + | /* ServerOperationErrorGenerator.kt:88 */
|
545 1069 | pub fn is_request_throttled_exception(&self) -> bool {
|
1070 + | /* ServerOperationErrorGenerator.kt:89 */
|
546 1071 | matches!(&self, PutSnapshotBlockError::RequestThrottledException(_))
|
1072 + | /* ServerOperationErrorGenerator.kt:88 */
|
547 1073 | }
|
1074 + | /* ServerOperationErrorGenerator.kt:87 */
|
548 1075 | /// Returns `true` if the error kind is `PutSnapshotBlockError::ServiceQuotaExceededException`.
|
1076 + | /* ServerOperationErrorGenerator.kt:88 */
|
549 1077 | pub fn is_service_quota_exceeded_exception(&self) -> bool {
|
1078 + | /* ServerOperationErrorGenerator.kt:89 */
|
550 1079 | matches!(
|
551 1080 | &self,
|
552 1081 | PutSnapshotBlockError::ServiceQuotaExceededException(_)
|
553 1082 | )
|
1083 + | /* ServerOperationErrorGenerator.kt:88 */
|
554 1084 | }
|
1085 + | /* ServerOperationErrorGenerator.kt:87 */
|
555 1086 | /// Returns `true` if the error kind is `PutSnapshotBlockError::ValidationException`.
|
1087 + | /* ServerOperationErrorGenerator.kt:88 */
|
556 1088 | pub fn is_validation_exception(&self) -> bool {
|
1089 + | /* ServerOperationErrorGenerator.kt:89 */
|
557 1090 | matches!(&self, PutSnapshotBlockError::ValidationException(_))
|
1091 + | /* ServerOperationErrorGenerator.kt:88 */
|
558 1092 | }
|
1093 + | /* ServerOperationErrorGenerator.kt:92 */
|
559 1094 | /// Returns the error name string by matching the correct variant.
|
1095 + | /* ServerOperationErrorGenerator.kt:93 */
|
560 1096 | pub fn name(&self) -> &'static str {
|
1097 + | /* ServerOperationErrorGenerator.kt:139 */
|
561 1098 | match &self {
|
562 - | PutSnapshotBlockError::InternalServerException(_inner) => _inner.name(),
|
563 - | PutSnapshotBlockError::ResourceNotFoundException(_inner) => _inner.name(),
|
564 - | PutSnapshotBlockError::AccessDeniedException(_inner) => _inner.name(),
|
565 - | PutSnapshotBlockError::RequestThrottledException(_inner) => _inner.name(),
|
566 - | PutSnapshotBlockError::ServiceQuotaExceededException(_inner) => _inner.name(),
|
567 - | PutSnapshotBlockError::ValidationException(_inner) => _inner.name(),
|
1099 + | /* ServerOperationErrorGenerator.kt:142 */
|
1100 + | PutSnapshotBlockError::InternalServerException(_inner) =>
|
1101 + | /* ServerOperationErrorGenerator.kt:95 */
|
1102 + | {
|
1103 + | _inner.name()
|
568 1104 | }
|
1105 + | ,
|
1106 + | /* ServerOperationErrorGenerator.kt:142 */
|
1107 + | PutSnapshotBlockError::ResourceNotFoundException(_inner) =>
|
1108 + | /* ServerOperationErrorGenerator.kt:95 */
|
1109 + | {
|
1110 + | _inner.name()
|
1111 + | }
|
1112 + | ,
|
1113 + | /* ServerOperationErrorGenerator.kt:142 */
|
1114 + | PutSnapshotBlockError::AccessDeniedException(_inner) =>
|
1115 + | /* ServerOperationErrorGenerator.kt:95 */
|
1116 + | {
|
1117 + | _inner.name()
|
1118 + | }
|
1119 + | ,
|
1120 + | /* ServerOperationErrorGenerator.kt:142 */
|
1121 + | PutSnapshotBlockError::RequestThrottledException(_inner) =>
|
1122 + | /* ServerOperationErrorGenerator.kt:95 */
|
1123 + | {
|
1124 + | _inner.name()
|
1125 + | }
|
1126 + | ,
|
1127 + | /* ServerOperationErrorGenerator.kt:142 */
|
1128 + | PutSnapshotBlockError::ServiceQuotaExceededException(_inner) =>
|
1129 + | /* ServerOperationErrorGenerator.kt:95 */
|
1130 + | {
|
1131 + | _inner.name()
|
569 1132 | }
|
1133 + | ,
|
1134 + | /* ServerOperationErrorGenerator.kt:142 */
|
1135 + | PutSnapshotBlockError::ValidationException(_inner) =>
|
1136 + | /* ServerOperationErrorGenerator.kt:95 */
|
1137 + | {
|
1138 + | _inner.name()
|
1139 + | }
|
1140 + | /* ServerOperationErrorGenerator.kt:139 */
|
1141 + | }
|
1142 + | /* ServerOperationErrorGenerator.kt:93 */
|
1143 + | }
|
1144 + | /* ServerOperationErrorGenerator.kt:83 */
|
570 1145 | }
|
1146 + | /* ServerOperationErrorGenerator.kt:100 */
|
571 1147 | impl ::std::error::Error for PutSnapshotBlockError {
|
1148 + | /* ServerOperationErrorGenerator.kt:101 */
|
572 1149 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1150 + | /* ServerOperationErrorGenerator.kt:139 */
|
573 1151 | match &self {
|
574 - | PutSnapshotBlockError::InternalServerException(_inner) => Some(_inner),
|
575 - | PutSnapshotBlockError::ResourceNotFoundException(_inner) => Some(_inner),
|
576 - | PutSnapshotBlockError::AccessDeniedException(_inner) => Some(_inner),
|
577 - | PutSnapshotBlockError::RequestThrottledException(_inner) => Some(_inner),
|
578 - | PutSnapshotBlockError::ServiceQuotaExceededException(_inner) => Some(_inner),
|
579 - | PutSnapshotBlockError::ValidationException(_inner) => Some(_inner),
|
1152 + | /* ServerOperationErrorGenerator.kt:142 */
|
1153 + | PutSnapshotBlockError::InternalServerException(_inner) =>
|
1154 + | /* ServerOperationErrorGenerator.kt:103 */
|
1155 + | {
|
1156 + | Some(_inner)
|
1157 + | }
|
1158 + | ,
|
1159 + | /* ServerOperationErrorGenerator.kt:142 */
|
1160 + | PutSnapshotBlockError::ResourceNotFoundException(_inner) =>
|
1161 + | /* ServerOperationErrorGenerator.kt:103 */
|
1162 + | {
|
1163 + | Some(_inner)
|
1164 + | }
|
1165 + | ,
|
1166 + | /* ServerOperationErrorGenerator.kt:142 */
|
1167 + | PutSnapshotBlockError::AccessDeniedException(_inner) =>
|
1168 + | /* ServerOperationErrorGenerator.kt:103 */
|
1169 + | {
|
1170 + | Some(_inner)
|
1171 + | }
|
1172 + | ,
|
1173 + | /* ServerOperationErrorGenerator.kt:142 */
|
1174 + | PutSnapshotBlockError::RequestThrottledException(_inner) =>
|
1175 + | /* ServerOperationErrorGenerator.kt:103 */
|
1176 + | {
|
1177 + | Some(_inner)
|
1178 + | }
|
1179 + | ,
|
1180 + | /* ServerOperationErrorGenerator.kt:142 */
|
1181 + | PutSnapshotBlockError::ServiceQuotaExceededException(_inner) =>
|
1182 + | /* ServerOperationErrorGenerator.kt:103 */
|
1183 + | {
|
1184 + | Some(_inner)
|
1185 + | }
|
1186 + | ,
|
1187 + | /* ServerOperationErrorGenerator.kt:142 */
|
1188 + | PutSnapshotBlockError::ValidationException(_inner) =>
|
1189 + | /* ServerOperationErrorGenerator.kt:103 */
|
1190 + | {
|
1191 + | Some(_inner)
|
1192 + | }
|
1193 + | /* ServerOperationErrorGenerator.kt:139 */
|
580 1194 | }
|
1195 + | /* ServerOperationErrorGenerator.kt:101 */
|
581 1196 | }
|
1197 + | /* ServerOperationErrorGenerator.kt:100 */
|
582 1198 | }
|
1199 + | /* ServerOperationErrorGenerator.kt:110 */
|
583 1200 | impl ::std::convert::From<crate::error::InternalServerException>
|
584 1201 | for crate::error::PutSnapshotBlockError
|
585 1202 | {
|
1203 + | /* ServerOperationErrorGenerator.kt:111 */
|
586 1204 | fn from(variant: crate::error::InternalServerException) -> crate::error::PutSnapshotBlockError {
|
1205 + | /* ServerOperationErrorGenerator.kt:112 */
|
587 1206 | Self::InternalServerException(variant)
|
1207 + | /* ServerOperationErrorGenerator.kt:111 */
|
588 1208 | }
|
1209 + | /* ServerOperationErrorGenerator.kt:110 */
|
589 1210 | }
|
1211 + | /* ServerOperationErrorGenerator.kt:110 */
|
590 1212 | impl ::std::convert::From<crate::error::ResourceNotFoundException>
|
591 1213 | for crate::error::PutSnapshotBlockError
|
592 1214 | {
|
1215 + | /* ServerOperationErrorGenerator.kt:111 */
|
593 1216 | fn from(
|
594 1217 | variant: crate::error::ResourceNotFoundException,
|
595 1218 | ) -> crate::error::PutSnapshotBlockError {
|
1219 + | /* ServerOperationErrorGenerator.kt:112 */
|
596 1220 | Self::ResourceNotFoundException(variant)
|
1221 + | /* ServerOperationErrorGenerator.kt:111 */
|
597 1222 | }
|
1223 + | /* ServerOperationErrorGenerator.kt:110 */
|
598 1224 | }
|
1225 + | /* ServerOperationErrorGenerator.kt:110 */
|
599 1226 | impl ::std::convert::From<crate::error::AccessDeniedException>
|
600 1227 | for crate::error::PutSnapshotBlockError
|
601 1228 | {
|
1229 + | /* ServerOperationErrorGenerator.kt:111 */
|
602 1230 | fn from(variant: crate::error::AccessDeniedException) -> crate::error::PutSnapshotBlockError {
|
1231 + | /* ServerOperationErrorGenerator.kt:112 */
|
603 1232 | Self::AccessDeniedException(variant)
|
1233 + | /* ServerOperationErrorGenerator.kt:111 */
|
604 1234 | }
|
1235 + | /* ServerOperationErrorGenerator.kt:110 */
|
605 1236 | }
|
1237 + | /* ServerOperationErrorGenerator.kt:110 */
|
606 1238 | impl ::std::convert::From<crate::error::RequestThrottledException>
|
607 1239 | for crate::error::PutSnapshotBlockError
|
608 1240 | {
|
1241 + | /* ServerOperationErrorGenerator.kt:111 */
|
609 1242 | fn from(
|
610 1243 | variant: crate::error::RequestThrottledException,
|
611 1244 | ) -> crate::error::PutSnapshotBlockError {
|
1245 + | /* ServerOperationErrorGenerator.kt:112 */
|
612 1246 | Self::RequestThrottledException(variant)
|
1247 + | /* ServerOperationErrorGenerator.kt:111 */
|
613 1248 | }
|
1249 + | /* ServerOperationErrorGenerator.kt:110 */
|
614 1250 | }
|
1251 + | /* ServerOperationErrorGenerator.kt:110 */
|
615 1252 | impl ::std::convert::From<crate::error::ServiceQuotaExceededException>
|
616 1253 | for crate::error::PutSnapshotBlockError
|
617 1254 | {
|
1255 + | /* ServerOperationErrorGenerator.kt:111 */
|
618 1256 | fn from(
|
619 1257 | variant: crate::error::ServiceQuotaExceededException,
|
620 1258 | ) -> crate::error::PutSnapshotBlockError {
|
1259 + | /* ServerOperationErrorGenerator.kt:112 */
|
621 1260 | Self::ServiceQuotaExceededException(variant)
|
1261 + | /* ServerOperationErrorGenerator.kt:111 */
|
622 1262 | }
|
1263 + | /* ServerOperationErrorGenerator.kt:110 */
|
623 1264 | }
|
1265 + | /* ServerOperationErrorGenerator.kt:110 */
|
624 1266 | impl ::std::convert::From<crate::error::ValidationException>
|
625 1267 | for crate::error::PutSnapshotBlockError
|
626 1268 | {
|
1269 + | /* ServerOperationErrorGenerator.kt:111 */
|
627 1270 | fn from(variant: crate::error::ValidationException) -> crate::error::PutSnapshotBlockError {
|
1271 + | /* ServerOperationErrorGenerator.kt:112 */
|
628 1272 | Self::ValidationException(variant)
|
1273 + | /* ServerOperationErrorGenerator.kt:111 */
|
629 1274 | }
|
1275 + | /* ServerOperationErrorGenerator.kt:110 */
|
630 1276 | }
|
631 1277 |
|
1278 + | /* ServerOperationErrorGenerator.kt:63 */
|
632 1279 | /// Error type for the `ListSnapshotBlocks` operation.
|
1280 + | /* ServerOperationErrorGenerator.kt:64 */
|
633 1281 | /// Each variant represents an error that can occur for the `ListSnapshotBlocks` operation.
|
1282 + | /* RustType.kt:516 */
|
634 1283 | #[derive(::std::fmt::Debug)]
|
635 - | pub enum ListSnapshotBlocksError {
|
636 - | /// <p>An internal error has occurred.</p>
|
1284 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum ListSnapshotBlocksError {
|
1285 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>An internal error has occurred.</p>
|
1286 + | /* ServerOperationErrorGenerator.kt:71 */
|
637 1287 | InternalServerException(crate::error::InternalServerException),
|
638 - | /// <p>The specified resource does not exist.</p>
|
1288 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>The specified resource does not exist.</p>
|
1289 + | /* ServerOperationErrorGenerator.kt:71 */
|
639 1290 | ResourceNotFoundException(crate::error::ResourceNotFoundException),
|
640 - | /// <p>You do not have sufficient access to perform this action.</p>
|
1291 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>You do not have sufficient access to perform this action.</p>
|
1292 + | /* ServerOperationErrorGenerator.kt:71 */
|
641 1293 | AccessDeniedException(crate::error::AccessDeniedException),
|
642 - | /// <p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
|
1294 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
|
1295 + | /* ServerOperationErrorGenerator.kt:71 */
|
643 1296 | RequestThrottledException(crate::error::RequestThrottledException),
|
644 - | /// <p>Your current service quotas do not allow you to perform this action.</p>
|
1297 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>Your current service quotas do not allow you to perform this action.</p>
|
1298 + | /* ServerOperationErrorGenerator.kt:71 */
|
645 1299 | ServiceQuotaExceededException(crate::error::ServiceQuotaExceededException),
|
646 - | /// 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.
|
1300 + | /// /* 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.
|
1301 + | /* ServerOperationErrorGenerator.kt:71 */
|
647 1302 | ValidationException(crate::error::ValidationException),
|
1303 + | /* ServerOperationErrorGenerator.kt:66 */
|
648 1304 | }
|
1305 + | /* ServerOperationErrorGenerator.kt:75 */
|
649 1306 | impl ::std::fmt::Display for ListSnapshotBlocksError {
|
1307 + | /* ServerOperationErrorGenerator.kt:76 */
|
650 1308 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1309 + | /* ServerOperationErrorGenerator.kt:139 */
|
651 1310 | match &self {
|
652 - | ListSnapshotBlocksError::InternalServerException(_inner) => _inner.fmt(f),
|
653 - | ListSnapshotBlocksError::ResourceNotFoundException(_inner) => _inner.fmt(f),
|
654 - | ListSnapshotBlocksError::AccessDeniedException(_inner) => _inner.fmt(f),
|
655 - | ListSnapshotBlocksError::RequestThrottledException(_inner) => _inner.fmt(f),
|
656 - | ListSnapshotBlocksError::ServiceQuotaExceededException(_inner) => _inner.fmt(f),
|
657 - | ListSnapshotBlocksError::ValidationException(_inner) => _inner.fmt(f),
|
1311 + | /* ServerOperationErrorGenerator.kt:142 */
|
1312 + | ListSnapshotBlocksError::InternalServerException(_inner) =>
|
1313 + | /* ServerOperationErrorGenerator.kt:78 */
|
1314 + | {
|
1315 + | _inner.fmt(f)
|
1316 + | }
|
1317 + | ,
|
1318 + | /* ServerOperationErrorGenerator.kt:142 */
|
1319 + | ListSnapshotBlocksError::ResourceNotFoundException(_inner) =>
|
1320 + | /* ServerOperationErrorGenerator.kt:78 */
|
1321 + | {
|
1322 + | _inner.fmt(f)
|
1323 + | }
|
1324 + | ,
|
1325 + | /* ServerOperationErrorGenerator.kt:142 */
|
1326 + | ListSnapshotBlocksError::AccessDeniedException(_inner) =>
|
1327 + | /* ServerOperationErrorGenerator.kt:78 */
|
1328 + | {
|
1329 + | _inner.fmt(f)
|
1330 + | }
|
1331 + | ,
|
1332 + | /* ServerOperationErrorGenerator.kt:142 */
|
1333 + | ListSnapshotBlocksError::RequestThrottledException(_inner) =>
|
1334 + | /* ServerOperationErrorGenerator.kt:78 */
|
1335 + | {
|
1336 + | _inner.fmt(f)
|
658 1337 | }
|
1338 + | ,
|
1339 + | /* ServerOperationErrorGenerator.kt:142 */
|
1340 + | ListSnapshotBlocksError::ServiceQuotaExceededException(_inner) =>
|
1341 + | /* ServerOperationErrorGenerator.kt:78 */
|
1342 + | {
|
1343 + | _inner.fmt(f)
|
1344 + | }
|
1345 + | ,
|
1346 + | /* ServerOperationErrorGenerator.kt:142 */
|
1347 + | ListSnapshotBlocksError::ValidationException(_inner) =>
|
1348 + | /* ServerOperationErrorGenerator.kt:78 */
|
1349 + | {
|
1350 + | _inner.fmt(f)
|
1351 + | }
|
1352 + | /* ServerOperationErrorGenerator.kt:139 */
|
659 1353 | }
|
1354 + | /* ServerOperationErrorGenerator.kt:76 */
|
1355 + | }
|
1356 + | /* ServerOperationErrorGenerator.kt:75 */
|
660 1357 | }
|
1358 + | /* ServerOperationErrorGenerator.kt:83 */
|
661 1359 | impl ListSnapshotBlocksError {
|
1360 + | /* ServerOperationErrorGenerator.kt:87 */
|
662 1361 | /// Returns `true` if the error kind is `ListSnapshotBlocksError::InternalServerException`.
|
1362 + | /* ServerOperationErrorGenerator.kt:88 */
|
663 1363 | pub fn is_internal_server_exception(&self) -> bool {
|
1364 + | /* ServerOperationErrorGenerator.kt:89 */
|
664 1365 | matches!(&self, ListSnapshotBlocksError::InternalServerException(_))
|
1366 + | /* ServerOperationErrorGenerator.kt:88 */
|
665 1367 | }
|
1368 + | /* ServerOperationErrorGenerator.kt:87 */
|
666 1369 | /// Returns `true` if the error kind is `ListSnapshotBlocksError::ResourceNotFoundException`.
|
1370 + | /* ServerOperationErrorGenerator.kt:88 */
|
667 1371 | pub fn is_resource_not_found_exception(&self) -> bool {
|
1372 + | /* ServerOperationErrorGenerator.kt:89 */
|
668 1373 | matches!(&self, ListSnapshotBlocksError::ResourceNotFoundException(_))
|
1374 + | /* ServerOperationErrorGenerator.kt:88 */
|
669 1375 | }
|
1376 + | /* ServerOperationErrorGenerator.kt:87 */
|
670 1377 | /// Returns `true` if the error kind is `ListSnapshotBlocksError::AccessDeniedException`.
|
1378 + | /* ServerOperationErrorGenerator.kt:88 */
|
671 1379 | pub fn is_access_denied_exception(&self) -> bool {
|
1380 + | /* ServerOperationErrorGenerator.kt:89 */
|
672 1381 | matches!(&self, ListSnapshotBlocksError::AccessDeniedException(_))
|
1382 + | /* ServerOperationErrorGenerator.kt:88 */
|
673 1383 | }
|
1384 + | /* ServerOperationErrorGenerator.kt:87 */
|
674 1385 | /// Returns `true` if the error kind is `ListSnapshotBlocksError::RequestThrottledException`.
|
1386 + | /* ServerOperationErrorGenerator.kt:88 */
|
675 1387 | pub fn is_request_throttled_exception(&self) -> bool {
|
1388 + | /* ServerOperationErrorGenerator.kt:89 */
|
676 1389 | matches!(&self, ListSnapshotBlocksError::RequestThrottledException(_))
|
1390 + | /* ServerOperationErrorGenerator.kt:88 */
|
677 1391 | }
|
1392 + | /* ServerOperationErrorGenerator.kt:87 */
|
678 1393 | /// Returns `true` if the error kind is `ListSnapshotBlocksError::ServiceQuotaExceededException`.
|
1394 + | /* ServerOperationErrorGenerator.kt:88 */
|
679 1395 | pub fn is_service_quota_exceeded_exception(&self) -> bool {
|
1396 + | /* ServerOperationErrorGenerator.kt:89 */
|
680 1397 | matches!(
|
681 1398 | &self,
|
682 1399 | ListSnapshotBlocksError::ServiceQuotaExceededException(_)
|
683 1400 | )
|
1401 + | /* ServerOperationErrorGenerator.kt:88 */
|
684 1402 | }
|
1403 + | /* ServerOperationErrorGenerator.kt:87 */
|
685 1404 | /// Returns `true` if the error kind is `ListSnapshotBlocksError::ValidationException`.
|
1405 + | /* ServerOperationErrorGenerator.kt:88 */
|
686 1406 | pub fn is_validation_exception(&self) -> bool {
|
1407 + | /* ServerOperationErrorGenerator.kt:89 */
|
687 1408 | matches!(&self, ListSnapshotBlocksError::ValidationException(_))
|
1409 + | /* ServerOperationErrorGenerator.kt:88 */
|
688 1410 | }
|
1411 + | /* ServerOperationErrorGenerator.kt:92 */
|
689 1412 | /// Returns the error name string by matching the correct variant.
|
1413 + | /* ServerOperationErrorGenerator.kt:93 */
|
690 1414 | pub fn name(&self) -> &'static str {
|
1415 + | /* ServerOperationErrorGenerator.kt:139 */
|
691 1416 | match &self {
|
692 - | ListSnapshotBlocksError::InternalServerException(_inner) => _inner.name(),
|
693 - | ListSnapshotBlocksError::ResourceNotFoundException(_inner) => _inner.name(),
|
694 - | ListSnapshotBlocksError::AccessDeniedException(_inner) => _inner.name(),
|
695 - | ListSnapshotBlocksError::RequestThrottledException(_inner) => _inner.name(),
|
696 - | ListSnapshotBlocksError::ServiceQuotaExceededException(_inner) => _inner.name(),
|
697 - | ListSnapshotBlocksError::ValidationException(_inner) => _inner.name(),
|
1417 + | /* ServerOperationErrorGenerator.kt:142 */
|
1418 + | ListSnapshotBlocksError::InternalServerException(_inner) =>
|
1419 + | /* ServerOperationErrorGenerator.kt:95 */
|
1420 + | {
|
1421 + | _inner.name()
|
1422 + | }
|
1423 + | ,
|
1424 + | /* ServerOperationErrorGenerator.kt:142 */
|
1425 + | ListSnapshotBlocksError::ResourceNotFoundException(_inner) =>
|
1426 + | /* ServerOperationErrorGenerator.kt:95 */
|
1427 + | {
|
1428 + | _inner.name()
|
1429 + | }
|
1430 + | ,
|
1431 + | /* ServerOperationErrorGenerator.kt:142 */
|
1432 + | ListSnapshotBlocksError::AccessDeniedException(_inner) =>
|
1433 + | /* ServerOperationErrorGenerator.kt:95 */
|
1434 + | {
|
1435 + | _inner.name()
|
1436 + | }
|
1437 + | ,
|
1438 + | /* ServerOperationErrorGenerator.kt:142 */
|
1439 + | ListSnapshotBlocksError::RequestThrottledException(_inner) =>
|
1440 + | /* ServerOperationErrorGenerator.kt:95 */
|
1441 + | {
|
1442 + | _inner.name()
|
1443 + | }
|
1444 + | ,
|
1445 + | /* ServerOperationErrorGenerator.kt:142 */
|
1446 + | ListSnapshotBlocksError::ServiceQuotaExceededException(_inner) =>
|
1447 + | /* ServerOperationErrorGenerator.kt:95 */
|
1448 + | {
|
1449 + | _inner.name()
|
1450 + | }
|
1451 + | ,
|
1452 + | /* ServerOperationErrorGenerator.kt:142 */
|
1453 + | ListSnapshotBlocksError::ValidationException(_inner) =>
|
1454 + | /* ServerOperationErrorGenerator.kt:95 */
|
1455 + | {
|
1456 + | _inner.name()
|
1457 + | }
|
1458 + | /* ServerOperationErrorGenerator.kt:139 */
|
698 1459 | }
|
1460 + | /* ServerOperationErrorGenerator.kt:93 */
|
699 1461 | }
|
1462 + | /* ServerOperationErrorGenerator.kt:83 */
|
700 1463 | }
|
1464 + | /* ServerOperationErrorGenerator.kt:100 */
|
701 1465 | impl ::std::error::Error for ListSnapshotBlocksError {
|
1466 + | /* ServerOperationErrorGenerator.kt:101 */
|
702 1467 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1468 + | /* ServerOperationErrorGenerator.kt:139 */
|
703 1469 | match &self {
|
704 - | ListSnapshotBlocksError::InternalServerException(_inner) => Some(_inner),
|
705 - | ListSnapshotBlocksError::ResourceNotFoundException(_inner) => Some(_inner),
|
706 - | ListSnapshotBlocksError::AccessDeniedException(_inner) => Some(_inner),
|
707 - | ListSnapshotBlocksError::RequestThrottledException(_inner) => Some(_inner),
|
708 - | ListSnapshotBlocksError::ServiceQuotaExceededException(_inner) => Some(_inner),
|
709 - | ListSnapshotBlocksError::ValidationException(_inner) => Some(_inner),
|
1470 + | /* ServerOperationErrorGenerator.kt:142 */
|
1471 + | ListSnapshotBlocksError::InternalServerException(_inner) =>
|
1472 + | /* ServerOperationErrorGenerator.kt:103 */
|
1473 + | {
|
1474 + | Some(_inner)
|
1475 + | }
|
1476 + | ,
|
1477 + | /* ServerOperationErrorGenerator.kt:142 */
|
1478 + | ListSnapshotBlocksError::ResourceNotFoundException(_inner) =>
|
1479 + | /* ServerOperationErrorGenerator.kt:103 */
|
1480 + | {
|
1481 + | Some(_inner)
|
1482 + | }
|
1483 + | ,
|
1484 + | /* ServerOperationErrorGenerator.kt:142 */
|
1485 + | ListSnapshotBlocksError::AccessDeniedException(_inner) =>
|
1486 + | /* ServerOperationErrorGenerator.kt:103 */
|
1487 + | {
|
1488 + | Some(_inner)
|
710 1489 | }
|
1490 + | ,
|
1491 + | /* ServerOperationErrorGenerator.kt:142 */
|
1492 + | ListSnapshotBlocksError::RequestThrottledException(_inner) =>
|
1493 + | /* ServerOperationErrorGenerator.kt:103 */
|
1494 + | {
|
1495 + | Some(_inner)
|
711 1496 | }
|
1497 + | ,
|
1498 + | /* ServerOperationErrorGenerator.kt:142 */
|
1499 + | ListSnapshotBlocksError::ServiceQuotaExceededException(_inner) =>
|
1500 + | /* ServerOperationErrorGenerator.kt:103 */
|
1501 + | {
|
1502 + | Some(_inner)
|
1503 + | }
|
1504 + | ,
|
1505 + | /* ServerOperationErrorGenerator.kt:142 */
|
1506 + | ListSnapshotBlocksError::ValidationException(_inner) =>
|
1507 + | /* ServerOperationErrorGenerator.kt:103 */
|
1508 + | {
|
1509 + | Some(_inner)
|
1510 + | }
|
1511 + | /* ServerOperationErrorGenerator.kt:139 */
|
1512 + | }
|
1513 + | /* ServerOperationErrorGenerator.kt:101 */
|
1514 + | }
|
1515 + | /* ServerOperationErrorGenerator.kt:100 */
|
712 1516 | }
|
1517 + | /* ServerOperationErrorGenerator.kt:110 */
|
713 1518 | impl ::std::convert::From<crate::error::InternalServerException>
|
714 1519 | for crate::error::ListSnapshotBlocksError
|
715 1520 | {
|
1521 + | /* ServerOperationErrorGenerator.kt:111 */
|
716 1522 | fn from(
|
717 1523 | variant: crate::error::InternalServerException,
|
718 1524 | ) -> crate::error::ListSnapshotBlocksError {
|
1525 + | /* ServerOperationErrorGenerator.kt:112 */
|
719 1526 | Self::InternalServerException(variant)
|
1527 + | /* ServerOperationErrorGenerator.kt:111 */
|
720 1528 | }
|
1529 + | /* ServerOperationErrorGenerator.kt:110 */
|
721 1530 | }
|
1531 + | /* ServerOperationErrorGenerator.kt:110 */
|
722 1532 | impl ::std::convert::From<crate::error::ResourceNotFoundException>
|
723 1533 | for crate::error::ListSnapshotBlocksError
|
724 1534 | {
|
1535 + | /* ServerOperationErrorGenerator.kt:111 */
|
725 1536 | fn from(
|
726 1537 | variant: crate::error::ResourceNotFoundException,
|
727 1538 | ) -> crate::error::ListSnapshotBlocksError {
|
1539 + | /* ServerOperationErrorGenerator.kt:112 */
|
728 1540 | Self::ResourceNotFoundException(variant)
|
1541 + | /* ServerOperationErrorGenerator.kt:111 */
|
729 1542 | }
|
1543 + | /* ServerOperationErrorGenerator.kt:110 */
|
730 1544 | }
|
1545 + | /* ServerOperationErrorGenerator.kt:110 */
|
731 1546 | impl ::std::convert::From<crate::error::AccessDeniedException>
|
732 1547 | for crate::error::ListSnapshotBlocksError
|
733 1548 | {
|
1549 + | /* ServerOperationErrorGenerator.kt:111 */
|
734 1550 | fn from(variant: crate::error::AccessDeniedException) -> crate::error::ListSnapshotBlocksError {
|
1551 + | /* ServerOperationErrorGenerator.kt:112 */
|
735 1552 | Self::AccessDeniedException(variant)
|
1553 + | /* ServerOperationErrorGenerator.kt:111 */
|
736 1554 | }
|
1555 + | /* ServerOperationErrorGenerator.kt:110 */
|
737 1556 | }
|
1557 + | /* ServerOperationErrorGenerator.kt:110 */
|
738 1558 | impl ::std::convert::From<crate::error::RequestThrottledException>
|
739 1559 | for crate::error::ListSnapshotBlocksError
|
740 1560 | {
|
1561 + | /* ServerOperationErrorGenerator.kt:111 */
|
741 1562 | fn from(
|
742 1563 | variant: crate::error::RequestThrottledException,
|
743 1564 | ) -> crate::error::ListSnapshotBlocksError {
|
1565 + | /* ServerOperationErrorGenerator.kt:112 */
|
744 1566 | Self::RequestThrottledException(variant)
|
1567 + | /* ServerOperationErrorGenerator.kt:111 */
|
745 1568 | }
|
1569 + | /* ServerOperationErrorGenerator.kt:110 */
|
746 1570 | }
|
1571 + | /* ServerOperationErrorGenerator.kt:110 */
|
747 1572 | impl ::std::convert::From<crate::error::ServiceQuotaExceededException>
|
748 1573 | for crate::error::ListSnapshotBlocksError
|
749 1574 | {
|
1575 + | /* ServerOperationErrorGenerator.kt:111 */
|
750 1576 | fn from(
|
751 1577 | variant: crate::error::ServiceQuotaExceededException,
|
752 1578 | ) -> crate::error::ListSnapshotBlocksError {
|
1579 + | /* ServerOperationErrorGenerator.kt:112 */
|
753 1580 | Self::ServiceQuotaExceededException(variant)
|
1581 + | /* ServerOperationErrorGenerator.kt:111 */
|
754 1582 | }
|
1583 + | /* ServerOperationErrorGenerator.kt:110 */
|
755 1584 | }
|
1585 + | /* ServerOperationErrorGenerator.kt:110 */
|
756 1586 | impl ::std::convert::From<crate::error::ValidationException>
|
757 1587 | for crate::error::ListSnapshotBlocksError
|
758 1588 | {
|
1589 + | /* ServerOperationErrorGenerator.kt:111 */
|
759 1590 | fn from(variant: crate::error::ValidationException) -> crate::error::ListSnapshotBlocksError {
|
1591 + | /* ServerOperationErrorGenerator.kt:112 */
|
760 1592 | Self::ValidationException(variant)
|
1593 + | /* ServerOperationErrorGenerator.kt:111 */
|
761 1594 | }
|
1595 + | /* ServerOperationErrorGenerator.kt:110 */
|
762 1596 | }
|
763 1597 |
|
1598 + | /* ServerOperationErrorGenerator.kt:63 */
|
764 1599 | /// Error type for the `ListChangedBlocks` operation.
|
1600 + | /* ServerOperationErrorGenerator.kt:64 */
|
765 1601 | /// Each variant represents an error that can occur for the `ListChangedBlocks` operation.
|
1602 + | /* RustType.kt:516 */
|
766 1603 | #[derive(::std::fmt::Debug)]
|
767 - | pub enum ListChangedBlocksError {
|
768 - | /// <p>An internal error has occurred.</p>
|
1604 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum ListChangedBlocksError {
|
1605 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>An internal error has occurred.</p>
|
1606 + | /* ServerOperationErrorGenerator.kt:71 */
|
769 1607 | InternalServerException(crate::error::InternalServerException),
|
770 - | /// <p>The specified resource does not exist.</p>
|
1608 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>The specified resource does not exist.</p>
|
1609 + | /* ServerOperationErrorGenerator.kt:71 */
|
771 1610 | ResourceNotFoundException(crate::error::ResourceNotFoundException),
|
772 - | /// <p>You do not have sufficient access to perform this action.</p>
|
1611 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>You do not have sufficient access to perform this action.</p>
|
1612 + | /* ServerOperationErrorGenerator.kt:71 */
|
773 1613 | AccessDeniedException(crate::error::AccessDeniedException),
|
774 - | /// <p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
|
1614 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
|
1615 + | /* ServerOperationErrorGenerator.kt:71 */
|
775 1616 | RequestThrottledException(crate::error::RequestThrottledException),
|
776 - | /// <p>Your current service quotas do not allow you to perform this action.</p>
|
1617 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>Your current service quotas do not allow you to perform this action.</p>
|
1618 + | /* ServerOperationErrorGenerator.kt:71 */
|
777 1619 | ServiceQuotaExceededException(crate::error::ServiceQuotaExceededException),
|
778 - | /// 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.
|
1620 + | /// /* 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.
|
1621 + | /* ServerOperationErrorGenerator.kt:71 */
|
779 1622 | ValidationException(crate::error::ValidationException),
|
1623 + | /* ServerOperationErrorGenerator.kt:66 */
|
780 1624 | }
|
1625 + | /* ServerOperationErrorGenerator.kt:75 */
|
781 1626 | impl ::std::fmt::Display for ListChangedBlocksError {
|
1627 + | /* ServerOperationErrorGenerator.kt:76 */
|
782 1628 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1629 + | /* ServerOperationErrorGenerator.kt:139 */
|
783 1630 | match &self {
|
784 - | ListChangedBlocksError::InternalServerException(_inner) => _inner.fmt(f),
|
785 - | ListChangedBlocksError::ResourceNotFoundException(_inner) => _inner.fmt(f),
|
786 - | ListChangedBlocksError::AccessDeniedException(_inner) => _inner.fmt(f),
|
787 - | ListChangedBlocksError::RequestThrottledException(_inner) => _inner.fmt(f),
|
788 - | ListChangedBlocksError::ServiceQuotaExceededException(_inner) => _inner.fmt(f),
|
789 - | ListChangedBlocksError::ValidationException(_inner) => _inner.fmt(f),
|
1631 + | /* ServerOperationErrorGenerator.kt:142 */
|
1632 + | ListChangedBlocksError::InternalServerException(_inner) =>
|
1633 + | /* ServerOperationErrorGenerator.kt:78 */
|
1634 + | {
|
1635 + | _inner.fmt(f)
|
790 1636 | }
|
1637 + | ,
|
1638 + | /* ServerOperationErrorGenerator.kt:142 */
|
1639 + | ListChangedBlocksError::ResourceNotFoundException(_inner) =>
|
1640 + | /* ServerOperationErrorGenerator.kt:78 */
|
1641 + | {
|
1642 + | _inner.fmt(f)
|
1643 + | }
|
1644 + | ,
|
1645 + | /* ServerOperationErrorGenerator.kt:142 */
|
1646 + | ListChangedBlocksError::AccessDeniedException(_inner) =>
|
1647 + | /* ServerOperationErrorGenerator.kt:78 */
|
1648 + | {
|
1649 + | _inner.fmt(f)
|
1650 + | }
|
1651 + | ,
|
1652 + | /* ServerOperationErrorGenerator.kt:142 */
|
1653 + | ListChangedBlocksError::RequestThrottledException(_inner) =>
|
1654 + | /* ServerOperationErrorGenerator.kt:78 */
|
1655 + | {
|
1656 + | _inner.fmt(f)
|
1657 + | }
|
1658 + | ,
|
1659 + | /* ServerOperationErrorGenerator.kt:142 */
|
1660 + | ListChangedBlocksError::ServiceQuotaExceededException(_inner) =>
|
1661 + | /* ServerOperationErrorGenerator.kt:78 */
|
1662 + | {
|
1663 + | _inner.fmt(f)
|
1664 + | }
|
1665 + | ,
|
1666 + | /* ServerOperationErrorGenerator.kt:142 */
|
1667 + | ListChangedBlocksError::ValidationException(_inner) =>
|
1668 + | /* ServerOperationErrorGenerator.kt:78 */
|
1669 + | {
|
1670 + | _inner.fmt(f)
|
1671 + | }
|
1672 + | /* ServerOperationErrorGenerator.kt:139 */
|
791 1673 | }
|
1674 + | /* ServerOperationErrorGenerator.kt:76 */
|
1675 + | }
|
1676 + | /* ServerOperationErrorGenerator.kt:75 */
|
792 1677 | }
|
1678 + | /* ServerOperationErrorGenerator.kt:83 */
|
793 1679 | impl ListChangedBlocksError {
|
1680 + | /* ServerOperationErrorGenerator.kt:87 */
|
794 1681 | /// Returns `true` if the error kind is `ListChangedBlocksError::InternalServerException`.
|
1682 + | /* ServerOperationErrorGenerator.kt:88 */
|
795 1683 | pub fn is_internal_server_exception(&self) -> bool {
|
1684 + | /* ServerOperationErrorGenerator.kt:89 */
|
796 1685 | matches!(&self, ListChangedBlocksError::InternalServerException(_))
|
1686 + | /* ServerOperationErrorGenerator.kt:88 */
|
797 1687 | }
|
1688 + | /* ServerOperationErrorGenerator.kt:87 */
|
798 1689 | /// Returns `true` if the error kind is `ListChangedBlocksError::ResourceNotFoundException`.
|
1690 + | /* ServerOperationErrorGenerator.kt:88 */
|
799 1691 | pub fn is_resource_not_found_exception(&self) -> bool {
|
1692 + | /* ServerOperationErrorGenerator.kt:89 */
|
800 1693 | matches!(&self, ListChangedBlocksError::ResourceNotFoundException(_))
|
1694 + | /* ServerOperationErrorGenerator.kt:88 */
|
801 1695 | }
|
1696 + | /* ServerOperationErrorGenerator.kt:87 */
|
802 1697 | /// Returns `true` if the error kind is `ListChangedBlocksError::AccessDeniedException`.
|
1698 + | /* ServerOperationErrorGenerator.kt:88 */
|
803 1699 | pub fn is_access_denied_exception(&self) -> bool {
|
1700 + | /* ServerOperationErrorGenerator.kt:89 */
|
804 1701 | matches!(&self, ListChangedBlocksError::AccessDeniedException(_))
|
1702 + | /* ServerOperationErrorGenerator.kt:88 */
|
805 1703 | }
|
1704 + | /* ServerOperationErrorGenerator.kt:87 */
|
806 1705 | /// Returns `true` if the error kind is `ListChangedBlocksError::RequestThrottledException`.
|
1706 + | /* ServerOperationErrorGenerator.kt:88 */
|
807 1707 | pub fn is_request_throttled_exception(&self) -> bool {
|
1708 + | /* ServerOperationErrorGenerator.kt:89 */
|
808 1709 | matches!(&self, ListChangedBlocksError::RequestThrottledException(_))
|
1710 + | /* ServerOperationErrorGenerator.kt:88 */
|
809 1711 | }
|
1712 + | /* ServerOperationErrorGenerator.kt:87 */
|
810 1713 | /// Returns `true` if the error kind is `ListChangedBlocksError::ServiceQuotaExceededException`.
|
1714 + | /* ServerOperationErrorGenerator.kt:88 */
|
811 1715 | pub fn is_service_quota_exceeded_exception(&self) -> bool {
|
1716 + | /* ServerOperationErrorGenerator.kt:89 */
|
812 1717 | matches!(
|
813 1718 | &self,
|
814 1719 | ListChangedBlocksError::ServiceQuotaExceededException(_)
|
815 1720 | )
|
1721 + | /* ServerOperationErrorGenerator.kt:88 */
|
816 1722 | }
|
1723 + | /* ServerOperationErrorGenerator.kt:87 */
|
817 1724 | /// Returns `true` if the error kind is `ListChangedBlocksError::ValidationException`.
|
1725 + | /* ServerOperationErrorGenerator.kt:88 */
|
818 1726 | pub fn is_validation_exception(&self) -> bool {
|
1727 + | /* ServerOperationErrorGenerator.kt:89 */
|
819 1728 | matches!(&self, ListChangedBlocksError::ValidationException(_))
|
1729 + | /* ServerOperationErrorGenerator.kt:88 */
|
820 1730 | }
|
1731 + | /* ServerOperationErrorGenerator.kt:92 */
|
821 1732 | /// Returns the error name string by matching the correct variant.
|
1733 + | /* ServerOperationErrorGenerator.kt:93 */
|
822 1734 | pub fn name(&self) -> &'static str {
|
1735 + | /* ServerOperationErrorGenerator.kt:139 */
|
823 1736 | match &self {
|
824 - | ListChangedBlocksError::InternalServerException(_inner) => _inner.name(),
|
825 - | ListChangedBlocksError::ResourceNotFoundException(_inner) => _inner.name(),
|
826 - | ListChangedBlocksError::AccessDeniedException(_inner) => _inner.name(),
|
827 - | ListChangedBlocksError::RequestThrottledException(_inner) => _inner.name(),
|
828 - | ListChangedBlocksError::ServiceQuotaExceededException(_inner) => _inner.name(),
|
829 - | ListChangedBlocksError::ValidationException(_inner) => _inner.name(),
|
1737 + | /* ServerOperationErrorGenerator.kt:142 */
|
1738 + | ListChangedBlocksError::InternalServerException(_inner) =>
|
1739 + | /* ServerOperationErrorGenerator.kt:95 */
|
1740 + | {
|
1741 + | _inner.name()
|
830 1742 | }
|
1743 + | ,
|
1744 + | /* ServerOperationErrorGenerator.kt:142 */
|
1745 + | ListChangedBlocksError::ResourceNotFoundException(_inner) =>
|
1746 + | /* ServerOperationErrorGenerator.kt:95 */
|
1747 + | {
|
1748 + | _inner.name()
|
1749 + | }
|
1750 + | ,
|
1751 + | /* ServerOperationErrorGenerator.kt:142 */
|
1752 + | ListChangedBlocksError::AccessDeniedException(_inner) =>
|
1753 + | /* ServerOperationErrorGenerator.kt:95 */
|
1754 + | {
|
1755 + | _inner.name()
|
831 1756 | }
|
1757 + | ,
|
1758 + | /* ServerOperationErrorGenerator.kt:142 */
|
1759 + | ListChangedBlocksError::RequestThrottledException(_inner) =>
|
1760 + | /* ServerOperationErrorGenerator.kt:95 */
|
1761 + | {
|
1762 + | _inner.name()
|
1763 + | }
|
1764 + | ,
|
1765 + | /* ServerOperationErrorGenerator.kt:142 */
|
1766 + | ListChangedBlocksError::ServiceQuotaExceededException(_inner) =>
|
1767 + | /* ServerOperationErrorGenerator.kt:95 */
|
1768 + | {
|
1769 + | _inner.name()
|
1770 + | }
|
1771 + | ,
|
1772 + | /* ServerOperationErrorGenerator.kt:142 */
|
1773 + | ListChangedBlocksError::ValidationException(_inner) =>
|
1774 + | /* ServerOperationErrorGenerator.kt:95 */
|
1775 + | {
|
1776 + | _inner.name()
|
1777 + | }
|
1778 + | /* ServerOperationErrorGenerator.kt:139 */
|
1779 + | }
|
1780 + | /* ServerOperationErrorGenerator.kt:93 */
|
1781 + | }
|
1782 + | /* ServerOperationErrorGenerator.kt:83 */
|
832 1783 | }
|
1784 + | /* ServerOperationErrorGenerator.kt:100 */
|
833 1785 | impl ::std::error::Error for ListChangedBlocksError {
|
1786 + | /* ServerOperationErrorGenerator.kt:101 */
|
834 1787 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1788 + | /* ServerOperationErrorGenerator.kt:139 */
|
835 1789 | match &self {
|
836 - | ListChangedBlocksError::InternalServerException(_inner) => Some(_inner),
|
837 - | ListChangedBlocksError::ResourceNotFoundException(_inner) => Some(_inner),
|
838 - | ListChangedBlocksError::AccessDeniedException(_inner) => Some(_inner),
|
839 - | ListChangedBlocksError::RequestThrottledException(_inner) => Some(_inner),
|
840 - | ListChangedBlocksError::ServiceQuotaExceededException(_inner) => Some(_inner),
|
841 - | ListChangedBlocksError::ValidationException(_inner) => Some(_inner),
|
1790 + | /* ServerOperationErrorGenerator.kt:142 */
|
1791 + | ListChangedBlocksError::InternalServerException(_inner) =>
|
1792 + | /* ServerOperationErrorGenerator.kt:103 */
|
1793 + | {
|
1794 + | Some(_inner)
|
842 1795 | }
|
1796 + | ,
|
1797 + | /* ServerOperationErrorGenerator.kt:142 */
|
1798 + | ListChangedBlocksError::ResourceNotFoundException(_inner) =>
|
1799 + | /* ServerOperationErrorGenerator.kt:103 */
|
1800 + | {
|
1801 + | Some(_inner)
|
1802 + | }
|
1803 + | ,
|
1804 + | /* ServerOperationErrorGenerator.kt:142 */
|
1805 + | ListChangedBlocksError::AccessDeniedException(_inner) =>
|
1806 + | /* ServerOperationErrorGenerator.kt:103 */
|
1807 + | {
|
1808 + | Some(_inner)
|
1809 + | }
|
1810 + | ,
|
1811 + | /* ServerOperationErrorGenerator.kt:142 */
|
1812 + | ListChangedBlocksError::RequestThrottledException(_inner) =>
|
1813 + | /* ServerOperationErrorGenerator.kt:103 */
|
1814 + | {
|
1815 + | Some(_inner)
|
1816 + | }
|
1817 + | ,
|
1818 + | /* ServerOperationErrorGenerator.kt:142 */
|
1819 + | ListChangedBlocksError::ServiceQuotaExceededException(_inner) =>
|
1820 + | /* ServerOperationErrorGenerator.kt:103 */
|
1821 + | {
|
1822 + | Some(_inner)
|
843 1823 | }
|
1824 + | ,
|
1825 + | /* ServerOperationErrorGenerator.kt:142 */
|
1826 + | ListChangedBlocksError::ValidationException(_inner) =>
|
1827 + | /* ServerOperationErrorGenerator.kt:103 */
|
1828 + | {
|
1829 + | Some(_inner)
|
1830 + | }
|
1831 + | /* ServerOperationErrorGenerator.kt:139 */
|
1832 + | }
|
1833 + | /* ServerOperationErrorGenerator.kt:101 */
|
1834 + | }
|
1835 + | /* ServerOperationErrorGenerator.kt:100 */
|
844 1836 | }
|
1837 + | /* ServerOperationErrorGenerator.kt:110 */
|
845 1838 | impl ::std::convert::From<crate::error::InternalServerException>
|
846 1839 | for crate::error::ListChangedBlocksError
|
847 1840 | {
|
1841 + | /* ServerOperationErrorGenerator.kt:111 */
|
848 1842 | fn from(
|
849 1843 | variant: crate::error::InternalServerException,
|
850 1844 | ) -> crate::error::ListChangedBlocksError {
|
1845 + | /* ServerOperationErrorGenerator.kt:112 */
|
851 1846 | Self::InternalServerException(variant)
|
1847 + | /* ServerOperationErrorGenerator.kt:111 */
|
852 1848 | }
|
1849 + | /* ServerOperationErrorGenerator.kt:110 */
|
853 1850 | }
|
1851 + | /* ServerOperationErrorGenerator.kt:110 */
|
854 1852 | impl ::std::convert::From<crate::error::ResourceNotFoundException>
|
855 1853 | for crate::error::ListChangedBlocksError
|
856 1854 | {
|
1855 + | /* ServerOperationErrorGenerator.kt:111 */
|
857 1856 | fn from(
|
858 1857 | variant: crate::error::ResourceNotFoundException,
|
859 1858 | ) -> crate::error::ListChangedBlocksError {
|
1859 + | /* ServerOperationErrorGenerator.kt:112 */
|
860 1860 | Self::ResourceNotFoundException(variant)
|
1861 + | /* ServerOperationErrorGenerator.kt:111 */
|
861 1862 | }
|
1863 + | /* ServerOperationErrorGenerator.kt:110 */
|
862 1864 | }
|
1865 + | /* ServerOperationErrorGenerator.kt:110 */
|
863 1866 | impl ::std::convert::From<crate::error::AccessDeniedException>
|
864 1867 | for crate::error::ListChangedBlocksError
|
865 1868 | {
|
1869 + | /* ServerOperationErrorGenerator.kt:111 */
|
866 1870 | fn from(variant: crate::error::AccessDeniedException) -> crate::error::ListChangedBlocksError {
|
1871 + | /* ServerOperationErrorGenerator.kt:112 */
|
867 1872 | Self::AccessDeniedException(variant)
|
1873 + | /* ServerOperationErrorGenerator.kt:111 */
|
868 1874 | }
|
1875 + | /* ServerOperationErrorGenerator.kt:110 */
|
869 1876 | }
|
1877 + | /* ServerOperationErrorGenerator.kt:110 */
|
870 1878 | impl ::std::convert::From<crate::error::RequestThrottledException>
|
871 1879 | for crate::error::ListChangedBlocksError
|
872 1880 | {
|
1881 + | /* ServerOperationErrorGenerator.kt:111 */
|
873 1882 | fn from(
|
874 1883 | variant: crate::error::RequestThrottledException,
|
875 1884 | ) -> crate::error::ListChangedBlocksError {
|
1885 + | /* ServerOperationErrorGenerator.kt:112 */
|
876 1886 | Self::RequestThrottledException(variant)
|
1887 + | /* ServerOperationErrorGenerator.kt:111 */
|
877 1888 | }
|
1889 + | /* ServerOperationErrorGenerator.kt:110 */
|
878 1890 | }
|
1891 + | /* ServerOperationErrorGenerator.kt:110 */
|
879 1892 | impl ::std::convert::From<crate::error::ServiceQuotaExceededException>
|
880 1893 | for crate::error::ListChangedBlocksError
|
881 1894 | {
|
1895 + | /* ServerOperationErrorGenerator.kt:111 */
|
882 1896 | fn from(
|
883 1897 | variant: crate::error::ServiceQuotaExceededException,
|
884 1898 | ) -> crate::error::ListChangedBlocksError {
|
1899 + | /* ServerOperationErrorGenerator.kt:112 */
|
885 1900 | Self::ServiceQuotaExceededException(variant)
|
1901 + | /* ServerOperationErrorGenerator.kt:111 */
|
886 1902 | }
|
1903 + | /* ServerOperationErrorGenerator.kt:110 */
|
887 1904 | }
|
1905 + | /* ServerOperationErrorGenerator.kt:110 */
|
888 1906 | impl ::std::convert::From<crate::error::ValidationException>
|
889 1907 | for crate::error::ListChangedBlocksError
|
890 1908 | {
|
1909 + | /* ServerOperationErrorGenerator.kt:111 */
|
891 1910 | fn from(variant: crate::error::ValidationException) -> crate::error::ListChangedBlocksError {
|
1911 + | /* ServerOperationErrorGenerator.kt:112 */
|
892 1912 | Self::ValidationException(variant)
|
1913 + | /* ServerOperationErrorGenerator.kt:111 */
|
893 1914 | }
|
1915 + | /* ServerOperationErrorGenerator.kt:110 */
|
894 1916 | }
|
895 1917 |
|
1918 + | /* ServerOperationErrorGenerator.kt:63 */
|
896 1919 | /// Error type for the `GetSnapshotBlock` operation.
|
1920 + | /* ServerOperationErrorGenerator.kt:64 */
|
897 1921 | /// Each variant represents an error that can occur for the `GetSnapshotBlock` operation.
|
1922 + | /* RustType.kt:516 */
|
898 1923 | #[derive(::std::fmt::Debug)]
|
899 - | pub enum GetSnapshotBlockError {
|
900 - | /// <p>An internal error has occurred.</p>
|
1924 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum GetSnapshotBlockError {
|
1925 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>An internal error has occurred.</p>
|
1926 + | /* ServerOperationErrorGenerator.kt:71 */
|
901 1927 | InternalServerException(crate::error::InternalServerException),
|
902 - | /// <p>The specified resource does not exist.</p>
|
1928 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>The specified resource does not exist.</p>
|
1929 + | /* ServerOperationErrorGenerator.kt:71 */
|
903 1930 | ResourceNotFoundException(crate::error::ResourceNotFoundException),
|
904 - | /// <p>You do not have sufficient access to perform this action.</p>
|
1931 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>You do not have sufficient access to perform this action.</p>
|
1932 + | /* ServerOperationErrorGenerator.kt:71 */
|
905 1933 | AccessDeniedException(crate::error::AccessDeniedException),
|
906 - | /// <p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
|
1934 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
|
1935 + | /* ServerOperationErrorGenerator.kt:71 */
|
907 1936 | RequestThrottledException(crate::error::RequestThrottledException),
|
908 - | /// <p>Your current service quotas do not allow you to perform this action.</p>
|
1937 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>Your current service quotas do not allow you to perform this action.</p>
|
1938 + | /* ServerOperationErrorGenerator.kt:71 */
|
909 1939 | ServiceQuotaExceededException(crate::error::ServiceQuotaExceededException),
|
910 - | /// 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.
|
1940 + | /// /* 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.
|
1941 + | /* ServerOperationErrorGenerator.kt:71 */
|
911 1942 | ValidationException(crate::error::ValidationException),
|
1943 + | /* ServerOperationErrorGenerator.kt:66 */
|
912 1944 | }
|
1945 + | /* ServerOperationErrorGenerator.kt:75 */
|
913 1946 | impl ::std::fmt::Display for GetSnapshotBlockError {
|
1947 + | /* ServerOperationErrorGenerator.kt:76 */
|
914 1948 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1949 + | /* ServerOperationErrorGenerator.kt:139 */
|
915 1950 | match &self {
|
916 - | GetSnapshotBlockError::InternalServerException(_inner) => _inner.fmt(f),
|
917 - | GetSnapshotBlockError::ResourceNotFoundException(_inner) => _inner.fmt(f),
|
918 - | GetSnapshotBlockError::AccessDeniedException(_inner) => _inner.fmt(f),
|
919 - | GetSnapshotBlockError::RequestThrottledException(_inner) => _inner.fmt(f),
|
920 - | GetSnapshotBlockError::ServiceQuotaExceededException(_inner) => _inner.fmt(f),
|
921 - | GetSnapshotBlockError::ValidationException(_inner) => _inner.fmt(f),
|
1951 + | /* ServerOperationErrorGenerator.kt:142 */
|
1952 + | GetSnapshotBlockError::InternalServerException(_inner) =>
|
1953 + | /* ServerOperationErrorGenerator.kt:78 */
|
1954 + | {
|
1955 + | _inner.fmt(f)
|
1956 + | }
|
1957 + | ,
|
1958 + | /* ServerOperationErrorGenerator.kt:142 */
|
1959 + | GetSnapshotBlockError::ResourceNotFoundException(_inner) =>
|
1960 + | /* ServerOperationErrorGenerator.kt:78 */
|
1961 + | {
|
1962 + | _inner.fmt(f)
|
1963 + | }
|
1964 + | ,
|
1965 + | /* ServerOperationErrorGenerator.kt:142 */
|
1966 + | GetSnapshotBlockError::AccessDeniedException(_inner) =>
|
1967 + | /* ServerOperationErrorGenerator.kt:78 */
|
1968 + | {
|
1969 + | _inner.fmt(f)
|
1970 + | }
|
1971 + | ,
|
1972 + | /* ServerOperationErrorGenerator.kt:142 */
|
1973 + | GetSnapshotBlockError::RequestThrottledException(_inner) =>
|
1974 + | /* ServerOperationErrorGenerator.kt:78 */
|
1975 + | {
|
1976 + | _inner.fmt(f)
|
1977 + | }
|
1978 + | ,
|
1979 + | /* ServerOperationErrorGenerator.kt:142 */
|
1980 + | GetSnapshotBlockError::ServiceQuotaExceededException(_inner) =>
|
1981 + | /* ServerOperationErrorGenerator.kt:78 */
|
1982 + | {
|
1983 + | _inner.fmt(f)
|
1984 + | }
|
1985 + | ,
|
1986 + | /* ServerOperationErrorGenerator.kt:142 */
|
1987 + | GetSnapshotBlockError::ValidationException(_inner) =>
|
1988 + | /* ServerOperationErrorGenerator.kt:78 */
|
1989 + | {
|
1990 + | _inner.fmt(f)
|
922 1991 | }
|
1992 + | /* ServerOperationErrorGenerator.kt:139 */
|
923 1993 | }
|
1994 + | /* ServerOperationErrorGenerator.kt:76 */
|
1995 + | }
|
1996 + | /* ServerOperationErrorGenerator.kt:75 */
|
924 1997 | }
|
1998 + | /* ServerOperationErrorGenerator.kt:83 */
|
925 1999 | impl GetSnapshotBlockError {
|
2000 + | /* ServerOperationErrorGenerator.kt:87 */
|
926 2001 | /// Returns `true` if the error kind is `GetSnapshotBlockError::InternalServerException`.
|
2002 + | /* ServerOperationErrorGenerator.kt:88 */
|
927 2003 | pub fn is_internal_server_exception(&self) -> bool {
|
2004 + | /* ServerOperationErrorGenerator.kt:89 */
|
928 2005 | matches!(&self, GetSnapshotBlockError::InternalServerException(_))
|
2006 + | /* ServerOperationErrorGenerator.kt:88 */
|
929 2007 | }
|
2008 + | /* ServerOperationErrorGenerator.kt:87 */
|
930 2009 | /// Returns `true` if the error kind is `GetSnapshotBlockError::ResourceNotFoundException`.
|
2010 + | /* ServerOperationErrorGenerator.kt:88 */
|
931 2011 | pub fn is_resource_not_found_exception(&self) -> bool {
|
2012 + | /* ServerOperationErrorGenerator.kt:89 */
|
932 2013 | matches!(&self, GetSnapshotBlockError::ResourceNotFoundException(_))
|
2014 + | /* ServerOperationErrorGenerator.kt:88 */
|
933 2015 | }
|
2016 + | /* ServerOperationErrorGenerator.kt:87 */
|
934 2017 | /// Returns `true` if the error kind is `GetSnapshotBlockError::AccessDeniedException`.
|
2018 + | /* ServerOperationErrorGenerator.kt:88 */
|
935 2019 | pub fn is_access_denied_exception(&self) -> bool {
|
2020 + | /* ServerOperationErrorGenerator.kt:89 */
|
936 2021 | matches!(&self, GetSnapshotBlockError::AccessDeniedException(_))
|
2022 + | /* ServerOperationErrorGenerator.kt:88 */
|
937 2023 | }
|
2024 + | /* ServerOperationErrorGenerator.kt:87 */
|
938 2025 | /// Returns `true` if the error kind is `GetSnapshotBlockError::RequestThrottledException`.
|
2026 + | /* ServerOperationErrorGenerator.kt:88 */
|
939 2027 | pub fn is_request_throttled_exception(&self) -> bool {
|
2028 + | /* ServerOperationErrorGenerator.kt:89 */
|
940 2029 | matches!(&self, GetSnapshotBlockError::RequestThrottledException(_))
|
2030 + | /* ServerOperationErrorGenerator.kt:88 */
|
941 2031 | }
|
2032 + | /* ServerOperationErrorGenerator.kt:87 */
|
942 2033 | /// Returns `true` if the error kind is `GetSnapshotBlockError::ServiceQuotaExceededException`.
|
2034 + | /* ServerOperationErrorGenerator.kt:88 */
|
943 2035 | pub fn is_service_quota_exceeded_exception(&self) -> bool {
|
2036 + | /* ServerOperationErrorGenerator.kt:89 */
|
944 2037 | matches!(
|
945 2038 | &self,
|
946 2039 | GetSnapshotBlockError::ServiceQuotaExceededException(_)
|
947 2040 | )
|
2041 + | /* ServerOperationErrorGenerator.kt:88 */
|
948 2042 | }
|
2043 + | /* ServerOperationErrorGenerator.kt:87 */
|
949 2044 | /// Returns `true` if the error kind is `GetSnapshotBlockError::ValidationException`.
|
2045 + | /* ServerOperationErrorGenerator.kt:88 */
|
950 2046 | pub fn is_validation_exception(&self) -> bool {
|
2047 + | /* ServerOperationErrorGenerator.kt:89 */
|
951 2048 | matches!(&self, GetSnapshotBlockError::ValidationException(_))
|
2049 + | /* ServerOperationErrorGenerator.kt:88 */
|
952 2050 | }
|
2051 + | /* ServerOperationErrorGenerator.kt:92 */
|
953 2052 | /// Returns the error name string by matching the correct variant.
|
2053 + | /* ServerOperationErrorGenerator.kt:93 */
|
954 2054 | pub fn name(&self) -> &'static str {
|
2055 + | /* ServerOperationErrorGenerator.kt:139 */
|
955 2056 | match &self {
|
956 - | GetSnapshotBlockError::InternalServerException(_inner) => _inner.name(),
|
957 - | GetSnapshotBlockError::ResourceNotFoundException(_inner) => _inner.name(),
|
958 - | GetSnapshotBlockError::AccessDeniedException(_inner) => _inner.name(),
|
959 - | GetSnapshotBlockError::RequestThrottledException(_inner) => _inner.name(),
|
960 - | GetSnapshotBlockError::ServiceQuotaExceededException(_inner) => _inner.name(),
|
961 - | GetSnapshotBlockError::ValidationException(_inner) => _inner.name(),
|
2057 + | /* ServerOperationErrorGenerator.kt:142 */
|
2058 + | GetSnapshotBlockError::InternalServerException(_inner) =>
|
2059 + | /* ServerOperationErrorGenerator.kt:95 */
|
2060 + | {
|
2061 + | _inner.name()
|
2062 + | }
|
2063 + | ,
|
2064 + | /* ServerOperationErrorGenerator.kt:142 */
|
2065 + | GetSnapshotBlockError::ResourceNotFoundException(_inner) =>
|
2066 + | /* ServerOperationErrorGenerator.kt:95 */
|
2067 + | {
|
2068 + | _inner.name()
|
962 2069 | }
|
2070 + | ,
|
2071 + | /* ServerOperationErrorGenerator.kt:142 */
|
2072 + | GetSnapshotBlockError::AccessDeniedException(_inner) =>
|
2073 + | /* ServerOperationErrorGenerator.kt:95 */
|
2074 + | {
|
2075 + | _inner.name()
|
2076 + | }
|
2077 + | ,
|
2078 + | /* ServerOperationErrorGenerator.kt:142 */
|
2079 + | GetSnapshotBlockError::RequestThrottledException(_inner) =>
|
2080 + | /* ServerOperationErrorGenerator.kt:95 */
|
2081 + | {
|
2082 + | _inner.name()
|
963 2083 | }
|
2084 + | ,
|
2085 + | /* ServerOperationErrorGenerator.kt:142 */
|
2086 + | GetSnapshotBlockError::ServiceQuotaExceededException(_inner) =>
|
2087 + | /* ServerOperationErrorGenerator.kt:95 */
|
2088 + | {
|
2089 + | _inner.name()
|
2090 + | }
|
2091 + | ,
|
2092 + | /* ServerOperationErrorGenerator.kt:142 */
|
2093 + | GetSnapshotBlockError::ValidationException(_inner) =>
|
2094 + | /* ServerOperationErrorGenerator.kt:95 */
|
2095 + | {
|
2096 + | _inner.name()
|
2097 + | }
|
2098 + | /* ServerOperationErrorGenerator.kt:139 */
|
2099 + | }
|
2100 + | /* ServerOperationErrorGenerator.kt:93 */
|
2101 + | }
|
2102 + | /* ServerOperationErrorGenerator.kt:83 */
|
964 2103 | }
|
2104 + | /* ServerOperationErrorGenerator.kt:100 */
|
965 2105 | impl ::std::error::Error for GetSnapshotBlockError {
|
2106 + | /* ServerOperationErrorGenerator.kt:101 */
|
966 2107 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
2108 + | /* ServerOperationErrorGenerator.kt:139 */
|
967 2109 | match &self {
|
968 - | GetSnapshotBlockError::InternalServerException(_inner) => Some(_inner),
|
969 - | GetSnapshotBlockError::ResourceNotFoundException(_inner) => Some(_inner),
|
970 - | GetSnapshotBlockError::AccessDeniedException(_inner) => Some(_inner),
|
971 - | GetSnapshotBlockError::RequestThrottledException(_inner) => Some(_inner),
|
972 - | GetSnapshotBlockError::ServiceQuotaExceededException(_inner) => Some(_inner),
|
973 - | GetSnapshotBlockError::ValidationException(_inner) => Some(_inner),
|
2110 + | /* ServerOperationErrorGenerator.kt:142 */
|
2111 + | GetSnapshotBlockError::InternalServerException(_inner) =>
|
2112 + | /* ServerOperationErrorGenerator.kt:103 */
|
2113 + | {
|
2114 + | Some(_inner)
|
974 2115 | }
|
2116 + | ,
|
2117 + | /* ServerOperationErrorGenerator.kt:142 */
|
2118 + | GetSnapshotBlockError::ResourceNotFoundException(_inner) =>
|
2119 + | /* ServerOperationErrorGenerator.kt:103 */
|
2120 + | {
|
2121 + | Some(_inner)
|
975 2122 | }
|
2123 + | ,
|
2124 + | /* ServerOperationErrorGenerator.kt:142 */
|
2125 + | GetSnapshotBlockError::AccessDeniedException(_inner) =>
|
2126 + | /* ServerOperationErrorGenerator.kt:103 */
|
2127 + | {
|
2128 + | Some(_inner)
|
2129 + | }
|
2130 + | ,
|
2131 + | /* ServerOperationErrorGenerator.kt:142 */
|
2132 + | GetSnapshotBlockError::RequestThrottledException(_inner) =>
|
2133 + | /* ServerOperationErrorGenerator.kt:103 */
|
2134 + | {
|
2135 + | Some(_inner)
|
2136 + | }
|
2137 + | ,
|
2138 + | /* ServerOperationErrorGenerator.kt:142 */
|
2139 + | GetSnapshotBlockError::ServiceQuotaExceededException(_inner) =>
|
2140 + | /* ServerOperationErrorGenerator.kt:103 */
|
2141 + | {
|
2142 + | Some(_inner)
|
2143 + | }
|
2144 + | ,
|
2145 + | /* ServerOperationErrorGenerator.kt:142 */
|
2146 + | GetSnapshotBlockError::ValidationException(_inner) =>
|
2147 + | /* ServerOperationErrorGenerator.kt:103 */
|
2148 + | {
|
2149 + | Some(_inner)
|
2150 + | }
|
2151 + | /* ServerOperationErrorGenerator.kt:139 */
|
2152 + | }
|
2153 + | /* ServerOperationErrorGenerator.kt:101 */
|
2154 + | }
|
2155 + | /* ServerOperationErrorGenerator.kt:100 */
|
976 2156 | }
|
2157 + | /* ServerOperationErrorGenerator.kt:110 */
|
977 2158 | impl ::std::convert::From<crate::error::InternalServerException>
|
978 2159 | for crate::error::GetSnapshotBlockError
|
979 2160 | {
|
2161 + | /* ServerOperationErrorGenerator.kt:111 */
|
980 2162 | fn from(variant: crate::error::InternalServerException) -> crate::error::GetSnapshotBlockError {
|
2163 + | /* ServerOperationErrorGenerator.kt:112 */
|
981 2164 | Self::InternalServerException(variant)
|
2165 + | /* ServerOperationErrorGenerator.kt:111 */
|
982 2166 | }
|
2167 + | /* ServerOperationErrorGenerator.kt:110 */
|
983 2168 | }
|
2169 + | /* ServerOperationErrorGenerator.kt:110 */
|
984 2170 | impl ::std::convert::From<crate::error::ResourceNotFoundException>
|
985 2171 | for crate::error::GetSnapshotBlockError
|
986 2172 | {
|
2173 + | /* ServerOperationErrorGenerator.kt:111 */
|
987 2174 | fn from(
|
988 2175 | variant: crate::error::ResourceNotFoundException,
|
989 2176 | ) -> crate::error::GetSnapshotBlockError {
|
2177 + | /* ServerOperationErrorGenerator.kt:112 */
|
990 2178 | Self::ResourceNotFoundException(variant)
|
2179 + | /* ServerOperationErrorGenerator.kt:111 */
|
991 2180 | }
|
2181 + | /* ServerOperationErrorGenerator.kt:110 */
|
992 2182 | }
|
2183 + | /* ServerOperationErrorGenerator.kt:110 */
|
993 2184 | impl ::std::convert::From<crate::error::AccessDeniedException>
|
994 2185 | for crate::error::GetSnapshotBlockError
|
995 2186 | {
|
2187 + | /* ServerOperationErrorGenerator.kt:111 */
|
996 2188 | fn from(variant: crate::error::AccessDeniedException) -> crate::error::GetSnapshotBlockError {
|
2189 + | /* ServerOperationErrorGenerator.kt:112 */
|
997 2190 | Self::AccessDeniedException(variant)
|
2191 + | /* ServerOperationErrorGenerator.kt:111 */
|
998 2192 | }
|
2193 + | /* ServerOperationErrorGenerator.kt:110 */
|
999 2194 | }
|
2195 + | /* ServerOperationErrorGenerator.kt:110 */
|
1000 2196 | impl ::std::convert::From<crate::error::RequestThrottledException>
|
1001 2197 | for crate::error::GetSnapshotBlockError
|
1002 2198 | {
|
2199 + | /* ServerOperationErrorGenerator.kt:111 */
|
1003 2200 | fn from(
|
1004 2201 | variant: crate::error::RequestThrottledException,
|
1005 2202 | ) -> crate::error::GetSnapshotBlockError {
|
2203 + | /* ServerOperationErrorGenerator.kt:112 */
|
1006 2204 | Self::RequestThrottledException(variant)
|
2205 + | /* ServerOperationErrorGenerator.kt:111 */
|
1007 2206 | }
|
2207 + | /* ServerOperationErrorGenerator.kt:110 */
|
1008 2208 | }
|
2209 + | /* ServerOperationErrorGenerator.kt:110 */
|
1009 2210 | impl ::std::convert::From<crate::error::ServiceQuotaExceededException>
|
1010 2211 | for crate::error::GetSnapshotBlockError
|
1011 2212 | {
|
2213 + | /* ServerOperationErrorGenerator.kt:111 */
|
1012 2214 | fn from(
|
1013 2215 | variant: crate::error::ServiceQuotaExceededException,
|
1014 2216 | ) -> crate::error::GetSnapshotBlockError {
|
2217 + | /* ServerOperationErrorGenerator.kt:112 */
|
1015 2218 | Self::ServiceQuotaExceededException(variant)
|
2219 + | /* ServerOperationErrorGenerator.kt:111 */
|
1016 2220 | }
|
2221 + | /* ServerOperationErrorGenerator.kt:110 */
|
1017 2222 | }
|
2223 + | /* ServerOperationErrorGenerator.kt:110 */
|
1018 2224 | impl ::std::convert::From<crate::error::ValidationException>
|
1019 2225 | for crate::error::GetSnapshotBlockError
|
1020 2226 | {
|
2227 + | /* ServerOperationErrorGenerator.kt:111 */
|
1021 2228 | fn from(variant: crate::error::ValidationException) -> crate::error::GetSnapshotBlockError {
|
2229 + | /* ServerOperationErrorGenerator.kt:112 */
|
1022 2230 | Self::ValidationException(variant)
|
2231 + | /* ServerOperationErrorGenerator.kt:111 */
|
1023 2232 | }
|
2233 + | /* ServerOperationErrorGenerator.kt:110 */
|
1024 2234 | }
|
1025 2235 |
|
2236 + | /* ServerOperationErrorGenerator.kt:63 */
|
1026 2237 | /// Error type for the `CompleteSnapshot` operation.
|
2238 + | /* ServerOperationErrorGenerator.kt:64 */
|
1027 2239 | /// Each variant represents an error that can occur for the `CompleteSnapshot` operation.
|
2240 + | /* RustType.kt:516 */
|
1028 2241 | #[derive(::std::fmt::Debug)]
|
1029 - | pub enum CompleteSnapshotError {
|
1030 - | /// <p>An internal error has occurred.</p>
|
2242 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum CompleteSnapshotError {
|
2243 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>An internal error has occurred.</p>
|
2244 + | /* ServerOperationErrorGenerator.kt:71 */
|
1031 2245 | InternalServerException(crate::error::InternalServerException),
|
1032 - | /// <p>The specified resource does not exist.</p>
|
2246 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>The specified resource does not exist.</p>
|
2247 + | /* ServerOperationErrorGenerator.kt:71 */
|
1033 2248 | ResourceNotFoundException(crate::error::ResourceNotFoundException),
|
1034 - | /// <p>You do not have sufficient access to perform this action.</p>
|
2249 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>You do not have sufficient access to perform this action.</p>
|
2250 + | /* ServerOperationErrorGenerator.kt:71 */
|
1035 2251 | AccessDeniedException(crate::error::AccessDeniedException),
|
1036 - | /// <p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
|
2252 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
|
2253 + | /* ServerOperationErrorGenerator.kt:71 */
|
1037 2254 | RequestThrottledException(crate::error::RequestThrottledException),
|
1038 - | /// <p>Your current service quotas do not allow you to perform this action.</p>
|
2255 + | /// /* ServerOperationErrorGenerator.kt:68 */<p>Your current service quotas do not allow you to perform this action.</p>
|
2256 + | /* ServerOperationErrorGenerator.kt:71 */
|
1039 2257 | ServiceQuotaExceededException(crate::error::ServiceQuotaExceededException),
|
1040 - | /// 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.
|
2258 + | /// /* 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.
|
2259 + | /* ServerOperationErrorGenerator.kt:71 */
|
1041 2260 | ValidationException(crate::error::ValidationException),
|
2261 + | /* ServerOperationErrorGenerator.kt:66 */
|
1042 2262 | }
|
2263 + | /* ServerOperationErrorGenerator.kt:75 */
|
1043 2264 | impl ::std::fmt::Display for CompleteSnapshotError {
|
2265 + | /* ServerOperationErrorGenerator.kt:76 */
|
1044 2266 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2267 + | /* ServerOperationErrorGenerator.kt:139 */
|
1045 2268 | match &self {
|
1046 - | CompleteSnapshotError::InternalServerException(_inner) => _inner.fmt(f),
|
1047 - | CompleteSnapshotError::ResourceNotFoundException(_inner) => _inner.fmt(f),
|
1048 - | CompleteSnapshotError::AccessDeniedException(_inner) => _inner.fmt(f),
|
1049 - | CompleteSnapshotError::RequestThrottledException(_inner) => _inner.fmt(f),
|
1050 - | CompleteSnapshotError::ServiceQuotaExceededException(_inner) => _inner.fmt(f),
|
1051 - | CompleteSnapshotError::ValidationException(_inner) => _inner.fmt(f),
|
2269 + | /* ServerOperationErrorGenerator.kt:142 */
|
2270 + | CompleteSnapshotError::InternalServerException(_inner) =>
|
2271 + | /* ServerOperationErrorGenerator.kt:78 */
|
2272 + | {
|
2273 + | _inner.fmt(f)
|
2274 + | }
|
2275 + | ,
|
2276 + | /* ServerOperationErrorGenerator.kt:142 */
|
2277 + | CompleteSnapshotError::ResourceNotFoundException(_inner) =>
|
2278 + | /* ServerOperationErrorGenerator.kt:78 */
|
2279 + | {
|
2280 + | _inner.fmt(f)
|
2281 + | }
|
2282 + | ,
|
2283 + | /* ServerOperationErrorGenerator.kt:142 */
|
2284 + | CompleteSnapshotError::AccessDeniedException(_inner) =>
|
2285 + | /* ServerOperationErrorGenerator.kt:78 */
|
2286 + | {
|
2287 + | _inner.fmt(f)
|
1052 2288 | }
|
2289 + | ,
|
2290 + | /* ServerOperationErrorGenerator.kt:142 */
|
2291 + | CompleteSnapshotError::RequestThrottledException(_inner) =>
|
2292 + | /* ServerOperationErrorGenerator.kt:78 */
|
2293 + | {
|
2294 + | _inner.fmt(f)
|
2295 + | }
|
2296 + | ,
|
2297 + | /* ServerOperationErrorGenerator.kt:142 */
|
2298 + | CompleteSnapshotError::ServiceQuotaExceededException(_inner) =>
|
2299 + | /* ServerOperationErrorGenerator.kt:78 */
|
2300 + | {
|
2301 + | _inner.fmt(f)
|
2302 + | }
|
2303 + | ,
|
2304 + | /* ServerOperationErrorGenerator.kt:142 */
|
2305 + | CompleteSnapshotError::ValidationException(_inner) =>
|
2306 + | /* ServerOperationErrorGenerator.kt:78 */
|
2307 + | {
|
2308 + | _inner.fmt(f)
|
2309 + | }
|
2310 + | /* ServerOperationErrorGenerator.kt:139 */
|
1053 2311 | }
|
2312 + | /* ServerOperationErrorGenerator.kt:76 */
|
2313 + | }
|
2314 + | /* ServerOperationErrorGenerator.kt:75 */
|
1054 2315 | }
|
2316 + | /* ServerOperationErrorGenerator.kt:83 */
|
1055 2317 | impl CompleteSnapshotError {
|
2318 + | /* ServerOperationErrorGenerator.kt:87 */
|
1056 2319 | /// Returns `true` if the error kind is `CompleteSnapshotError::InternalServerException`.
|
2320 + | /* ServerOperationErrorGenerator.kt:88 */
|
1057 2321 | pub fn is_internal_server_exception(&self) -> bool {
|
2322 + | /* ServerOperationErrorGenerator.kt:89 */
|
1058 2323 | matches!(&self, CompleteSnapshotError::InternalServerException(_))
|
2324 + | /* ServerOperationErrorGenerator.kt:88 */
|
1059 2325 | }
|
2326 + | /* ServerOperationErrorGenerator.kt:87 */
|
1060 2327 | /// Returns `true` if the error kind is `CompleteSnapshotError::ResourceNotFoundException`.
|
2328 + | /* ServerOperationErrorGenerator.kt:88 */
|
1061 2329 | pub fn is_resource_not_found_exception(&self) -> bool {
|
2330 + | /* ServerOperationErrorGenerator.kt:89 */
|
1062 2331 | matches!(&self, CompleteSnapshotError::ResourceNotFoundException(_))
|
2332 + | /* ServerOperationErrorGenerator.kt:88 */
|
1063 2333 | }
|
2334 + | /* ServerOperationErrorGenerator.kt:87 */
|
1064 2335 | /// Returns `true` if the error kind is `CompleteSnapshotError::AccessDeniedException`.
|
2336 + | /* ServerOperationErrorGenerator.kt:88 */
|
1065 2337 | pub fn is_access_denied_exception(&self) -> bool {
|
2338 + | /* ServerOperationErrorGenerator.kt:89 */
|
1066 2339 | matches!(&self, CompleteSnapshotError::AccessDeniedException(_))
|
2340 + | /* ServerOperationErrorGenerator.kt:88 */
|
1067 2341 | }
|
2342 + | /* ServerOperationErrorGenerator.kt:87 */
|
1068 2343 | /// Returns `true` if the error kind is `CompleteSnapshotError::RequestThrottledException`.
|
2344 + | /* ServerOperationErrorGenerator.kt:88 */
|
1069 2345 | pub fn is_request_throttled_exception(&self) -> bool {
|
2346 + | /* ServerOperationErrorGenerator.kt:89 */
|
1070 2347 | matches!(&self, CompleteSnapshotError::RequestThrottledException(_))
|
2348 + | /* ServerOperationErrorGenerator.kt:88 */
|
1071 2349 | }
|
2350 + | /* ServerOperationErrorGenerator.kt:87 */
|
1072 2351 | /// Returns `true` if the error kind is `CompleteSnapshotError::ServiceQuotaExceededException`.
|
2352 + | /* ServerOperationErrorGenerator.kt:88 */
|
1073 2353 | pub fn is_service_quota_exceeded_exception(&self) -> bool {
|
2354 + | /* ServerOperationErrorGenerator.kt:89 */
|
1074 2355 | matches!(
|
1075 2356 | &self,
|
1076 2357 | CompleteSnapshotError::ServiceQuotaExceededException(_)
|
1077 2358 | )
|
2359 + | /* ServerOperationErrorGenerator.kt:88 */
|
1078 2360 | }
|
2361 + | /* ServerOperationErrorGenerator.kt:87 */
|
1079 2362 | /// Returns `true` if the error kind is `CompleteSnapshotError::ValidationException`.
|
2363 + | /* ServerOperationErrorGenerator.kt:88 */
|
1080 2364 | pub fn is_validation_exception(&self) -> bool {
|
2365 + | /* ServerOperationErrorGenerator.kt:89 */
|
1081 2366 | matches!(&self, CompleteSnapshotError::ValidationException(_))
|
2367 + | /* ServerOperationErrorGenerator.kt:88 */
|
1082 2368 | }
|
2369 + | /* ServerOperationErrorGenerator.kt:92 */
|
1083 2370 | /// Returns the error name string by matching the correct variant.
|
2371 + | /* ServerOperationErrorGenerator.kt:93 */
|
1084 2372 | pub fn name(&self) -> &'static str {
|
2373 + | /* ServerOperationErrorGenerator.kt:139 */
|
1085 2374 | match &self {
|
1086 - | CompleteSnapshotError::InternalServerException(_inner) => _inner.name(),
|
1087 - | CompleteSnapshotError::ResourceNotFoundException(_inner) => _inner.name(),
|
1088 - | CompleteSnapshotError::AccessDeniedException(_inner) => _inner.name(),
|
1089 - | CompleteSnapshotError::RequestThrottledException(_inner) => _inner.name(),
|
1090 - | CompleteSnapshotError::ServiceQuotaExceededException(_inner) => _inner.name(),
|
1091 - | CompleteSnapshotError::ValidationException(_inner) => _inner.name(),
|
2375 + | /* ServerOperationErrorGenerator.kt:142 */
|
2376 + | CompleteSnapshotError::InternalServerException(_inner) =>
|
2377 + | /* ServerOperationErrorGenerator.kt:95 */
|
2378 + | {
|
2379 + | _inner.name()
|
2380 + | }
|
2381 + | ,
|
2382 + | /* ServerOperationErrorGenerator.kt:142 */
|
2383 + | CompleteSnapshotError::ResourceNotFoundException(_inner) =>
|
2384 + | /* ServerOperationErrorGenerator.kt:95 */
|
2385 + | {
|
2386 + | _inner.name()
|
2387 + | }
|
2388 + | ,
|
2389 + | /* ServerOperationErrorGenerator.kt:142 */
|
2390 + | CompleteSnapshotError::AccessDeniedException(_inner) =>
|
2391 + | /* ServerOperationErrorGenerator.kt:95 */
|
2392 + | {
|
2393 + | _inner.name()
|
2394 + | }
|
2395 + | ,
|
2396 + | /* ServerOperationErrorGenerator.kt:142 */
|
2397 + | CompleteSnapshotError::RequestThrottledException(_inner) =>
|
2398 + | /* ServerOperationErrorGenerator.kt:95 */
|
2399 + | {
|
2400 + | _inner.name()
|
2401 + | }
|
2402 + | ,
|
2403 + | /* ServerOperationErrorGenerator.kt:142 */
|
2404 + | CompleteSnapshotError::ServiceQuotaExceededException(_inner) =>
|
2405 + | /* ServerOperationErrorGenerator.kt:95 */
|
2406 + | {
|
2407 + | _inner.name()
|
2408 + | }
|
2409 + | ,
|
2410 + | /* ServerOperationErrorGenerator.kt:142 */
|
2411 + | CompleteSnapshotError::ValidationException(_inner) =>
|
2412 + | /* ServerOperationErrorGenerator.kt:95 */
|
2413 + | {
|
2414 + | _inner.name()
|
2415 + | }
|
2416 + | /* ServerOperationErrorGenerator.kt:139 */
|
1092 2417 | }
|
2418 + | /* ServerOperationErrorGenerator.kt:93 */
|
1093 2419 | }
|
2420 + | /* ServerOperationErrorGenerator.kt:83 */
|
1094 2421 | }
|
2422 + | /* ServerOperationErrorGenerator.kt:100 */
|
1095 2423 | impl ::std::error::Error for CompleteSnapshotError {
|
2424 + | /* ServerOperationErrorGenerator.kt:101 */
|
1096 2425 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
2426 + | /* ServerOperationErrorGenerator.kt:139 */
|
1097 2427 | match &self {
|
1098 - | CompleteSnapshotError::InternalServerException(_inner) => Some(_inner),
|
1099 - | CompleteSnapshotError::ResourceNotFoundException(_inner) => Some(_inner),
|
1100 - | CompleteSnapshotError::AccessDeniedException(_inner) => Some(_inner),
|
1101 - | CompleteSnapshotError::RequestThrottledException(_inner) => Some(_inner),
|
1102 - | CompleteSnapshotError::ServiceQuotaExceededException(_inner) => Some(_inner),
|
1103 - | CompleteSnapshotError::ValidationException(_inner) => Some(_inner),
|
2428 + | /* ServerOperationErrorGenerator.kt:142 */
|
2429 + | CompleteSnapshotError::InternalServerException(_inner) =>
|
2430 + | /* ServerOperationErrorGenerator.kt:103 */
|
2431 + | {
|
2432 + | Some(_inner)
|
2433 + | }
|
2434 + | ,
|
2435 + | /* ServerOperationErrorGenerator.kt:142 */
|
2436 + | CompleteSnapshotError::ResourceNotFoundException(_inner) =>
|
2437 + | /* ServerOperationErrorGenerator.kt:103 */
|
2438 + | {
|
2439 + | Some(_inner)
|
2440 + | }
|
2441 + | ,
|
2442 + | /* ServerOperationErrorGenerator.kt:142 */
|
2443 + | CompleteSnapshotError::AccessDeniedException(_inner) =>
|
2444 + | /* ServerOperationErrorGenerator.kt:103 */
|
2445 + | {
|
2446 + | Some(_inner)
|
2447 + | }
|
2448 + | ,
|
2449 + | /* ServerOperationErrorGenerator.kt:142 */
|
2450 + | CompleteSnapshotError::RequestThrottledException(_inner) =>
|
2451 + | /* ServerOperationErrorGenerator.kt:103 */
|
2452 + | {
|
2453 + | Some(_inner)
|
2454 + | }
|
2455 + | ,
|
2456 + | /* ServerOperationErrorGenerator.kt:142 */
|
2457 + | CompleteSnapshotError::ServiceQuotaExceededException(_inner) =>
|
2458 + | /* ServerOperationErrorGenerator.kt:103 */
|
2459 + | {
|
2460 + | Some(_inner)
|
2461 + | }
|
2462 + | ,
|
2463 + | /* ServerOperationErrorGenerator.kt:142 */
|
2464 + | CompleteSnapshotError::ValidationException(_inner) =>
|
2465 + | /* ServerOperationErrorGenerator.kt:103 */
|
2466 + | {
|
2467 + | Some(_inner)
|
1104 2468 | }
|
2469 + | /* ServerOperationErrorGenerator.kt:139 */
|
1105 2470 | }
|
2471 + | /* ServerOperationErrorGenerator.kt:101 */
|
2472 + | }
|
2473 + | /* ServerOperationErrorGenerator.kt:100 */
|
1106 2474 | }
|
2475 + | /* ServerOperationErrorGenerator.kt:110 */
|
1107 2476 | impl ::std::convert::From<crate::error::InternalServerException>
|
1108 2477 | for crate::error::CompleteSnapshotError
|
1109 2478 | {
|
2479 + | /* ServerOperationErrorGenerator.kt:111 */
|
1110 2480 | fn from(variant: crate::error::InternalServerException) -> crate::error::CompleteSnapshotError {
|
2481 + | /* ServerOperationErrorGenerator.kt:112 */
|
1111 2482 | Self::InternalServerException(variant)
|
2483 + | /* ServerOperationErrorGenerator.kt:111 */
|
1112 2484 | }
|
2485 + | /* ServerOperationErrorGenerator.kt:110 */
|
1113 2486 | }
|
2487 + | /* ServerOperationErrorGenerator.kt:110 */
|
1114 2488 | impl ::std::convert::From<crate::error::ResourceNotFoundException>
|
1115 2489 | for crate::error::CompleteSnapshotError
|
1116 2490 | {
|
2491 + | /* ServerOperationErrorGenerator.kt:111 */
|
1117 2492 | fn from(
|
1118 2493 | variant: crate::error::ResourceNotFoundException,
|
1119 2494 | ) -> crate::error::CompleteSnapshotError {
|
2495 + | /* ServerOperationErrorGenerator.kt:112 */
|
1120 2496 | Self::ResourceNotFoundException(variant)
|
2497 + | /* ServerOperationErrorGenerator.kt:111 */
|
1121 2498 | }
|
2499 + | /* ServerOperationErrorGenerator.kt:110 */
|
1122 2500 | }
|
2501 + | /* ServerOperationErrorGenerator.kt:110 */
|
1123 2502 | impl ::std::convert::From<crate::error::AccessDeniedException>
|
1124 2503 | for crate::error::CompleteSnapshotError
|
1125 2504 | {
|
2505 + | /* ServerOperationErrorGenerator.kt:111 */
|
1126 2506 | fn from(variant: crate::error::AccessDeniedException) -> crate::error::CompleteSnapshotError {
|
2507 + | /* ServerOperationErrorGenerator.kt:112 */
|
1127 2508 | Self::AccessDeniedException(variant)
|
2509 + | /* ServerOperationErrorGenerator.kt:111 */
|
1128 2510 | }
|
2511 + | /* ServerOperationErrorGenerator.kt:110 */
|
1129 2512 | }
|
2513 + | /* ServerOperationErrorGenerator.kt:110 */
|
1130 2514 | impl ::std::convert::From<crate::error::RequestThrottledException>
|
1131 2515 | for crate::error::CompleteSnapshotError
|
1132 2516 | {
|
2517 + | /* ServerOperationErrorGenerator.kt:111 */
|
1133 2518 | fn from(
|
1134 2519 | variant: crate::error::RequestThrottledException,
|
1135 2520 | ) -> crate::error::CompleteSnapshotError {
|
2521 + | /* ServerOperationErrorGenerator.kt:112 */
|
1136 2522 | Self::RequestThrottledException(variant)
|
2523 + | /* ServerOperationErrorGenerator.kt:111 */
|
1137 2524 | }
|
2525 + | /* ServerOperationErrorGenerator.kt:110 */
|
1138 2526 | }
|
2527 + | /* ServerOperationErrorGenerator.kt:110 */
|
1139 2528 | impl ::std::convert::From<crate::error::ServiceQuotaExceededException>
|
1140 2529 | for crate::error::CompleteSnapshotError
|
1141 2530 | {
|
2531 + | /* ServerOperationErrorGenerator.kt:111 */
|
1142 2532 | fn from(
|
1143 2533 | variant: crate::error::ServiceQuotaExceededException,
|
1144 2534 | ) -> crate::error::CompleteSnapshotError {
|
2535 + | /* ServerOperationErrorGenerator.kt:112 */
|
1145 2536 | Self::ServiceQuotaExceededException(variant)
|
2537 + | /* ServerOperationErrorGenerator.kt:111 */
|
1146 2538 | }
|
2539 + | /* ServerOperationErrorGenerator.kt:110 */
|
1147 2540 | }
|
2541 + | /* ServerOperationErrorGenerator.kt:110 */
|
1148 2542 | impl ::std::convert::From<crate::error::ValidationException>
|
1149 2543 | for crate::error::CompleteSnapshotError
|
1150 2544 | {
|
2545 + | /* ServerOperationErrorGenerator.kt:111 */
|
1151 2546 | fn from(variant: crate::error::ValidationException) -> crate::error::CompleteSnapshotError {
|
2547 + | /* ServerOperationErrorGenerator.kt:112 */
|
1152 2548 | Self::ValidationException(variant)
|
2549 + | /* ServerOperationErrorGenerator.kt:111 */
|
1153 2550 | }
|
2551 + | /* ServerOperationErrorGenerator.kt:110 */
|
1154 2552 | }
|
1155 - | /// See [`ValidationException`](crate::error::ValidationException).
|
2553 + | /// /* ServerBuilderGenerator.kt:171 */See [`ValidationException`](crate::error::ValidationException).
|
1156 2554 | pub mod validation_exception {
|
1157 2555 |
|
2556 + | /* RustType.kt:516 */
|
1158 2557 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1159 - | /// Holds one variant for each of the ways the builder can fail.
|
2558 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
2559 + | /* RustType.kt:516 */
|
1160 2560 | #[non_exhaustive]
|
2561 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1161 2562 | #[allow(clippy::enum_variant_names)]
|
1162 2563 | pub enum ConstraintViolation {
|
1163 - | /// `message` was not provided but it is required when building `ValidationException`.
|
2564 + | /// /* ServerBuilderConstraintViolations.kt:138 */`message` was not provided but it is required when building `ValidationException`.
|
2565 + | /* ServerBuilderConstraintViolations.kt:143 */
|
1164 2566 | MissingMessage,
|
2567 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1165 2568 | }
|
2569 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1166 2570 | impl ::std::fmt::Display for ConstraintViolation {
|
2571 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1167 2572 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2573 + | /* ServerBuilderConstraintViolations.kt:119 */
|
1168 2574 | match self {
|
1169 - | ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationException`"),
|
1170 - | }
|
2575 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationException`"),
|
2576 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
2577 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1171 2578 | }
|
2579 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1172 2580 | }
|
2581 + | /* ServerBuilderConstraintViolations.kt:84 */
|
1173 2582 | impl ::std::error::Error for ConstraintViolation {}
|
2583 + | /* ServerBuilderGenerator.kt:446 */
|
1174 2584 | impl ::std::convert::TryFrom<Builder> for crate::error::ValidationException {
|
1175 2585 | type Error = ConstraintViolation;
|
1176 2586 |
|
1177 2587 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1178 2588 | builder.build()
|
1179 2589 | }
|
1180 2590 | }
|
1181 - | /// A builder for [`ValidationException`](crate::error::ValidationException).
|
2591 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ValidationException`](crate::error::ValidationException).
|
2592 + | /* RustType.kt:516 */
|
1182 2593 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2594 + | /* ServerBuilderGenerator.kt:211 */
|
1183 2595 | pub struct Builder {
|
2596 + | /* ServerBuilderGenerator.kt:308 */
|
1184 2597 | pub(crate) message: ::std::option::Option<::std::string::String>,
|
2598 + | /* ServerBuilderGenerator.kt:308 */
|
1185 2599 | pub(crate) field_list:
|
1186 2600 | ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
|
2601 + | /* ServerBuilderGenerator.kt:211 */
|
1187 2602 | }
|
2603 + | /* ServerBuilderGenerator.kt:215 */
|
1188 2604 | impl Builder {
|
1189 - | /// A summary of the validation failure.
|
2605 + | /// /* ServerBuilderGenerator.kt:331 */A summary of the validation failure.
|
2606 + | /* ServerBuilderGenerator.kt:343 */
|
1190 2607 | pub fn message(mut self, input: ::std::string::String) -> Self {
|
1191 - | self.message = Some(input);
|
2608 + | /* ServerBuilderGenerator.kt:344 */
|
2609 + | self.message =
|
2610 + | /* ServerBuilderGenerator.kt:345 */Some(
|
2611 + | /* ServerBuilderGenerator.kt:376 */input
|
2612 + | /* ServerBuilderGenerator.kt:345 */)
|
2613 + | /* ServerBuilderGenerator.kt:344 */;
|
1192 2614 | self
|
2615 + | /* ServerBuilderGenerator.kt:343 */
|
1193 2616 | }
|
1194 - | /// 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.
|
2617 + | /// /* ServerBuilderGenerator.kt:331 */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.
|
2618 + | /* ServerBuilderGenerator.kt:343 */
|
1195 2619 | pub fn field_list(
|
1196 2620 | mut self,
|
1197 2621 | input: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
|
1198 2622 | ) -> Self {
|
1199 - | self.field_list = input;
|
2623 + | /* ServerBuilderGenerator.kt:344 */
|
2624 + | self.field_list =
|
2625 + | /* ServerBuilderGenerator.kt:376 */input
|
2626 + | /* ServerBuilderGenerator.kt:344 */;
|
1200 2627 | self
|
2628 + | /* ServerBuilderGenerator.kt:343 */
|
1201 2629 | }
|
1202 - | /// Consumes the builder and constructs a [`ValidationException`](crate::error::ValidationException).
|
1203 - | ///
|
2630 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ValidationException`](crate::error::ValidationException).
|
2631 + | /// /* ServerBuilderGenerator.kt:260 */
|
1204 2632 | /// The builder fails to construct a [`ValidationException`](crate::error::ValidationException) if a [`ConstraintViolation`] occurs.
|
1205 2633 | ///
|
2634 + | /* ServerBuilderGenerator.kt:271 */
|
1206 2635 | pub fn build(self) -> Result<crate::error::ValidationException, ConstraintViolation> {
|
1207 2636 | self.build_enforcing_all_constraints()
|
1208 2637 | }
|
2638 + | /* ServerBuilderGenerator.kt:283 */
|
1209 2639 | fn build_enforcing_all_constraints(
|
1210 2640 | self,
|
1211 2641 | ) -> Result<crate::error::ValidationException, ConstraintViolation> {
|
1212 - | Ok(crate::error::ValidationException {
|
1213 - | message: self.message.ok_or(ConstraintViolation::MissingMessage)?,
|
2642 + | /* ServerBuilderGenerator.kt:287 */
|
2643 + | Ok(
|
2644 + | /* ServerBuilderGenerator.kt:542 */
|
2645 + | crate::error::ValidationException {
|
2646 + | /* ServerBuilderGenerator.kt:546 */
|
2647 + | message: self
|
2648 + | .message
|
2649 + | /* ServerBuilderGenerator.kt:569 */
|
2650 + | .ok_or(ConstraintViolation::MissingMessage)?,
|
2651 + | /* ServerBuilderGenerator.kt:546 */
|
1214 2652 | field_list: self.field_list,
|
1215 - | })
|
2653 + | /* ServerBuilderGenerator.kt:542 */
|
2654 + | }, /* ServerBuilderGenerator.kt:287 */
|
2655 + | )
|
2656 + | /* ServerBuilderGenerator.kt:283 */
|
1216 2657 | }
|
2658 + | /* ServerBuilderGenerator.kt:215 */
|
1217 2659 | }
|
2660 + |
|
2661 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1218 2662 | }
|
1219 - | /// See [`ConcurrentLimitExceededException`](crate::error::ConcurrentLimitExceededException).
|
2663 + | /// /* ServerBuilderGenerator.kt:171 */See [`ConcurrentLimitExceededException`](crate::error::ConcurrentLimitExceededException).
|
1220 2664 | pub mod concurrent_limit_exceeded_exception {
|
1221 2665 |
|
2666 + | /* ServerBuilderGenerator.kt:461 */
|
1222 2667 | impl ::std::convert::From<Builder> for crate::error::ConcurrentLimitExceededException {
|
1223 2668 | fn from(builder: Builder) -> Self {
|
1224 2669 | builder.build()
|
1225 2670 | }
|
1226 2671 | }
|
1227 - | /// A builder for [`ConcurrentLimitExceededException`](crate::error::ConcurrentLimitExceededException).
|
2672 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ConcurrentLimitExceededException`](crate::error::ConcurrentLimitExceededException).
|
2673 + | /* RustType.kt:516 */
|
1228 2674 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2675 + | /* ServerBuilderGenerator.kt:211 */
|
1229 2676 | pub struct Builder {
|
2677 + | /* ServerBuilderGenerator.kt:308 */
|
1230 2678 | pub(crate) message: ::std::option::Option<crate::model::ErrorMessage>,
|
2679 + | /* ServerBuilderGenerator.kt:211 */
|
1231 2680 | }
|
2681 + | /* ServerBuilderGenerator.kt:215 */
|
1232 2682 | impl Builder {
|
2683 + | /* ServerBuilderGenerator.kt:331 */
|
1233 2684 | #[allow(missing_docs)] // documentation missing in model
|
2685 + | /* ServerBuilderGenerator.kt:343 */
|
1234 2686 | pub fn message(mut self, input: ::std::option::Option<crate::model::ErrorMessage>) -> Self {
|
1235 - | self.message = input;
|
2687 + | /* ServerBuilderGenerator.kt:344 */
|
2688 + | self.message =
|
2689 + | /* ServerBuilderGenerator.kt:376 */input
|
2690 + | /* ServerBuilderGenerator.kt:344 */;
|
1236 2691 | self
|
2692 + | /* ServerBuilderGenerator.kt:343 */
|
1237 2693 | }
|
1238 - | /// Consumes the builder and constructs a [`ConcurrentLimitExceededException`](crate::error::ConcurrentLimitExceededException).
|
2694 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ConcurrentLimitExceededException`](crate::error::ConcurrentLimitExceededException).
|
2695 + | /* ServerBuilderGenerator.kt:271 */
|
1239 2696 | pub fn build(self) -> crate::error::ConcurrentLimitExceededException {
|
1240 2697 | self.build_enforcing_all_constraints()
|
1241 2698 | }
|
2699 + | /* ServerBuilderGenerator.kt:283 */
|
1242 2700 | fn build_enforcing_all_constraints(self) -> crate::error::ConcurrentLimitExceededException {
|
2701 + | /* ServerBuilderGenerator.kt:542 */
|
1243 2702 | crate::error::ConcurrentLimitExceededException {
|
2703 + | /* ServerBuilderGenerator.kt:546 */
|
1244 2704 | message: self.message,
|
2705 + | /* ServerBuilderGenerator.kt:542 */
|
1245 2706 | }
|
2707 + | /* ServerBuilderGenerator.kt:283 */
|
1246 2708 | }
|
2709 + | /* ServerBuilderGenerator.kt:215 */
|
1247 2710 | }
|
2711 + |
|
2712 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1248 2713 | }
|
1249 - | /// See [`ServiceQuotaExceededException`](crate::error::ServiceQuotaExceededException).
|
2714 + | /// /* ServerBuilderGenerator.kt:171 */See [`ServiceQuotaExceededException`](crate::error::ServiceQuotaExceededException).
|
1250 2715 | pub mod service_quota_exceeded_exception {
|
1251 2716 |
|
2717 + | /* ServerBuilderGenerator.kt:461 */
|
1252 2718 | impl ::std::convert::From<Builder> for crate::error::ServiceQuotaExceededException {
|
1253 2719 | fn from(builder: Builder) -> Self {
|
1254 2720 | builder.build()
|
1255 2721 | }
|
1256 2722 | }
|
1257 - | /// A builder for [`ServiceQuotaExceededException`](crate::error::ServiceQuotaExceededException).
|
2723 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ServiceQuotaExceededException`](crate::error::ServiceQuotaExceededException).
|
2724 + | /* RustType.kt:516 */
|
1258 2725 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2726 + | /* ServerBuilderGenerator.kt:211 */
|
1259 2727 | pub struct Builder {
|
2728 + | /* ServerBuilderGenerator.kt:308 */
|
1260 2729 | pub(crate) reason: ::std::option::Option<crate::model::ServiceQuotaExceededExceptionReason>,
|
2730 + | /* ServerBuilderGenerator.kt:308 */
|
1261 2731 | pub(crate) message: ::std::option::Option<crate::model::ErrorMessage>,
|
2732 + | /* ServerBuilderGenerator.kt:211 */
|
1262 2733 | }
|
2734 + | /* ServerBuilderGenerator.kt:215 */
|
1263 2735 | impl Builder {
|
1264 - | /// <p>The reason for the exception.</p>
|
2736 + | /// /* ServerBuilderGenerator.kt:331 */<p>The reason for the exception.</p>
|
2737 + | /* ServerBuilderGenerator.kt:343 */
|
1265 2738 | pub fn reason(
|
1266 2739 | mut self,
|
1267 2740 | input: ::std::option::Option<crate::model::ServiceQuotaExceededExceptionReason>,
|
1268 2741 | ) -> Self {
|
1269 - | self.reason = input;
|
2742 + | /* ServerBuilderGenerator.kt:344 */
|
2743 + | self.reason =
|
2744 + | /* ServerBuilderGenerator.kt:376 */input
|
2745 + | /* ServerBuilderGenerator.kt:344 */;
|
1270 2746 | self
|
2747 + | /* ServerBuilderGenerator.kt:343 */
|
1271 2748 | }
|
2749 + | /* ServerBuilderGenerator.kt:331 */
|
1272 2750 | #[allow(missing_docs)] // documentation missing in model
|
2751 + | /* ServerBuilderGenerator.kt:343 */
|
1273 2752 | pub fn message(mut self, input: ::std::option::Option<crate::model::ErrorMessage>) -> Self {
|
1274 - | self.message = input;
|
2753 + | /* ServerBuilderGenerator.kt:344 */
|
2754 + | self.message =
|
2755 + | /* ServerBuilderGenerator.kt:376 */input
|
2756 + | /* ServerBuilderGenerator.kt:344 */;
|
1275 2757 | self
|
2758 + | /* ServerBuilderGenerator.kt:343 */
|
1276 2759 | }
|
1277 - | /// Consumes the builder and constructs a [`ServiceQuotaExceededException`](crate::error::ServiceQuotaExceededException).
|
2760 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ServiceQuotaExceededException`](crate::error::ServiceQuotaExceededException).
|
2761 + | /* ServerBuilderGenerator.kt:271 */
|
1278 2762 | pub fn build(self) -> crate::error::ServiceQuotaExceededException {
|
1279 2763 | self.build_enforcing_all_constraints()
|
1280 2764 | }
|
2765 + | /* ServerBuilderGenerator.kt:283 */
|
1281 2766 | fn build_enforcing_all_constraints(self) -> crate::error::ServiceQuotaExceededException {
|
2767 + | /* ServerBuilderGenerator.kt:542 */
|
1282 2768 | crate::error::ServiceQuotaExceededException {
|
2769 + | /* ServerBuilderGenerator.kt:546 */
|
1283 2770 | reason: self.reason,
|
2771 + | /* ServerBuilderGenerator.kt:546 */
|
1284 2772 | message: self.message,
|
2773 + | /* ServerBuilderGenerator.kt:542 */
|
1285 2774 | }
|
2775 + | /* ServerBuilderGenerator.kt:283 */
|
1286 2776 | }
|
2777 + | /* ServerBuilderGenerator.kt:215 */
|
1287 2778 | }
|
2779 + |
|
2780 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1288 2781 | }
|
1289 - | /// See [`RequestThrottledException`](crate::error::RequestThrottledException).
|
2782 + | /// /* ServerBuilderGenerator.kt:171 */See [`RequestThrottledException`](crate::error::RequestThrottledException).
|
1290 2783 | pub mod request_throttled_exception {
|
1291 2784 |
|
2785 + | /* ServerBuilderGenerator.kt:461 */
|
1292 2786 | impl ::std::convert::From<Builder> for crate::error::RequestThrottledException {
|
1293 2787 | fn from(builder: Builder) -> Self {
|
1294 2788 | builder.build()
|
1295 2789 | }
|
1296 2790 | }
|
1297 - | /// A builder for [`RequestThrottledException`](crate::error::RequestThrottledException).
|
2791 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`RequestThrottledException`](crate::error::RequestThrottledException).
|
2792 + | /* RustType.kt:516 */
|
1298 2793 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2794 + | /* ServerBuilderGenerator.kt:211 */
|
1299 2795 | pub struct Builder {
|
2796 + | /* ServerBuilderGenerator.kt:308 */
|
1300 2797 | pub(crate) message: ::std::option::Option<crate::model::ErrorMessage>,
|
2798 + | /* ServerBuilderGenerator.kt:308 */
|
1301 2799 | pub(crate) reason: ::std::option::Option<crate::model::RequestThrottledExceptionReason>,
|
2800 + | /* ServerBuilderGenerator.kt:211 */
|
1302 2801 | }
|
2802 + | /* ServerBuilderGenerator.kt:215 */
|
1303 2803 | impl Builder {
|
2804 + | /* ServerBuilderGenerator.kt:331 */
|
1304 2805 | #[allow(missing_docs)] // documentation missing in model
|
2806 + | /* ServerBuilderGenerator.kt:343 */
|
1305 2807 | pub fn message(mut self, input: ::std::option::Option<crate::model::ErrorMessage>) -> Self {
|
1306 - | self.message = input;
|
2808 + | /* ServerBuilderGenerator.kt:344 */
|
2809 + | self.message =
|
2810 + | /* ServerBuilderGenerator.kt:376 */input
|
2811 + | /* ServerBuilderGenerator.kt:344 */;
|
1307 2812 | self
|
2813 + | /* ServerBuilderGenerator.kt:343 */
|
1308 2814 | }
|
1309 - | /// <p>The reason for the exception.</p>
|
2815 + | /// /* ServerBuilderGenerator.kt:331 */<p>The reason for the exception.</p>
|
2816 + | /* ServerBuilderGenerator.kt:343 */
|
1310 2817 | pub fn reason(
|
1311 2818 | mut self,
|
1312 2819 | input: ::std::option::Option<crate::model::RequestThrottledExceptionReason>,
|
1313 2820 | ) -> Self {
|
1314 - | self.reason = input;
|
2821 + | /* ServerBuilderGenerator.kt:344 */
|
2822 + | self.reason =
|
2823 + | /* ServerBuilderGenerator.kt:376 */input
|
2824 + | /* ServerBuilderGenerator.kt:344 */;
|
1315 2825 | self
|
2826 + | /* ServerBuilderGenerator.kt:343 */
|
1316 2827 | }
|
1317 - | /// Consumes the builder and constructs a [`RequestThrottledException`](crate::error::RequestThrottledException).
|
2828 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`RequestThrottledException`](crate::error::RequestThrottledException).
|
2829 + | /* ServerBuilderGenerator.kt:271 */
|
1318 2830 | pub fn build(self) -> crate::error::RequestThrottledException {
|
1319 2831 | self.build_enforcing_all_constraints()
|
1320 2832 | }
|
2833 + | /* ServerBuilderGenerator.kt:283 */
|
1321 2834 | fn build_enforcing_all_constraints(self) -> crate::error::RequestThrottledException {
|
2835 + | /* ServerBuilderGenerator.kt:542 */
|
1322 2836 | crate::error::RequestThrottledException {
|
2837 + | /* ServerBuilderGenerator.kt:546 */
|
1323 2838 | message: self.message,
|
2839 + | /* ServerBuilderGenerator.kt:546 */
|
1324 2840 | reason: self.reason,
|
2841 + | /* ServerBuilderGenerator.kt:542 */
|
1325 2842 | }
|
2843 + | /* ServerBuilderGenerator.kt:283 */
|
1326 2844 | }
|
2845 + | /* ServerBuilderGenerator.kt:215 */
|
1327 2846 | }
|
2847 + |
|
2848 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1328 2849 | }
|
1329 - | /// See [`ConflictException`](crate::error::ConflictException).
|
2850 + | /// /* ServerBuilderGenerator.kt:171 */See [`ConflictException`](crate::error::ConflictException).
|
1330 2851 | pub mod conflict_exception {
|
1331 2852 |
|
2853 + | /* ServerBuilderGenerator.kt:461 */
|
1332 2854 | impl ::std::convert::From<Builder> for crate::error::ConflictException {
|
1333 2855 | fn from(builder: Builder) -> Self {
|
1334 2856 | builder.build()
|
1335 2857 | }
|
1336 2858 | }
|
1337 - | /// A builder for [`ConflictException`](crate::error::ConflictException).
|
2859 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ConflictException`](crate::error::ConflictException).
|
2860 + | /* RustType.kt:516 */
|
1338 2861 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2862 + | /* ServerBuilderGenerator.kt:211 */
|
1339 2863 | pub struct Builder {
|
2864 + | /* ServerBuilderGenerator.kt:308 */
|
1340 2865 | pub(crate) message: ::std::option::Option<crate::model::ErrorMessage>,
|
2866 + | /* ServerBuilderGenerator.kt:211 */
|
1341 2867 | }
|
2868 + | /* ServerBuilderGenerator.kt:215 */
|
1342 2869 | impl Builder {
|
2870 + | /* ServerBuilderGenerator.kt:331 */
|
1343 2871 | #[allow(missing_docs)] // documentation missing in model
|
2872 + | /* ServerBuilderGenerator.kt:343 */
|
1344 2873 | pub fn message(mut self, input: ::std::option::Option<crate::model::ErrorMessage>) -> Self {
|
1345 - | self.message = input;
|
2874 + | /* ServerBuilderGenerator.kt:344 */
|
2875 + | self.message =
|
2876 + | /* ServerBuilderGenerator.kt:376 */input
|
2877 + | /* ServerBuilderGenerator.kt:344 */;
|
1346 2878 | self
|
2879 + | /* ServerBuilderGenerator.kt:343 */
|
1347 2880 | }
|
1348 - | /// Consumes the builder and constructs a [`ConflictException`](crate::error::ConflictException).
|
2881 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ConflictException`](crate::error::ConflictException).
|
2882 + | /* ServerBuilderGenerator.kt:271 */
|
1349 2883 | pub fn build(self) -> crate::error::ConflictException {
|
1350 2884 | self.build_enforcing_all_constraints()
|
1351 2885 | }
|
2886 + | /* ServerBuilderGenerator.kt:283 */
|
1352 2887 | fn build_enforcing_all_constraints(self) -> crate::error::ConflictException {
|
2888 + | /* ServerBuilderGenerator.kt:542 */
|
1353 2889 | crate::error::ConflictException {
|
2890 + | /* ServerBuilderGenerator.kt:546 */
|
1354 2891 | message: self.message,
|
2892 + | /* ServerBuilderGenerator.kt:542 */
|
1355 2893 | }
|
2894 + | /* ServerBuilderGenerator.kt:283 */
|
1356 2895 | }
|
2896 + | /* ServerBuilderGenerator.kt:215 */
|
1357 2897 | }
|
2898 + |
|
2899 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1358 2900 | }
|
1359 - | /// See [`AccessDeniedException`](crate::error::AccessDeniedException).
|
2901 + | /// /* ServerBuilderGenerator.kt:171 */See [`AccessDeniedException`](crate::error::AccessDeniedException).
|
1360 2902 | pub mod access_denied_exception {
|
1361 2903 |
|
2904 + | /* RustType.kt:516 */
|
1362 2905 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1363 - | /// Holds one variant for each of the ways the builder can fail.
|
2906 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
2907 + | /* RustType.kt:516 */
|
1364 2908 | #[non_exhaustive]
|
2909 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1365 2910 | #[allow(clippy::enum_variant_names)]
|
1366 2911 | pub enum ConstraintViolation {
|
1367 - | /// `reason` was not provided but it is required when building `AccessDeniedException`.
|
2912 + | /// /* ServerBuilderConstraintViolations.kt:138 */`reason` was not provided but it is required when building `AccessDeniedException`.
|
2913 + | /* ServerBuilderConstraintViolations.kt:143 */
|
1368 2914 | MissingReason,
|
2915 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1369 2916 | }
|
2917 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1370 2918 | impl ::std::fmt::Display for ConstraintViolation {
|
2919 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1371 2920 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2921 + | /* ServerBuilderConstraintViolations.kt:119 */
|
1372 2922 | match self {
|
1373 - | ConstraintViolation::MissingReason => write!(f, "`reason` was not provided but it is required when building `AccessDeniedException`"),
|
1374 - | }
|
2923 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingReason => write!(f, "`reason` was not provided but it is required when building `AccessDeniedException`"),
|
2924 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
2925 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1375 2926 | }
|
2927 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1376 2928 | }
|
2929 + | /* ServerBuilderConstraintViolations.kt:84 */
|
1377 2930 | impl ::std::error::Error for ConstraintViolation {}
|
2931 + | /* ServerBuilderGenerator.kt:446 */
|
1378 2932 | impl ::std::convert::TryFrom<Builder> for crate::error::AccessDeniedException {
|
1379 2933 | type Error = ConstraintViolation;
|
1380 2934 |
|
1381 2935 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1382 2936 | builder.build()
|
1383 2937 | }
|
1384 2938 | }
|
1385 - | /// A builder for [`AccessDeniedException`](crate::error::AccessDeniedException).
|
2939 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`AccessDeniedException`](crate::error::AccessDeniedException).
|
2940 + | /* RustType.kt:516 */
|
1386 2941 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2942 + | /* ServerBuilderGenerator.kt:211 */
|
1387 2943 | pub struct Builder {
|
2944 + | /* ServerBuilderGenerator.kt:308 */
|
1388 2945 | pub(crate) message: ::std::option::Option<crate::model::ErrorMessage>,
|
2946 + | /* ServerBuilderGenerator.kt:308 */
|
1389 2947 | pub(crate) reason: ::std::option::Option<crate::model::AccessDeniedExceptionReason>,
|
2948 + | /* ServerBuilderGenerator.kt:211 */
|
1390 2949 | }
|
2950 + | /* ServerBuilderGenerator.kt:215 */
|
1391 2951 | impl Builder {
|
2952 + | /* ServerBuilderGenerator.kt:331 */
|
1392 2953 | #[allow(missing_docs)] // documentation missing in model
|
2954 + | /* ServerBuilderGenerator.kt:343 */
|
1393 2955 | pub fn message(mut self, input: ::std::option::Option<crate::model::ErrorMessage>) -> Self {
|
1394 - | self.message = input;
|
2956 + | /* ServerBuilderGenerator.kt:344 */
|
2957 + | self.message =
|
2958 + | /* ServerBuilderGenerator.kt:376 */input
|
2959 + | /* ServerBuilderGenerator.kt:344 */;
|
1395 2960 | self
|
2961 + | /* ServerBuilderGenerator.kt:343 */
|
1396 2962 | }
|
1397 - | /// <p>The reason for the exception.</p>
|
2963 + | /// /* ServerBuilderGenerator.kt:331 */<p>The reason for the exception.</p>
|
2964 + | /* ServerBuilderGenerator.kt:343 */
|
1398 2965 | pub fn reason(mut self, input: crate::model::AccessDeniedExceptionReason) -> Self {
|
1399 - | self.reason = Some(input);
|
2966 + | /* ServerBuilderGenerator.kt:344 */
|
2967 + | self.reason =
|
2968 + | /* ServerBuilderGenerator.kt:345 */Some(
|
2969 + | /* ServerBuilderGenerator.kt:376 */input
|
2970 + | /* ServerBuilderGenerator.kt:345 */)
|
2971 + | /* ServerBuilderGenerator.kt:344 */;
|
1400 2972 | self
|
2973 + | /* ServerBuilderGenerator.kt:343 */
|
1401 2974 | }
|
1402 - | /// Consumes the builder and constructs a [`AccessDeniedException`](crate::error::AccessDeniedException).
|
1403 - | ///
|
2975 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`AccessDeniedException`](crate::error::AccessDeniedException).
|
2976 + | /// /* ServerBuilderGenerator.kt:260 */
|
1404 2977 | /// The builder fails to construct a [`AccessDeniedException`](crate::error::AccessDeniedException) if a [`ConstraintViolation`] occurs.
|
1405 2978 | ///
|
2979 + | /* ServerBuilderGenerator.kt:271 */
|
1406 2980 | pub fn build(self) -> Result<crate::error::AccessDeniedException, ConstraintViolation> {
|
1407 2981 | self.build_enforcing_all_constraints()
|
1408 2982 | }
|
2983 + | /* ServerBuilderGenerator.kt:283 */
|
1409 2984 | fn build_enforcing_all_constraints(
|
1410 2985 | self,
|
1411 2986 | ) -> Result<crate::error::AccessDeniedException, ConstraintViolation> {
|
1412 - | Ok(crate::error::AccessDeniedException {
|
2987 + | /* ServerBuilderGenerator.kt:287 */
|
2988 + | Ok(
|
2989 + | /* ServerBuilderGenerator.kt:542 */
|
2990 + | crate::error::AccessDeniedException {
|
2991 + | /* ServerBuilderGenerator.kt:546 */
|
1413 2992 | message: self.message,
|
1414 - | reason: self.reason.ok_or(ConstraintViolation::MissingReason)?,
|
1415 - | })
|
2993 + | /* ServerBuilderGenerator.kt:546 */
|
2994 + | reason: self
|
2995 + | .reason
|
2996 + | /* ServerBuilderGenerator.kt:569 */
|
2997 + | .ok_or(ConstraintViolation::MissingReason)?,
|
2998 + | /* ServerBuilderGenerator.kt:542 */
|
2999 + | }, /* ServerBuilderGenerator.kt:287 */
|
3000 + | )
|
3001 + | /* ServerBuilderGenerator.kt:283 */
|
1416 3002 | }
|
3003 + | /* ServerBuilderGenerator.kt:215 */
|
1417 3004 | }
|
3005 + |
|
3006 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1418 3007 | }
|
1419 - | /// See [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
|
3008 + | /// /* ServerBuilderGenerator.kt:171 */See [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
|
1420 3009 | pub mod resource_not_found_exception {
|
1421 3010 |
|
3011 + | /* ServerBuilderGenerator.kt:461 */
|
1422 3012 | impl ::std::convert::From<Builder> for crate::error::ResourceNotFoundException {
|
1423 3013 | fn from(builder: Builder) -> Self {
|
1424 3014 | builder.build()
|
1425 3015 | }
|
1426 3016 | }
|
1427 - | /// A builder for [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
|
3017 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
|
3018 + | /* RustType.kt:516 */
|
1428 3019 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3020 + | /* ServerBuilderGenerator.kt:211 */
|
1429 3021 | pub struct Builder {
|
3022 + | /* ServerBuilderGenerator.kt:308 */
|
1430 3023 | pub(crate) message: ::std::option::Option<crate::model::ErrorMessage>,
|
3024 + | /* ServerBuilderGenerator.kt:308 */
|
1431 3025 | pub(crate) reason: ::std::option::Option<crate::model::ResourceNotFoundExceptionReason>,
|
3026 + | /* ServerBuilderGenerator.kt:211 */
|
1432 3027 | }
|
3028 + | /* ServerBuilderGenerator.kt:215 */
|
1433 3029 | impl Builder {
|
3030 + | /* ServerBuilderGenerator.kt:331 */
|
1434 3031 | #[allow(missing_docs)] // documentation missing in model
|
3032 + | /* ServerBuilderGenerator.kt:343 */
|
1435 3033 | pub fn message(mut self, input: ::std::option::Option<crate::model::ErrorMessage>) -> Self {
|
1436 - | self.message = input;
|
3034 + | /* ServerBuilderGenerator.kt:344 */
|
3035 + | self.message =
|
3036 + | /* ServerBuilderGenerator.kt:376 */input
|
3037 + | /* ServerBuilderGenerator.kt:344 */;
|
1437 3038 | self
|
3039 + | /* ServerBuilderGenerator.kt:343 */
|
1438 3040 | }
|
1439 - | /// <p>The reason for the exception.</p>
|
3041 + | /// /* ServerBuilderGenerator.kt:331 */<p>The reason for the exception.</p>
|
3042 + | /* ServerBuilderGenerator.kt:343 */
|
1440 3043 | pub fn reason(
|
1441 3044 | mut self,
|
1442 3045 | input: ::std::option::Option<crate::model::ResourceNotFoundExceptionReason>,
|
1443 3046 | ) -> Self {
|
1444 - | self.reason = input;
|
3047 + | /* ServerBuilderGenerator.kt:344 */
|
3048 + | self.reason =
|
3049 + | /* ServerBuilderGenerator.kt:376 */input
|
3050 + | /* ServerBuilderGenerator.kt:344 */;
|
1445 3051 | self
|
3052 + | /* ServerBuilderGenerator.kt:343 */
|
1446 3053 | }
|
1447 - | /// Consumes the builder and constructs a [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
|
3054 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
|
3055 + | /* ServerBuilderGenerator.kt:271 */
|
1448 3056 | pub fn build(self) -> crate::error::ResourceNotFoundException {
|
1449 3057 | self.build_enforcing_all_constraints()
|
1450 3058 | }
|
3059 + | /* ServerBuilderGenerator.kt:283 */
|
1451 3060 | fn build_enforcing_all_constraints(self) -> crate::error::ResourceNotFoundException {
|
3061 + | /* ServerBuilderGenerator.kt:542 */
|
1452 3062 | crate::error::ResourceNotFoundException {
|
3063 + | /* ServerBuilderGenerator.kt:546 */
|
1453 3064 | message: self.message,
|
3065 + | /* ServerBuilderGenerator.kt:546 */
|
1454 3066 | reason: self.reason,
|
3067 + | /* ServerBuilderGenerator.kt:542 */
|
1455 3068 | }
|
3069 + | /* ServerBuilderGenerator.kt:283 */
|
1456 3070 | }
|
3071 + | /* ServerBuilderGenerator.kt:215 */
|
1457 3072 | }
|
3073 + |
|
3074 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1458 3075 | }
|
1459 - | /// See [`InternalServerException`](crate::error::InternalServerException).
|
3076 + | /// /* ServerBuilderGenerator.kt:171 */See [`InternalServerException`](crate::error::InternalServerException).
|
1460 3077 | pub mod internal_server_exception {
|
1461 3078 |
|
3079 + | /* ServerBuilderGenerator.kt:461 */
|
1462 3080 | impl ::std::convert::From<Builder> for crate::error::InternalServerException {
|
1463 3081 | fn from(builder: Builder) -> Self {
|
1464 3082 | builder.build()
|
1465 3083 | }
|
1466 3084 | }
|
1467 - | /// A builder for [`InternalServerException`](crate::error::InternalServerException).
|
3085 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`InternalServerException`](crate::error::InternalServerException).
|
3086 + | /* RustType.kt:516 */
|
1468 3087 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3088 + | /* ServerBuilderGenerator.kt:211 */
|
1469 3089 | pub struct Builder {
|
3090 + | /* ServerBuilderGenerator.kt:308 */
|
1470 3091 | pub(crate) message: ::std::option::Option<crate::model::ErrorMessage>,
|
3092 + | /* ServerBuilderGenerator.kt:211 */
|
1471 3093 | }
|
3094 + | /* ServerBuilderGenerator.kt:215 */
|
1472 3095 | impl Builder {
|
3096 + | /* ServerBuilderGenerator.kt:331 */
|
1473 3097 | #[allow(missing_docs)] // documentation missing in model
|
3098 + | /* ServerBuilderGenerator.kt:343 */
|
1474 3099 | pub fn message(mut self, input: ::std::option::Option<crate::model::ErrorMessage>) -> Self {
|
1475 - | self.message = input;
|
3100 + | /* ServerBuilderGenerator.kt:344 */
|
3101 + | self.message =
|
3102 + | /* ServerBuilderGenerator.kt:376 */input
|
3103 + | /* ServerBuilderGenerator.kt:344 */;
|
1476 3104 | self
|
3105 + | /* ServerBuilderGenerator.kt:343 */
|
1477 3106 | }
|
1478 - | /// Consumes the builder and constructs a [`InternalServerException`](crate::error::InternalServerException).
|
3107 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`InternalServerException`](crate::error::InternalServerException).
|
3108 + | /* ServerBuilderGenerator.kt:271 */
|
1479 3109 | pub fn build(self) -> crate::error::InternalServerException {
|
1480 3110 | self.build_enforcing_all_constraints()
|
1481 3111 | }
|
3112 + | /* ServerBuilderGenerator.kt:283 */
|
1482 3113 | fn build_enforcing_all_constraints(self) -> crate::error::InternalServerException {
|
3114 + | /* ServerBuilderGenerator.kt:542 */
|
1483 3115 | crate::error::InternalServerException {
|
3116 + | /* ServerBuilderGenerator.kt:546 */
|
1484 3117 | message: self.message,
|
3118 + | /* ServerBuilderGenerator.kt:542 */
|
1485 3119 | }
|
3120 + | /* ServerBuilderGenerator.kt:283 */
|
1486 3121 | }
|
3122 + | /* ServerBuilderGenerator.kt:215 */
|
1487 3123 | }
|
3124 + |
|
3125 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1488 3126 | }
|