Class AzureIaaSvmProtectionPolicy

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

public final class AzureIaaSvmProtectionPolicy extends ProtectionPolicy
IaaS VM workload-specific backup policy.
  • Constructor Details

    • AzureIaaSvmProtectionPolicy

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

    • instantRPDetails

      public InstantRPAdditionalDetails instantRPDetails()
      Get the instantRPDetails property: The instantRPDetails property.
      Returns:
      the instantRPDetails value.
    • withInstantRPDetails

      public AzureIaaSvmProtectionPolicy withInstantRPDetails(InstantRPAdditionalDetails instantRPDetails)
      Set the instantRPDetails property: The instantRPDetails property.
      Parameters:
      instantRPDetails - the instantRPDetails value to set.
      Returns:
      the AzureIaaSvmProtectionPolicy object itself.
    • schedulePolicy

      public SchedulePolicy schedulePolicy()
      Get the schedulePolicy property: Backup schedule specified as part of backup policy.
      Returns:
      the schedulePolicy value.
    • withSchedulePolicy

      public AzureIaaSvmProtectionPolicy withSchedulePolicy(SchedulePolicy schedulePolicy)
      Set the schedulePolicy property: Backup schedule specified as part of backup policy.
      Parameters:
      schedulePolicy - the schedulePolicy value to set.
      Returns:
      the AzureIaaSvmProtectionPolicy object itself.
    • retentionPolicy

      public RetentionPolicy retentionPolicy()
      Get the retentionPolicy property: Retention policy with the details on backup copy retention ranges.
      Returns:
      the retentionPolicy value.
    • withRetentionPolicy

      public AzureIaaSvmProtectionPolicy withRetentionPolicy(RetentionPolicy retentionPolicy)
      Set the retentionPolicy property: Retention policy with the details on backup copy retention ranges.
      Parameters:
      retentionPolicy - the retentionPolicy value to set.
      Returns:
      the AzureIaaSvmProtectionPolicy object itself.
    • tieringPolicy

      public Map<String,TieringPolicy> tieringPolicy()
      Get the tieringPolicy property: Tiering policy to automatically move RPs to another tier Key is Target Tier, defined in RecoveryPointTierType enum. Tiering policy specifies the criteria to move RP to the target tier.
      Returns:
      the tieringPolicy value.
    • withTieringPolicy

      public AzureIaaSvmProtectionPolicy withTieringPolicy(Map<String,TieringPolicy> tieringPolicy)
      Set the tieringPolicy property: Tiering policy to automatically move RPs to another tier Key is Target Tier, defined in RecoveryPointTierType enum. Tiering policy specifies the criteria to move RP to the target tier.
      Parameters:
      tieringPolicy - the tieringPolicy value to set.
      Returns:
      the AzureIaaSvmProtectionPolicy object itself.
    • instantRpRetentionRangeInDays

      public Integer instantRpRetentionRangeInDays()
      Get the instantRpRetentionRangeInDays property: Instant RP retention policy range in days.
      Returns:
      the instantRpRetentionRangeInDays value.
    • withInstantRpRetentionRangeInDays

      public AzureIaaSvmProtectionPolicy withInstantRpRetentionRangeInDays(Integer instantRpRetentionRangeInDays)
      Set the instantRpRetentionRangeInDays property: Instant RP retention policy range in days.
      Parameters:
      instantRpRetentionRangeInDays - the instantRpRetentionRangeInDays value to set.
      Returns:
      the AzureIaaSvmProtectionPolicy 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 AzureIaaSvmProtectionPolicy 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 AzureIaaSvmProtectionPolicy object itself.
    • policyType

      public IaasvmPolicyType policyType()
      Get the policyType property: The policyType property.
      Returns:
      the policyType value.
    • withPolicyType

      public AzureIaaSvmProtectionPolicy withPolicyType(IaasvmPolicyType policyType)
      Set the policyType property: The policyType property.
      Parameters:
      policyType - the policyType value to set.
      Returns:
      the AzureIaaSvmProtectionPolicy object itself.
    • withProtectedItemsCount

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