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 Details

    • RestorePointSourceVmosDisk

      public RestorePointSourceVmosDisk()
      Creates an instance of RestorePointSourceVmosDisk class.
  • Method Details

    • osType

      public OperatingSystemType osType()
      Get the osType property: Gets the Operating System type.
      Returns:
      the osType value.
    • encryptionSettings

      public DiskEncryptionSettings encryptionSettings()
      Get the encryptionSettings property: Gets the disk encryption settings.
      Returns:
      the encryptionSettings value.
    • name

      public String name()
      Get the name property: Gets the disk name.
      Returns:
      the name value.
    • caching

      public CachingTypes caching()
      Get the caching property: Gets the caching type.
      Returns:
      the caching value.
    • diskSizeGB

      public Integer diskSizeGB()
      Get the diskSizeGB property: Gets the disk size in GB.
      Returns:
      the diskSizeGB value.
    • managedDisk

      public ManagedDiskParameters managedDisk()
      Get the managedDisk property: Gets the managed disk details.
      Returns:
      the managedDisk value.
    • withManagedDisk

      public RestorePointSourceVmosDisk withManagedDisk(ManagedDiskParameters managedDisk)
      Set the managedDisk property: Gets the managed disk details.
      Parameters:
      managedDisk - the managedDisk value to set.
      Returns:
      the RestorePointSourceVmosDisk object itself.
    • diskRestorePoint

      public DiskRestorePointAttributes diskRestorePoint()
      Get the diskRestorePoint property: Contains Disk Restore Point properties.
      Returns:
      the diskRestorePoint value.
    • withDiskRestorePoint

      public RestorePointSourceVmosDisk withDiskRestorePoint(DiskRestorePointAttributes diskRestorePoint)
      Set the diskRestorePoint property: Contains Disk Restore Point properties.
      Parameters:
      diskRestorePoint - the diskRestorePoint value to set.
      Returns:
      the RestorePointSourceVmosDisk object itself.
    • writeAcceleratorEnabled

      public Boolean 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.