Class RestorePointSourceVmosDisk
java.lang.Object
com.azure.resourcemanager.compute.models.RestorePointSourceVmosDisk
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RestorePointSourceVmosDisk>
public final class RestorePointSourceVmosDisk
extends Object
implements com.azure.json.JsonSerializable<RestorePointSourceVmosDisk>
Describes an Operating System disk.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RestorePointSourceVmosDisk 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 disk size in GB.Get the encryptionSettings property: Gets the disk encryption settings.static RestorePointSourceVmosDiskfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RestorePointSourceVmosDisk from the JsonReader.Get the managedDisk property: Gets the managed disk details.name()Get the name property: Gets the disk name.osType()Get the osType property: Gets the Operating System type.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: Gets the managed disk details.Get the writeAcceleratorEnabled property: Shows true if the disk is write-accelerator enabled.Methods inherited from class java.lang.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
-
RestorePointSourceVmosDisk
public RestorePointSourceVmosDisk()Creates an instance of RestorePointSourceVmosDisk class.
-
-
Method Details
-
osType
Get the osType property: Gets the Operating System type.- Returns:
- the osType value.
-
encryptionSettings
Get the encryptionSettings property: Gets the disk encryption settings.- Returns:
- the encryptionSettings value.
-
name
Get the name property: Gets the disk name.- Returns:
- the name value.
-
caching
Get the caching property: Gets the caching type.- Returns:
- the caching value.
-
diskSizeGB
Get the diskSizeGB property: Gets the disk size in GB.- Returns:
- the diskSizeGB value.
-
managedDisk
Get the managedDisk property: Gets the managed disk details.- Returns:
- the managedDisk value.
-
withManagedDisk
Set the managedDisk property: Gets the managed disk details.- Parameters:
managedDisk- the managedDisk value to set.- Returns:
- the RestorePointSourceVmosDisk object itself.
-
diskRestorePoint
Get the diskRestorePoint property: Contains Disk Restore Point properties.- Returns:
- the diskRestorePoint value.
-
withDiskRestorePoint
Set the diskRestorePoint property: Contains Disk Restore Point properties.- Parameters:
diskRestorePoint- the diskRestorePoint value to set.- Returns:
- the RestorePointSourceVmosDisk 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<RestorePointSourceVmosDisk>- Throws:
IOException
-
fromJson
public static RestorePointSourceVmosDisk fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RestorePointSourceVmosDisk from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RestorePointSourceVmosDisk 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 RestorePointSourceVmosDisk.
-