DiffDiskSettings Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. DiffDiskSettings
- com.
Implements
public final class DiffDiskSettings
implements JsonSerializable<DiffDiskSettings>
Describes the parameters of ephemeral disk settings that can be specified for operating system disk. **Note:** The ephemeral disk settings can only be specified for managed disk.
Constructor Summary
| Constructor | Description |
|---|---|
| DiffDiskSettings() |
Creates an instance of Diff |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Boolean |
enableFullCaching()
Get the enable |
|
static
Diff |
fromJson(JsonReader jsonReader)
Reads an instance of Diff |
|
Diff |
option()
Get the option property: Specifies the ephemeral disk settings for operating system disk. |
|
Diff |
placement()
Get the placement property: Specifies the ephemeral disk placement for operating system disk. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Diff |
withEnableFullCaching(Boolean enableFullCaching)
Set the enable |
|
Diff |
withOption(DiffDiskOptions option)
Set the option property: Specifies the ephemeral disk settings for operating system disk. |
|
Diff |
withPlacement(DiffDiskPlacement placement)
Set the placement property: Specifies the ephemeral disk placement for operating system disk. |
Methods inherited from java.lang.Object
Constructor Details
DiffDiskSettings
public DiffDiskSettings()
Creates an instance of DiffDiskSettings class.
Method Details
enableFullCaching
public Boolean enableFullCaching()
Get the enableFullCaching property: Specifies whether or not to enable full caching for this VM which will cache the OS disk locally on the host and make this VM more resilient to storage outages.
Returns:
fromJson
public static DiffDiskSettings fromJson(JsonReader jsonReader)
Reads an instance of DiffDiskSettings from the JsonReader.
Parameters:
Returns:
Throws:
option
public DiffDiskOptions option()
Get the option property: Specifies the ephemeral disk settings for operating system disk.
Returns:
placement
public DiffDiskPlacement placement()
Get the placement property: Specifies the ephemeral disk placement for operating system disk. Possible values are: **CacheDisk,** **ResourceDisk,** **NvmeDisk.** The defaulting behavior is: **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk** or **NvmeDisk** is used. Refer to the 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. Minimum api-version for NvmeDisk: 2024-03-01.
Returns:
toJson
validate
public void validate()
Validates the instance.
withEnableFullCaching
public DiffDiskSettings withEnableFullCaching(Boolean enableFullCaching)
Set the enableFullCaching property: Specifies whether or not to enable full caching for this VM which will cache the OS disk locally on the host and make this VM more resilient to storage outages.
Parameters:
Returns:
withOption
public DiffDiskSettings withOption(DiffDiskOptions option)
Set the option property: Specifies the ephemeral disk settings for operating system disk.
Parameters:
Returns:
withPlacement
public DiffDiskSettings withPlacement(DiffDiskPlacement placement)
Set the placement property: Specifies the ephemeral disk placement for operating system disk. Possible values are: **CacheDisk,** **ResourceDisk,** **NvmeDisk.** The defaulting behavior is: **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk** or **NvmeDisk** is used. Refer to the 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. Minimum api-version for NvmeDisk: 2024-03-01.
Parameters:
Returns: