Class BackupRestoreFiles

java.lang.Object
com.azure.resourcemanager.netapp.models.BackupRestoreFiles
All Implemented Interfaces:
com.azure.json.JsonSerializable<BackupRestoreFiles>

public final class BackupRestoreFiles extends Object implements com.azure.json.JsonSerializable<BackupRestoreFiles>
Restore payload for Single File Backup Restore.
  • Constructor Details

    • BackupRestoreFiles

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

    • fileList

      public List<String> fileList()
      Get the fileList property: List of files to be restored.
      Returns:
      the fileList value.
    • withFileList

      public BackupRestoreFiles withFileList(List<String> fileList)
      Set the fileList property: List of files to be restored.
      Parameters:
      fileList - the fileList value to set.
      Returns:
      the BackupRestoreFiles object itself.
    • restoreFilePath

      public String restoreFilePath()
      Get the restoreFilePath property: Destination folder where the files will be restored. The path name should start with a forward slash. If it is omitted from request then restore is done at the root folder of the destination volume by default.
      Returns:
      the restoreFilePath value.
    • withRestoreFilePath

      public BackupRestoreFiles withRestoreFilePath(String restoreFilePath)
      Set the restoreFilePath property: Destination folder where the files will be restored. The path name should start with a forward slash. If it is omitted from request then restore is done at the root folder of the destination volume by default.
      Parameters:
      restoreFilePath - the restoreFilePath value to set.
      Returns:
      the BackupRestoreFiles object itself.
    • destinationVolumeId

      public String destinationVolumeId()
      Get the destinationVolumeId property: Resource Id of the destination volume on which the files need to be restored.
      Returns:
      the destinationVolumeId value.
    • withDestinationVolumeId

      public BackupRestoreFiles withDestinationVolumeId(String destinationVolumeId)
      Set the destinationVolumeId property: Resource Id of the destination volume on which the files need to be restored.
      Parameters:
      destinationVolumeId - the destinationVolumeId value to set.
      Returns:
      the BackupRestoreFiles object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<BackupRestoreFiles>
      Throws:
      IOException
    • fromJson

      public static BackupRestoreFiles fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of BackupRestoreFiles from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of BackupRestoreFiles if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the BackupRestoreFiles.