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 Details

    • ProtectionPolicy

      public ProtectionPolicy()
      Creates an instance of ProtectionPolicy class.
  • Method Details

    • 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.