BatchOsDisk Class
- java.
lang. Object - com.
azure. compute. batch. models. BatchOsDisk
- com.
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 Batch |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Batch |
fromJson(JsonReader jsonReader)
Reads an instance of Batch |
|
Caching |
getCaching()
Get the caching property: Specifies the caching requirements. |
| Integer |
getDiskSizeGB()
Get the disk |
|
Batch |
getEphemeralOSDiskSettings()
Get the ephemeral |
|
Managed |
getManagedDisk()
Get the managed |
| Boolean |
isWriteAcceleratorEnabled()
Get the write |
|
Batch |
setCaching(CachingType caching)
Set the caching property: Specifies the caching requirements. |
|
Batch |
setDiskSizeGB(Integer diskSizeGB)
Set the disk |
|
Batch |
setEphemeralOSDiskSettings(BatchDiffDiskSettings ephemeralOSDiskSettings)
Set the ephemeral |
|
Batch |
setManagedDisk(ManagedDisk managedDisk)
Set the managed |
|
Batch |
setWriteAcceleratorEnabled(Boolean writeAcceleratorEnabled)
Set the write |
|
Json |
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:
Returns:
Throws:
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:
getDiskSizeGB
public Integer getDiskSizeGB()
Get the diskSizeGB property: The initial disk size in GB when creating new OS disk.
Returns:
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:
getManagedDisk
public ManagedDisk getManagedDisk()
Get the managedDisk property: The managed disk parameters.
Returns:
isWriteAcceleratorEnabled
public Boolean isWriteAcceleratorEnabled()
Get the writeAcceleratorEnabled property: Specifies whether writeAccelerator should be enabled or disabled on the disk.
Returns:
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:
Returns:
setDiskSizeGB
public BatchOsDisk setDiskSizeGB(Integer diskSizeGB)
Set the diskSizeGB property: The initial disk size in GB when creating new OS disk.
Parameters:
Returns:
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:
Returns:
setManagedDisk
public BatchOsDisk setManagedDisk(ManagedDisk managedDisk)
Set the managedDisk property: The managed disk parameters.
Parameters:
Returns:
setWriteAcceleratorEnabled
public BatchOsDisk setWriteAcceleratorEnabled(Boolean writeAcceleratorEnabled)
Set the writeAcceleratorEnabled property: Specifies whether writeAccelerator should be enabled or disabled on the disk.
Parameters:
Returns: