pub struct Builder { /* private fields */ }
Expand description
A builder for AwsBackupBackupPlanRuleDetails
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn target_backup_vault(self, input: impl Into<String>) -> Self
pub fn target_backup_vault(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 Amazon Web Services account used to create them and the Amazon Web Services Region where they are created. They consist of letters, numbers, and hyphens.
sourcepub fn set_target_backup_vault(self, input: Option<String>) -> Self
pub fn set_target_backup_vault(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 Amazon Web Services account used to create them and the Amazon Web Services Region where they are created. They consist of letters, numbers, and hyphens.
sourcepub fn start_window_minutes(self, input: i64) -> Self
pub fn start_window_minutes(self, input: i64) -> Self
A value in minutes after a backup is scheduled before a job will be canceled if it doesn't start successfully.
sourcepub fn set_start_window_minutes(self, input: Option<i64>) -> Self
pub fn set_start_window_minutes(self, input: Option<i64>) -> Self
A value in minutes after a backup is scheduled before a job will be canceled if it doesn't start successfully.
sourcepub fn schedule_expression(self, input: impl Into<String>) -> Self
pub fn schedule_expression(self, input: impl Into<String>) -> Self
A cron expression in UTC specifying when Backup initiates a backup job.
sourcepub fn set_schedule_expression(self, input: Option<String>) -> Self
pub fn set_schedule_expression(self, input: Option<String>) -> Self
A cron expression in UTC specifying when Backup initiates a backup job.
sourcepub fn rule_name(self, input: impl Into<String>) -> Self
pub fn rule_name(self, input: impl Into<String>) -> Self
A display name for a backup rule. Must contain 1 to 50 alphanumeric or '-_.' characters.
sourcepub fn set_rule_name(self, input: Option<String>) -> Self
pub fn set_rule_name(self, input: Option<String>) -> Self
A display name for a backup rule. Must contain 1 to 50 alphanumeric or '-_.' characters.
sourcepub fn rule_id(self, input: impl Into<String>) -> Self
pub fn rule_id(self, input: impl Into<String>) -> Self
Uniquely identifies a rule that is used to schedule the backup of a selection of resources.
sourcepub fn set_rule_id(self, input: Option<String>) -> Self
pub fn set_rule_id(self, input: Option<String>) -> Self
Uniquely identifies a rule that is used to schedule the backup of a selection of resources.
sourcepub fn enable_continuous_backup(self, input: bool) -> Self
pub fn enable_continuous_backup(self, input: bool) -> Self
Specifies whether Backup creates continuous backups capable of point-in-time restore (PITR).
sourcepub fn set_enable_continuous_backup(self, input: Option<bool>) -> Self
pub fn set_enable_continuous_backup(self, input: Option<bool>) -> Self
Specifies whether Backup creates continuous backups capable of point-in-time restore (PITR).
sourcepub fn completion_window_minutes(self, input: i64) -> Self
pub fn completion_window_minutes(self, input: i64) -> Self
A value in minutes after a backup job is successfully started before it must be completed, or it is canceled by Backup.
sourcepub fn set_completion_window_minutes(self, input: Option<i64>) -> Self
pub fn set_completion_window_minutes(self, input: Option<i64>) -> Self
A value in minutes after a backup job is successfully started before it must be completed, or it is canceled by Backup.
sourcepub fn copy_actions(
self,
input: AwsBackupBackupPlanRuleCopyActionsDetails
) -> Self
pub fn copy_actions(
self,
input: AwsBackupBackupPlanRuleCopyActionsDetails
) -> Self
Appends an item to copy_actions
.
To override the contents of this collection use set_copy_actions
.
An array of CopyAction
objects, each of which contains details of the copy operation.
sourcepub fn set_copy_actions(
self,
input: Option<Vec<AwsBackupBackupPlanRuleCopyActionsDetails>>
) -> Self
pub fn set_copy_actions(
self,
input: Option<Vec<AwsBackupBackupPlanRuleCopyActionsDetails>>
) -> Self
An array of CopyAction
objects, each of which contains details of the copy operation.
sourcepub fn lifecycle(self, input: AwsBackupBackupPlanLifecycleDetails) -> Self
pub fn lifecycle(self, input: AwsBackupBackupPlanLifecycleDetails) -> Self
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. If you do not specify a lifecycle, Backup applies the lifecycle policy of the source backup to the destination backup.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days.
sourcepub fn set_lifecycle(
self,
input: Option<AwsBackupBackupPlanLifecycleDetails>
) -> Self
pub fn set_lifecycle(
self,
input: Option<AwsBackupBackupPlanLifecycleDetails>
) -> Self
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. If you do not specify a lifecycle, Backup applies the lifecycle policy of the source backup to the destination backup.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days.
sourcepub fn build(self) -> AwsBackupBackupPlanRuleDetails
pub fn build(self) -> AwsBackupBackupPlanRuleDetails
Consumes the builder and constructs a AwsBackupBackupPlanRuleDetails
.