public final class VirtualMachineScaleSetOSDisk extends Object
Constructor and Description |
---|
VirtualMachineScaleSetOSDisk() |
Modifier and Type | Method and Description |
---|---|
CachingTypes |
caching()
Get the caching property: Specifies the caching requirements.
|
DiskCreateOptionTypes |
createOption()
Get the createOption property: 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 the diffDiskSettings property: Specifies the ephemeral disk Settings for the operating system disk used by
the virtual machine scale set.
|
Integer |
diskSizeGB()
Get the diskSizeGB property: Specifies the size of the operating system disk in gigabytes.
|
VirtualHardDisk |
image()
Get the image property: Specifies information about the unmanaged user image to base the scale set on.
|
VirtualMachineScaleSetManagedDiskParameters |
managedDisk()
Get the managedDisk property: The managed disk parameters.
|
String |
name()
Get the name property: The disk name.
|
OperatingSystemTypes |
osType()
Get the osType property: 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.
|
void |
validate()
Validates the instance.
|
List<String> |
vhdContainers()
Get the vhdContainers property: Specifies the container urls that are used to store operating system disks for
the scale set.
|
VirtualMachineScaleSetOSDisk |
withCaching(CachingTypes caching)
Set the caching property: Specifies the caching requirements.
|
VirtualMachineScaleSetOSDisk |
withCreateOption(DiskCreateOptionTypes createOption)
Set the createOption property: 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 the diffDiskSettings property: Specifies the ephemeral disk Settings for the operating system disk used by
the virtual machine scale set.
|
VirtualMachineScaleSetOSDisk |
withDiskSizeGB(Integer diskSizeGB)
Set the diskSizeGB property: Specifies the size of the operating system disk in gigabytes.
|
VirtualMachineScaleSetOSDisk |
withImage(VirtualHardDisk image)
Set the image property: Specifies information about the unmanaged user image to base the scale set on.
|
VirtualMachineScaleSetOSDisk |
withManagedDisk(VirtualMachineScaleSetManagedDiskParameters managedDisk)
Set the managedDisk property: The managed disk parameters.
|
VirtualMachineScaleSetOSDisk |
withName(String name)
Set the name property: The disk name.
|
VirtualMachineScaleSetOSDisk |
withOsType(OperatingSystemTypes osType)
Set the osType property: 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 the vhdContainers property: Specifies the container urls that are used to store operating system disks for
the scale set.
|
VirtualMachineScaleSetOSDisk |
withWriteAcceleratorEnabled(Boolean writeAcceleratorEnabled)
Set the writeAcceleratorEnabled property: Specifies whether writeAccelerator should be enabled or disabled on the
disk.
|
Boolean |
writeAcceleratorEnabled()
Get the writeAcceleratorEnabled property: Specifies whether writeAccelerator should be enabled or disabled on the
disk.
|
public String name()
public VirtualMachineScaleSetOSDisk withName(String name)
name
- the name value to set.public CachingTypes caching()
public VirtualMachineScaleSetOSDisk withCaching(CachingTypes caching)
caching
- the caching value to set.public Boolean writeAcceleratorEnabled()
public VirtualMachineScaleSetOSDisk withWriteAcceleratorEnabled(Boolean writeAcceleratorEnabled)
writeAcceleratorEnabled
- the writeAcceleratorEnabled value to set.public DiskCreateOptionTypes createOption()
public VirtualMachineScaleSetOSDisk withCreateOption(DiskCreateOptionTypes createOption)
createOption
- the createOption value to set.public DiffDiskSettings diffDiskSettings()
public VirtualMachineScaleSetOSDisk withDiffDiskSettings(DiffDiskSettings diffDiskSettings)
diffDiskSettings
- the diffDiskSettings value to set.public Integer diskSizeGB()
public VirtualMachineScaleSetOSDisk withDiskSizeGB(Integer diskSizeGB)
diskSizeGB
- the diskSizeGB value to set.public OperatingSystemTypes osType()
public VirtualMachineScaleSetOSDisk withOsType(OperatingSystemTypes osType)
osType
- the osType value to set.public VirtualHardDisk image()
public VirtualMachineScaleSetOSDisk withImage(VirtualHardDisk image)
image
- the image value to set.public List<String> vhdContainers()
public VirtualMachineScaleSetOSDisk withVhdContainers(List<String> vhdContainers)
vhdContainers
- the vhdContainers value to set.public VirtualMachineScaleSetManagedDiskParameters managedDisk()
public VirtualMachineScaleSetOSDisk withManagedDisk(VirtualMachineScaleSetManagedDiskParameters managedDisk)
managedDisk
- the managedDisk value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.