1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 - |
|
3 - | /// <p>There is no limit to the number of daily on-demand backups that can be taken.</p>
|
2 + | /* StructureGenerator.kt:197 */
|
3 + | /// /* StructureGenerator.kt:197 */<p>There is no limit to the number of daily on-demand backups that can be taken.</p>
|
4 4 | /// <p>Up to 50 simultaneous table operations are allowed per account. These operations include <code>CreateTable</code>, <code>UpdateTable</code>, <code>DeleteTable</code>,<code>UpdateTimeToLive</code>, <code>RestoreTableFromBackup</code>, and <code>RestoreTableToPointInTime</code>.</p>
|
5 5 | /// <p>The only exception is when you are creating a table with one or more secondary indexes. You can have up to 25 such requests running at a time; however, if the table or index specifications are complex, DynamoDB might temporarily reduce the number of concurrent operations.</p>
|
6 6 | /// <p>There is a soft account quota of 256 tables.</p>
|
7 + | /* RustType.kt:516 */
|
7 8 | #[non_exhaustive]
|
9 + | /* RustType.kt:516 */
|
8 10 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
9 - | pub struct LimitExceededError {
|
10 - | /// <p>Too many operations for a given subscriber.</p>
|
11 + | pub /* StructureGenerator.kt:201 */ struct LimitExceededError {
|
12 + | /// /* StructureGenerator.kt:231 */<p>Too many operations for a given subscriber.</p>
|
11 13 | pub message: ::std::option::Option<::std::string::String>,
|
12 - | pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
|
14 + | /* ErrorGenerator.kt:53 */ pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
|
15 + | /* StructureGenerator.kt:201 */
|
13 16 | }
|
17 + | /* ErrorImplGenerator.kt:99 */
|
14 18 | impl LimitExceededError {
|
19 + | /* ErrorImplGenerator.kt:128 */
|
15 20 | /// Returns the error message.
|
16 21 | pub fn message(&self) -> ::std::option::Option<&str> {
|
17 22 | self.message.as_deref()
|
18 23 | }
|
24 + | /* ErrorImplGenerator.kt:99 */
|
19 25 | }
|
26 + | /* ErrorImplGenerator.kt:153 */
|
20 27 | impl ::std::fmt::Display for LimitExceededError {
|
28 + | /* ErrorImplGenerator.kt:154 */
|
21 29 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
30 + | /* ErrorImplGenerator.kt:161 */
|
22 31 | ::std::write!(f, "LimitExceededError [LimitExceededException]")?;
|
32 + | /* ErrorImplGenerator.kt:166 */
|
23 33 | if let ::std::option::Option::Some(inner_1) = &self.message {
|
34 + | /* ErrorImplGenerator.kt:166 */
|
24 35 | {
|
36 + | /* ErrorImplGenerator.kt:167 */
|
25 37 | ::std::write!(f, ": {}", inner_1)?;
|
38 + | /* ErrorImplGenerator.kt:166 */
|
26 39 | }
|
40 + | /* ErrorImplGenerator.kt:166 */
|
27 41 | }
|
42 + | /* ErrorImplGenerator.kt:171 */
|
28 43 | Ok(())
|
44 + | /* ErrorImplGenerator.kt:154 */
|
29 45 | }
|
46 + | /* ErrorImplGenerator.kt:153 */
|
30 47 | }
|
48 + | /* ErrorImplGenerator.kt:175 */
|
31 49 | impl ::std::error::Error for LimitExceededError {}
|
50 + | /* ErrorGenerator.kt:77 */
|
32 51 | impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for LimitExceededError {
|
52 + | /* ErrorGenerator.kt:78 */
|
33 53 | fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
|
34 54 | &self.meta
|
35 55 | }
|
56 + | /* ErrorGenerator.kt:77 */
|
36 57 | }
|
58 + | /* ErrorGenerator.kt:81 */
|
37 59 | impl LimitExceededError {
|
38 - | /// Creates a new builder-style object to manufacture [`LimitExceededError`](crate::types::error::LimitExceededError).
|
60 + | /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`LimitExceededError`](crate::types::error::LimitExceededError).
|
61 + | /* BuilderGenerator.kt:175 */
|
39 62 | pub fn builder() -> crate::types::error::builders::LimitExceededErrorBuilder {
|
63 + | /* BuilderGenerator.kt:176 */
|
40 64 | crate::types::error::builders::LimitExceededErrorBuilder::default()
|
65 + | /* BuilderGenerator.kt:175 */
|
41 66 | }
|
67 + | /* ErrorGenerator.kt:81 */
|
42 68 | }
|
43 69 |
|
44 - | /// A builder for [`LimitExceededError`](crate::types::error::LimitExceededError).
|
70 + | /// /* BuilderGenerator.kt:342 */A builder for [`LimitExceededError`](crate::types::error::LimitExceededError).
|
71 + | /* RustType.kt:516 */
|
45 72 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
73 + | /* RustType.kt:516 */
|
46 74 | #[non_exhaustive]
|
75 + | /* BuilderGenerator.kt:345 */
|
47 76 | pub struct LimitExceededErrorBuilder {
|
48 - | pub(crate) message: ::std::option::Option<::std::string::String>,
|
49 - | meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
|
77 + | /* BuilderGenerator.kt:275 */ pub(crate) message: ::std::option::Option<::std::string::String>,
|
78 + | /* ErrorGenerator.kt:97 */ meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
|
79 + | /* BuilderGenerator.kt:345 */
|
50 80 | }
|
81 + | /* BuilderGenerator.kt:355 */
|
51 82 | impl LimitExceededErrorBuilder {
|
52 - | /// <p>Too many operations for a given subscriber.</p>
|
83 + | /// /* BuilderGenerator.kt:286 */<p>Too many operations for a given subscriber.</p>
|
84 + | /* BuilderGenerator.kt:291 */
|
53 85 | pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
86 + | /* BuilderGenerator.kt:292 */
|
54 87 | self.message = ::std::option::Option::Some(input.into());
|
88 + | /* BuilderGenerator.kt:293 */
|
55 89 | self
|
90 + | /* BuilderGenerator.kt:291 */
|
56 91 | }
|
57 - | /// <p>Too many operations for a given subscriber.</p>
|
92 + | /// /* BuilderGenerator.kt:312 */<p>Too many operations for a given subscriber.</p>
|
93 + | /* BuilderGenerator.kt:314 */
|
58 94 | pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
95 + | /* BuilderGenerator.kt:315 */
|
59 96 | self.message = input;
|
60 97 | self
|
98 + | /* BuilderGenerator.kt:314 */
|
61 99 | }
|
62 - | /// <p>Too many operations for a given subscriber.</p>
|
100 + | /// /* BuilderGenerator.kt:334 */<p>Too many operations for a given subscriber.</p>
|
101 + | /* BuilderGenerator.kt:336 */
|
63 102 | pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
|
103 + | /* BuilderGenerator.kt:337 */
|
64 104 | &self.message
|
105 + | /* BuilderGenerator.kt:336 */
|
65 106 | }
|
107 + | /* ErrorGenerator.kt:101 */
|
66 108 | /// Sets error metadata
|
67 109 | pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self {
|
68 110 | self.meta = Some(meta);
|
69 111 | self
|
70 112 | }
|
71 113 |
|
72 114 | /// Sets error metadata
|
73 115 | pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self {
|
74 116 | self.meta = meta;
|
75 117 | self
|
76 118 | }
|
77 - | /// Consumes the builder and constructs a [`LimitExceededError`](crate::types::error::LimitExceededError).
|
119 + | /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`LimitExceededError`](crate::types::error::LimitExceededError).
|
120 + | /* BuilderGenerator.kt:253 */
|
78 121 | pub fn build(self) -> crate::types::error::LimitExceededError {
|
122 + | /* BuilderGenerator.kt:477 */
|
79 123 | crate::types::error::LimitExceededError {
|
80 - | message: self.message,
|
124 + | /* BuilderGenerator.kt:481 */ message: self.message,
|
125 + | /* ErrorGenerator.kt:120 */
|
81 126 | meta: self.meta.unwrap_or_default(),
|
127 + | /* BuilderGenerator.kt:477 */
|
82 128 | }
|
129 + | /* BuilderGenerator.kt:253 */
|
83 130 | }
|
131 + | /* BuilderGenerator.kt:355 */
|
84 132 | }
|