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()
  • Method Details

    • lun

      public Integer lun()
      Get the lun property: Gets the logical unit number.
      Returns:
      the lun value.
    • withLun

      public RestorePointSourceVMDataDisk withLun(Integer lun)
      Set the lun property: Gets the logical unit number.
      Parameters:
      lun - the lun value to set.
      Returns:
      the RestorePointSourceVMDataDisk object itself.
    • name

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

      public RestorePointSourceVMDataDisk withName(String name)
      Set the name property: Gets the disk name.
      Parameters:
      name - the name value to set.
      Returns:
      the RestorePointSourceVMDataDisk object itself.
    • caching

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

      public RestorePointSourceVMDataDisk withCaching(CachingTypes caching)
      Set the caching property: Gets the caching type.
      Parameters:
      caching - the caching value to set.
      Returns:
      the RestorePointSourceVMDataDisk object itself.
    • 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.
    • withDiskSizeGB

      public RestorePointSourceVMDataDisk withDiskSizeGB(Integer diskSizeGB)
      Set 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.
      Parameters:
      diskSizeGB - the diskSizeGB value to set.
      Returns:
      the RestorePointSourceVMDataDisk object itself.
    • managedDisk

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

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

      public ApiEntityReference diskRestorePoint()
      Get the diskRestorePoint property: Gets the disk restore point Id.
      Returns:
      the diskRestorePoint value.
    • withDiskRestorePoint

      public RestorePointSourceVMDataDisk withDiskRestorePoint(ApiEntityReference diskRestorePoint)
      Set the diskRestorePoint property: Gets the disk restore point Id.
      Parameters:
      diskRestorePoint - the diskRestorePoint value to set.
      Returns:
      the RestorePointSourceVMDataDisk object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.