1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 - |
|
3 - | /// <p>Contains the details of the table when the backup was created.</p>
|
2 + | /* StructureGenerator.kt:197 */
|
3 + | /// /* StructureGenerator.kt:197 */<p>Contains the details of the table when the backup was created.</p>
|
4 + | /* RustType.kt:516 */
|
4 5 | #[non_exhaustive]
|
6 + | /* RustType.kt:516 */
|
5 7 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
6 - | pub struct SourceTableDetails {
|
7 - | /// <p>The name of the table for which the backup was created.</p>
|
8 + | pub /* StructureGenerator.kt:201 */ struct SourceTableDetails {
|
9 + | /// /* StructureGenerator.kt:231 */<p>The name of the table for which the backup was created.</p>
|
8 10 | pub table_name: ::std::string::String,
|
9 - | /// <p>Unique identifier for the table for which the backup was created.</p>
|
11 + | /// /* StructureGenerator.kt:231 */<p>Unique identifier for the table for which the backup was created.</p>
|
10 12 | pub table_id: ::std::string::String,
|
11 - | /// <p>ARN of the table for which backup was created.</p>
|
13 + | /// /* StructureGenerator.kt:231 */<p>ARN of the table for which backup was created.</p>
|
12 14 | pub table_arn: ::std::option::Option<::std::string::String>,
|
13 - | /// <p>Size of the table in bytes. Note that this is an approximate value.</p>
|
15 + | /// /* StructureGenerator.kt:231 */<p>Size of the table in bytes. Note that this is an approximate value.</p>
|
14 16 | pub table_size_bytes: i64,
|
15 - | /// <p>Schema of the table.</p>
|
17 + | /// /* StructureGenerator.kt:231 */<p>Schema of the table.</p>
|
16 18 | pub key_schema: ::std::vec::Vec<crate::types::KeySchemaElement>,
|
17 - | /// <p>Time when the source table was created.</p>
|
19 + | /// /* StructureGenerator.kt:231 */<p>Time when the source table was created.</p>
|
18 20 | pub table_creation_date_time: ::aws_smithy_types::DateTime,
|
19 - | /// <p>Read IOPs and Write IOPS on the table when the backup was created.</p>
|
21 + | /// /* StructureGenerator.kt:231 */<p>Read IOPs and Write IOPS on the table when the backup was created.</p>
|
20 22 | pub provisioned_throughput: crate::types::ProvisionedThroughput,
|
21 - | /// <p>Number of items in the table. Note that this is an approximate value.</p>
|
23 + | /// /* StructureGenerator.kt:231 */<p>Number of items in the table. Note that this is an approximate value.</p>
|
22 24 | pub item_count: ::std::option::Option<i64>,
|
23 - | /// <p>Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later.</p>
|
25 + | /// /* StructureGenerator.kt:231 */<p>Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later.</p>
|
24 26 | /// <ul>
|
25 27 | /// <li>
|
26 28 | /// <p><code>PROVISIONED</code> - Sets the read/write capacity mode to <code>PROVISIONED</code>. We recommend using <code>PROVISIONED</code> for predictable workloads.</p></li>
|
27 29 | /// <li>
|
28 30 | /// <p><code>PAY_PER_REQUEST</code> - Sets the read/write capacity mode to <code>PAY_PER_REQUEST</code>. We recommend using <code>PAY_PER_REQUEST</code> for unpredictable workloads.</p></li>
|
29 31 | /// </ul>
|
30 32 | pub billing_mode: ::std::option::Option<crate::types::BillingMode>,
|
33 + | /* StructureGenerator.kt:201 */
|
31 34 | }
|
35 + | /* StructureGenerator.kt:135 */
|
32 36 | impl SourceTableDetails {
|
33 - | /// <p>The name of the table for which the backup was created.</p>
|
37 + | /// /* StructureGenerator.kt:231 */<p>The name of the table for which the backup was created.</p>
|
38 + | /* StructureGenerator.kt:166 */
|
34 39 | pub fn table_name(&self) -> &str {
|
40 + | /* StructureGenerator.kt:171 */
|
35 41 | use std::ops::Deref;
|
36 42 | self.table_name.deref()
|
43 + | /* StructureGenerator.kt:166 */
|
37 44 | }
|
38 - | /// <p>Unique identifier for the table for which the backup was created.</p>
|
45 + | /// /* StructureGenerator.kt:231 */<p>Unique identifier for the table for which the backup was created.</p>
|
46 + | /* StructureGenerator.kt:166 */
|
39 47 | pub fn table_id(&self) -> &str {
|
48 + | /* StructureGenerator.kt:171 */
|
40 49 | use std::ops::Deref;
|
41 50 | self.table_id.deref()
|
51 + | /* StructureGenerator.kt:166 */
|
42 52 | }
|
43 - | /// <p>ARN of the table for which backup was created.</p>
|
53 + | /// /* StructureGenerator.kt:231 */<p>ARN of the table for which backup was created.</p>
|
54 + | /* StructureGenerator.kt:166 */
|
44 55 | pub fn table_arn(&self) -> ::std::option::Option<&str> {
|
56 + | /* StructureGenerator.kt:169 */
|
45 57 | self.table_arn.as_deref()
|
58 + | /* StructureGenerator.kt:166 */
|
46 59 | }
|
47 - | /// <p>Size of the table in bytes. Note that this is an approximate value.</p>
|
60 + | /// /* StructureGenerator.kt:231 */<p>Size of the table in bytes. Note that this is an approximate value.</p>
|
61 + | /* StructureGenerator.kt:166 */
|
48 62 | pub fn table_size_bytes(&self) -> i64 {
|
63 + | /* StructureGenerator.kt:168 */
|
49 64 | self.table_size_bytes
|
65 + | /* StructureGenerator.kt:166 */
|
50 66 | }
|
51 - | /// <p>Schema of the table.</p>
|
67 + | /// /* StructureGenerator.kt:231 */<p>Schema of the table.</p>
|
68 + | /* StructureGenerator.kt:166 */
|
52 69 | pub fn key_schema(&self) -> &[crate::types::KeySchemaElement] {
|
70 + | /* StructureGenerator.kt:171 */
|
53 71 | use std::ops::Deref;
|
54 72 | self.key_schema.deref()
|
73 + | /* StructureGenerator.kt:166 */
|
55 74 | }
|
56 - | /// <p>Time when the source table was created.</p>
|
75 + | /// /* StructureGenerator.kt:231 */<p>Time when the source table was created.</p>
|
76 + | /* StructureGenerator.kt:166 */
|
57 77 | pub fn table_creation_date_time(&self) -> &::aws_smithy_types::DateTime {
|
78 + | /* StructureGenerator.kt:172 */
|
58 79 | &self.table_creation_date_time
|
80 + | /* StructureGenerator.kt:166 */
|
59 81 | }
|
60 - | /// <p>Read IOPs and Write IOPS on the table when the backup was created.</p>
|
82 + | /// /* StructureGenerator.kt:231 */<p>Read IOPs and Write IOPS on the table when the backup was created.</p>
|
83 + | /* StructureGenerator.kt:166 */
|
61 84 | pub fn provisioned_throughput(&self) -> &crate::types::ProvisionedThroughput {
|
85 + | /* StructureGenerator.kt:172 */
|
62 86 | &self.provisioned_throughput
|
87 + | /* StructureGenerator.kt:166 */
|
63 88 | }
|
64 - | /// <p>Number of items in the table. Note that this is an approximate value.</p>
|
89 + | /// /* StructureGenerator.kt:231 */<p>Number of items in the table. Note that this is an approximate value.</p>
|
90 + | /* StructureGenerator.kt:166 */
|
65 91 | pub fn item_count(&self) -> ::std::option::Option<i64> {
|
92 + | /* StructureGenerator.kt:168 */
|
66 93 | self.item_count
|
94 + | /* StructureGenerator.kt:166 */
|
67 95 | }
|
68 - | /// <p>Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later.</p>
|
96 + | /// /* StructureGenerator.kt:231 */<p>Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later.</p>
|
69 97 | /// <ul>
|
70 98 | /// <li>
|
71 99 | /// <p><code>PROVISIONED</code> - Sets the read/write capacity mode to <code>PROVISIONED</code>. We recommend using <code>PROVISIONED</code> for predictable workloads.</p></li>
|
72 100 | /// <li>
|
73 101 | /// <p><code>PAY_PER_REQUEST</code> - Sets the read/write capacity mode to <code>PAY_PER_REQUEST</code>. We recommend using <code>PAY_PER_REQUEST</code> for unpredictable workloads.</p></li>
|
74 102 | /// </ul>
|
103 + | /* StructureGenerator.kt:166 */
|
75 104 | pub fn billing_mode(&self) -> ::std::option::Option<&crate::types::BillingMode> {
|
105 + | /* StructureGenerator.kt:170 */
|
76 106 | self.billing_mode.as_ref()
|
107 + | /* StructureGenerator.kt:166 */
|
77 108 | }
|
109 + | /* StructureGenerator.kt:135 */
|
78 110 | }
|
111 + | /* ClientCodegenVisitor.kt:237 */
|
79 112 | impl SourceTableDetails {
|
80 - | /// Creates a new builder-style object to manufacture [`SourceTableDetails`](crate::types::SourceTableDetails).
|
113 + | /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`SourceTableDetails`](crate::types::SourceTableDetails).
|
114 + | /* BuilderGenerator.kt:175 */
|
81 115 | pub fn builder() -> crate::types::builders::SourceTableDetailsBuilder {
|
116 + | /* BuilderGenerator.kt:176 */
|
82 117 | crate::types::builders::SourceTableDetailsBuilder::default()
|
118 + | /* BuilderGenerator.kt:175 */
|
83 119 | }
|
120 + | /* ClientCodegenVisitor.kt:237 */
|
84 121 | }
|
85 122 |
|
86 - | /// A builder for [`SourceTableDetails`](crate::types::SourceTableDetails).
|
123 + | /// /* BuilderGenerator.kt:342 */A builder for [`SourceTableDetails`](crate::types::SourceTableDetails).
|
124 + | /* RustType.kt:516 */
|
87 125 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
126 + | /* RustType.kt:516 */
|
88 127 | #[non_exhaustive]
|
128 + | /* BuilderGenerator.kt:345 */
|
89 129 | pub struct SourceTableDetailsBuilder {
|
90 - | pub(crate) table_name: ::std::option::Option<::std::string::String>,
|
91 - | pub(crate) table_id: ::std::option::Option<::std::string::String>,
|
92 - | pub(crate) table_arn: ::std::option::Option<::std::string::String>,
|
93 - | pub(crate) table_size_bytes: ::std::option::Option<i64>,
|
94 - | pub(crate) key_schema: ::std::option::Option<::std::vec::Vec<crate::types::KeySchemaElement>>,
|
95 - | pub(crate) table_creation_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
96 - | pub(crate) provisioned_throughput: ::std::option::Option<crate::types::ProvisionedThroughput>,
|
97 - | pub(crate) item_count: ::std::option::Option<i64>,
|
98 - | pub(crate) billing_mode: ::std::option::Option<crate::types::BillingMode>,
|
130 + | /* BuilderGenerator.kt:275 */ pub(crate) table_name: ::std::option::Option<::std::string::String>,
|
131 + | /* BuilderGenerator.kt:275 */ pub(crate) table_id: ::std::option::Option<::std::string::String>,
|
132 + | /* BuilderGenerator.kt:275 */ pub(crate) table_arn: ::std::option::Option<::std::string::String>,
|
133 + | /* BuilderGenerator.kt:275 */ pub(crate) table_size_bytes: ::std::option::Option<i64>,
|
134 + | /* BuilderGenerator.kt:275 */ pub(crate) key_schema: ::std::option::Option<::std::vec::Vec<crate::types::KeySchemaElement>>,
|
135 + | /* BuilderGenerator.kt:275 */ pub(crate) table_creation_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
136 + | /* BuilderGenerator.kt:275 */ pub(crate) provisioned_throughput: ::std::option::Option<crate::types::ProvisionedThroughput>,
|
137 + | /* BuilderGenerator.kt:275 */ pub(crate) item_count: ::std::option::Option<i64>,
|
138 + | /* BuilderGenerator.kt:275 */ pub(crate) billing_mode: ::std::option::Option<crate::types::BillingMode>,
|
139 + | /* BuilderGenerator.kt:345 */
|
99 140 | }
|
141 + | /* BuilderGenerator.kt:355 */
|
100 142 | impl SourceTableDetailsBuilder {
|
101 - | /// <p>The name of the table for which the backup was created.</p>
|
102 - | /// This field is required.
|
143 + | /// /* BuilderGenerator.kt:286 */<p>The name of the table for which the backup was created.</p>
|
144 + | /// /* BuilderGenerator.kt:288 */This field is required.
|
145 + | /* BuilderGenerator.kt:291 */
|
103 146 | pub fn table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
147 + | /* BuilderGenerator.kt:292 */
|
104 148 | self.table_name = ::std::option::Option::Some(input.into());
|
149 + | /* BuilderGenerator.kt:293 */
|
105 150 | self
|
151 + | /* BuilderGenerator.kt:291 */
|
106 152 | }
|
107 - | /// <p>The name of the table for which the backup was created.</p>
|
153 + | /// /* BuilderGenerator.kt:312 */<p>The name of the table for which the backup was created.</p>
|
154 + | /* BuilderGenerator.kt:314 */
|
108 155 | pub fn set_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
156 + | /* BuilderGenerator.kt:315 */
|
109 157 | self.table_name = input;
|
110 158 | self
|
159 + | /* BuilderGenerator.kt:314 */
|
111 160 | }
|
112 - | /// <p>The name of the table for which the backup was created.</p>
|
161 + | /// /* BuilderGenerator.kt:334 */<p>The name of the table for which the backup was created.</p>
|
162 + | /* BuilderGenerator.kt:336 */
|
113 163 | pub fn get_table_name(&self) -> &::std::option::Option<::std::string::String> {
|
164 + | /* BuilderGenerator.kt:337 */
|
114 165 | &self.table_name
|
166 + | /* BuilderGenerator.kt:336 */
|
115 167 | }
|
116 - | /// <p>Unique identifier for the table for which the backup was created.</p>
|
117 - | /// This field is required.
|
168 + | /// /* BuilderGenerator.kt:286 */<p>Unique identifier for the table for which the backup was created.</p>
|
169 + | /// /* BuilderGenerator.kt:288 */This field is required.
|
170 + | /* BuilderGenerator.kt:291 */
|
118 171 | pub fn table_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
172 + | /* BuilderGenerator.kt:292 */
|
119 173 | self.table_id = ::std::option::Option::Some(input.into());
|
174 + | /* BuilderGenerator.kt:293 */
|
120 175 | self
|
176 + | /* BuilderGenerator.kt:291 */
|
121 177 | }
|
122 - | /// <p>Unique identifier for the table for which the backup was created.</p>
|
178 + | /// /* BuilderGenerator.kt:312 */<p>Unique identifier for the table for which the backup was created.</p>
|
179 + | /* BuilderGenerator.kt:314 */
|
123 180 | pub fn set_table_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
181 + | /* BuilderGenerator.kt:315 */
|
124 182 | self.table_id = input;
|
125 183 | self
|
184 + | /* BuilderGenerator.kt:314 */
|
126 185 | }
|
127 - | /// <p>Unique identifier for the table for which the backup was created.</p>
|
186 + | /// /* BuilderGenerator.kt:334 */<p>Unique identifier for the table for which the backup was created.</p>
|
187 + | /* BuilderGenerator.kt:336 */
|
128 188 | pub fn get_table_id(&self) -> &::std::option::Option<::std::string::String> {
|
189 + | /* BuilderGenerator.kt:337 */
|
129 190 | &self.table_id
|
191 + | /* BuilderGenerator.kt:336 */
|
130 192 | }
|
131 - | /// <p>ARN of the table for which backup was created.</p>
|
193 + | /// /* BuilderGenerator.kt:286 */<p>ARN of the table for which backup was created.</p>
|
194 + | /* BuilderGenerator.kt:291 */
|
132 195 | pub fn table_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
196 + | /* BuilderGenerator.kt:292 */
|
133 197 | self.table_arn = ::std::option::Option::Some(input.into());
|
198 + | /* BuilderGenerator.kt:293 */
|
134 199 | self
|
200 + | /* BuilderGenerator.kt:291 */
|
135 201 | }
|
136 - | /// <p>ARN of the table for which backup was created.</p>
|
202 + | /// /* BuilderGenerator.kt:312 */<p>ARN of the table for which backup was created.</p>
|
203 + | /* BuilderGenerator.kt:314 */
|
137 204 | pub fn set_table_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
205 + | /* BuilderGenerator.kt:315 */
|
138 206 | self.table_arn = input;
|
139 207 | self
|
208 + | /* BuilderGenerator.kt:314 */
|
140 209 | }
|
141 - | /// <p>ARN of the table for which backup was created.</p>
|
210 + | /// /* BuilderGenerator.kt:334 */<p>ARN of the table for which backup was created.</p>
|
211 + | /* BuilderGenerator.kt:336 */
|
142 212 | pub fn get_table_arn(&self) -> &::std::option::Option<::std::string::String> {
|
213 + | /* BuilderGenerator.kt:337 */
|
143 214 | &self.table_arn
|
215 + | /* BuilderGenerator.kt:336 */
|
144 216 | }
|
145 - | /// <p>Size of the table in bytes. Note that this is an approximate value.</p>
|
217 + | /// /* BuilderGenerator.kt:286 */<p>Size of the table in bytes. Note that this is an approximate value.</p>
|
218 + | /* BuilderGenerator.kt:291 */
|
146 219 | pub fn table_size_bytes(mut self, input: i64) -> Self {
|
220 + | /* BuilderGenerator.kt:292 */
|
147 221 | self.table_size_bytes = ::std::option::Option::Some(input);
|
222 + | /* BuilderGenerator.kt:293 */
|
148 223 | self
|
224 + | /* BuilderGenerator.kt:291 */
|
149 225 | }
|
150 - | /// <p>Size of the table in bytes. Note that this is an approximate value.</p>
|
226 + | /// /* BuilderGenerator.kt:312 */<p>Size of the table in bytes. Note that this is an approximate value.</p>
|
227 + | /* BuilderGenerator.kt:314 */
|
151 228 | pub fn set_table_size_bytes(mut self, input: ::std::option::Option<i64>) -> Self {
|
229 + | /* BuilderGenerator.kt:315 */
|
152 230 | self.table_size_bytes = input;
|
153 231 | self
|
232 + | /* BuilderGenerator.kt:314 */
|
154 233 | }
|
155 - | /// <p>Size of the table in bytes. Note that this is an approximate value.</p>
|
234 + | /// /* BuilderGenerator.kt:334 */<p>Size of the table in bytes. Note that this is an approximate value.</p>
|
235 + | /* BuilderGenerator.kt:336 */
|
156 236 | pub fn get_table_size_bytes(&self) -> &::std::option::Option<i64> {
|
237 + | /* BuilderGenerator.kt:337 */
|
157 238 | &self.table_size_bytes
|
239 + | /* BuilderGenerator.kt:336 */
|
158 240 | }
|
159 - | /// Appends an item to `key_schema`.
|
241 + | /// /* BuilderGenerator.kt:410 */Appends an item to `key_schema`.
|
242 + | /* BuilderGenerator.kt:411 */
|
160 243 | ///
|
161 - | /// To override the contents of this collection use [`set_key_schema`](Self::set_key_schema).
|
244 + | /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_key_schema`](Self::set_key_schema).
|
245 + | /* BuilderGenerator.kt:413 */
|
162 246 | ///
|
163 - | /// <p>Schema of the table.</p>
|
247 + | /// /* BuilderGenerator.kt:414 */<p>Schema of the table.</p>
|
248 + | /* BuilderGenerator.kt:418 */
|
164 249 | pub fn key_schema(mut self, input: crate::types::KeySchemaElement) -> Self {
|
250 + | /* BuilderGenerator.kt:419 */
|
165 251 | let mut v = self.key_schema.unwrap_or_default();
|
166 252 | v.push(input);
|
167 253 | self.key_schema = ::std::option::Option::Some(v);
|
168 254 | self
|
255 + | /* BuilderGenerator.kt:418 */
|
169 256 | }
|
170 - | /// <p>Schema of the table.</p>
|
257 + | /// /* BuilderGenerator.kt:312 */<p>Schema of the table.</p>
|
258 + | /* BuilderGenerator.kt:314 */
|
171 259 | pub fn set_key_schema(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::KeySchemaElement>>) -> Self {
|
260 + | /* BuilderGenerator.kt:315 */
|
172 261 | self.key_schema = input;
|
173 262 | self
|
263 + | /* BuilderGenerator.kt:314 */
|
174 264 | }
|
175 - | /// <p>Schema of the table.</p>
|
265 + | /// /* BuilderGenerator.kt:334 */<p>Schema of the table.</p>
|
266 + | /* BuilderGenerator.kt:336 */
|
176 267 | pub fn get_key_schema(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::KeySchemaElement>> {
|
268 + | /* BuilderGenerator.kt:337 */
|
177 269 | &self.key_schema
|
270 + | /* BuilderGenerator.kt:336 */
|
178 271 | }
|
179 - | /// <p>Time when the source table was created.</p>
|
180 - | /// This field is required.
|
272 + | /// /* BuilderGenerator.kt:286 */<p>Time when the source table was created.</p>
|
273 + | /// /* BuilderGenerator.kt:288 */This field is required.
|
274 + | /* BuilderGenerator.kt:291 */
|
181 275 | pub fn table_creation_date_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
276 + | /* BuilderGenerator.kt:292 */
|
182 277 | self.table_creation_date_time = ::std::option::Option::Some(input);
|
278 + | /* BuilderGenerator.kt:293 */
|
183 279 | self
|
280 + | /* BuilderGenerator.kt:291 */
|
184 281 | }
|
185 - | /// <p>Time when the source table was created.</p>
|
282 + | /// /* BuilderGenerator.kt:312 */<p>Time when the source table was created.</p>
|
283 + | /* BuilderGenerator.kt:314 */
|
186 284 | pub fn set_table_creation_date_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
|
285 + | /* BuilderGenerator.kt:315 */
|
187 286 | self.table_creation_date_time = input;
|
188 287 | self
|
288 + | /* BuilderGenerator.kt:314 */
|
189 289 | }
|
190 - | /// <p>Time when the source table was created.</p>
|
290 + | /// /* BuilderGenerator.kt:334 */<p>Time when the source table was created.</p>
|
291 + | /* BuilderGenerator.kt:336 */
|
191 292 | pub fn get_table_creation_date_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
|
293 + | /* BuilderGenerator.kt:337 */
|
192 294 | &self.table_creation_date_time
|
295 + | /* BuilderGenerator.kt:336 */
|
193 296 | }
|
194 - | /// <p>Read IOPs and Write IOPS on the table when the backup was created.</p>
|
195 - | /// This field is required.
|
297 + | /// /* BuilderGenerator.kt:286 */<p>Read IOPs and Write IOPS on the table when the backup was created.</p>
|
298 + | /// /* BuilderGenerator.kt:288 */This field is required.
|
299 + | /* BuilderGenerator.kt:291 */
|
196 300 | pub fn provisioned_throughput(mut self, input: crate::types::ProvisionedThroughput) -> Self {
|
301 + | /* BuilderGenerator.kt:292 */
|
197 302 | self.provisioned_throughput = ::std::option::Option::Some(input);
|
303 + | /* BuilderGenerator.kt:293 */
|
198 304 | self
|
305 + | /* BuilderGenerator.kt:291 */
|
199 306 | }
|
200 - | /// <p>Read IOPs and Write IOPS on the table when the backup was created.</p>
|
307 + | /// /* BuilderGenerator.kt:312 */<p>Read IOPs and Write IOPS on the table when the backup was created.</p>
|
308 + | /* BuilderGenerator.kt:314 */
|
201 309 | pub fn set_provisioned_throughput(mut self, input: ::std::option::Option<crate::types::ProvisionedThroughput>) -> Self {
|
310 + | /* BuilderGenerator.kt:315 */
|
202 311 | self.provisioned_throughput = input;
|
203 312 | self
|
313 + | /* BuilderGenerator.kt:314 */
|
204 314 | }
|
205 - | /// <p>Read IOPs and Write IOPS on the table when the backup was created.</p>
|
315 + | /// /* BuilderGenerator.kt:334 */<p>Read IOPs and Write IOPS on the table when the backup was created.</p>
|
316 + | /* BuilderGenerator.kt:336 */
|
206 317 | pub fn get_provisioned_throughput(&self) -> &::std::option::Option<crate::types::ProvisionedThroughput> {
|
318 + | /* BuilderGenerator.kt:337 */
|
207 319 | &self.provisioned_throughput
|
320 + | /* BuilderGenerator.kt:336 */
|
208 321 | }
|
209 - | /// <p>Number of items in the table. Note that this is an approximate value.</p>
|
322 + | /// /* BuilderGenerator.kt:286 */<p>Number of items in the table. Note that this is an approximate value.</p>
|
323 + | /* BuilderGenerator.kt:291 */
|
210 324 | pub fn item_count(mut self, input: i64) -> Self {
|
325 + | /* BuilderGenerator.kt:292 */
|
211 326 | self.item_count = ::std::option::Option::Some(input);
|
327 + | /* BuilderGenerator.kt:293 */
|
212 328 | self
|
329 + | /* BuilderGenerator.kt:291 */
|
213 330 | }
|
214 - | /// <p>Number of items in the table. Note that this is an approximate value.</p>
|
331 + | /// /* BuilderGenerator.kt:312 */<p>Number of items in the table. Note that this is an approximate value.</p>
|
332 + | /* BuilderGenerator.kt:314 */
|
215 333 | pub fn set_item_count(mut self, input: ::std::option::Option<i64>) -> Self {
|
334 + | /* BuilderGenerator.kt:315 */
|
216 335 | self.item_count = input;
|
217 336 | self
|
337 + | /* BuilderGenerator.kt:314 */
|
218 338 | }
|
219 - | /// <p>Number of items in the table. Note that this is an approximate value.</p>
|
339 + | /// /* BuilderGenerator.kt:334 */<p>Number of items in the table. Note that this is an approximate value.</p>
|
340 + | /* BuilderGenerator.kt:336 */
|
220 341 | pub fn get_item_count(&self) -> &::std::option::Option<i64> {
|
342 + | /* BuilderGenerator.kt:337 */
|
221 343 | &self.item_count
|
344 + | /* BuilderGenerator.kt:336 */
|
222 345 | }
|
223 - | /// <p>Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later.</p>
|
346 + | /// /* BuilderGenerator.kt:286 */<p>Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later.</p>
|
224 347 | /// <ul>
|
225 348 | /// <li>
|
226 349 | /// <p><code>PROVISIONED</code> - Sets the read/write capacity mode to <code>PROVISIONED</code>. We recommend using <code>PROVISIONED</code> for predictable workloads.</p></li>
|
227 350 | /// <li>
|
228 351 | /// <p><code>PAY_PER_REQUEST</code> - Sets the read/write capacity mode to <code>PAY_PER_REQUEST</code>. We recommend using <code>PAY_PER_REQUEST</code> for unpredictable workloads.</p></li>
|
229 352 | /// </ul>
|
353 + | /* BuilderGenerator.kt:291 */
|
230 354 | pub fn billing_mode(mut self, input: crate::types::BillingMode) -> Self {
|
355 + | /* BuilderGenerator.kt:292 */
|
231 356 | self.billing_mode = ::std::option::Option::Some(input);
|
357 + | /* BuilderGenerator.kt:293 */
|
232 358 | self
|
359 + | /* BuilderGenerator.kt:291 */
|
233 360 | }
|
234 - | /// <p>Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later.</p>
|
361 + | /// /* BuilderGenerator.kt:312 */<p>Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later.</p>
|
235 362 | /// <ul>
|
236 363 | /// <li>
|
237 364 | /// <p><code>PROVISIONED</code> - Sets the read/write capacity mode to <code>PROVISIONED</code>. We recommend using <code>PROVISIONED</code> for predictable workloads.</p></li>
|
238 365 | /// <li>
|
239 366 | /// <p><code>PAY_PER_REQUEST</code> - Sets the read/write capacity mode to <code>PAY_PER_REQUEST</code>. We recommend using <code>PAY_PER_REQUEST</code> for unpredictable workloads.</p></li>
|
240 367 | /// </ul>
|
368 + | /* BuilderGenerator.kt:314 */
|
241 369 | pub fn set_billing_mode(mut self, input: ::std::option::Option<crate::types::BillingMode>) -> Self {
|
370 + | /* BuilderGenerator.kt:315 */
|
242 371 | self.billing_mode = input;
|
243 372 | self
|
373 + | /* BuilderGenerator.kt:314 */
|
244 374 | }
|
245 - | /// <p>Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later.</p>
|
375 + | /// /* BuilderGenerator.kt:334 */<p>Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later.</p>
|
246 376 | /// <ul>
|
247 377 | /// <li>
|
248 378 | /// <p><code>PROVISIONED</code> - Sets the read/write capacity mode to <code>PROVISIONED</code>. We recommend using <code>PROVISIONED</code> for predictable workloads.</p></li>
|
249 379 | /// <li>
|
250 380 | /// <p><code>PAY_PER_REQUEST</code> - Sets the read/write capacity mode to <code>PAY_PER_REQUEST</code>. We recommend using <code>PAY_PER_REQUEST</code> for unpredictable workloads.</p></li>
|
251 381 | /// </ul>
|
382 + | /* BuilderGenerator.kt:336 */
|
252 383 | pub fn get_billing_mode(&self) -> &::std::option::Option<crate::types::BillingMode> {
|
384 + | /* BuilderGenerator.kt:337 */
|
253 385 | &self.billing_mode
|
254 - | }
|
255 - | /// Consumes the builder and constructs a [`SourceTableDetails`](crate::types::SourceTableDetails).
|
256 - | /// This method will fail if any of the following fields are not set:
|
257 - | /// - [`table_name`](crate::types::builders::SourceTableDetailsBuilder::table_name)
|
258 - | /// - [`table_id`](crate::types::builders::SourceTableDetailsBuilder::table_id)
|
259 - | /// - [`key_schema`](crate::types::builders::SourceTableDetailsBuilder::key_schema)
|
260 - | /// - [`table_creation_date_time`](crate::types::builders::SourceTableDetailsBuilder::table_creation_date_time)
|
261 - | /// - [`provisioned_throughput`](crate::types::builders::SourceTableDetailsBuilder::provisioned_throughput)
|
386 + | /* BuilderGenerator.kt:336 */
|
387 + | }
|
388 + | /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`SourceTableDetails`](crate::types::SourceTableDetails).
|
389 + | /// /* BuilderGenerator.kt:243 */This method will fail if any of the following fields are not set:
|
390 + | /// /* BuilderGenerator.kt:246 */- [`table_name`](crate::types::builders::SourceTableDetailsBuilder::table_name)
|
391 + | /// /* BuilderGenerator.kt:246 */- [`table_id`](crate::types::builders::SourceTableDetailsBuilder::table_id)
|
392 + | /// /* BuilderGenerator.kt:246 */- [`key_schema`](crate::types::builders::SourceTableDetailsBuilder::key_schema)
|
393 + | /// /* BuilderGenerator.kt:246 */- [`table_creation_date_time`](crate::types::builders::SourceTableDetailsBuilder::table_creation_date_time)
|
394 + | /// /* BuilderGenerator.kt:246 */- [`provisioned_throughput`](crate::types::builders::SourceTableDetailsBuilder::provisioned_throughput)
|
395 + | /* BuilderGenerator.kt:253 */
|
262 396 | pub fn build(self) -> ::std::result::Result<crate::types::SourceTableDetails, ::aws_smithy_types::error::operation::BuildError> {
|
263 - | ::std::result::Result::Ok(crate::types::SourceTableDetails {
|
264 - | table_name: self.table_name.ok_or_else(|| {
|
265 - | ::aws_smithy_types::error::operation::BuildError::missing_field(
|
266 - | "table_name",
|
267 - | "table_name was not specified but it is required when building SourceTableDetails",
|
268 - | )
|
269 - | })?,
|
270 - | table_id: self.table_id.ok_or_else(|| {
|
271 - | ::aws_smithy_types::error::operation::BuildError::missing_field(
|
272 - | "table_id",
|
273 - | "table_id was not specified but it is required when building SourceTableDetails",
|
274 - | )
|
275 - | })?,
|
276 - | table_arn: self.table_arn,
|
277 - | table_size_bytes: self.table_size_bytes.unwrap_or_default(),
|
278 - | key_schema: self.key_schema.ok_or_else(|| {
|
279 - | ::aws_smithy_types::error::operation::BuildError::missing_field(
|
280 - | "key_schema",
|
281 - | "key_schema was not specified but it is required when building SourceTableDetails",
|
282 - | )
|
283 - | })?,
|
284 - | table_creation_date_time: self.table_creation_date_time.ok_or_else(|| {
|
285 - | ::aws_smithy_types::error::operation::BuildError::missing_field(
|
286 - | "table_creation_date_time",
|
287 - | "table_creation_date_time was not specified but it is required when building SourceTableDetails",
|
288 - | )
|
289 - | })?,
|
290 - | provisioned_throughput: self.provisioned_throughput.ok_or_else(|| {
|
291 - | ::aws_smithy_types::error::operation::BuildError::missing_field(
|
292 - | "provisioned_throughput",
|
293 - | "provisioned_throughput was not specified but it is required when building SourceTableDetails",
|
294 - | )
|
295 - | })?,
|
296 - | item_count: self.item_count,
|
297 - | billing_mode: self.billing_mode,
|
298 - | })
|
299 - | }
|
397 + | /* BuilderGenerator.kt:254 */
|
398 + | ::std::result::Result::Ok(
|
399 + | /* BuilderGenerator.kt:477 */crate::types::SourceTableDetails {
|
400 + | /* BuilderGenerator.kt:481 */table_name: self.table_name
|
401 + | /* BuilderGenerator.kt:494 */.ok_or_else(||
|
402 + | /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("table_name", "table_name was not specified but it is required when building SourceTableDetails")
|
403 + | /* BuilderGenerator.kt:494 */)?
|
404 + | ,
|
405 + | /* BuilderGenerator.kt:481 */table_id: self.table_id
|
406 + | /* BuilderGenerator.kt:494 */.ok_or_else(||
|
407 + | /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("table_id", "table_id was not specified but it is required when building SourceTableDetails")
|
408 + | /* BuilderGenerator.kt:494 */)?
|
409 + | ,
|
410 + | /* BuilderGenerator.kt:481 */table_arn: self.table_arn
|
411 + | ,
|
412 + | /* BuilderGenerator.kt:481 */table_size_bytes: self.table_size_bytes
|
413 + | /* BuilderGenerator.kt:487 */.unwrap_or_default()
|
414 + | ,
|
415 + | /* BuilderGenerator.kt:481 */key_schema: self.key_schema
|
416 + | /* BuilderGenerator.kt:494 */.ok_or_else(||
|
417 + | /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("key_schema", "key_schema was not specified but it is required when building SourceTableDetails")
|
418 + | /* BuilderGenerator.kt:494 */)?
|
419 + | ,
|
420 + | /* BuilderGenerator.kt:481 */table_creation_date_time: self.table_creation_date_time
|
421 + | /* BuilderGenerator.kt:494 */.ok_or_else(||
|
422 + | /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("table_creation_date_time", "table_creation_date_time was not specified but it is required when building SourceTableDetails")
|
423 + | /* BuilderGenerator.kt:494 */)?
|
424 + | ,
|
425 + | /* BuilderGenerator.kt:481 */provisioned_throughput: self.provisioned_throughput
|
426 + | /* BuilderGenerator.kt:494 */.ok_or_else(||
|
427 + | /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("provisioned_throughput", "provisioned_throughput was not specified but it is required when building SourceTableDetails")
|
428 + | /* BuilderGenerator.kt:494 */)?
|
429 + | ,
|
430 + | /* BuilderGenerator.kt:481 */item_count: self.item_count
|
431 + | ,
|
432 + | /* BuilderGenerator.kt:481 */billing_mode: self.billing_mode
|
433 + | ,
|
434 + | /* BuilderGenerator.kt:477 */}
|
435 + | /* BuilderGenerator.kt:254 */)
|
436 + | /* BuilderGenerator.kt:253 */
|
437 + | }
|
438 + | /* BuilderGenerator.kt:355 */
|
300 439 | }
|