Class AzureFileShareProtectionPolicy

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

public final class AzureFileShareProtectionPolicy extends ProtectionPolicy
AzureStorage backup policy.
  • Constructor Details

    • AzureFileShareProtectionPolicy

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

    • workLoadType

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

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

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

      public AzureFileShareProtectionPolicy withSchedulePolicy(SchedulePolicy schedulePolicy)
      Set the schedulePolicy property: Backup schedule specified as part of backup policy.
      Parameters:
      schedulePolicy - the schedulePolicy value to set.
      Returns:
      the AzureFileShareProtectionPolicy 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 AzureFileShareProtectionPolicy 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 AzureFileShareProtectionPolicy 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 AzureFileShareProtectionPolicy 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 AzureFileShareProtectionPolicy object itself.
    • withProtectedItemsCount

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