Class RestorePointSourceVMDataDisk
java.lang.Object
com.azure.resourcemanager.compute.models.RestorePointSourceVMDataDisk
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RestorePointSourceVMDataDisk>
public final class RestorePointSourceVMDataDisk
extends Object
implements com.azure.json.JsonSerializable<RestorePointSourceVMDataDisk>
Describes a data disk.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RestorePointSourceVMDataDisk class. -
Method Summary
Modifier and TypeMethodDescriptioncaching()Get the caching property: Gets the caching type.Get the diskRestorePoint property: Contains Disk Restore Point properties.Get the diskSizeGB property: Gets the initial disk size in GB for blank data disks, and the new desired size for existing OS and Data disks.static RestorePointSourceVMDataDiskfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RestorePointSourceVMDataDisk from the JsonReader.lun()Get the lun property: Gets the logical unit number.Get the managedDisk property: Contains the managed disk details.name()Get the name property: Gets the disk name.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDiskRestorePoint(DiskRestorePointAttributes diskRestorePoint) Set the diskRestorePoint property: Contains Disk Restore Point properties.withManagedDisk(ManagedDiskParameters managedDisk) Set the managedDisk property: Contains the managed disk details.Get the writeAcceleratorEnabled property: Shows true if the disk is write-accelerator enabled.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
-
RestorePointSourceVMDataDisk
public RestorePointSourceVMDataDisk()Creates an instance of RestorePointSourceVMDataDisk class.
-
-
Method Details
-
lun
-
name
-
caching
Get the caching property: Gets the caching type.- Returns:
- the caching value.
-
diskSizeGB
Get the diskSizeGB property: Gets the initial disk size in GB for blank data disks, and the new desired size for existing OS and Data disks.- Returns:
- the diskSizeGB value.
-
managedDisk
Get the managedDisk property: Contains the managed disk details.- Returns:
- the managedDisk value.
-
withManagedDisk
Set the managedDisk property: Contains the managed disk details.- Parameters:
managedDisk- the managedDisk value to set.- Returns:
- the RestorePointSourceVMDataDisk object itself.
-
diskRestorePoint
Get the diskRestorePoint property: Contains Disk Restore Point properties.- Returns:
- the diskRestorePoint value.
-
withDiskRestorePoint
public RestorePointSourceVMDataDisk withDiskRestorePoint(DiskRestorePointAttributes diskRestorePoint) Set the diskRestorePoint property: Contains Disk Restore Point properties.- Parameters:
diskRestorePoint- the diskRestorePoint value to set.- Returns:
- the RestorePointSourceVMDataDisk object itself.
-
writeAcceleratorEnabled
Get the writeAcceleratorEnabled property: Shows true if the disk is write-accelerator enabled.- Returns:
- the writeAcceleratorEnabled 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<RestorePointSourceVMDataDisk>- Throws:
IOException
-
fromJson
public static RestorePointSourceVMDataDisk fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RestorePointSourceVMDataDisk from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RestorePointSourceVMDataDisk 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 RestorePointSourceVMDataDisk.
-