Struct aws_sdk_backup::types::builders::CopyActionBuilder
source · #[non_exhaustive]pub struct CopyActionBuilder { /* private fields */ }
Expand description
A builder for CopyAction
.
Implementations§
source§impl CopyActionBuilder
impl CopyActionBuilder
sourcepub fn lifecycle(self, input: Lifecycle) -> Self
pub fn lifecycle(self, input: Lifecycle) -> Self
Contains an array of Transition
objects specifying how long in days before a recovery point transitions to cold storage or is deleted.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, on the console, the “retention” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.
Resource types that are able to be transitioned to cold storage are listed in the "Lifecycle to cold storage" section of the Feature availability by resource table. Backup ignores this expression for other resource types.
sourcepub fn set_lifecycle(self, input: Option<Lifecycle>) -> Self
pub fn set_lifecycle(self, input: Option<Lifecycle>) -> Self
Contains an array of Transition
objects specifying how long in days before a recovery point transitions to cold storage or is deleted.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, on the console, the “retention” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.
Resource types that are able to be transitioned to cold storage are listed in the "Lifecycle to cold storage" section of the Feature availability by resource table. Backup ignores this expression for other resource types.
sourcepub fn get_lifecycle(&self) -> &Option<Lifecycle>
pub fn get_lifecycle(&self) -> &Option<Lifecycle>
Contains an array of Transition
objects specifying how long in days before a recovery point transitions to cold storage or is deleted.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, on the console, the “retention” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.
Resource types that are able to be transitioned to cold storage are listed in the "Lifecycle to cold storage" section of the Feature availability by resource table. Backup ignores this expression for other resource types.
sourcepub fn destination_backup_vault_arn(self, input: impl Into<String>) -> Self
pub fn destination_backup_vault_arn(self, input: impl Into<String>) -> Self
An Amazon Resource Name (ARN) that uniquely identifies the destination backup vault for the copied backup. For example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault
.
sourcepub fn set_destination_backup_vault_arn(self, input: Option<String>) -> Self
pub fn set_destination_backup_vault_arn(self, input: Option<String>) -> Self
An Amazon Resource Name (ARN) that uniquely identifies the destination backup vault for the copied backup. For example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault
.
sourcepub fn get_destination_backup_vault_arn(&self) -> &Option<String>
pub fn get_destination_backup_vault_arn(&self) -> &Option<String>
An Amazon Resource Name (ARN) that uniquely identifies the destination backup vault for the copied backup. For example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault
.
sourcepub fn build(self) -> Result<CopyAction, BuildError>
pub fn build(self) -> Result<CopyAction, BuildError>
Consumes the builder and constructs a CopyAction
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CopyActionBuilder
impl Clone for CopyActionBuilder
source§fn clone(&self) -> CopyActionBuilder
fn clone(&self) -> CopyActionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CopyActionBuilder
impl Debug for CopyActionBuilder
source§impl Default for CopyActionBuilder
impl Default for CopyActionBuilder
source§fn default() -> CopyActionBuilder
fn default() -> CopyActionBuilder
source§impl PartialEq for CopyActionBuilder
impl PartialEq for CopyActionBuilder
source§fn eq(&self, other: &CopyActionBuilder) -> bool
fn eq(&self, other: &CopyActionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.