aws-sdk-backup 1.109.0

AWS SDK for AWS Backup
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeBackupVaultOutput {
    /// <p>The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Region where they are created.</p>
    pub backup_vault_name: ::std::option::Option<::std::string::String>,
    /// <p>An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example, <code>arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault</code>.</p>
    pub backup_vault_arn: ::std::option::Option<::std::string::String>,
    /// <p>The type of vault described.</p>
    pub vault_type: ::std::option::Option<crate::types::VaultType>,
    /// <p>The current state of the vault.-&gt;</p>
    pub vault_state: ::std::option::Option<crate::types::VaultState>,
    /// <p>The server-side encryption key that is used to protect your backups; for example, <code>arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>.</p>
    pub encryption_key_arn: ::std::option::Option<::std::string::String>,
    /// <p>The date and time that a backup vault is created, in Unix format and Coordinated Universal Time (UTC). The value of <code>CreationDate</code> is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.</p>
    pub creation_date: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>A unique string that identifies the request and allows failed requests to be retried without the risk of running the operation twice. This parameter is optional. If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.</p>
    pub creator_request_id: ::std::option::Option<::std::string::String>,
    /// <p>The number of recovery points that are stored in a backup vault.</p>
    /// <p>Recovery point count value displayed in the console can be an approximation. Use <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/API_ListRecoveryPointsByBackupVault.html"> <code>ListRecoveryPointsByBackupVault</code> </a> API to obtain the exact count.</p>
    pub number_of_recovery_points: i64,
    /// <p>A Boolean that indicates whether Backup Vault Lock is currently protecting the backup vault. <code>True</code> means that Vault Lock causes delete or update operations on the recovery points stored in the vault to fail.</p>
    pub locked: ::std::option::Option<bool>,
    /// <p>The Backup Vault Lock setting that specifies the minimum retention period that the vault retains its recovery points. If this parameter is not specified, Vault Lock will not enforce a minimum retention period.</p>
    /// <p>If specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or longer than the minimum retention period. If the job's retention period is shorter than that minimum retention period, then the vault fails the backup or copy job, and you should either modify your lifecycle settings or use a different vault. Recovery points already stored in the vault prior to Vault Lock are not affected.</p>
    pub min_retention_days: ::std::option::Option<i64>,
    /// <p>The Backup Vault Lock setting that specifies the maximum retention period that the vault retains its recovery points. If this parameter is not specified, Vault Lock does not enforce a maximum retention period on the recovery points in the vault (allowing indefinite storage).</p>
    /// <p>If specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or shorter than the maximum retention period. If the job's retention period is longer than that maximum retention period, then the vault fails the backup or copy job, and you should either modify your lifecycle settings or use a different vault. Recovery points already stored in the vault prior to Vault Lock are not affected.</p>
    pub max_retention_days: ::std::option::Option<i64>,
    /// <p>The date and time when Backup Vault Lock configuration cannot be changed or deleted.</p>
    /// <p>If you applied Vault Lock to your vault without specifying a lock date, you can change any of your Vault Lock settings, or delete Vault Lock from the vault entirely, at any time.</p>
    /// <p>This value is in Unix format, Coordinated Universal Time (UTC), and accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.</p>
    pub lock_date: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The ARN of the source backup vault from which this restore access backup vault was created.</p>
    pub source_backup_vault_arn: ::std::option::Option<::std::string::String>,
    /// <p>The ARN of the MPA approval team associated with this backup vault.</p>
    pub mpa_approval_team_arn: ::std::option::Option<::std::string::String>,
    /// <p>The ARN of the MPA session associated with this backup vault.</p>
    pub mpa_session_arn: ::std::option::Option<::std::string::String>,
    /// <p>Information about the latest update to the MPA approval team association for this backup vault.</p>
    pub latest_mpa_approval_team_update: ::std::option::Option<crate::types::LatestMpaApprovalTeamUpdate>,
    /// <p>The type of encryption key used for the backup vault. Valid values are CUSTOMER_MANAGED_KMS_KEY for customer-managed keys or Amazon Web Services_OWNED_KMS_KEY for Amazon Web Services-owned keys.</p>
    pub encryption_key_type: ::std::option::Option<crate::types::EncryptionKeyType>,
    _request_id: Option<String>,
}
impl DescribeBackupVaultOutput {
    /// <p>The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Region where they are created.</p>
    pub fn backup_vault_name(&self) -> ::std::option::Option<&str> {
        self.backup_vault_name.as_deref()
    }
    /// <p>An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example, <code>arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault</code>.</p>
    pub fn backup_vault_arn(&self) -> ::std::option::Option<&str> {
        self.backup_vault_arn.as_deref()
    }
    /// <p>The type of vault described.</p>
    pub fn vault_type(&self) -> ::std::option::Option<&crate::types::VaultType> {
        self.vault_type.as_ref()
    }
    /// <p>The current state of the vault.-&gt;</p>
    pub fn vault_state(&self) -> ::std::option::Option<&crate::types::VaultState> {
        self.vault_state.as_ref()
    }
    /// <p>The server-side encryption key that is used to protect your backups; for example, <code>arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>.</p>
    pub fn encryption_key_arn(&self) -> ::std::option::Option<&str> {
        self.encryption_key_arn.as_deref()
    }
    /// <p>The date and time that a backup vault is created, in Unix format and Coordinated Universal Time (UTC). The value of <code>CreationDate</code> is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.</p>
    pub fn creation_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.creation_date.as_ref()
    }
    /// <p>A unique string that identifies the request and allows failed requests to be retried without the risk of running the operation twice. This parameter is optional. If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.</p>
    pub fn creator_request_id(&self) -> ::std::option::Option<&str> {
        self.creator_request_id.as_deref()
    }
    /// <p>The number of recovery points that are stored in a backup vault.</p>
    /// <p>Recovery point count value displayed in the console can be an approximation. Use <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/API_ListRecoveryPointsByBackupVault.html"> <code>ListRecoveryPointsByBackupVault</code> </a> API to obtain the exact count.</p>
    pub fn number_of_recovery_points(&self) -> i64 {
        self.number_of_recovery_points
    }
    /// <p>A Boolean that indicates whether Backup Vault Lock is currently protecting the backup vault. <code>True</code> means that Vault Lock causes delete or update operations on the recovery points stored in the vault to fail.</p>
    pub fn locked(&self) -> ::std::option::Option<bool> {
        self.locked
    }
    /// <p>The Backup Vault Lock setting that specifies the minimum retention period that the vault retains its recovery points. If this parameter is not specified, Vault Lock will not enforce a minimum retention period.</p>
    /// <p>If specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or longer than the minimum retention period. If the job's retention period is shorter than that minimum retention period, then the vault fails the backup or copy job, and you should either modify your lifecycle settings or use a different vault. Recovery points already stored in the vault prior to Vault Lock are not affected.</p>
    pub fn min_retention_days(&self) -> ::std::option::Option<i64> {
        self.min_retention_days
    }
    /// <p>The Backup Vault Lock setting that specifies the maximum retention period that the vault retains its recovery points. If this parameter is not specified, Vault Lock does not enforce a maximum retention period on the recovery points in the vault (allowing indefinite storage).</p>
    /// <p>If specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or shorter than the maximum retention period. If the job's retention period is longer than that maximum retention period, then the vault fails the backup or copy job, and you should either modify your lifecycle settings or use a different vault. Recovery points already stored in the vault prior to Vault Lock are not affected.</p>
    pub fn max_retention_days(&self) -> ::std::option::Option<i64> {
        self.max_retention_days
    }
    /// <p>The date and time when Backup Vault Lock configuration cannot be changed or deleted.</p>
    /// <p>If you applied Vault Lock to your vault without specifying a lock date, you can change any of your Vault Lock settings, or delete Vault Lock from the vault entirely, at any time.</p>
    /// <p>This value is in Unix format, Coordinated Universal Time (UTC), and accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.</p>
    pub fn lock_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.lock_date.as_ref()
    }
    /// <p>The ARN of the source backup vault from which this restore access backup vault was created.</p>
    pub fn source_backup_vault_arn(&self) -> ::std::option::Option<&str> {
        self.source_backup_vault_arn.as_deref()
    }
    /// <p>The ARN of the MPA approval team associated with this backup vault.</p>
    pub fn mpa_approval_team_arn(&self) -> ::std::option::Option<&str> {
        self.mpa_approval_team_arn.as_deref()
    }
    /// <p>The ARN of the MPA session associated with this backup vault.</p>
    pub fn mpa_session_arn(&self) -> ::std::option::Option<&str> {
        self.mpa_session_arn.as_deref()
    }
    /// <p>Information about the latest update to the MPA approval team association for this backup vault.</p>
    pub fn latest_mpa_approval_team_update(&self) -> ::std::option::Option<&crate::types::LatestMpaApprovalTeamUpdate> {
        self.latest_mpa_approval_team_update.as_ref()
    }
    /// <p>The type of encryption key used for the backup vault. Valid values are CUSTOMER_MANAGED_KMS_KEY for customer-managed keys or Amazon Web Services_OWNED_KMS_KEY for Amazon Web Services-owned keys.</p>
    pub fn encryption_key_type(&self) -> ::std::option::Option<&crate::types::EncryptionKeyType> {
        self.encryption_key_type.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for DescribeBackupVaultOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl DescribeBackupVaultOutput {
    /// Creates a new builder-style object to manufacture [`DescribeBackupVaultOutput`](crate::operation::describe_backup_vault::DescribeBackupVaultOutput).
    pub fn builder() -> crate::operation::describe_backup_vault::builders::DescribeBackupVaultOutputBuilder {
        crate::operation::describe_backup_vault::builders::DescribeBackupVaultOutputBuilder::default()
    }
}

/// A builder for [`DescribeBackupVaultOutput`](crate::operation::describe_backup_vault::DescribeBackupVaultOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeBackupVaultOutputBuilder {
    pub(crate) backup_vault_name: ::std::option::Option<::std::string::String>,
    pub(crate) backup_vault_arn: ::std::option::Option<::std::string::String>,
    pub(crate) vault_type: ::std::option::Option<crate::types::VaultType>,
    pub(crate) vault_state: ::std::option::Option<crate::types::VaultState>,
    pub(crate) encryption_key_arn: ::std::option::Option<::std::string::String>,
    pub(crate) creation_date: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) creator_request_id: ::std::option::Option<::std::string::String>,
    pub(crate) number_of_recovery_points: ::std::option::Option<i64>,
    pub(crate) locked: ::std::option::Option<bool>,
    pub(crate) min_retention_days: ::std::option::Option<i64>,
    pub(crate) max_retention_days: ::std::option::Option<i64>,
    pub(crate) lock_date: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) source_backup_vault_arn: ::std::option::Option<::std::string::String>,
    pub(crate) mpa_approval_team_arn: ::std::option::Option<::std::string::String>,
    pub(crate) mpa_session_arn: ::std::option::Option<::std::string::String>,
    pub(crate) latest_mpa_approval_team_update: ::std::option::Option<crate::types::LatestMpaApprovalTeamUpdate>,
    pub(crate) encryption_key_type: ::std::option::Option<crate::types::EncryptionKeyType>,
    _request_id: Option<String>,
}
impl DescribeBackupVaultOutputBuilder {
    /// <p>The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Region where they are created.</p>
    pub fn backup_vault_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.backup_vault_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Region where they are created.</p>
    pub fn set_backup_vault_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.backup_vault_name = input;
        self
    }
    /// <p>The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Region where they are created.</p>
    pub fn get_backup_vault_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.backup_vault_name
    }
    /// <p>An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example, <code>arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault</code>.</p>
    pub fn backup_vault_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.backup_vault_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example, <code>arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault</code>.</p>
    pub fn set_backup_vault_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.backup_vault_arn = input;
        self
    }
    /// <p>An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example, <code>arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault</code>.</p>
    pub fn get_backup_vault_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.backup_vault_arn
    }
    /// <p>The type of vault described.</p>
    pub fn vault_type(mut self, input: crate::types::VaultType) -> Self {
        self.vault_type = ::std::option::Option::Some(input);
        self
    }
    /// <p>The type of vault described.</p>
    pub fn set_vault_type(mut self, input: ::std::option::Option<crate::types::VaultType>) -> Self {
        self.vault_type = input;
        self
    }
    /// <p>The type of vault described.</p>
    pub fn get_vault_type(&self) -> &::std::option::Option<crate::types::VaultType> {
        &self.vault_type
    }
    /// <p>The current state of the vault.-&gt;</p>
    pub fn vault_state(mut self, input: crate::types::VaultState) -> Self {
        self.vault_state = ::std::option::Option::Some(input);
        self
    }
    /// <p>The current state of the vault.-&gt;</p>
    pub fn set_vault_state(mut self, input: ::std::option::Option<crate::types::VaultState>) -> Self {
        self.vault_state = input;
        self
    }
    /// <p>The current state of the vault.-&gt;</p>
    pub fn get_vault_state(&self) -> &::std::option::Option<crate::types::VaultState> {
        &self.vault_state
    }
    /// <p>The server-side encryption key that is used to protect your backups; for example, <code>arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>.</p>
    pub fn encryption_key_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.encryption_key_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The server-side encryption key that is used to protect your backups; for example, <code>arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>.</p>
    pub fn set_encryption_key_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.encryption_key_arn = input;
        self
    }
    /// <p>The server-side encryption key that is used to protect your backups; for example, <code>arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>.</p>
    pub fn get_encryption_key_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.encryption_key_arn
    }
    /// <p>The date and time that a backup vault is created, in Unix format and Coordinated Universal Time (UTC). The value of <code>CreationDate</code> is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.</p>
    pub fn creation_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.creation_date = ::std::option::Option::Some(input);
        self
    }
    /// <p>The date and time that a backup vault is created, in Unix format and Coordinated Universal Time (UTC). The value of <code>CreationDate</code> is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.</p>
    pub fn set_creation_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.creation_date = input;
        self
    }
    /// <p>The date and time that a backup vault is created, in Unix format and Coordinated Universal Time (UTC). The value of <code>CreationDate</code> is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.</p>
    pub fn get_creation_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.creation_date
    }
    /// <p>A unique string that identifies the request and allows failed requests to be retried without the risk of running the operation twice. This parameter is optional. If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.</p>
    pub fn creator_request_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.creator_request_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A unique string that identifies the request and allows failed requests to be retried without the risk of running the operation twice. This parameter is optional. If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.</p>
    pub fn set_creator_request_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.creator_request_id = input;
        self
    }
    /// <p>A unique string that identifies the request and allows failed requests to be retried without the risk of running the operation twice. This parameter is optional. If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.</p>
    pub fn get_creator_request_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.creator_request_id
    }
    /// <p>The number of recovery points that are stored in a backup vault.</p>
    /// <p>Recovery point count value displayed in the console can be an approximation. Use <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/API_ListRecoveryPointsByBackupVault.html"> <code>ListRecoveryPointsByBackupVault</code> </a> API to obtain the exact count.</p>
    pub fn number_of_recovery_points(mut self, input: i64) -> Self {
        self.number_of_recovery_points = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number of recovery points that are stored in a backup vault.</p>
    /// <p>Recovery point count value displayed in the console can be an approximation. Use <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/API_ListRecoveryPointsByBackupVault.html"> <code>ListRecoveryPointsByBackupVault</code> </a> API to obtain the exact count.</p>
    pub fn set_number_of_recovery_points(mut self, input: ::std::option::Option<i64>) -> Self {
        self.number_of_recovery_points = input;
        self
    }
    /// <p>The number of recovery points that are stored in a backup vault.</p>
    /// <p>Recovery point count value displayed in the console can be an approximation. Use <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/API_ListRecoveryPointsByBackupVault.html"> <code>ListRecoveryPointsByBackupVault</code> </a> API to obtain the exact count.</p>
    pub fn get_number_of_recovery_points(&self) -> &::std::option::Option<i64> {
        &self.number_of_recovery_points
    }
    /// <p>A Boolean that indicates whether Backup Vault Lock is currently protecting the backup vault. <code>True</code> means that Vault Lock causes delete or update operations on the recovery points stored in the vault to fail.</p>
    pub fn locked(mut self, input: bool) -> Self {
        self.locked = ::std::option::Option::Some(input);
        self
    }
    /// <p>A Boolean that indicates whether Backup Vault Lock is currently protecting the backup vault. <code>True</code> means that Vault Lock causes delete or update operations on the recovery points stored in the vault to fail.</p>
    pub fn set_locked(mut self, input: ::std::option::Option<bool>) -> Self {
        self.locked = input;
        self
    }
    /// <p>A Boolean that indicates whether Backup Vault Lock is currently protecting the backup vault. <code>True</code> means that Vault Lock causes delete or update operations on the recovery points stored in the vault to fail.</p>
    pub fn get_locked(&self) -> &::std::option::Option<bool> {
        &self.locked
    }
    /// <p>The Backup Vault Lock setting that specifies the minimum retention period that the vault retains its recovery points. If this parameter is not specified, Vault Lock will not enforce a minimum retention period.</p>
    /// <p>If specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or longer than the minimum retention period. If the job's retention period is shorter than that minimum retention period, then the vault fails the backup or copy job, and you should either modify your lifecycle settings or use a different vault. Recovery points already stored in the vault prior to Vault Lock are not affected.</p>
    pub fn min_retention_days(mut self, input: i64) -> Self {
        self.min_retention_days = ::std::option::Option::Some(input);
        self
    }
    /// <p>The Backup Vault Lock setting that specifies the minimum retention period that the vault retains its recovery points. If this parameter is not specified, Vault Lock will not enforce a minimum retention period.</p>
    /// <p>If specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or longer than the minimum retention period. If the job's retention period is shorter than that minimum retention period, then the vault fails the backup or copy job, and you should either modify your lifecycle settings or use a different vault. Recovery points already stored in the vault prior to Vault Lock are not affected.</p>
    pub fn set_min_retention_days(mut self, input: ::std::option::Option<i64>) -> Self {
        self.min_retention_days = input;
        self
    }
    /// <p>The Backup Vault Lock setting that specifies the minimum retention period that the vault retains its recovery points. If this parameter is not specified, Vault Lock will not enforce a minimum retention period.</p>
    /// <p>If specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or longer than the minimum retention period. If the job's retention period is shorter than that minimum retention period, then the vault fails the backup or copy job, and you should either modify your lifecycle settings or use a different vault. Recovery points already stored in the vault prior to Vault Lock are not affected.</p>
    pub fn get_min_retention_days(&self) -> &::std::option::Option<i64> {
        &self.min_retention_days
    }
    /// <p>The Backup Vault Lock setting that specifies the maximum retention period that the vault retains its recovery points. If this parameter is not specified, Vault Lock does not enforce a maximum retention period on the recovery points in the vault (allowing indefinite storage).</p>
    /// <p>If specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or shorter than the maximum retention period. If the job's retention period is longer than that maximum retention period, then the vault fails the backup or copy job, and you should either modify your lifecycle settings or use a different vault. Recovery points already stored in the vault prior to Vault Lock are not affected.</p>
    pub fn max_retention_days(mut self, input: i64) -> Self {
        self.max_retention_days = ::std::option::Option::Some(input);
        self
    }
    /// <p>The Backup Vault Lock setting that specifies the maximum retention period that the vault retains its recovery points. If this parameter is not specified, Vault Lock does not enforce a maximum retention period on the recovery points in the vault (allowing indefinite storage).</p>
    /// <p>If specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or shorter than the maximum retention period. If the job's retention period is longer than that maximum retention period, then the vault fails the backup or copy job, and you should either modify your lifecycle settings or use a different vault. Recovery points already stored in the vault prior to Vault Lock are not affected.</p>
    pub fn set_max_retention_days(mut self, input: ::std::option::Option<i64>) -> Self {
        self.max_retention_days = input;
        self
    }
    /// <p>The Backup Vault Lock setting that specifies the maximum retention period that the vault retains its recovery points. If this parameter is not specified, Vault Lock does not enforce a maximum retention period on the recovery points in the vault (allowing indefinite storage).</p>
    /// <p>If specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or shorter than the maximum retention period. If the job's retention period is longer than that maximum retention period, then the vault fails the backup or copy job, and you should either modify your lifecycle settings or use a different vault. Recovery points already stored in the vault prior to Vault Lock are not affected.</p>
    pub fn get_max_retention_days(&self) -> &::std::option::Option<i64> {
        &self.max_retention_days
    }
    /// <p>The date and time when Backup Vault Lock configuration cannot be changed or deleted.</p>
    /// <p>If you applied Vault Lock to your vault without specifying a lock date, you can change any of your Vault Lock settings, or delete Vault Lock from the vault entirely, at any time.</p>
    /// <p>This value is in Unix format, Coordinated Universal Time (UTC), and accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.</p>
    pub fn lock_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.lock_date = ::std::option::Option::Some(input);
        self
    }
    /// <p>The date and time when Backup Vault Lock configuration cannot be changed or deleted.</p>
    /// <p>If you applied Vault Lock to your vault without specifying a lock date, you can change any of your Vault Lock settings, or delete Vault Lock from the vault entirely, at any time.</p>
    /// <p>This value is in Unix format, Coordinated Universal Time (UTC), and accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.</p>
    pub fn set_lock_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.lock_date = input;
        self
    }
    /// <p>The date and time when Backup Vault Lock configuration cannot be changed or deleted.</p>
    /// <p>If you applied Vault Lock to your vault without specifying a lock date, you can change any of your Vault Lock settings, or delete Vault Lock from the vault entirely, at any time.</p>
    /// <p>This value is in Unix format, Coordinated Universal Time (UTC), and accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.</p>
    pub fn get_lock_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.lock_date
    }
    /// <p>The ARN of the source backup vault from which this restore access backup vault was created.</p>
    pub fn source_backup_vault_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.source_backup_vault_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ARN of the source backup vault from which this restore access backup vault was created.</p>
    pub fn set_source_backup_vault_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.source_backup_vault_arn = input;
        self
    }
    /// <p>The ARN of the source backup vault from which this restore access backup vault was created.</p>
    pub fn get_source_backup_vault_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.source_backup_vault_arn
    }
    /// <p>The ARN of the MPA approval team associated with this backup vault.</p>
    pub fn mpa_approval_team_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.mpa_approval_team_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ARN of the MPA approval team associated with this backup vault.</p>
    pub fn set_mpa_approval_team_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.mpa_approval_team_arn = input;
        self
    }
    /// <p>The ARN of the MPA approval team associated with this backup vault.</p>
    pub fn get_mpa_approval_team_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.mpa_approval_team_arn
    }
    /// <p>The ARN of the MPA session associated with this backup vault.</p>
    pub fn mpa_session_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.mpa_session_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ARN of the MPA session associated with this backup vault.</p>
    pub fn set_mpa_session_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.mpa_session_arn = input;
        self
    }
    /// <p>The ARN of the MPA session associated with this backup vault.</p>
    pub fn get_mpa_session_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.mpa_session_arn
    }
    /// <p>Information about the latest update to the MPA approval team association for this backup vault.</p>
    pub fn latest_mpa_approval_team_update(mut self, input: crate::types::LatestMpaApprovalTeamUpdate) -> Self {
        self.latest_mpa_approval_team_update = ::std::option::Option::Some(input);
        self
    }
    /// <p>Information about the latest update to the MPA approval team association for this backup vault.</p>
    pub fn set_latest_mpa_approval_team_update(mut self, input: ::std::option::Option<crate::types::LatestMpaApprovalTeamUpdate>) -> Self {
        self.latest_mpa_approval_team_update = input;
        self
    }
    /// <p>Information about the latest update to the MPA approval team association for this backup vault.</p>
    pub fn get_latest_mpa_approval_team_update(&self) -> &::std::option::Option<crate::types::LatestMpaApprovalTeamUpdate> {
        &self.latest_mpa_approval_team_update
    }
    /// <p>The type of encryption key used for the backup vault. Valid values are CUSTOMER_MANAGED_KMS_KEY for customer-managed keys or Amazon Web Services_OWNED_KMS_KEY for Amazon Web Services-owned keys.</p>
    pub fn encryption_key_type(mut self, input: crate::types::EncryptionKeyType) -> Self {
        self.encryption_key_type = ::std::option::Option::Some(input);
        self
    }
    /// <p>The type of encryption key used for the backup vault. Valid values are CUSTOMER_MANAGED_KMS_KEY for customer-managed keys or Amazon Web Services_OWNED_KMS_KEY for Amazon Web Services-owned keys.</p>
    pub fn set_encryption_key_type(mut self, input: ::std::option::Option<crate::types::EncryptionKeyType>) -> Self {
        self.encryption_key_type = input;
        self
    }
    /// <p>The type of encryption key used for the backup vault. Valid values are CUSTOMER_MANAGED_KMS_KEY for customer-managed keys or Amazon Web Services_OWNED_KMS_KEY for Amazon Web Services-owned keys.</p>
    pub fn get_encryption_key_type(&self) -> &::std::option::Option<crate::types::EncryptionKeyType> {
        &self.encryption_key_type
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`DescribeBackupVaultOutput`](crate::operation::describe_backup_vault::DescribeBackupVaultOutput).
    pub fn build(self) -> crate::operation::describe_backup_vault::DescribeBackupVaultOutput {
        crate::operation::describe_backup_vault::DescribeBackupVaultOutput {
            backup_vault_name: self.backup_vault_name,
            backup_vault_arn: self.backup_vault_arn,
            vault_type: self.vault_type,
            vault_state: self.vault_state,
            encryption_key_arn: self.encryption_key_arn,
            creation_date: self.creation_date,
            creator_request_id: self.creator_request_id,
            number_of_recovery_points: self.number_of_recovery_points.unwrap_or_default(),
            locked: self.locked,
            min_retention_days: self.min_retention_days,
            max_retention_days: self.max_retention_days,
            lock_date: self.lock_date,
            source_backup_vault_arn: self.source_backup_vault_arn,
            mpa_approval_team_arn: self.mpa_approval_team_arn,
            mpa_session_arn: self.mpa_session_arn,
            latest_mpa_approval_team_update: self.latest_mpa_approval_team_update,
            encryption_key_type: self.encryption_key_type,
            _request_id: self._request_id,
        }
    }
}