Class GenericProtectionPolicy

java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionPolicy
com.azure.resourcemanager.recoveryservicesbackup.models.GenericProtectionPolicy

public final class GenericProtectionPolicy extends ProtectionPolicy
Azure VM (Mercury) workload-specific backup policy.
  • Constructor Details

    • GenericProtectionPolicy

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

    • subProtectionPolicy

      public List<SubProtectionPolicy> subProtectionPolicy()
      Get the subProtectionPolicy property: List of sub-protection policies which includes schedule and retention.
      Returns:
      the subProtectionPolicy value.
    • withSubProtectionPolicy

      public GenericProtectionPolicy withSubProtectionPolicy(List<SubProtectionPolicy> subProtectionPolicy)
      Set the subProtectionPolicy property: List of sub-protection policies which includes schedule and retention.
      Parameters:
      subProtectionPolicy - the subProtectionPolicy value to set.
      Returns:
      the GenericProtectionPolicy object itself.
    • timeZone

      public String timeZone()
      Get the timeZone property: TimeZone optional input as string. For example: TimeZone = "Pacific Standard Time".
      Returns:
      the timeZone value.
    • withTimeZone

      public GenericProtectionPolicy withTimeZone(String timeZone)
      Set the timeZone property: TimeZone optional input as string. For example: TimeZone = "Pacific Standard Time".
      Parameters:
      timeZone - the timeZone value to set.
      Returns:
      the GenericProtectionPolicy object itself.
    • fabricName

      public String fabricName()
      Get the fabricName property: Name of this policy's fabric.
      Returns:
      the fabricName value.
    • withFabricName

      public GenericProtectionPolicy withFabricName(String fabricName)
      Set the fabricName property: Name of this policy's fabric.
      Parameters:
      fabricName - the fabricName value to set.
      Returns:
      the GenericProtectionPolicy object itself.
    • withProtectedItemsCount

      public GenericProtectionPolicy withProtectedItemsCount(Integer protectedItemsCount)
      Set the protectedItemsCount property: Number of items associated with this policy.
      Overrides:
      withProtectedItemsCount in class ProtectionPolicy
      Parameters:
      protectedItemsCount - the protectedItemsCount value to set.
      Returns:
      the ProtectionPolicy object itself.
    • withResourceGuardOperationRequests

      public GenericProtectionPolicy withResourceGuardOperationRequests(List<String> resourceGuardOperationRequests)
      Set the resourceGuardOperationRequests property: ResourceGuard Operation Requests.
      Overrides:
      withResourceGuardOperationRequests in class ProtectionPolicy
      Parameters:
      resourceGuardOperationRequests - the resourceGuardOperationRequests value to set.
      Returns:
      the ProtectionPolicy object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class ProtectionPolicy
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.