Class DiffDiskSettings
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.DiffDiskSettings
-
public final class DiffDiskSettings extends Object
Describes the parameters of ephemeral disk settings that can be specified for operating system disk. <br><br> NOTE: The ephemeral disk settings can only be specified for managed disk.
-
-
Constructor Summary
Constructors Constructor Description DiffDiskSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DiffDiskOptionsoption()Get the option property: Specifies the ephemeral disk settings for operating system disk.DiffDiskPlacementplacement()Get the placement property: Specifies the ephemeral disk placement for operating system disk.<br><br> Possible values are: <br><br> **CacheDisk** <br><br> **ResourceDisk** <br><br> Default: **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk** is used.<br><br> Refer to VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk.voidvalidate()Validates the instance.DiffDiskSettingswithOption(DiffDiskOptions option)Set the option property: Specifies the ephemeral disk settings for operating system disk.DiffDiskSettingswithPlacement(DiffDiskPlacement placement)Set the placement property: Specifies the ephemeral disk placement for operating system disk.<br><br> Possible values are: <br><br> **CacheDisk** <br><br> **ResourceDisk** <br><br> Default: **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk** is used.<br><br> Refer to VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk.
-
-
-
Method Detail
-
option
public DiffDiskOptions option()
Get the option property: Specifies the ephemeral disk settings for operating system disk.- Returns:
- the option value.
-
withOption
public DiffDiskSettings withOption(DiffDiskOptions option)
Set the option property: Specifies the ephemeral disk settings for operating system disk.- Parameters:
option- the option value to set.- Returns:
- the DiffDiskSettings object itself.
-
placement
public DiffDiskPlacement placement()
Get the placement property: Specifies the ephemeral disk placement for operating system disk.<br><br> Possible values are: <br><br> **CacheDisk** <br><br> **ResourceDisk** <br><br> Default: **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk** is used.<br><br> Refer to VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk.- Returns:
- the placement value.
-
withPlacement
public DiffDiskSettings withPlacement(DiffDiskPlacement placement)
Set the placement property: Specifies the ephemeral disk placement for operating system disk.<br><br> Possible values are: <br><br> **CacheDisk** <br><br> **ResourceDisk** <br><br> Default: **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk** is used.<br><br> Refer to VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk.- Parameters:
placement- the placement value to set.- Returns:
- the DiffDiskSettings object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-