Class SnapshotRestoreFiles

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

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

    • SnapshotRestoreFiles

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

    • filePaths

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

      public SnapshotRestoreFiles withFilePaths(List<String> filePaths)
      Set the filePaths property: List of files to be restored.
      Parameters:
      filePaths - the filePaths value to set.
      Returns:
      the SnapshotRestoreFiles object itself.
    • destinationPath

      public String destinationPath()
      Get the destinationPath property: Destination folder where the files will be restored.
      Returns:
      the destinationPath value.
    • withDestinationPath

      public SnapshotRestoreFiles withDestinationPath(String destinationPath)
      Set the destinationPath property: Destination folder where the files will be restored.
      Parameters:
      destinationPath - the destinationPath value to set.
      Returns:
      the SnapshotRestoreFiles 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<SnapshotRestoreFiles>
      Throws:
      IOException
    • fromJson

      public static SnapshotRestoreFiles fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of SnapshotRestoreFiles from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of SnapshotRestoreFiles 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 SnapshotRestoreFiles.