public final class VirtualMachineScaleSetUpdateOSDisk extends Object
Constructor and Description |
---|
VirtualMachineScaleSetUpdateOSDisk() |
Modifier and Type | Method and Description |
---|---|
CachingTypes |
caching()
Get the caching property: The caching type.
|
Integer |
diskSizeGB()
Get the diskSizeGB property: Specifies the size of the operating system disk in gigabytes.
|
VirtualHardDisk |
image()
Get the image property: The Source User Image VirtualHardDisk.
|
VirtualMachineScaleSetManagedDiskParameters |
managedDisk()
Get the managedDisk property: The managed disk parameters.
|
void |
validate()
Validates the instance.
|
List<String> |
vhdContainers()
Get the vhdContainers property: The list of virtual hard disk container uris.
|
VirtualMachineScaleSetUpdateOSDisk |
withCaching(CachingTypes caching)
Set the caching property: The caching type.
|
VirtualMachineScaleSetUpdateOSDisk |
withDiskSizeGB(Integer diskSizeGB)
Set the diskSizeGB property: Specifies the size of the operating system disk in gigabytes.
|
VirtualMachineScaleSetUpdateOSDisk |
withImage(VirtualHardDisk image)
Set the image property: The Source User Image VirtualHardDisk.
|
VirtualMachineScaleSetUpdateOSDisk |
withManagedDisk(VirtualMachineScaleSetManagedDiskParameters managedDisk)
Set the managedDisk property: The managed disk parameters.
|
VirtualMachineScaleSetUpdateOSDisk |
withVhdContainers(List<String> vhdContainers)
Set the vhdContainers property: The list of virtual hard disk container uris.
|
VirtualMachineScaleSetUpdateOSDisk |
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 CachingTypes caching()
public VirtualMachineScaleSetUpdateOSDisk withCaching(CachingTypes caching)
caching
- the caching value to set.public Boolean writeAcceleratorEnabled()
public VirtualMachineScaleSetUpdateOSDisk withWriteAcceleratorEnabled(Boolean writeAcceleratorEnabled)
writeAcceleratorEnabled
- the writeAcceleratorEnabled value to set.public Integer diskSizeGB()
public VirtualMachineScaleSetUpdateOSDisk withDiskSizeGB(Integer diskSizeGB)
diskSizeGB
- the diskSizeGB value to set.public VirtualHardDisk image()
public VirtualMachineScaleSetUpdateOSDisk withImage(VirtualHardDisk image)
image
- the image value to set.public List<String> vhdContainers()
public VirtualMachineScaleSetUpdateOSDisk withVhdContainers(List<String> vhdContainers)
vhdContainers
- the vhdContainers value to set.public VirtualMachineScaleSetManagedDiskParameters managedDisk()
public VirtualMachineScaleSetUpdateOSDisk 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.