Class ProtectionPolicy
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionPolicy
-
- Direct Known Subclasses:
AzureFileShareProtectionPolicy
,AzureIaaSvmProtectionPolicy
,AzureSqlProtectionPolicy
,AzureVmWorkloadProtectionPolicy
,GenericProtectionPolicy
,MabProtectionPolicy
public class ProtectionPolicy extends Object
Base class for backup policy. Workload-specific backup policies are derived from this class.
-
-
Constructor Summary
Constructors Constructor Description ProtectionPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
protectedItemsCount()
Get the protectedItemsCount property: Number of items associated with this policy.List<String>
resourceGuardOperationRequests()
Get the resourceGuardOperationRequests property: ResourceGuard Operation Requests.void
validate()
Validates the instance.ProtectionPolicy
withProtectedItemsCount(Integer protectedItemsCount)
Set the protectedItemsCount property: Number of items associated with this policy.ProtectionPolicy
withResourceGuardOperationRequests(List<String> resourceGuardOperationRequests)
Set the resourceGuardOperationRequests property: ResourceGuard Operation Requests.
-
-
-
Method Detail
-
protectedItemsCount
public Integer protectedItemsCount()
Get the protectedItemsCount property: Number of items associated with this policy.- Returns:
- the protectedItemsCount value.
-
withProtectedItemsCount
public ProtectionPolicy withProtectedItemsCount(Integer protectedItemsCount)
Set the protectedItemsCount property: Number of items associated with this policy.- Parameters:
protectedItemsCount
- the protectedItemsCount value to set.- Returns:
- the ProtectionPolicy object itself.
-
resourceGuardOperationRequests
public List<String> resourceGuardOperationRequests()
Get the resourceGuardOperationRequests property: ResourceGuard Operation Requests.- Returns:
- the resourceGuardOperationRequests value.
-
withResourceGuardOperationRequests
public ProtectionPolicy withResourceGuardOperationRequests(List<String> resourceGuardOperationRequests)
Set the resourceGuardOperationRequests property: ResourceGuard Operation Requests.- Parameters:
resourceGuardOperationRequests
- the resourceGuardOperationRequests value to set.- Returns:
- the ProtectionPolicy object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-