Struct aws_sdk_backup::operation::update_recovery_point_lifecycle::builders::UpdateRecoveryPointLifecycleOutputBuilder
source · #[non_exhaustive]pub struct UpdateRecoveryPointLifecycleOutputBuilder { /* private fields */ }
Expand description
A builder for UpdateRecoveryPointLifecycleOutput
.
Implementations§
source§impl UpdateRecoveryPointLifecycleOutputBuilder
impl UpdateRecoveryPointLifecycleOutputBuilder
sourcepub fn backup_vault_arn(self, input: impl Into<String>) -> Self
pub fn backup_vault_arn(self, input: impl Into<String>) -> Self
An ARN that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault
.
sourcepub fn set_backup_vault_arn(self, input: Option<String>) -> Self
pub fn set_backup_vault_arn(self, input: Option<String>) -> Self
An ARN that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault
.
sourcepub fn get_backup_vault_arn(&self) -> &Option<String>
pub fn get_backup_vault_arn(&self) -> &Option<String>
An ARN that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault
.
sourcepub fn recovery_point_arn(self, input: impl Into<String>) -> Self
pub fn recovery_point_arn(self, input: impl Into<String>) -> Self
An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.
sourcepub fn set_recovery_point_arn(self, input: Option<String>) -> Self
pub fn set_recovery_point_arn(self, input: Option<String>) -> Self
An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.
sourcepub fn get_recovery_point_arn(&self) -> &Option<String>
pub fn get_recovery_point_arn(&self) -> &Option<String>
An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.
sourcepub fn lifecycle(self, input: Lifecycle) -> Self
pub fn lifecycle(self, input: Lifecycle) -> Self
The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup transitions and expires backups automatically according to the lifecycle that you define.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, 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
The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup transitions and expires backups automatically according to the lifecycle that you define.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, 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>
The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup transitions and expires backups automatically according to the lifecycle that you define.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, 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 calculated_lifecycle(self, input: CalculatedLifecycle) -> Self
pub fn calculated_lifecycle(self, input: CalculatedLifecycle) -> Self
A CalculatedLifecycle
object containing DeleteAt
and MoveToColdStorageAt
timestamps.
sourcepub fn set_calculated_lifecycle(
self,
input: Option<CalculatedLifecycle>
) -> Self
pub fn set_calculated_lifecycle( self, input: Option<CalculatedLifecycle> ) -> Self
A CalculatedLifecycle
object containing DeleteAt
and MoveToColdStorageAt
timestamps.
sourcepub fn get_calculated_lifecycle(&self) -> &Option<CalculatedLifecycle>
pub fn get_calculated_lifecycle(&self) -> &Option<CalculatedLifecycle>
A CalculatedLifecycle
object containing DeleteAt
and MoveToColdStorageAt
timestamps.
sourcepub fn build(self) -> UpdateRecoveryPointLifecycleOutput
pub fn build(self) -> UpdateRecoveryPointLifecycleOutput
Consumes the builder and constructs a UpdateRecoveryPointLifecycleOutput
.
Trait Implementations§
source§impl Clone for UpdateRecoveryPointLifecycleOutputBuilder
impl Clone for UpdateRecoveryPointLifecycleOutputBuilder
source§fn clone(&self) -> UpdateRecoveryPointLifecycleOutputBuilder
fn clone(&self) -> UpdateRecoveryPointLifecycleOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for UpdateRecoveryPointLifecycleOutputBuilder
impl Default for UpdateRecoveryPointLifecycleOutputBuilder
source§fn default() -> UpdateRecoveryPointLifecycleOutputBuilder
fn default() -> UpdateRecoveryPointLifecycleOutputBuilder
source§impl PartialEq for UpdateRecoveryPointLifecycleOutputBuilder
impl PartialEq for UpdateRecoveryPointLifecycleOutputBuilder
source§fn eq(&self, other: &UpdateRecoveryPointLifecycleOutputBuilder) -> bool
fn eq(&self, other: &UpdateRecoveryPointLifecycleOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.