Struct aws_sdk_fsx::types::builders::TieringPolicyBuilder
source · #[non_exhaustive]pub struct TieringPolicyBuilder { /* private fields */ }Expand description
A builder for TieringPolicy.
Implementations§
source§impl TieringPolicyBuilder
impl TieringPolicyBuilder
sourcepub fn cooling_period(self, input: i32) -> Self
pub fn cooling_period(self, input: i32) -> Self
Specifies the number of days that user data in a volume must remain inactive before it is considered "cold" and moved to the capacity pool. Used with the AUTO and SNAPSHOT_ONLY tiering policies. Enter a whole number between 2 and 183. Default values are 31 days for AUTO and 2 days for SNAPSHOT_ONLY.
sourcepub fn set_cooling_period(self, input: Option<i32>) -> Self
pub fn set_cooling_period(self, input: Option<i32>) -> Self
Specifies the number of days that user data in a volume must remain inactive before it is considered "cold" and moved to the capacity pool. Used with the AUTO and SNAPSHOT_ONLY tiering policies. Enter a whole number between 2 and 183. Default values are 31 days for AUTO and 2 days for SNAPSHOT_ONLY.
sourcepub fn name(self, input: TieringPolicyName) -> Self
pub fn name(self, input: TieringPolicyName) -> Self
Specifies the tiering policy used to transition data. Default value is SNAPSHOT_ONLY.
-
SNAPSHOT_ONLY- moves cold snapshots to the capacity pool storage tier. -
AUTO- moves cold user data and snapshots to the capacity pool storage tier based on your access patterns. -
ALL- moves all user data blocks in both the active file system and Snapshot copies to the storage pool tier. -
NONE- keeps a volume's data in the primary storage tier, preventing it from being moved to the capacity pool tier.
sourcepub fn set_name(self, input: Option<TieringPolicyName>) -> Self
pub fn set_name(self, input: Option<TieringPolicyName>) -> Self
Specifies the tiering policy used to transition data. Default value is SNAPSHOT_ONLY.
-
SNAPSHOT_ONLY- moves cold snapshots to the capacity pool storage tier. -
AUTO- moves cold user data and snapshots to the capacity pool storage tier based on your access patterns. -
ALL- moves all user data blocks in both the active file system and Snapshot copies to the storage pool tier. -
NONE- keeps a volume's data in the primary storage tier, preventing it from being moved to the capacity pool tier.
sourcepub fn build(self) -> TieringPolicy
pub fn build(self) -> TieringPolicy
Consumes the builder and constructs a TieringPolicy.
Trait Implementations§
source§impl Clone for TieringPolicyBuilder
impl Clone for TieringPolicyBuilder
source§fn clone(&self) -> TieringPolicyBuilder
fn clone(&self) -> TieringPolicyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for TieringPolicyBuilder
impl Debug for TieringPolicyBuilder
source§impl Default for TieringPolicyBuilder
impl Default for TieringPolicyBuilder
source§fn default() -> TieringPolicyBuilder
fn default() -> TieringPolicyBuilder
source§impl PartialEq<TieringPolicyBuilder> for TieringPolicyBuilder
impl PartialEq<TieringPolicyBuilder> for TieringPolicyBuilder
source§fn eq(&self, other: &TieringPolicyBuilder) -> bool
fn eq(&self, other: &TieringPolicyBuilder) -> bool
self and other values to be equal, and is used
by ==.