Class AzureFileShareRestoreRequest

java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.RestoreRequest
com.azure.resourcemanager.recoveryservicesbackup.models.AzureFileShareRestoreRequest

public final class AzureFileShareRestoreRequest extends RestoreRequest
AzureFileShare Restore Request.
  • Constructor Details

    • AzureFileShareRestoreRequest

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

    • recoveryType

      public RecoveryType recoveryType()
      Get the recoveryType property: Type of this recovery.
      Returns:
      the recoveryType value.
    • withRecoveryType

      public AzureFileShareRestoreRequest withRecoveryType(RecoveryType recoveryType)
      Set the recoveryType property: Type of this recovery.
      Parameters:
      recoveryType - the recoveryType value to set.
      Returns:
      the AzureFileShareRestoreRequest object itself.
    • sourceResourceId

      public String sourceResourceId()
      Get the sourceResourceId property: Source storage account ARM Id.
      Returns:
      the sourceResourceId value.
    • withSourceResourceId

      public AzureFileShareRestoreRequest withSourceResourceId(String sourceResourceId)
      Set the sourceResourceId property: Source storage account ARM Id.
      Parameters:
      sourceResourceId - the sourceResourceId value to set.
      Returns:
      the AzureFileShareRestoreRequest object itself.
    • copyOptions

      public CopyOptions copyOptions()
      Get the copyOptions property: Options to resolve copy conflicts.
      Returns:
      the copyOptions value.
    • withCopyOptions

      public AzureFileShareRestoreRequest withCopyOptions(CopyOptions copyOptions)
      Set the copyOptions property: Options to resolve copy conflicts.
      Parameters:
      copyOptions - the copyOptions value to set.
      Returns:
      the AzureFileShareRestoreRequest object itself.
    • restoreRequestType

      public RestoreRequestType restoreRequestType()
      Get the restoreRequestType property: Restore Type (FullShareRestore or ItemLevelRestore).
      Returns:
      the restoreRequestType value.
    • withRestoreRequestType

      public AzureFileShareRestoreRequest withRestoreRequestType(RestoreRequestType restoreRequestType)
      Set the restoreRequestType property: Restore Type (FullShareRestore or ItemLevelRestore).
      Parameters:
      restoreRequestType - the restoreRequestType value to set.
      Returns:
      the AzureFileShareRestoreRequest object itself.
    • restoreFileSpecs

      public List<RestoreFileSpecs> restoreFileSpecs()
      Get the restoreFileSpecs property: List of Source Files/Folders(which need to recover) and TargetFolderPath details.
      Returns:
      the restoreFileSpecs value.
    • withRestoreFileSpecs

      public AzureFileShareRestoreRequest withRestoreFileSpecs(List<RestoreFileSpecs> restoreFileSpecs)
      Set the restoreFileSpecs property: List of Source Files/Folders(which need to recover) and TargetFolderPath details.
      Parameters:
      restoreFileSpecs - the restoreFileSpecs value to set.
      Returns:
      the AzureFileShareRestoreRequest object itself.
    • targetDetails

      public TargetAfsRestoreInfo targetDetails()
      Get the targetDetails property: Target File Share Details.
      Returns:
      the targetDetails value.
    • withTargetDetails

      public AzureFileShareRestoreRequest withTargetDetails(TargetAfsRestoreInfo targetDetails)
      Set the targetDetails property: Target File Share Details.
      Parameters:
      targetDetails - the targetDetails value to set.
      Returns:
      the AzureFileShareRestoreRequest object itself.
    • validate

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