Struct aws_sdk_backup::types::builders::BackupPlanBuilder
source · #[non_exhaustive]pub struct BackupPlanBuilder { /* private fields */ }
Expand description
A builder for BackupPlan
.
Implementations§
source§impl BackupPlanBuilder
impl BackupPlanBuilder
sourcepub fn backup_plan_name(self, input: impl Into<String>) -> Self
pub fn backup_plan_name(self, input: impl Into<String>) -> Self
The display name of a backup plan. Must contain 1 to 50 alphanumeric or '-_.' characters.
This field is required.sourcepub fn set_backup_plan_name(self, input: Option<String>) -> Self
pub fn set_backup_plan_name(self, input: Option<String>) -> Self
The display name of a backup plan. Must contain 1 to 50 alphanumeric or '-_.' characters.
sourcepub fn get_backup_plan_name(&self) -> &Option<String>
pub fn get_backup_plan_name(&self) -> &Option<String>
The display name of a backup plan. Must contain 1 to 50 alphanumeric or '-_.' characters.
sourcepub fn rules(self, input: BackupRule) -> Self
pub fn rules(self, input: BackupRule) -> Self
Appends an item to rules
.
To override the contents of this collection use set_rules
.
An array of BackupRule
objects, each of which specifies a scheduled task that is used to back up a selection of resources.
sourcepub fn set_rules(self, input: Option<Vec<BackupRule>>) -> Self
pub fn set_rules(self, input: Option<Vec<BackupRule>>) -> Self
An array of BackupRule
objects, each of which specifies a scheduled task that is used to back up a selection of resources.
sourcepub fn get_rules(&self) -> &Option<Vec<BackupRule>>
pub fn get_rules(&self) -> &Option<Vec<BackupRule>>
An array of BackupRule
objects, each of which specifies a scheduled task that is used to back up a selection of resources.
sourcepub fn advanced_backup_settings(self, input: AdvancedBackupSetting) -> Self
pub fn advanced_backup_settings(self, input: AdvancedBackupSetting) -> Self
Appends an item to advanced_backup_settings
.
To override the contents of this collection use set_advanced_backup_settings
.
Contains a list of BackupOptions
for each resource type.
sourcepub fn set_advanced_backup_settings(
self,
input: Option<Vec<AdvancedBackupSetting>>
) -> Self
pub fn set_advanced_backup_settings( self, input: Option<Vec<AdvancedBackupSetting>> ) -> Self
Contains a list of BackupOptions
for each resource type.
sourcepub fn get_advanced_backup_settings(
&self
) -> &Option<Vec<AdvancedBackupSetting>>
pub fn get_advanced_backup_settings( &self ) -> &Option<Vec<AdvancedBackupSetting>>
Contains a list of BackupOptions
for each resource type.
sourcepub fn build(self) -> Result<BackupPlan, BuildError>
pub fn build(self) -> Result<BackupPlan, BuildError>
Consumes the builder and constructs a BackupPlan
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for BackupPlanBuilder
impl Clone for BackupPlanBuilder
source§fn clone(&self) -> BackupPlanBuilder
fn clone(&self) -> BackupPlanBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BackupPlanBuilder
impl Debug for BackupPlanBuilder
source§impl Default for BackupPlanBuilder
impl Default for BackupPlanBuilder
source§fn default() -> BackupPlanBuilder
fn default() -> BackupPlanBuilder
source§impl PartialEq for BackupPlanBuilder
impl PartialEq for BackupPlanBuilder
source§fn eq(&self, other: &BackupPlanBuilder) -> bool
fn eq(&self, other: &BackupPlanBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.