Class VirtualMachineScaleSetDataDisk

java.lang.Object
com.microsoft.azure.management.compute.VirtualMachineScaleSetDataDisk

public class VirtualMachineScaleSetDataDisk extends Object
Describes a virtual machine scale set data disk.
  • Constructor Details

    • VirtualMachineScaleSetDataDisk

      public VirtualMachineScaleSetDataDisk()
  • Method Details

    • name

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

      public VirtualMachineScaleSetDataDisk withName(String name)
      Set the disk name.
      Parameters:
      name - the name value to set
      Returns:
      the VirtualMachineScaleSetDataDisk object itself.
    • lun

      public int lun()
      Get specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM.
      Returns:
      the lun value
    • withLun

      public VirtualMachineScaleSetDataDisk withLun(int lun)
      Set specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM.
      Parameters:
      lun - the lun value to set
      Returns:
      the VirtualMachineScaleSetDataDisk object itself.
    • caching

      public CachingTypes caching()
      Get specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'.
      Returns:
      the caching value
    • withCaching

      public VirtualMachineScaleSetDataDisk withCaching(CachingTypes caching)
      Set specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'.
      Parameters:
      caching - the caching value to set
      Returns:
      the VirtualMachineScaleSetDataDisk object itself.
    • writeAcceleratorEnabled

      public Boolean writeAcceleratorEnabled()
      Get specifies whether writeAccelerator should be enabled or disabled on the disk.
      Returns:
      the writeAcceleratorEnabled value
    • withWriteAcceleratorEnabled

      public VirtualMachineScaleSetDataDisk withWriteAcceleratorEnabled(Boolean writeAcceleratorEnabled)
      Set specifies whether writeAccelerator should be enabled or disabled on the disk.
      Parameters:
      writeAcceleratorEnabled - the writeAcceleratorEnabled value to set
      Returns:
      the VirtualMachineScaleSetDataDisk object itself.
    • createOption

      public DiskCreateOptionTypes createOption()
      Get the create option. Possible values include: 'FromImage', 'Empty', 'Attach'.
      Returns:
      the createOption value
    • withCreateOption

      public VirtualMachineScaleSetDataDisk withCreateOption(DiskCreateOptionTypes createOption)
      Set the create option. Possible values include: 'FromImage', 'Empty', 'Attach'.
      Parameters:
      createOption - the createOption value to set
      Returns:
      the VirtualMachineScaleSetDataDisk object itself.
    • diskSizeGB

      public Integer diskSizeGB()
      Get specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB.
      Returns:
      the diskSizeGB value
    • withDiskSizeGB

      public VirtualMachineScaleSetDataDisk withDiskSizeGB(Integer diskSizeGB)
      Set specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB.
      Parameters:
      diskSizeGB - the diskSizeGB value to set
      Returns:
      the VirtualMachineScaleSetDataDisk object itself.
    • managedDisk

      Get the managed disk parameters.
      Returns:
      the managedDisk value
    • withManagedDisk

      Set the managed disk parameters.
      Parameters:
      managedDisk - the managedDisk value to set
      Returns:
      the VirtualMachineScaleSetDataDisk object itself.
    • diskIOPSReadWrite

      public Long diskIOPSReadWrite()
      Get specifies the Read-Write IOPS for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB.
      Returns:
      the diskIOPSReadWrite value
    • withDiskIOPSReadWrite

      public VirtualMachineScaleSetDataDisk withDiskIOPSReadWrite(Long diskIOPSReadWrite)
      Set specifies the Read-Write IOPS for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB.
      Parameters:
      diskIOPSReadWrite - the diskIOPSReadWrite value to set
      Returns:
      the VirtualMachineScaleSetDataDisk object itself.
    • diskMBpsReadWrite

      public Long diskMBpsReadWrite()
      Get specifies the bandwidth in MB per second for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB.
      Returns:
      the diskMBpsReadWrite value
    • withDiskMBpsReadWrite

      public VirtualMachineScaleSetDataDisk withDiskMBpsReadWrite(Long diskMBpsReadWrite)
      Set specifies the bandwidth in MB per second for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB.
      Parameters:
      diskMBpsReadWrite - the diskMBpsReadWrite value to set
      Returns:
      the VirtualMachineScaleSetDataDisk object itself.