public class VirtualMachineScaleSetOSDisk extends Object
Constructor and Description |
---|
VirtualMachineScaleSetOSDisk() |
Modifier and Type | Method and Description |
---|---|
CachingTypes |
caching()
Get specifies the caching requirements.
|
DiskCreateOptionTypes |
createOption()
Get specifies how the virtual machines in the scale set should be created.<br><br> The only allowed value is: **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 scale set.
|
Integer |
diskSizeGB()
Get specifies the size of the operating system disk in gigabytes.
|
VirtualHardDisk |
image()
Get specifies information about the unmanaged user image to base the scale set on.
|
VirtualMachineScaleSetManagedDiskParameters |
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.
|
List<String> |
vhdContainers()
Get specifies the container urls that are used to store operating system disks for the scale set.
|
VirtualMachineScaleSetOSDisk |
withCaching(CachingTypes caching)
Set specifies the caching requirements.
|
VirtualMachineScaleSetOSDisk |
withCreateOption(DiskCreateOptionTypes createOption)
Set specifies how the virtual machines in the scale set should be created.<br><br> The only allowed value is: **FromImage** – This value is used when you are using an image to create the virtual machine.
|
VirtualMachineScaleSetOSDisk |
withDiffDiskSettings(DiffDiskSettings diffDiskSettings)
Set specifies the ephemeral disk Settings for the operating system disk used by the virtual machine scale set.
|
VirtualMachineScaleSetOSDisk |
withDiskSizeGB(Integer diskSizeGB)
Set specifies the size of the operating system disk in gigabytes.
|
VirtualMachineScaleSetOSDisk |
withImage(VirtualHardDisk image)
Set specifies information about the unmanaged user image to base the scale set on.
|
VirtualMachineScaleSetOSDisk |
withManagedDisk(VirtualMachineScaleSetManagedDiskParameters managedDisk)
Set the managed disk parameters.
|
VirtualMachineScaleSetOSDisk |
withName(String name)
Set the disk name.
|
VirtualMachineScaleSetOSDisk |
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.
|
VirtualMachineScaleSetOSDisk |
withVhdContainers(List<String> vhdContainers)
Set specifies the container urls that are used to store operating system disks for the scale set.
|
VirtualMachineScaleSetOSDisk |
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 String name()
public VirtualMachineScaleSetOSDisk withName(String name)
name
- the name value to setpublic CachingTypes caching()
public VirtualMachineScaleSetOSDisk withCaching(CachingTypes caching)
caching
- the caching value to setpublic Boolean writeAcceleratorEnabled()
public VirtualMachineScaleSetOSDisk withWriteAcceleratorEnabled(Boolean writeAcceleratorEnabled)
writeAcceleratorEnabled
- the writeAcceleratorEnabled value to setpublic DiskCreateOptionTypes createOption()
public VirtualMachineScaleSetOSDisk withCreateOption(DiskCreateOptionTypes createOption)
createOption
- the createOption value to setpublic DiffDiskSettings diffDiskSettings()
public VirtualMachineScaleSetOSDisk withDiffDiskSettings(DiffDiskSettings diffDiskSettings)
diffDiskSettings
- the diffDiskSettings value to setpublic Integer diskSizeGB()
public VirtualMachineScaleSetOSDisk withDiskSizeGB(Integer diskSizeGB)
diskSizeGB
- the diskSizeGB value to setpublic OperatingSystemTypes osType()
public VirtualMachineScaleSetOSDisk withOsType(OperatingSystemTypes osType)
osType
- the osType value to setpublic VirtualHardDisk image()
public VirtualMachineScaleSetOSDisk withImage(VirtualHardDisk image)
image
- the image value to setpublic List<String> vhdContainers()
public VirtualMachineScaleSetOSDisk withVhdContainers(List<String> vhdContainers)
vhdContainers
- the vhdContainers value to setpublic VirtualMachineScaleSetManagedDiskParameters managedDisk()
public VirtualMachineScaleSetOSDisk withManagedDisk(VirtualMachineScaleSetManagedDiskParameters managedDisk)
managedDisk
- the managedDisk value to setCopyright © 2019. All rights reserved.