public class OSDisk extends Object
Constructor and Description |
---|
OSDisk() |
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.
|
DiffDiskSettings |
diffDiskSettings()
Get specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine.
|
Integer |
diskSizeGB()
Get specifies the size of an empty data disk in gigabytes.
|
DiskEncryptionSettings |
encryptionSettings()
Get specifies the encryption settings for the OS Disk.
|
VirtualHardDisk |
image()
Get the source user image virtual hard disk.
|
ManagedDiskParameters |
managedDisk()
Get the managed disk parameters.
|
String |
name()
Get the disk name.
|
OperatingSystemTypes |
osType()
Get this property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD.
|
VirtualHardDisk |
vhd()
Get the virtual hard disk.
|
OSDisk |
withCaching(CachingTypes caching)
Set specifies the caching requirements.
|
OSDisk |
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.
|
OSDisk |
withDiffDiskSettings(DiffDiskSettings diffDiskSettings)
Set specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine.
|
OSDisk |
withDiskSizeGB(Integer diskSizeGB)
Set specifies the size of an empty data disk in gigabytes.
|
OSDisk |
withEncryptionSettings(DiskEncryptionSettings encryptionSettings)
Set specifies the encryption settings for the OS Disk.
|
OSDisk |
withImage(VirtualHardDisk image)
Set the source user image virtual hard disk.
|
OSDisk |
withManagedDisk(ManagedDiskParameters managedDisk)
Set the managed disk parameters.
|
OSDisk |
withName(String name)
Set the disk name.
|
OSDisk |
withOsType(OperatingSystemTypes osType)
Set this property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD.
|
OSDisk |
withVhd(VirtualHardDisk vhd)
Set the virtual hard disk.
|
OSDisk |
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 OperatingSystemTypes osType()
public OSDisk withOsType(OperatingSystemTypes osType)
osType
- the osType value to setpublic DiskEncryptionSettings encryptionSettings()
public OSDisk withEncryptionSettings(DiskEncryptionSettings encryptionSettings)
encryptionSettings
- the encryptionSettings value to setpublic String name()
public OSDisk withName(String name)
name
- the name value to setpublic VirtualHardDisk vhd()
public OSDisk withVhd(VirtualHardDisk vhd)
vhd
- the vhd value to setpublic VirtualHardDisk image()
public OSDisk withImage(VirtualHardDisk image)
image
- the image value to setpublic CachingTypes caching()
public OSDisk withCaching(CachingTypes caching)
caching
- the caching value to setpublic Boolean writeAcceleratorEnabled()
public OSDisk withWriteAcceleratorEnabled(Boolean writeAcceleratorEnabled)
writeAcceleratorEnabled
- the writeAcceleratorEnabled value to setpublic DiffDiskSettings diffDiskSettings()
public OSDisk withDiffDiskSettings(DiffDiskSettings diffDiskSettings)
diffDiskSettings
- the diffDiskSettings value to setpublic DiskCreateOptionTypes createOption()
public OSDisk withCreateOption(DiskCreateOptionTypes createOption)
createOption
- the createOption value to setpublic Integer diskSizeGB()
public OSDisk withDiskSizeGB(Integer diskSizeGB)
diskSizeGB
- the diskSizeGB value to setpublic ManagedDiskParameters managedDisk()
public OSDisk withManagedDisk(ManagedDiskParameters managedDisk)
managedDisk
- the managedDisk value to setCopyright © 2019. All rights reserved.