Class OSDisk
java.lang.Object
com.azure.resourcemanager.batch.models.OSDisk
Settings for the operating system disk of the virtual machine.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncaching()Get the caching property: The type of caching to enable for the disk.Get the diskSizeGB property: The initial disk size in GB when creating new OS disk.Get the ephemeralOSDiskSettings property: Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine.Get the managedDisk property: The managedDisk property.voidvalidate()Validates the instance.withCaching(CachingType caching) Set the caching property: The type of caching to enable for the disk.withDiskSizeGB(Integer diskSizeGB) Set the diskSizeGB property: The initial disk size in GB when creating new OS disk.withEphemeralOSDiskSettings(DiffDiskSettings ephemeralOSDiskSettings) Set the ephemeralOSDiskSettings property: Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine.withManagedDisk(ManagedDisk managedDisk) Set the managedDisk property: The managedDisk property.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
-
OSDisk
public OSDisk()Creates an instance of OSDisk class.
-
-
Method Details
-
ephemeralOSDiskSettings
Get the ephemeralOSDiskSettings property: Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine.- Returns:
- the ephemeralOSDiskSettings value.
-
withEphemeralOSDiskSettings
Set the ephemeralOSDiskSettings property: Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine.- Parameters:
ephemeralOSDiskSettings- the ephemeralOSDiskSettings value to set.- Returns:
- the OSDisk object itself.
-
caching
Get the caching property: The type of caching to enable for the disk.- Returns:
- the caching value.
-
withCaching
Set the caching property: The type of caching to enable for the disk.- Parameters:
caching- the caching value to set.- Returns:
- the OSDisk object itself.
-
managedDisk
Get the managedDisk property: The managedDisk property.- Returns:
- the managedDisk value.
-
withManagedDisk
Set the managedDisk property: The managedDisk property.- Parameters:
managedDisk- the managedDisk value to set.- Returns:
- the OSDisk object itself.
-
diskSizeGB
Get the diskSizeGB property: The initial disk size in GB when creating new OS disk.- Returns:
- the diskSizeGB value.
-
withDiskSizeGB
Set the diskSizeGB property: The initial disk size in GB when creating new OS disk.- Parameters:
diskSizeGB- the diskSizeGB value to set.- Returns:
- the OSDisk object itself.
-
writeAcceleratorEnabled
Get the writeAcceleratorEnabled property: Specifies whether writeAccelerator should be enabled or disabled on the disk.- Returns:
- the writeAcceleratorEnabled value.
-
withWriteAcceleratorEnabled
Set the writeAcceleratorEnabled property: Specifies whether writeAccelerator should be enabled or disabled on the disk.- Parameters:
writeAcceleratorEnabled- the writeAcceleratorEnabled value to set.- Returns:
- the OSDisk object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-