Struct aws_sdk_dlm::types::FastRestoreRule
source · #[non_exhaustive]pub struct FastRestoreRule {
pub count: Option<i32>,
pub interval: Option<i32>,
pub interval_unit: Option<RetentionIntervalUnitValues>,
pub availability_zones: Option<Vec<String>>,
}
Expand description
[Custom snapshot policies only] Specifies a rule for enabling fast snapshot restore for snapshots created by snapshot policies. You can enable fast snapshot restore based on either a count or a time interval.
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.count: Option<i32>
The number of snapshots to be enabled with fast snapshot restore.
interval: Option<i32>
The amount of time to enable fast snapshot restore. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.
interval_unit: Option<RetentionIntervalUnitValues>
The unit of time for enabling fast snapshot restore.
availability_zones: Option<Vec<String>>
The Availability Zones in which to enable fast snapshot restore.
Implementations§
source§impl FastRestoreRule
impl FastRestoreRule
sourcepub fn count(&self) -> Option<i32>
pub fn count(&self) -> Option<i32>
The number of snapshots to be enabled with fast snapshot restore.
sourcepub fn interval(&self) -> Option<i32>
pub fn interval(&self) -> Option<i32>
The amount of time to enable fast snapshot restore. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.
sourcepub fn interval_unit(&self) -> Option<&RetentionIntervalUnitValues>
pub fn interval_unit(&self) -> Option<&RetentionIntervalUnitValues>
The unit of time for enabling fast snapshot restore.
sourcepub fn availability_zones(&self) -> &[String]
pub fn availability_zones(&self) -> &[String]
The Availability Zones in which to enable fast snapshot restore.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .availability_zones.is_none()
.
source§impl FastRestoreRule
impl FastRestoreRule
sourcepub fn builder() -> FastRestoreRuleBuilder
pub fn builder() -> FastRestoreRuleBuilder
Creates a new builder-style object to manufacture FastRestoreRule
.
Trait Implementations§
source§impl Clone for FastRestoreRule
impl Clone for FastRestoreRule
source§fn clone(&self) -> FastRestoreRule
fn clone(&self) -> FastRestoreRule
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FastRestoreRule
impl Debug for FastRestoreRule
source§impl PartialEq for FastRestoreRule
impl PartialEq for FastRestoreRule
source§fn eq(&self, other: &FastRestoreRule) -> bool
fn eq(&self, other: &FastRestoreRule) -> bool
self
and other
values to be equal, and is used
by ==
.