#[non_exhaustive]pub struct AutomatedBackupConfig {
pub automated_backup_mode: AutomatedBackupMode,
pub retention: Option<Duration>,
pub schedule: Option<Schedule>,
/* private fields */
}Expand description
The automated backup config for a cluster.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.automated_backup_mode: AutomatedBackupModeOptional. The automated backup mode. If the mode is disabled, the other fields will be ignored.
retention: Option<Duration>Optional. How long to keep automated backups before the backups are deleted. The value should be between 1 day and 365 days. If not specified, the default value is 35 days.
schedule: Option<Schedule>The schedule of automated backups.
Implementations§
Source§impl AutomatedBackupConfig
impl AutomatedBackupConfig
pub fn new() -> Self
Sourcepub fn set_automated_backup_mode<T: Into<AutomatedBackupMode>>(
self,
v: T,
) -> Self
pub fn set_automated_backup_mode<T: Into<AutomatedBackupMode>>( self, v: T, ) -> Self
Sets the value of automated_backup_mode.
Sourcepub fn set_retention<T>(self, v: T) -> Self
pub fn set_retention<T>(self, v: T) -> Self
Sets the value of retention.
Sourcepub fn set_or_clear_retention<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_retention<T>(self, v: Option<T>) -> Self
Sets or clears the value of retention.
Sourcepub fn set_schedule<T: Into<Option<Schedule>>>(self, v: T) -> Self
pub fn set_schedule<T: Into<Option<Schedule>>>(self, v: T) -> Self
Sets the value of schedule.
Note that all the setters affecting schedule are mutually
exclusive.
Sourcepub fn fixed_frequency_schedule(&self) -> Option<&Box<FixedFrequencySchedule>>
pub fn fixed_frequency_schedule(&self) -> Option<&Box<FixedFrequencySchedule>>
The value of schedule
if it holds a FixedFrequencySchedule, None if the field is not set or
holds a different branch.
Sourcepub fn set_fixed_frequency_schedule<T: Into<Box<FixedFrequencySchedule>>>(
self,
v: T,
) -> Self
pub fn set_fixed_frequency_schedule<T: Into<Box<FixedFrequencySchedule>>>( self, v: T, ) -> Self
Sets the value of schedule
to hold a FixedFrequencySchedule.
Note that all the setters affecting schedule are
mutually exclusive.
Trait Implementations§
Source§impl Clone for AutomatedBackupConfig
impl Clone for AutomatedBackupConfig
Source§fn clone(&self) -> AutomatedBackupConfig
fn clone(&self) -> AutomatedBackupConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more