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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the destinationVolumeId property: Resource Id of the destination volume on which the files need to be restored.fileList()
Get the fileList property: List of files to be restored.static BackupRestoreFiles
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of BackupRestoreFiles from the JsonReader.Get the restoreFilePath property: Destination folder where the files will be restored.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withDestinationVolumeId
(String destinationVolumeId) Set the destinationVolumeId property: Resource Id of the destination volume on which the files need to be restored.withFileList
(List<String> fileList) Set the fileList property: List of files to be restored.withRestoreFilePath
(String restoreFilePath) Set the restoreFilePath property: Destination folder where the files will be restored.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
BackupRestoreFiles
public BackupRestoreFiles()Creates an instance of BackupRestoreFiles class.
-
-
Method Details
-
fileList
Get the fileList property: List of files to be restored.- Returns:
- the fileList value.
-
withFileList
Set the fileList property: List of files to be restored.- Parameters:
fileList
- the fileList value to set.- Returns:
- the BackupRestoreFiles object itself.
-
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
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
Get the destinationVolumeId property: Resource Id of the destination volume on which the files need to be restored.- Returns:
- the destinationVolumeId value.
-
withDestinationVolumeId
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
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<BackupRestoreFiles>
- Throws:
IOException
-
fromJson
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.
-