Class VirtualMachineScaleSetDataDisk
java.lang.Object
com.microsoft.azure.management.compute.VirtualMachineScaleSetDataDisk
Describes a virtual machine scale set data disk.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncaching()
Get specifies the caching requirements.Get the create option.Get specifies the Read-Write IOPS for the managed disk.Get specifies the bandwidth in MB per second for the managed disk.Get specifies the size of an empty data disk in gigabytes.int
lun()
Get specifies the logical unit number of the data disk.Get the managed disk parameters.name()
Get the disk name.withCaching
(CachingTypes caching) Set specifies the caching requirements.withCreateOption
(DiskCreateOptionTypes createOption) Set the create option.withDiskIOPSReadWrite
(Long diskIOPSReadWrite) Set specifies the Read-Write IOPS for the managed disk.withDiskMBpsReadWrite
(Long diskMBpsReadWrite) Set specifies the bandwidth in MB per second for the managed disk.withDiskSizeGB
(Integer diskSizeGB) Set specifies the size of an empty data disk in gigabytes.withLun
(int lun) Set specifies the logical unit number of the data disk.Set the managed disk parameters.Set the disk name.withWriteAcceleratorEnabled
(Boolean writeAcceleratorEnabled) Set specifies whether writeAccelerator should be enabled or disabled on the disk.Get specifies whether writeAccelerator should be enabled or disabled on the disk.
-
Constructor Details
-
VirtualMachineScaleSetDataDisk
public VirtualMachineScaleSetDataDisk()
-
-
Method Details
-
name
Get the disk name.- Returns:
- the name value
-
withName
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
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
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
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
Get specifies whether writeAccelerator should be enabled or disabled on the disk.- Returns:
- the writeAcceleratorEnabled value
-
withWriteAcceleratorEnabled
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
Get the create option. Possible values include: 'FromImage', 'Empty', 'Attach'.- Returns:
- the createOption value
-
withCreateOption
Set the create option. Possible values include: 'FromImage', 'Empty', 'Attach'.- Parameters:
createOption
- the createOption value to set- Returns:
- the VirtualMachineScaleSetDataDisk object itself.
-
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
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
public VirtualMachineScaleSetDataDisk withManagedDisk(VirtualMachineScaleSetManagedDiskParameters managedDisk) Set the managed disk parameters.- Parameters:
managedDisk
- the managedDisk value to set- Returns:
- the VirtualMachineScaleSetDataDisk object itself.
-
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
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
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
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.
-