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 only alphanumeric or '-_.' special characters.
If this is set in the console, it can contain 1 to 50 characters; if this is set through CLI or API, it can contain 1 to 200 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 only alphanumeric or '-_.' special characters.
If this is set in the console, it can contain 1 to 50 characters; if this is set through CLI or API, it can contain 1 to 200 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 only alphanumeric or '-_.' special characters.
If this is set in the console, it can contain 1 to 50 characters; if this is set through CLI or API, it can contain 1 to 200 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
impl StructuralPartialEq for BackupPlanBuilder
Auto Trait Implementations§
impl Freeze for BackupPlanBuilder
impl RefUnwindSafe for BackupPlanBuilder
impl Send for BackupPlanBuilder
impl Sync for BackupPlanBuilder
impl Unpin for BackupPlanBuilder
impl UnwindSafe for BackupPlanBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more