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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the destinationPath property: Destination folder where the files will be restored.Get the filePaths property: List of files to be restored.static SnapshotRestoreFiles
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of SnapshotRestoreFiles from the JsonReader.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withDestinationPath
(String destinationPath) Set the destinationPath property: Destination folder where the files will be restored.withFilePaths
(List<String> filePaths) Set the filePaths property: List of files to 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
-
SnapshotRestoreFiles
public SnapshotRestoreFiles()Creates an instance of SnapshotRestoreFiles class.
-
-
Method Details
-
filePaths
Get the filePaths property: List of files to be restored.- Returns:
- the filePaths value.
-
withFilePaths
Set the filePaths property: List of files to be restored.- Parameters:
filePaths
- the filePaths value to set.- Returns:
- the SnapshotRestoreFiles object itself.
-
destinationPath
Get the destinationPath property: Destination folder where the files will be restored.- Returns:
- the destinationPath value.
-
withDestinationPath
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
- Specified by:
toJson
in interfacecom.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.
-