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 ==
.impl StructuralPartialEq for FastRestoreRule
Auto Trait Implementations§
impl Freeze for FastRestoreRule
impl RefUnwindSafe for FastRestoreRule
impl Send for FastRestoreRule
impl Sync for FastRestoreRule
impl Unpin for FastRestoreRule
impl UnwindSafe for FastRestoreRule
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> 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