#[non_exhaustive]pub struct MaintenanceWindow {
pub maintenance_exclusions: HashMap<String, TimeWindow>,
pub policy: Option<Policy>,
/* private fields */
}Expand description
MaintenanceWindow defines the maintenance window to be used for the 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.maintenance_exclusions: HashMap<String, TimeWindow>Exceptions to maintenance window. Non-emergency maintenance should not occur in these windows.
policy: Option<Policy>Implementations§
Source§impl MaintenanceWindow
impl MaintenanceWindow
pub fn new() -> Self
Sourcepub fn set_maintenance_exclusions<T, K, V>(self, v: T) -> Self
pub fn set_maintenance_exclusions<T, K, V>(self, v: T) -> Self
Sets the value of maintenance_exclusions.
Sourcepub fn set_policy<T: Into<Option<Policy>>>(self, v: T) -> Self
pub fn set_policy<T: Into<Option<Policy>>>(self, v: T) -> Self
Sets the value of policy.
Note that all the setters affecting policy are mutually
exclusive.
Sourcepub fn daily_maintenance_window(&self) -> Option<&Box<DailyMaintenanceWindow>>
pub fn daily_maintenance_window(&self) -> Option<&Box<DailyMaintenanceWindow>>
The value of policy
if it holds a DailyMaintenanceWindow, None if the field is not set or
holds a different branch.
Sourcepub fn set_daily_maintenance_window<T: Into<Box<DailyMaintenanceWindow>>>(
self,
v: T,
) -> Self
pub fn set_daily_maintenance_window<T: Into<Box<DailyMaintenanceWindow>>>( self, v: T, ) -> Self
Sets the value of policy
to hold a DailyMaintenanceWindow.
Note that all the setters affecting policy are
mutually exclusive.
Sourcepub fn recurring_window(&self) -> Option<&Box<RecurringTimeWindow>>
pub fn recurring_window(&self) -> Option<&Box<RecurringTimeWindow>>
The value of policy
if it holds a RecurringWindow, None if the field is not set or
holds a different branch.
Sourcepub fn set_recurring_window<T: Into<Box<RecurringTimeWindow>>>(
self,
v: T,
) -> Self
pub fn set_recurring_window<T: Into<Box<RecurringTimeWindow>>>( self, v: T, ) -> Self
Sets the value of policy
to hold a RecurringWindow.
Note that all the setters affecting policy are
mutually exclusive.
Trait Implementations§
Source§impl Clone for MaintenanceWindow
impl Clone for MaintenanceWindow
Source§fn clone(&self) -> MaintenanceWindow
fn clone(&self) -> MaintenanceWindow
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more