Class RestorePointSourceVMStorageProfile
java.lang.Object
com.azure.resourcemanager.compute.models.RestorePointSourceVMStorageProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RestorePointSourceVMStorageProfile>
public final class RestorePointSourceVMStorageProfile
extends Object
implements com.azure.json.JsonSerializable<RestorePointSourceVMStorageProfile>
Describes the storage profile.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RestorePointSourceVMStorageProfile class. -
Method Summary
Modifier and TypeMethodDescriptionGet the dataDisks property: Gets the data disks of the VM captured at the time of the restore point creation.Get the diskControllerType property: Gets the disk controller type of the VM captured at the time of the restore point creation.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RestorePointSourceVMStorageProfile from the JsonReader.osDisk()Get the osDisk property: Gets the OS disk of the VM captured at the time of the restore point creation.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDataDisks(List<RestorePointSourceVMDataDisk> dataDisks) Set the dataDisks property: Gets the data disks of the VM captured at the time of the restore point creation.withOsDisk(RestorePointSourceVmosDisk osDisk) Set the osDisk property: Gets the OS disk of the VM captured at the time of the restore point creation.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RestorePointSourceVMStorageProfile
public RestorePointSourceVMStorageProfile()Creates an instance of RestorePointSourceVMStorageProfile class.
-
-
Method Details
-
osDisk
Get the osDisk property: Gets the OS disk of the VM captured at the time of the restore point creation.- Returns:
- the osDisk value.
-
withOsDisk
Set the osDisk property: Gets the OS disk of the VM captured at the time of the restore point creation.- Parameters:
osDisk- the osDisk value to set.- Returns:
- the RestorePointSourceVMStorageProfile object itself.
-
dataDisks
Get the dataDisks property: Gets the data disks of the VM captured at the time of the restore point creation.- Returns:
- the dataDisks value.
-
withDataDisks
public RestorePointSourceVMStorageProfile withDataDisks(List<RestorePointSourceVMDataDisk> dataDisks) Set the dataDisks property: Gets the data disks of the VM captured at the time of the restore point creation.- Parameters:
dataDisks- the dataDisks value to set.- Returns:
- the RestorePointSourceVMStorageProfile object itself.
-
diskControllerType
Get the diskControllerType property: Gets the disk controller type of the VM captured at the time of the restore point creation.- Returns:
- the diskControllerType value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<RestorePointSourceVMStorageProfile>- Throws:
IOException
-
fromJson
public static RestorePointSourceVMStorageProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RestorePointSourceVMStorageProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RestorePointSourceVMStorageProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the RestorePointSourceVMStorageProfile.
-