Class RestorePointSourceVMDataDisk

java.lang.Object
com.azure.resourcemanager.compute.models.RestorePointSourceVMDataDisk

public final class RestorePointSourceVMDataDisk extends Object
Describes a data disk.
  • Constructor Details

    • RestorePointSourceVMDataDisk

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

    • lun

      public Integer lun()
      Get the lun property: Gets the logical unit number.
      Returns:
      the lun 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 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

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

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

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

      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.