Class MabProtectionPolicy
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionPolicy
com.azure.resourcemanager.recoveryservicesbackup.models.MabProtectionPolicy
Mab container-specific backup policy.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the retentionPolicy property: Retention policy details.Get the schedulePolicy property: Backup schedule of backup policy.void
validate()
Validates the instance.withProtectedItemsCount
(Integer protectedItemsCount) Set the protectedItemsCount property: Number of items associated with this policy.withResourceGuardOperationRequests
(List<String> resourceGuardOperationRequests) Set the resourceGuardOperationRequests property: ResourceGuard Operation Requests.withRetentionPolicy
(RetentionPolicy retentionPolicy) Set the retentionPolicy property: Retention policy details.withSchedulePolicy
(SchedulePolicy schedulePolicy) Set the schedulePolicy property: Backup schedule of backup policy.Methods inherited from class com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionPolicy
protectedItemsCount, resourceGuardOperationRequests
-
Constructor Details
-
MabProtectionPolicy
public MabProtectionPolicy()Creates an instance of MabProtectionPolicy class.
-
-
Method Details
-
schedulePolicy
Get the schedulePolicy property: Backup schedule of backup policy.- Returns:
- the schedulePolicy value.
-
withSchedulePolicy
Set the schedulePolicy property: Backup schedule of backup policy.- Parameters:
schedulePolicy
- the schedulePolicy value to set.- Returns:
- the MabProtectionPolicy object itself.
-
retentionPolicy
Get the retentionPolicy property: Retention policy details.- Returns:
- the retentionPolicy value.
-
withRetentionPolicy
Set the retentionPolicy property: Retention policy details.- Parameters:
retentionPolicy
- the retentionPolicy value to set.- Returns:
- the MabProtectionPolicy object itself.
-
withProtectedItemsCount
Set the protectedItemsCount property: Number of items associated with this policy.- Overrides:
withProtectedItemsCount
in classProtectionPolicy
- Parameters:
protectedItemsCount
- the protectedItemsCount value to set.- Returns:
- the ProtectionPolicy object itself.
-
withResourceGuardOperationRequests
public MabProtectionPolicy withResourceGuardOperationRequests(List<String> resourceGuardOperationRequests) Set the resourceGuardOperationRequests property: ResourceGuard Operation Requests.- Overrides:
withResourceGuardOperationRequests
in classProtectionPolicy
- Parameters:
resourceGuardOperationRequests
- the resourceGuardOperationRequests value to set.- Returns:
- the ProtectionPolicy object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classProtectionPolicy
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-