Class VirtualMachineScaleSetUpdateOSDisk
java.lang.Object
com.azure.resourcemanager.compute.models.VirtualMachineScaleSetUpdateOSDisk
Describes virtual machine scale set operating system disk Update Object. This should be used for Updating VMSS OS
Disk.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncaching()Get the caching property: The caching type.Get the deleteOption property: Specifies whether OS Disk should be deleted or detached upon VMSS Flex deletion (This feature is available for VMSS with Flexible OrchestrationMode only).Get the diskSizeGB property: Specifies the size of the operating system disk in gigabytes.image()Get the image property: The Source User Image VirtualHardDisk.Get the managedDisk property: The managed disk parameters.voidvalidate()Validates the instance.Get the vhdContainers property: The list of virtual hard disk container uris.withCaching(CachingTypes caching) Set the caching property: The caching type.withDeleteOption(DiskDeleteOptionTypes deleteOption) Set the deleteOption property: Specifies whether OS Disk should be deleted or detached upon VMSS Flex deletion (This feature is available for VMSS with Flexible OrchestrationMode only).withDiskSizeGB(Integer diskSizeGB) Set the diskSizeGB property: Specifies the size of the operating system disk in gigabytes.withImage(VirtualHardDisk image) Set the image property: The Source User Image VirtualHardDisk.Set the managedDisk property: The managed disk parameters.withVhdContainers(List<String> vhdContainers) Set the vhdContainers property: The list of virtual hard disk container uris.withWriteAcceleratorEnabled(Boolean writeAcceleratorEnabled) Set the writeAcceleratorEnabled property: Specifies whether writeAccelerator should be enabled or disabled on the disk.Get the writeAcceleratorEnabled property: Specifies whether writeAccelerator should be enabled or disabled on the disk.
-
Constructor Details
-
VirtualMachineScaleSetUpdateOSDisk
public VirtualMachineScaleSetUpdateOSDisk()
-
-
Method Details
-
caching
Get the caching property: The caching type.- Returns:
- the caching value.
-
withCaching
Set the caching property: The caching type.- Parameters:
caching- the caching value to set.- Returns:
- the VirtualMachineScaleSetUpdateOSDisk object itself.
-
writeAcceleratorEnabled
Get the writeAcceleratorEnabled property: Specifies whether writeAccelerator should be enabled or disabled on the disk.- Returns:
- the writeAcceleratorEnabled value.
-
withWriteAcceleratorEnabled
public VirtualMachineScaleSetUpdateOSDisk withWriteAcceleratorEnabled(Boolean writeAcceleratorEnabled) Set the writeAcceleratorEnabled property: Specifies whether writeAccelerator should be enabled or disabled on the disk.- Parameters:
writeAcceleratorEnabled- the writeAcceleratorEnabled value to set.- Returns:
- the VirtualMachineScaleSetUpdateOSDisk object itself.
-
diskSizeGB
Get the diskSizeGB property: Specifies the size of the operating system disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB.- Returns:
- the diskSizeGB value.
-
withDiskSizeGB
Set the diskSizeGB property: Specifies the size of the operating system disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB.- Parameters:
diskSizeGB- the diskSizeGB value to set.- Returns:
- the VirtualMachineScaleSetUpdateOSDisk object itself.
-
image
Get the image property: The Source User Image VirtualHardDisk. This VirtualHardDisk will be copied before using it to attach to the Virtual Machine. If SourceImage is provided, the destination VirtualHardDisk should not exist.- Returns:
- the image value.
-
withImage
Set the image property: The Source User Image VirtualHardDisk. This VirtualHardDisk will be copied before using it to attach to the Virtual Machine. If SourceImage is provided, the destination VirtualHardDisk should not exist.- Parameters:
image- the image value to set.- Returns:
- the VirtualMachineScaleSetUpdateOSDisk object itself.
-
vhdContainers
Get the vhdContainers property: The list of virtual hard disk container uris.- Returns:
- the vhdContainers value.
-
withVhdContainers
Set the vhdContainers property: The list of virtual hard disk container uris.- Parameters:
vhdContainers- the vhdContainers value to set.- Returns:
- the VirtualMachineScaleSetUpdateOSDisk object itself.
-
managedDisk
Get the managedDisk property: The managed disk parameters.- Returns:
- the managedDisk value.
-
withManagedDisk
public VirtualMachineScaleSetUpdateOSDisk withManagedDisk(VirtualMachineScaleSetManagedDiskParameters managedDisk) Set the managedDisk property: The managed disk parameters.- Parameters:
managedDisk- the managedDisk value to set.- Returns:
- the VirtualMachineScaleSetUpdateOSDisk object itself.
-
deleteOption
Get the deleteOption property: Specifies whether OS Disk should be deleted or detached upon VMSS Flex deletion (This feature is available for VMSS with Flexible OrchestrationMode only). <br><br> Possible values: <br><br> **Delete** If this value is used, the OS disk is deleted when VMSS Flex VM is deleted.<br><br> **Detach** If this value is used, the OS disk is retained after VMSS Flex VM is deleted. <br><br> The default value is set to **Delete**. For an Ephemeral OS Disk, the default value is set to **Delete**. User cannot change the delete option for Ephemeral OS Disk.- Returns:
- the deleteOption value.
-
withDeleteOption
Set the deleteOption property: Specifies whether OS Disk should be deleted or detached upon VMSS Flex deletion (This feature is available for VMSS with Flexible OrchestrationMode only). <br><br> Possible values: <br><br> **Delete** If this value is used, the OS disk is deleted when VMSS Flex VM is deleted.<br><br> **Detach** If this value is used, the OS disk is retained after VMSS Flex VM is deleted. <br><br> The default value is set to **Delete**. For an Ephemeral OS Disk, the default value is set to **Delete**. User cannot change the delete option for Ephemeral OS Disk.- Parameters:
deleteOption- the deleteOption value to set.- Returns:
- the VirtualMachineScaleSetUpdateOSDisk object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-