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>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • coolingPeriod

      @Stability(Stable) public CfnVolume.TieringPolicyProperty.Builder coolingPeriod(Number coolingPeriod)
      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 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 .
      Returns:
      this
    • name

      @Stability(Stable) public CfnVolume.TieringPolicyProperty.Builder name(String name)
      Parameters:
      name - 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.
      Returns:
      this
    • build

      @Stability(Stable) public CfnVolume.TieringPolicyProperty build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnVolume.TieringPolicyProperty>
      Returns:
      a new instance of CfnVolume.TieringPolicyProperty
      Throws:
      NullPointerException - if any required attribute was not provided