Class VirtualMachineScaleSetUpdateOSDisk
java.lang.Object
com.microsoft.azure.management.compute.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 type.Get specifies the size of the operating system disk in gigabytes.image()
Get the Source User Image VirtualHardDisk.Get the managed disk parameters.Get the list of virtual hard disk container uris.withCaching
(CachingTypes caching) Set the caching type.withDiskSizeGB
(Integer diskSizeGB) Set specifies the size of the operating system disk in gigabytes.withImage
(VirtualHardDisk image) Set the Source User Image VirtualHardDisk.Set the managed disk parameters.withVhdContainers
(List<String> vhdContainers) Set the list of virtual hard disk container uris.withWriteAcceleratorEnabled
(Boolean writeAcceleratorEnabled) Set specifies whether writeAccelerator should be enabled or disabled on the disk.Get specifies whether writeAccelerator should be enabled or disabled on the disk.
-
Constructor Details
-
VirtualMachineScaleSetUpdateOSDisk
public VirtualMachineScaleSetUpdateOSDisk()
-
-
Method Details
-
caching
Get the caching type. Possible values include: 'None', 'ReadOnly', 'ReadWrite'.- Returns:
- the caching value
-
withCaching
Set the caching type. Possible values include: 'None', 'ReadOnly', 'ReadWrite'.- Parameters:
caching
- the caching value to set- Returns:
- the VirtualMachineScaleSetUpdateOSDisk object itself.
-
writeAcceleratorEnabled
Get specifies whether writeAccelerator should be enabled or disabled on the disk.- Returns:
- the writeAcceleratorEnabled value
-
withWriteAcceleratorEnabled
public VirtualMachineScaleSetUpdateOSDisk withWriteAcceleratorEnabled(Boolean writeAcceleratorEnabled) Set 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 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 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 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 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 list of virtual hard disk container uris.- Returns:
- the vhdContainers value
-
withVhdContainers
Set the list of virtual hard disk container uris.- Parameters:
vhdContainers
- the vhdContainers value to set- Returns:
- the VirtualMachineScaleSetUpdateOSDisk object itself.
-
managedDisk
Get the managed disk parameters.- Returns:
- the managedDisk value
-
withManagedDisk
public VirtualMachineScaleSetUpdateOSDisk withManagedDisk(VirtualMachineScaleSetManagedDiskParameters managedDisk) Set the managed disk parameters.- Parameters:
managedDisk
- the managedDisk value to set- Returns:
- the VirtualMachineScaleSetUpdateOSDisk object itself.
-