public static final class CfnVolume.TieringPolicyProperty.Builder
extends java.lang.Object
CfnVolume.TieringPolicyProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnVolume.TieringPolicyProperty |
build()
Builds the configured instance.
|
CfnVolume.TieringPolicyProperty.Builder |
coolingPeriod(java.lang.Number coolingPeriod)
Sets the value of
CfnVolume.TieringPolicyProperty.getCoolingPeriod() |
CfnVolume.TieringPolicyProperty.Builder |
name(java.lang.String name)
Sets the value of
CfnVolume.TieringPolicyProperty.getName() |
public CfnVolume.TieringPolicyProperty.Builder coolingPeriod(java.lang.Number coolingPeriod)
CfnVolume.TieringPolicyProperty.getCoolingPeriod()
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
.this
public CfnVolume.TieringPolicyProperty.Builder name(java.lang.String name)
CfnVolume.TieringPolicyProperty.getName()
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.this
public CfnVolume.TieringPolicyProperty build()
CfnVolume.TieringPolicyProperty
java.lang.NullPointerException
- if any required attribute was not provided