1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 - |
|
3 - | /// <p>Contains the details of the backup created for the table.</p>
|
2 + | /* StructureGenerator.kt:197 */
|
3 + | /// /* StructureGenerator.kt:197 */<p>Contains the details of the backup created for the table.</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 BackupDetails {
|
7 - | /// <p>ARN associated with the backup.</p>
|
8 + | pub /* StructureGenerator.kt:201 */ struct BackupDetails {
|
9 + | /// /* StructureGenerator.kt:231 */<p>ARN associated with the backup.</p>
|
8 10 | pub backup_arn: ::std::string::String,
|
9 - | /// <p>Name of the requested backup.</p>
|
11 + | /// /* StructureGenerator.kt:231 */<p>Name of the requested backup.</p>
|
10 12 | pub backup_name: ::std::string::String,
|
11 - | /// <p>Size of the backup in bytes.</p>
|
13 + | /// /* StructureGenerator.kt:231 */<p>Size of the backup in bytes.</p>
|
12 14 | pub backup_size_bytes: ::std::option::Option<i64>,
|
13 - | /// <p>Backup can be in one of the following states: CREATING, ACTIVE, DELETED.</p>
|
15 + | /// /* StructureGenerator.kt:231 */<p>Backup can be in one of the following states: CREATING, ACTIVE, DELETED.</p>
|
14 16 | pub backup_status: crate::types::BackupStatus,
|
15 - | /// <p>BackupType:</p>
|
17 + | /// /* StructureGenerator.kt:231 */<p>BackupType:</p>
|
16 18 | /// <ul>
|
17 19 | /// <li>
|
18 20 | /// <p><code>USER</code> - You create and manage these using the on-demand backup feature.</p></li>
|
19 21 | /// <li>
|
20 22 | /// <p><code>SYSTEM</code> - If you delete a table with point-in-time recovery enabled, a <code>SYSTEM</code> backup is automatically created and is retained for 35 days (at no additional cost). System backups allow you to restore the deleted table to the state it was in just before the point of deletion.</p></li>
|
21 23 | /// <li>
|
22 24 | /// <p><code>AWS_BACKUP</code> - On-demand backup created by you from AWS Backup service.</p></li>
|
23 25 | /// </ul>
|
24 26 | pub backup_type: crate::types::BackupType,
|
25 - | /// <p>Time at which the backup was created. This is the request time of the backup.</p>
|
27 + | /// /* StructureGenerator.kt:231 */<p>Time at which the backup was created. This is the request time of the backup.</p>
|
26 28 | pub backup_creation_date_time: ::aws_smithy_types::DateTime,
|
27 - | /// <p>Time at which the automatic on-demand backup created by DynamoDB will expire. This <code>SYSTEM</code> on-demand backup expires automatically 35 days after its creation.</p>
|
29 + | /// /* StructureGenerator.kt:231 */<p>Time at which the automatic on-demand backup created by DynamoDB will expire. This <code>SYSTEM</code> on-demand backup expires automatically 35 days after its creation.</p>
|
28 30 | pub backup_expiry_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
31 + | /* StructureGenerator.kt:201 */
|
29 32 | }
|
33 + | /* StructureGenerator.kt:135 */
|
30 34 | impl BackupDetails {
|
31 - | /// <p>ARN associated with the backup.</p>
|
35 + | /// /* StructureGenerator.kt:231 */<p>ARN associated with the backup.</p>
|
36 + | /* StructureGenerator.kt:166 */
|
32 37 | pub fn backup_arn(&self) -> &str {
|
38 + | /* StructureGenerator.kt:171 */
|
33 39 | use std::ops::Deref;
|
34 40 | self.backup_arn.deref()
|
41 + | /* StructureGenerator.kt:166 */
|
35 42 | }
|
36 - | /// <p>Name of the requested backup.</p>
|
43 + | /// /* StructureGenerator.kt:231 */<p>Name of the requested backup.</p>
|
44 + | /* StructureGenerator.kt:166 */
|
37 45 | pub fn backup_name(&self) -> &str {
|
46 + | /* StructureGenerator.kt:171 */
|
38 47 | use std::ops::Deref;
|
39 48 | self.backup_name.deref()
|
49 + | /* StructureGenerator.kt:166 */
|
40 50 | }
|
41 - | /// <p>Size of the backup in bytes.</p>
|
51 + | /// /* StructureGenerator.kt:231 */<p>Size of the backup in bytes.</p>
|
52 + | /* StructureGenerator.kt:166 */
|
42 53 | pub fn backup_size_bytes(&self) -> ::std::option::Option<i64> {
|
54 + | /* StructureGenerator.kt:168 */
|
43 55 | self.backup_size_bytes
|
56 + | /* StructureGenerator.kt:166 */
|
44 57 | }
|
45 - | /// <p>Backup can be in one of the following states: CREATING, ACTIVE, DELETED.</p>
|
58 + | /// /* StructureGenerator.kt:231 */<p>Backup can be in one of the following states: CREATING, ACTIVE, DELETED.</p>
|
59 + | /* StructureGenerator.kt:166 */
|
46 60 | pub fn backup_status(&self) -> &crate::types::BackupStatus {
|
61 + | /* StructureGenerator.kt:172 */
|
47 62 | &self.backup_status
|
63 + | /* StructureGenerator.kt:166 */
|
48 64 | }
|
49 - | /// <p>BackupType:</p>
|
65 + | /// /* StructureGenerator.kt:231 */<p>BackupType:</p>
|
50 66 | /// <ul>
|
51 67 | /// <li>
|
52 68 | /// <p><code>USER</code> - You create and manage these using the on-demand backup feature.</p></li>
|
53 69 | /// <li>
|
54 70 | /// <p><code>SYSTEM</code> - If you delete a table with point-in-time recovery enabled, a <code>SYSTEM</code> backup is automatically created and is retained for 35 days (at no additional cost). System backups allow you to restore the deleted table to the state it was in just before the point of deletion.</p></li>
|
55 71 | /// <li>
|
56 72 | /// <p><code>AWS_BACKUP</code> - On-demand backup created by you from AWS Backup service.</p></li>
|
57 73 | /// </ul>
|
74 + | /* StructureGenerator.kt:166 */
|
58 75 | pub fn backup_type(&self) -> &crate::types::BackupType {
|
76 + | /* StructureGenerator.kt:172 */
|
59 77 | &self.backup_type
|
78 + | /* StructureGenerator.kt:166 */
|
60 79 | }
|
61 - | /// <p>Time at which the backup was created. This is the request time of the backup.</p>
|
80 + | /// /* StructureGenerator.kt:231 */<p>Time at which the backup was created. This is the request time of the backup.</p>
|
81 + | /* StructureGenerator.kt:166 */
|
62 82 | pub fn backup_creation_date_time(&self) -> &::aws_smithy_types::DateTime {
|
83 + | /* StructureGenerator.kt:172 */
|
63 84 | &self.backup_creation_date_time
|
85 + | /* StructureGenerator.kt:166 */
|
64 86 | }
|
65 - | /// <p>Time at which the automatic on-demand backup created by DynamoDB will expire. This <code>SYSTEM</code> on-demand backup expires automatically 35 days after its creation.</p>
|
87 + | /// /* StructureGenerator.kt:231 */<p>Time at which the automatic on-demand backup created by DynamoDB will expire. This <code>SYSTEM</code> on-demand backup expires automatically 35 days after its creation.</p>
|
88 + | /* StructureGenerator.kt:166 */
|
66 89 | pub fn backup_expiry_date_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
90 + | /* StructureGenerator.kt:170 */
|
67 91 | self.backup_expiry_date_time.as_ref()
|
92 + | /* StructureGenerator.kt:166 */
|
68 93 | }
|
94 + | /* StructureGenerator.kt:135 */
|
69 95 | }
|
96 + | /* ClientCodegenVisitor.kt:237 */
|
70 97 | impl BackupDetails {
|
71 - | /// Creates a new builder-style object to manufacture [`BackupDetails`](crate::types::BackupDetails).
|
98 + | /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`BackupDetails`](crate::types::BackupDetails).
|
99 + | /* BuilderGenerator.kt:175 */
|
72 100 | pub fn builder() -> crate::types::builders::BackupDetailsBuilder {
|
101 + | /* BuilderGenerator.kt:176 */
|
73 102 | crate::types::builders::BackupDetailsBuilder::default()
|
103 + | /* BuilderGenerator.kt:175 */
|
74 104 | }
|
105 + | /* ClientCodegenVisitor.kt:237 */
|
75 106 | }
|
76 107 |
|
77 - | /// A builder for [`BackupDetails`](crate::types::BackupDetails).
|
108 + | /// /* BuilderGenerator.kt:342 */A builder for [`BackupDetails`](crate::types::BackupDetails).
|
109 + | /* RustType.kt:516 */
|
78 110 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
111 + | /* RustType.kt:516 */
|
79 112 | #[non_exhaustive]
|
113 + | /* BuilderGenerator.kt:345 */
|
80 114 | pub struct BackupDetailsBuilder {
|
81 - | pub(crate) backup_arn: ::std::option::Option<::std::string::String>,
|
82 - | pub(crate) backup_name: ::std::option::Option<::std::string::String>,
|
83 - | pub(crate) backup_size_bytes: ::std::option::Option<i64>,
|
84 - | pub(crate) backup_status: ::std::option::Option<crate::types::BackupStatus>,
|
85 - | pub(crate) backup_type: ::std::option::Option<crate::types::BackupType>,
|
86 - | pub(crate) backup_creation_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
115 + | /* BuilderGenerator.kt:275 */ pub(crate) backup_arn: ::std::option::Option<::std::string::String>,
|
116 + | /* BuilderGenerator.kt:275 */ pub(crate) backup_name: ::std::option::Option<::std::string::String>,
|
117 + | /* BuilderGenerator.kt:275 */ pub(crate) backup_size_bytes: ::std::option::Option<i64>,
|
118 + | /* BuilderGenerator.kt:275 */ pub(crate) backup_status: ::std::option::Option<crate::types::BackupStatus>,
|
119 + | /* BuilderGenerator.kt:275 */ pub(crate) backup_type: ::std::option::Option<crate::types::BackupType>,
|
120 + | /* BuilderGenerator.kt:275 */ pub(crate) backup_creation_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
121 + | /* BuilderGenerator.kt:275 */
|
87 122 | pub(crate) backup_expiry_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
123 + | /* BuilderGenerator.kt:345 */
|
88 124 | }
|
125 + | /* BuilderGenerator.kt:355 */
|
89 126 | impl BackupDetailsBuilder {
|
90 - | /// <p>ARN associated with the backup.</p>
|
91 - | /// This field is required.
|
127 + | /// /* BuilderGenerator.kt:286 */<p>ARN associated with the backup.</p>
|
128 + | /// /* BuilderGenerator.kt:288 */This field is required.
|
129 + | /* BuilderGenerator.kt:291 */
|
92 130 | pub fn backup_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
131 + | /* BuilderGenerator.kt:292 */
|
93 132 | self.backup_arn = ::std::option::Option::Some(input.into());
|
133 + | /* BuilderGenerator.kt:293 */
|
94 134 | self
|
135 + | /* BuilderGenerator.kt:291 */
|
95 136 | }
|
96 - | /// <p>ARN associated with the backup.</p>
|
137 + | /// /* BuilderGenerator.kt:312 */<p>ARN associated with the backup.</p>
|
138 + | /* BuilderGenerator.kt:314 */
|
97 139 | pub fn set_backup_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
140 + | /* BuilderGenerator.kt:315 */
|
98 141 | self.backup_arn = input;
|
99 142 | self
|
143 + | /* BuilderGenerator.kt:314 */
|
100 144 | }
|
101 - | /// <p>ARN associated with the backup.</p>
|
145 + | /// /* BuilderGenerator.kt:334 */<p>ARN associated with the backup.</p>
|
146 + | /* BuilderGenerator.kt:336 */
|
102 147 | pub fn get_backup_arn(&self) -> &::std::option::Option<::std::string::String> {
|
148 + | /* BuilderGenerator.kt:337 */
|
103 149 | &self.backup_arn
|
150 + | /* BuilderGenerator.kt:336 */
|
104 151 | }
|
105 - | /// <p>Name of the requested backup.</p>
|
106 - | /// This field is required.
|
152 + | /// /* BuilderGenerator.kt:286 */<p>Name of the requested backup.</p>
|
153 + | /// /* BuilderGenerator.kt:288 */This field is required.
|
154 + | /* BuilderGenerator.kt:291 */
|
107 155 | pub fn backup_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
156 + | /* BuilderGenerator.kt:292 */
|
108 157 | self.backup_name = ::std::option::Option::Some(input.into());
|
158 + | /* BuilderGenerator.kt:293 */
|
109 159 | self
|
160 + | /* BuilderGenerator.kt:291 */
|
110 161 | }
|
111 - | /// <p>Name of the requested backup.</p>
|
162 + | /// /* BuilderGenerator.kt:312 */<p>Name of the requested backup.</p>
|
163 + | /* BuilderGenerator.kt:314 */
|
112 164 | pub fn set_backup_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
165 + | /* BuilderGenerator.kt:315 */
|
113 166 | self.backup_name = input;
|
114 167 | self
|
168 + | /* BuilderGenerator.kt:314 */
|
115 169 | }
|
116 - | /// <p>Name of the requested backup.</p>
|
170 + | /// /* BuilderGenerator.kt:334 */<p>Name of the requested backup.</p>
|
171 + | /* BuilderGenerator.kt:336 */
|
117 172 | pub fn get_backup_name(&self) -> &::std::option::Option<::std::string::String> {
|
173 + | /* BuilderGenerator.kt:337 */
|
118 174 | &self.backup_name
|
175 + | /* BuilderGenerator.kt:336 */
|
119 176 | }
|
120 - | /// <p>Size of the backup in bytes.</p>
|
177 + | /// /* BuilderGenerator.kt:286 */<p>Size of the backup in bytes.</p>
|
178 + | /* BuilderGenerator.kt:291 */
|
121 179 | pub fn backup_size_bytes(mut self, input: i64) -> Self {
|
180 + | /* BuilderGenerator.kt:292 */
|
122 181 | self.backup_size_bytes = ::std::option::Option::Some(input);
|
182 + | /* BuilderGenerator.kt:293 */
|
123 183 | self
|
184 + | /* BuilderGenerator.kt:291 */
|
124 185 | }
|
125 - | /// <p>Size of the backup in bytes.</p>
|
186 + | /// /* BuilderGenerator.kt:312 */<p>Size of the backup in bytes.</p>
|
187 + | /* BuilderGenerator.kt:314 */
|
126 188 | pub fn set_backup_size_bytes(mut self, input: ::std::option::Option<i64>) -> Self {
|
189 + | /* BuilderGenerator.kt:315 */
|
127 190 | self.backup_size_bytes = input;
|
128 191 | self
|
192 + | /* BuilderGenerator.kt:314 */
|
129 193 | }
|
130 - | /// <p>Size of the backup in bytes.</p>
|
194 + | /// /* BuilderGenerator.kt:334 */<p>Size of the backup in bytes.</p>
|
195 + | /* BuilderGenerator.kt:336 */
|
131 196 | pub fn get_backup_size_bytes(&self) -> &::std::option::Option<i64> {
|
197 + | /* BuilderGenerator.kt:337 */
|
132 198 | &self.backup_size_bytes
|
199 + | /* BuilderGenerator.kt:336 */
|
133 200 | }
|
134 - | /// <p>Backup can be in one of the following states: CREATING, ACTIVE, DELETED.</p>
|
135 - | /// This field is required.
|
201 + | /// /* BuilderGenerator.kt:286 */<p>Backup can be in one of the following states: CREATING, ACTIVE, DELETED.</p>
|
202 + | /// /* BuilderGenerator.kt:288 */This field is required.
|
203 + | /* BuilderGenerator.kt:291 */
|
136 204 | pub fn backup_status(mut self, input: crate::types::BackupStatus) -> Self {
|
205 + | /* BuilderGenerator.kt:292 */
|
137 206 | self.backup_status = ::std::option::Option::Some(input);
|
207 + | /* BuilderGenerator.kt:293 */
|
138 208 | self
|
209 + | /* BuilderGenerator.kt:291 */
|
139 210 | }
|
140 - | /// <p>Backup can be in one of the following states: CREATING, ACTIVE, DELETED.</p>
|
211 + | /// /* BuilderGenerator.kt:312 */<p>Backup can be in one of the following states: CREATING, ACTIVE, DELETED.</p>
|
212 + | /* BuilderGenerator.kt:314 */
|
141 213 | pub fn set_backup_status(mut self, input: ::std::option::Option<crate::types::BackupStatus>) -> Self {
|
214 + | /* BuilderGenerator.kt:315 */
|
142 215 | self.backup_status = input;
|
143 216 | self
|
217 + | /* BuilderGenerator.kt:314 */
|
144 218 | }
|
145 - | /// <p>Backup can be in one of the following states: CREATING, ACTIVE, DELETED.</p>
|
219 + | /// /* BuilderGenerator.kt:334 */<p>Backup can be in one of the following states: CREATING, ACTIVE, DELETED.</p>
|
220 + | /* BuilderGenerator.kt:336 */
|
146 221 | pub fn get_backup_status(&self) -> &::std::option::Option<crate::types::BackupStatus> {
|
222 + | /* BuilderGenerator.kt:337 */
|
147 223 | &self.backup_status
|
224 + | /* BuilderGenerator.kt:336 */
|
148 225 | }
|
149 - | /// <p>BackupType:</p>
|
226 + | /// /* BuilderGenerator.kt:286 */<p>BackupType:</p>
|
150 227 | /// <ul>
|
151 228 | /// <li>
|
152 229 | /// <p><code>USER</code> - You create and manage these using the on-demand backup feature.</p></li>
|
153 230 | /// <li>
|
154 231 | /// <p><code>SYSTEM</code> - If you delete a table with point-in-time recovery enabled, a <code>SYSTEM</code> backup is automatically created and is retained for 35 days (at no additional cost). System backups allow you to restore the deleted table to the state it was in just before the point of deletion.</p></li>
|
155 232 | /// <li>
|
156 233 | /// <p><code>AWS_BACKUP</code> - On-demand backup created by you from AWS Backup service.</p></li>
|
157 234 | /// </ul>
|
158 - | /// This field is required.
|
235 + | /// /* BuilderGenerator.kt:288 */This field is required.
|
236 + | /* BuilderGenerator.kt:291 */
|
159 237 | pub fn backup_type(mut self, input: crate::types::BackupType) -> Self {
|
238 + | /* BuilderGenerator.kt:292 */
|
160 239 | self.backup_type = ::std::option::Option::Some(input);
|
240 + | /* BuilderGenerator.kt:293 */
|
161 241 | self
|
242 + | /* BuilderGenerator.kt:291 */
|
162 243 | }
|
163 - | /// <p>BackupType:</p>
|
244 + | /// /* BuilderGenerator.kt:312 */<p>BackupType:</p>
|
164 245 | /// <ul>
|
165 246 | /// <li>
|
166 247 | /// <p><code>USER</code> - You create and manage these using the on-demand backup feature.</p></li>
|
167 248 | /// <li>
|
168 249 | /// <p><code>SYSTEM</code> - If you delete a table with point-in-time recovery enabled, a <code>SYSTEM</code> backup is automatically created and is retained for 35 days (at no additional cost). System backups allow you to restore the deleted table to the state it was in just before the point of deletion.</p></li>
|
169 250 | /// <li>
|
170 251 | /// <p><code>AWS_BACKUP</code> - On-demand backup created by you from AWS Backup service.</p></li>
|
171 252 | /// </ul>
|
253 + | /* BuilderGenerator.kt:314 */
|
172 254 | pub fn set_backup_type(mut self, input: ::std::option::Option<crate::types::BackupType>) -> Self {
|
255 + | /* BuilderGenerator.kt:315 */
|
173 256 | self.backup_type = input;
|
174 257 | self
|
258 + | /* BuilderGenerator.kt:314 */
|
175 259 | }
|
176 - | /// <p>BackupType:</p>
|
260 + | /// /* BuilderGenerator.kt:334 */<p>BackupType:</p>
|
177 261 | /// <ul>
|
178 262 | /// <li>
|
179 263 | /// <p><code>USER</code> - You create and manage these using the on-demand backup feature.</p></li>
|
180 264 | /// <li>
|
181 265 | /// <p><code>SYSTEM</code> - If you delete a table with point-in-time recovery enabled, a <code>SYSTEM</code> backup is automatically created and is retained for 35 days (at no additional cost). System backups allow you to restore the deleted table to the state it was in just before the point of deletion.</p></li>
|
182 266 | /// <li>
|
183 267 | /// <p><code>AWS_BACKUP</code> - On-demand backup created by you from AWS Backup service.</p></li>
|
184 268 | /// </ul>
|
269 + | /* BuilderGenerator.kt:336 */
|
185 270 | pub fn get_backup_type(&self) -> &::std::option::Option<crate::types::BackupType> {
|
271 + | /* BuilderGenerator.kt:337 */
|
186 272 | &self.backup_type
|
273 + | /* BuilderGenerator.kt:336 */
|
187 274 | }
|
188 - | /// <p>Time at which the backup was created. This is the request time of the backup.</p>
|
189 - | /// This field is required.
|
275 + | /// /* BuilderGenerator.kt:286 */<p>Time at which the backup was created. This is the request time of the backup.</p>
|
276 + | /// /* BuilderGenerator.kt:288 */This field is required.
|
277 + | /* BuilderGenerator.kt:291 */
|
190 278 | pub fn backup_creation_date_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
279 + | /* BuilderGenerator.kt:292 */
|
191 280 | self.backup_creation_date_time = ::std::option::Option::Some(input);
|
281 + | /* BuilderGenerator.kt:293 */
|
192 282 | self
|
283 + | /* BuilderGenerator.kt:291 */
|
193 284 | }
|
194 - | /// <p>Time at which the backup was created. This is the request time of the backup.</p>
|
285 + | /// /* BuilderGenerator.kt:312 */<p>Time at which the backup was created. This is the request time of the backup.</p>
|
286 + | /* BuilderGenerator.kt:314 */
|
195 287 | pub fn set_backup_creation_date_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
|
288 + | /* BuilderGenerator.kt:315 */
|
196 289 | self.backup_creation_date_time = input;
|
197 290 | self
|
291 + | /* BuilderGenerator.kt:314 */
|
198 292 | }
|
199 - | /// <p>Time at which the backup was created. This is the request time of the backup.</p>
|
293 + | /// /* BuilderGenerator.kt:334 */<p>Time at which the backup was created. This is the request time of the backup.</p>
|
294 + | /* BuilderGenerator.kt:336 */
|
200 295 | pub fn get_backup_creation_date_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
|
296 + | /* BuilderGenerator.kt:337 */
|
201 297 | &self.backup_creation_date_time
|
298 + | /* BuilderGenerator.kt:336 */
|
202 299 | }
|
203 - | /// <p>Time at which the automatic on-demand backup created by DynamoDB will expire. This <code>SYSTEM</code> on-demand backup expires automatically 35 days after its creation.</p>
|
300 + | /// /* BuilderGenerator.kt:286 */<p>Time at which the automatic on-demand backup created by DynamoDB will expire. This <code>SYSTEM</code> on-demand backup expires automatically 35 days after its creation.</p>
|
301 + | /* BuilderGenerator.kt:291 */
|
204 302 | pub fn backup_expiry_date_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
303 + | /* BuilderGenerator.kt:292 */
|
205 304 | self.backup_expiry_date_time = ::std::option::Option::Some(input);
|
305 + | /* BuilderGenerator.kt:293 */
|
206 306 | self
|
307 + | /* BuilderGenerator.kt:291 */
|
207 308 | }
|
208 - | /// <p>Time at which the automatic on-demand backup created by DynamoDB will expire. This <code>SYSTEM</code> on-demand backup expires automatically 35 days after its creation.</p>
|
309 + | /// /* BuilderGenerator.kt:312 */<p>Time at which the automatic on-demand backup created by DynamoDB will expire. This <code>SYSTEM</code> on-demand backup expires automatically 35 days after its creation.</p>
|
310 + | /* BuilderGenerator.kt:314 */
|
209 311 | pub fn set_backup_expiry_date_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
|
312 + | /* BuilderGenerator.kt:315 */
|
210 313 | self.backup_expiry_date_time = input;
|
211 314 | self
|
315 + | /* BuilderGenerator.kt:314 */
|
212 316 | }
|
213 - | /// <p>Time at which the automatic on-demand backup created by DynamoDB will expire. This <code>SYSTEM</code> on-demand backup expires automatically 35 days after its creation.</p>
|
317 + | /// /* BuilderGenerator.kt:334 */<p>Time at which the automatic on-demand backup created by DynamoDB will expire. This <code>SYSTEM</code> on-demand backup expires automatically 35 days after its creation.</p>
|
318 + | /* BuilderGenerator.kt:336 */
|
214 319 | pub fn get_backup_expiry_date_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
|
320 + | /* BuilderGenerator.kt:337 */
|
215 321 | &self.backup_expiry_date_time
|
322 + | /* BuilderGenerator.kt:336 */
|
216 323 | }
|
217 - | /// Consumes the builder and constructs a [`BackupDetails`](crate::types::BackupDetails).
|
218 - | /// This method will fail if any of the following fields are not set:
|
219 - | /// - [`backup_arn`](crate::types::builders::BackupDetailsBuilder::backup_arn)
|
220 - | /// - [`backup_name`](crate::types::builders::BackupDetailsBuilder::backup_name)
|
221 - | /// - [`backup_status`](crate::types::builders::BackupDetailsBuilder::backup_status)
|
222 - | /// - [`backup_type`](crate::types::builders::BackupDetailsBuilder::backup_type)
|
223 - | /// - [`backup_creation_date_time`](crate::types::builders::BackupDetailsBuilder::backup_creation_date_time)
|
324 + | /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`BackupDetails`](crate::types::BackupDetails).
|
325 + | /// /* BuilderGenerator.kt:243 */This method will fail if any of the following fields are not set:
|
326 + | /// /* BuilderGenerator.kt:246 */- [`backup_arn`](crate::types::builders::BackupDetailsBuilder::backup_arn)
|
327 + | /// /* BuilderGenerator.kt:246 */- [`backup_name`](crate::types::builders::BackupDetailsBuilder::backup_name)
|
328 + | /// /* BuilderGenerator.kt:246 */- [`backup_status`](crate::types::builders::BackupDetailsBuilder::backup_status)
|
329 + | /// /* BuilderGenerator.kt:246 */- [`backup_type`](crate::types::builders::BackupDetailsBuilder::backup_type)
|
330 + | /// /* BuilderGenerator.kt:246 */- [`backup_creation_date_time`](crate::types::builders::BackupDetailsBuilder::backup_creation_date_time)
|
331 + | /* BuilderGenerator.kt:253 */
|
224 332 | pub fn build(self) -> ::std::result::Result<crate::types::BackupDetails, ::aws_smithy_types::error::operation::BuildError> {
|
225 - | ::std::result::Result::Ok(crate::types::BackupDetails {
|
226 - | backup_arn: self.backup_arn.ok_or_else(|| {
|
227 - | ::aws_smithy_types::error::operation::BuildError::missing_field(
|
228 - | "backup_arn",
|
229 - | "backup_arn was not specified but it is required when building BackupDetails",
|
230 - | )
|
231 - | })?,
|
232 - | backup_name: self.backup_name.ok_or_else(|| {
|
233 - | ::aws_smithy_types::error::operation::BuildError::missing_field(
|
234 - | "backup_name",
|
235 - | "backup_name was not specified but it is required when building BackupDetails",
|
236 - | )
|
237 - | })?,
|
238 - | backup_size_bytes: self.backup_size_bytes,
|
239 - | backup_status: self.backup_status.ok_or_else(|| {
|
240 - | ::aws_smithy_types::error::operation::BuildError::missing_field(
|
241 - | "backup_status",
|
242 - | "backup_status was not specified but it is required when building BackupDetails",
|
243 - | )
|
244 - | })?,
|
245 - | backup_type: self.backup_type.ok_or_else(|| {
|
246 - | ::aws_smithy_types::error::operation::BuildError::missing_field(
|
247 - | "backup_type",
|
248 - | "backup_type was not specified but it is required when building BackupDetails",
|
249 - | )
|
250 - | })?,
|
251 - | backup_creation_date_time: self.backup_creation_date_time.ok_or_else(|| {
|
252 - | ::aws_smithy_types::error::operation::BuildError::missing_field(
|
253 - | "backup_creation_date_time",
|
254 - | "backup_creation_date_time was not specified but it is required when building BackupDetails",
|
255 - | )
|
256 - | })?,
|
257 - | backup_expiry_date_time: self.backup_expiry_date_time,
|
258 - | })
|
333 + | /* BuilderGenerator.kt:254 */
|
334 + | ::std::result::Result::Ok(
|
335 + | /* BuilderGenerator.kt:477 */crate::types::BackupDetails {
|
336 + | /* BuilderGenerator.kt:481 */backup_arn: self.backup_arn
|
337 + | /* BuilderGenerator.kt:494 */.ok_or_else(||
|
338 + | /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("backup_arn", "backup_arn was not specified but it is required when building BackupDetails")
|
339 + | /* BuilderGenerator.kt:494 */)?
|
340 + | ,
|
341 + | /* BuilderGenerator.kt:481 */backup_name: self.backup_name
|
342 + | /* BuilderGenerator.kt:494 */.ok_or_else(||
|
343 + | /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("backup_name", "backup_name was not specified but it is required when building BackupDetails")
|
344 + | /* BuilderGenerator.kt:494 */)?
|
345 + | ,
|
346 + | /* BuilderGenerator.kt:481 */backup_size_bytes: self.backup_size_bytes
|
347 + | ,
|
348 + | /* BuilderGenerator.kt:481 */backup_status: self.backup_status
|
349 + | /* BuilderGenerator.kt:494 */.ok_or_else(||
|
350 + | /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("backup_status", "backup_status was not specified but it is required when building BackupDetails")
|
351 + | /* BuilderGenerator.kt:494 */)?
|
352 + | ,
|
353 + | /* BuilderGenerator.kt:481 */backup_type: self.backup_type
|
354 + | /* BuilderGenerator.kt:494 */.ok_or_else(||
|
355 + | /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("backup_type", "backup_type was not specified but it is required when building BackupDetails")
|
356 + | /* BuilderGenerator.kt:494 */)?
|
357 + | ,
|
358 + | /* BuilderGenerator.kt:481 */backup_creation_date_time: self.backup_creation_date_time
|
359 + | /* BuilderGenerator.kt:494 */.ok_or_else(||
|
360 + | /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("backup_creation_date_time", "backup_creation_date_time was not specified but it is required when building BackupDetails")
|
361 + | /* BuilderGenerator.kt:494 */)?
|
362 + | ,
|
363 + | /* BuilderGenerator.kt:481 */backup_expiry_date_time: self.backup_expiry_date_time
|
364 + | ,
|
365 + | /* BuilderGenerator.kt:477 */}
|
366 + | /* BuilderGenerator.kt:254 */)
|
367 + | /* BuilderGenerator.kt:253 */
|
259 368 | }
|
369 + | /* BuilderGenerator.kt:355 */
|
260 370 | }
|