Class SubProtectionPolicy
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.SubProtectionPolicy
Sub-protection policy which includes schedule and retention.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the policyType property: Type of backup policy type.Get the retentionPolicy property: Retention policy with the details on backup copy retention ranges.Get the schedulePolicy property: Backup schedule specified as part of backup policy.Get the tieringPolicy property: Tiering policy to automatically move RPs to another tier.void
validate()
Validates the instance.withPolicyType
(PolicyType policyType) Set the policyType property: Type of backup policy type.withRetentionPolicy
(RetentionPolicy retentionPolicy) Set the retentionPolicy property: Retention policy with the details on backup copy retention ranges.withSchedulePolicy
(SchedulePolicy schedulePolicy) Set the schedulePolicy property: Backup schedule specified as part of backup policy.withTieringPolicy
(Map<String, TieringPolicy> tieringPolicy) Set the tieringPolicy property: Tiering policy to automatically move RPs to another tier.
-
Constructor Details
-
SubProtectionPolicy
public SubProtectionPolicy()Creates an instance of SubProtectionPolicy class.
-
-
Method Details
-
policyType
Get the policyType property: Type of backup policy type.- Returns:
- the policyType value.
-
withPolicyType
Set the policyType property: Type of backup policy type.- Parameters:
policyType
- the policyType value to set.- Returns:
- the SubProtectionPolicy object itself.
-
schedulePolicy
Get the schedulePolicy property: Backup schedule specified as part of backup policy.- Returns:
- the schedulePolicy value.
-
withSchedulePolicy
Set the schedulePolicy property: Backup schedule specified as part of backup policy.- Parameters:
schedulePolicy
- the schedulePolicy value to set.- Returns:
- the SubProtectionPolicy object itself.
-
retentionPolicy
Get the retentionPolicy property: Retention policy with the details on backup copy retention ranges.- Returns:
- the retentionPolicy value.
-
withRetentionPolicy
Set the retentionPolicy property: Retention policy with the details on backup copy retention ranges.- Parameters:
retentionPolicy
- the retentionPolicy value to set.- Returns:
- the SubProtectionPolicy object itself.
-
tieringPolicy
Get the tieringPolicy property: Tiering policy to automatically move RPs to another tier. Key is Target Tier, defined in RecoveryPointTierType enum. Tiering policy specifies the criteria to move RP to the target tier.- Returns:
- the tieringPolicy value.
-
withTieringPolicy
Set the tieringPolicy property: Tiering policy to automatically move RPs to another tier. Key is Target Tier, defined in RecoveryPointTierType enum. Tiering policy specifies the criteria to move RP to the target tier.- Parameters:
tieringPolicy
- the tieringPolicy value to set.- Returns:
- the SubProtectionPolicy object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-