Share via


BatchOsDisk Class

  • java.lang.Object
    • com.azure.compute.batch.models.BatchOsDisk

Implements

public final class BatchOsDisk
implements JsonSerializable<BatchOsDisk>

Settings for the operating system disk of the compute node (VM).

Constructor Summary

Constructor Description
BatchOsDisk()

Creates an instance of BatchOsDisk class.

Method Summary

Modifier and Type Method and Description
static BatchOsDisk fromJson(JsonReader jsonReader)

Reads an instance of BatchOsDisk from the JsonReader.

CachingType getCaching()

Get the caching property: Specifies the caching requirements.

Integer getDiskSizeGB()

Get the diskSizeGB property: The initial disk size in GB when creating new OS disk.

BatchDiffDiskSettings getEphemeralOSDiskSettings()

Get the ephemeralOSDiskSettings property: Specifies the ephemeral Disk Settings for the operating system disk used by the compute node (VM).

ManagedDisk getManagedDisk()

Get the managedDisk property: The managed disk parameters.

Boolean isWriteAcceleratorEnabled()

Get the writeAcceleratorEnabled property: Specifies whether writeAccelerator should be enabled or disabled on the disk.

BatchOsDisk setCaching(CachingType caching)

Set the caching property: Specifies the caching requirements.

BatchOsDisk setDiskSizeGB(Integer diskSizeGB)

Set the diskSizeGB property: The initial disk size in GB when creating new OS disk.

BatchOsDisk setEphemeralOSDiskSettings(BatchDiffDiskSettings ephemeralOSDiskSettings)

Set the ephemeralOSDiskSettings property: Specifies the ephemeral Disk Settings for the operating system disk used by the compute node (VM).

BatchOsDisk setManagedDisk(ManagedDisk managedDisk)

Set the managedDisk property: The managed disk parameters.

BatchOsDisk setWriteAcceleratorEnabled(Boolean writeAcceleratorEnabled)

Set the writeAcceleratorEnabled property: Specifies whether writeAccelerator should be enabled or disabled on the disk.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

BatchOsDisk

public BatchOsDisk()

Creates an instance of BatchOsDisk class.

Method Details

fromJson

public static BatchOsDisk fromJson(JsonReader jsonReader)

Reads an instance of BatchOsDisk from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BatchOsDisk if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the BatchOsDisk.

getCaching

public CachingType getCaching()

Get the caching property: Specifies the caching requirements. Possible values are: None, ReadOnly, ReadWrite. The default values are: None for Standard storage. ReadOnly for Premium storage.

Returns:

the caching value.

getDiskSizeGB

public Integer getDiskSizeGB()

Get the diskSizeGB property: The initial disk size in GB when creating new OS disk.

Returns:

the diskSizeGB value.

getEphemeralOSDiskSettings

public BatchDiffDiskSettings getEphemeralOSDiskSettings()

Get the ephemeralOSDiskSettings property: Specifies the ephemeral Disk Settings for the operating system disk used by the compute node (VM).

Returns:

the ephemeralOSDiskSettings value.

getManagedDisk

public ManagedDisk getManagedDisk()

Get the managedDisk property: The managed disk parameters.

Returns:

the managedDisk value.

isWriteAcceleratorEnabled

public Boolean isWriteAcceleratorEnabled()

Get the writeAcceleratorEnabled property: Specifies whether writeAccelerator should be enabled or disabled on the disk.

Returns:

the writeAcceleratorEnabled value.

setCaching

public BatchOsDisk setCaching(CachingType caching)

Set the caching property: Specifies the caching requirements. Possible values are: None, ReadOnly, ReadWrite. The default values are: None for Standard storage. ReadOnly for Premium storage.

Parameters:

caching - the caching value to set.

Returns:

the BatchOsDisk object itself.

setDiskSizeGB

public BatchOsDisk setDiskSizeGB(Integer diskSizeGB)

Set the diskSizeGB property: The initial disk size in GB when creating new OS disk.

Parameters:

diskSizeGB - the diskSizeGB value to set.

Returns:

the BatchOsDisk object itself.

setEphemeralOSDiskSettings

public BatchOsDisk setEphemeralOSDiskSettings(BatchDiffDiskSettings ephemeralOSDiskSettings)

Set the ephemeralOSDiskSettings property: Specifies the ephemeral Disk Settings for the operating system disk used by the compute node (VM).

Parameters:

ephemeralOSDiskSettings - the ephemeralOSDiskSettings value to set.

Returns:

the BatchOsDisk object itself.

setManagedDisk

public BatchOsDisk setManagedDisk(ManagedDisk managedDisk)

Set the managedDisk property: The managed disk parameters.

Parameters:

managedDisk - the managedDisk value to set.

Returns:

the BatchOsDisk object itself.

setWriteAcceleratorEnabled

public BatchOsDisk setWriteAcceleratorEnabled(Boolean writeAcceleratorEnabled)

Set the writeAcceleratorEnabled property: Specifies whether writeAccelerator should be enabled or disabled on the disk.

Parameters:

writeAcceleratorEnabled - the writeAcceleratorEnabled value to set.

Returns:

the BatchOsDisk object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to