Class TieringPolicy
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.TieringPolicy
Tiering Policy for a target tier. If the policy is not specified for a given target tier, service retains the
existing configured tiering policy for that tier.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionduration()
Get the duration property: Number of days/weeks/months/years to retain backups in current tier before tiering.Get the durationType property: Retention duration type: days/weeks/months/years Used only if TieringMode is set to TierAfter.Get the tieringMode property: Tiering Mode to control automatic tiering of recovery points.void
validate()
Validates the instance.withDuration
(Integer duration) Set the duration property: Number of days/weeks/months/years to retain backups in current tier before tiering.withDurationType
(RetentionDurationType durationType) Set the durationType property: Retention duration type: days/weeks/months/years Used only if TieringMode is set to TierAfter.withTieringMode
(TieringMode tieringMode) Set the tieringMode property: Tiering Mode to control automatic tiering of recovery points.
-
Constructor Details
-
TieringPolicy
public TieringPolicy()Creates an instance of TieringPolicy class.
-
-
Method Details
-
tieringMode
Get the tieringMode property: Tiering Mode to control automatic tiering of recovery points. Supported values are: 1. TierRecommended: Tier all recovery points recommended to be tiered 2. TierAfter: Tier all recovery points after a fixed period, as specified in duration + durationType below. 3. DoNotTier: Do not tier any recovery points.- Returns:
- the tieringMode value.
-
withTieringMode
Set the tieringMode property: Tiering Mode to control automatic tiering of recovery points. Supported values are: 1. TierRecommended: Tier all recovery points recommended to be tiered 2. TierAfter: Tier all recovery points after a fixed period, as specified in duration + durationType below. 3. DoNotTier: Do not tier any recovery points.- Parameters:
tieringMode
- the tieringMode value to set.- Returns:
- the TieringPolicy object itself.
-
duration
Get the duration property: Number of days/weeks/months/years to retain backups in current tier before tiering. Used only if TieringMode is set to TierAfter.- Returns:
- the duration value.
-
withDuration
Set the duration property: Number of days/weeks/months/years to retain backups in current tier before tiering. Used only if TieringMode is set to TierAfter.- Parameters:
duration
- the duration value to set.- Returns:
- the TieringPolicy object itself.
-
durationType
Get the durationType property: Retention duration type: days/weeks/months/years Used only if TieringMode is set to TierAfter.- Returns:
- the durationType value.
-
withDurationType
Set the durationType property: Retention duration type: days/weeks/months/years Used only if TieringMode is set to TierAfter.- Parameters:
durationType
- the durationType value to set.- Returns:
- the TieringPolicy object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-