public class DataDisk extends Object
Constructor and Description |
---|
DataDisk() |
Modifier and Type | Method and Description |
---|---|
CachingTypes |
caching()
Get specifies the caching requirements.
|
DiskCreateOptionTypes |
createOption()
Get specifies how the virtual machine should be created.<br><br> Possible values are:<br><br> **Attach** – This value is used when you are using a specialized disk to create the virtual machine.<br><br> **FromImage** – This value is used when you are using an image to create the virtual machine.
|
Integer |
diskSizeGB()
Get specifies the size of an empty data disk in gigabytes.
|
VirtualHardDisk |
image()
Get the source user image virtual hard disk.
|
int |
lun()
Get specifies the logical unit number of the data disk.
|
ManagedDiskParameters |
managedDisk()
Get the managed disk parameters.
|
String |
name()
Get the disk name.
|
Boolean |
toBeDetached()
Get specifies whether the datadisk is in process of detachment from the VirtualMachine/VirtualMachineScaleset.
|
VirtualHardDisk |
vhd()
Get the virtual hard disk.
|
DataDisk |
withCaching(CachingTypes caching)
Set specifies the caching requirements.
|
DataDisk |
withCreateOption(DiskCreateOptionTypes createOption)
Set specifies how the virtual machine should be created.<br><br> Possible values are:<br><br> **Attach** – This value is used when you are using a specialized disk to create the virtual machine.<br><br> **FromImage** – This value is used when you are using an image to create the virtual machine.
|
DataDisk |
withDiskSizeGB(Integer diskSizeGB)
Set specifies the size of an empty data disk in gigabytes.
|
DataDisk |
withImage(VirtualHardDisk image)
Set the source user image virtual hard disk.
|
DataDisk |
withLun(int lun)
Set specifies the logical unit number of the data disk.
|
DataDisk |
withManagedDisk(ManagedDiskParameters managedDisk)
Set the managed disk parameters.
|
DataDisk |
withName(String name)
Set the disk name.
|
DataDisk |
withToBeDetached(Boolean toBeDetached)
Set specifies whether the datadisk is in process of detachment from the VirtualMachine/VirtualMachineScaleset.
|
DataDisk |
withVhd(VirtualHardDisk vhd)
Set the virtual hard disk.
|
DataDisk |
withWriteAcceleratorEnabled(Boolean writeAcceleratorEnabled)
Set specifies whether writeAccelerator should be enabled or disabled on the disk.
|
Boolean |
writeAcceleratorEnabled()
Get specifies whether writeAccelerator should be enabled or disabled on the disk.
|
public int lun()
public DataDisk withLun(int lun)
lun
- the lun value to setpublic String name()
public DataDisk withName(String name)
name
- the name value to setpublic VirtualHardDisk vhd()
public DataDisk withVhd(VirtualHardDisk vhd)
vhd
- the vhd value to setpublic VirtualHardDisk image()
public DataDisk withImage(VirtualHardDisk image)
image
- the image value to setpublic CachingTypes caching()
public DataDisk withCaching(CachingTypes caching)
caching
- the caching value to setpublic Boolean writeAcceleratorEnabled()
public DataDisk withWriteAcceleratorEnabled(Boolean writeAcceleratorEnabled)
writeAcceleratorEnabled
- the writeAcceleratorEnabled value to setpublic DiskCreateOptionTypes createOption()
public DataDisk withCreateOption(DiskCreateOptionTypes createOption)
createOption
- the createOption value to setpublic Integer diskSizeGB()
public DataDisk withDiskSizeGB(Integer diskSizeGB)
diskSizeGB
- the diskSizeGB value to setpublic ManagedDiskParameters managedDisk()
public DataDisk withManagedDisk(ManagedDiskParameters managedDisk)
managedDisk
- the managedDisk value to setpublic Boolean toBeDetached()
Copyright © 2019. All rights reserved.