Class CfnVolume.TieringPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.fsx.CfnVolume.TieringPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVolume.TieringPolicyProperty>
- Enclosing interface:
- CfnVolume.TieringPolicyProperty
@Stability(Stable)
public static final class CfnVolume.TieringPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVolume.TieringPolicyProperty>
A builder for
CfnVolume.TieringPolicyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.coolingPeriod(Number coolingPeriod) Sets the value ofCfnVolume.TieringPolicyProperty.getCoolingPeriod()Sets the value ofCfnVolume.TieringPolicyProperty.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
coolingPeriod
@Stability(Stable) public CfnVolume.TieringPolicyProperty.Builder coolingPeriod(Number coolingPeriod) Sets the value ofCfnVolume.TieringPolicyProperty.getCoolingPeriod()- Parameters:
coolingPeriod- 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 theAUTOandSNAPSHOT_ONLYtiering policies. Enter a whole number between 2 and 183. Default values are 31 days forAUTOand 2 days forSNAPSHOT_ONLY.- Returns:
this
-
name
Sets the value ofCfnVolume.TieringPolicyProperty.getName()- Parameters:
name- Specifies the tiering policy used to transition data. Default value isSNAPSHOT_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.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVolume.TieringPolicyProperty>- Returns:
- a new instance of
CfnVolume.TieringPolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-