Struct aws_sdk_backup::operation::update_recovery_point_lifecycle::builders::UpdateRecoveryPointLifecycleInputBuilder
source · #[non_exhaustive]pub struct UpdateRecoveryPointLifecycleInputBuilder { /* private fields */ }
Expand description
A builder for UpdateRecoveryPointLifecycleInput
.
Implementations§
source§impl UpdateRecoveryPointLifecycleInputBuilder
impl UpdateRecoveryPointLifecycleInputBuilder
sourcepub fn backup_vault_name(self, input: impl Into<String>) -> Self
pub fn backup_vault_name(self, input: impl Into<String>) -> Self
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 Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens.
sourcepub fn set_backup_vault_name(self, input: Option<String>) -> Self
pub fn set_backup_vault_name(self, input: Option<String>) -> Self
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 Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens.
sourcepub fn get_backup_vault_name(&self) -> &Option<String>
pub fn get_backup_vault_name(&self) -> &Option<String>
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 Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens.
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.
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.
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.
sourcepub fn build(self) -> Result<UpdateRecoveryPointLifecycleInput, BuildError>
pub fn build(self) -> Result<UpdateRecoveryPointLifecycleInput, BuildError>
Consumes the builder and constructs a UpdateRecoveryPointLifecycleInput
.
source§impl UpdateRecoveryPointLifecycleInputBuilder
impl UpdateRecoveryPointLifecycleInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UpdateRecoveryPointLifecycleOutput, SdkError<UpdateRecoveryPointLifecycleError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UpdateRecoveryPointLifecycleOutput, SdkError<UpdateRecoveryPointLifecycleError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateRecoveryPointLifecycleInputBuilder
impl Clone for UpdateRecoveryPointLifecycleInputBuilder
source§fn clone(&self) -> UpdateRecoveryPointLifecycleInputBuilder
fn clone(&self) -> UpdateRecoveryPointLifecycleInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for UpdateRecoveryPointLifecycleInputBuilder
impl Default for UpdateRecoveryPointLifecycleInputBuilder
source§fn default() -> UpdateRecoveryPointLifecycleInputBuilder
fn default() -> UpdateRecoveryPointLifecycleInputBuilder
source§impl PartialEq<UpdateRecoveryPointLifecycleInputBuilder> for UpdateRecoveryPointLifecycleInputBuilder
impl PartialEq<UpdateRecoveryPointLifecycleInputBuilder> for UpdateRecoveryPointLifecycleInputBuilder
source§fn eq(&self, other: &UpdateRecoveryPointLifecycleInputBuilder) -> bool
fn eq(&self, other: &UpdateRecoveryPointLifecycleInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.