Class AzureVmWorkloadProtectionPolicy

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

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

    • AzureVmWorkloadProtectionPolicy

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

    • workLoadType

      public WorkloadType workLoadType()
      Get the workLoadType property: Type of workload for the backup management.
      Returns:
      the workLoadType value.
    • withWorkLoadType

      public AzureVmWorkloadProtectionPolicy withWorkLoadType(WorkloadType workLoadType)
      Set the workLoadType property: Type of workload for the backup management.
      Parameters:
      workLoadType - the workLoadType value to set.
      Returns:
      the AzureVmWorkloadProtectionPolicy object itself.
    • settings

      public Settings settings()
      Get the settings property: Common settings for the backup management.
      Returns:
      the settings value.
    • withSettings

      public AzureVmWorkloadProtectionPolicy withSettings(Settings settings)
      Set the settings property: Common settings for the backup management.
      Parameters:
      settings - the settings value to set.
      Returns:
      the AzureVmWorkloadProtectionPolicy object itself.
    • 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 AzureVmWorkloadProtectionPolicy 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 AzureVmWorkloadProtectionPolicy object itself.
    • makePolicyConsistent

      public Boolean makePolicyConsistent()
      Get the makePolicyConsistent property: Fix the policy inconsistency.
      Returns:
      the makePolicyConsistent value.
    • withMakePolicyConsistent

      public AzureVmWorkloadProtectionPolicy withMakePolicyConsistent(Boolean makePolicyConsistent)
      Set the makePolicyConsistent property: Fix the policy inconsistency.
      Parameters:
      makePolicyConsistent - the makePolicyConsistent value to set.
      Returns:
      the AzureVmWorkloadProtectionPolicy object itself.
    • withProtectedItemsCount

      public AzureVmWorkloadProtectionPolicy 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 AzureVmWorkloadProtectionPolicy 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.