OSDisk Class
- java.
lang. Object - com.
azure. resourcemanager. batch. models. OSDisk
- com.
Implements
public final class OSDisk
implements JsonSerializable<OSDisk>
Settings for the operating system disk of the virtual machine.
Constructor Summary
Constructor | Description |
---|---|
OSDisk() |
Creates an instance of OSDisk class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Caching |
caching()
Get the caching property: The type of caching to enable for the disk. |
Integer |
diskSizeGB()
Get the disk |
Diff |
ephemeralOSDiskSettings()
Get the ephemeral |
static OSDisk |
fromJson(JsonReader jsonReader)
Reads an instance of OSDisk from the Json |
Managed |
managedDisk()
Get the managed |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
OSDisk |
withCaching(CachingType caching)
Set the caching property: The type of caching to enable for the disk. |
OSDisk |
withDiskSizeGB(Integer diskSizeGB)
Set the disk |
OSDisk |
withEphemeralOSDiskSettings(DiffDiskSettings ephemeralOSDiskSettings)
Set the ephemeral |
OSDisk |
withManagedDisk(ManagedDisk managedDisk)
Set the managed |
OSDisk |
withWriteAcceleratorEnabled(Boolean writeAcceleratorEnabled)
Set the write |
Boolean |
writeAcceleratorEnabled()
Get the write |
Methods inherited from java.lang.Object
Constructor Details
OSDisk
public OSDisk()
Creates an instance of OSDisk class.
Method Details
caching
public CachingType caching()
Get the caching property: The type of caching to enable for the disk.
Returns:
diskSizeGB
public Integer diskSizeGB()
Get the diskSizeGB property: The initial disk size in GB when creating new OS disk.
Returns:
ephemeralOSDiskSettings
public DiffDiskSettings ephemeralOSDiskSettings()
Get the ephemeralOSDiskSettings property: Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine.
Returns:
fromJson
public static OSDisk fromJson(JsonReader jsonReader)
Reads an instance of OSDisk from the JsonReader.
Parameters:
Returns:
Throws:
managedDisk
public ManagedDisk managedDisk()
Get the managedDisk property: The managedDisk property.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCaching
public OSDisk withCaching(CachingType caching)
Set the caching property: The type of caching to enable for the disk.
Parameters:
Returns:
withDiskSizeGB
public OSDisk withDiskSizeGB(Integer diskSizeGB)
Set the diskSizeGB property: The initial disk size in GB when creating new OS disk.
Parameters:
Returns:
withEphemeralOSDiskSettings
public OSDisk withEphemeralOSDiskSettings(DiffDiskSettings ephemeralOSDiskSettings)
Set the ephemeralOSDiskSettings property: Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine.
Parameters:
Returns:
withManagedDisk
public OSDisk withManagedDisk(ManagedDisk managedDisk)
Set the managedDisk property: The managedDisk property.
Parameters:
Returns:
withWriteAcceleratorEnabled
public OSDisk withWriteAcceleratorEnabled(Boolean writeAcceleratorEnabled)
Set the writeAcceleratorEnabled property: Specifies whether writeAccelerator should be enabled or disabled on the disk.
Parameters:
Returns:
writeAcceleratorEnabled
public Boolean writeAcceleratorEnabled()
Get the writeAcceleratorEnabled property: Specifies whether writeAccelerator should be enabled or disabled on the disk.
Returns:
Applies to
Azure SDK for Java