OSDisk Class

  • java.lang.Object
    • com.microsoft.azure.batch.protocol.models.OSDisk

public class OSDisk

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

Constructor Summary

Constructor Description
OSDisk()

Method Summary

Modifier and Type Method and Description
CachingType caching()

Get possible values include: 'none', 'readOnly', 'readWrite'.

Integer diskSizeGB()

Get the diskSizeGB value.

DiffDiskSettings ephemeralOSDiskSettings()

Get the ephemeralOSDiskSettings value.

ManagedDisk managedDisk()

Get the managedDisk value.

OSDisk withCaching(CachingType caching)

Set possible values include: 'none', 'readOnly', 'readWrite'.

OSDisk withDiskSizeGB(Integer diskSizeGB)

Set the diskSizeGB value.

OSDisk withEphemeralOSDiskSettings(DiffDiskSettings ephemeralOSDiskSettings)

Set the ephemeralOSDiskSettings value.

OSDisk withManagedDisk(ManagedDisk managedDisk)

Set the managedDisk value.

OSDisk withWriteAcceleratorEnabled(Boolean writeAcceleratorEnabled)

Set the writeAcceleratorEnabled value.

Boolean writeAcceleratorEnabled()

Get the writeAcceleratorEnabled value.

Methods inherited from java.lang.Object

Constructor Details

OSDisk

public OSDisk()

Method Details

caching

public CachingType caching()

Get possible values include: 'none', 'readOnly', 'readWrite'.

Returns:

the caching value

diskSizeGB

public Integer diskSizeGB()

Get the diskSizeGB value.

Returns:

the diskSizeGB value

ephemeralOSDiskSettings

public DiffDiskSettings ephemeralOSDiskSettings()

Get the ephemeralOSDiskSettings value.

Returns:

the ephemeralOSDiskSettings value

managedDisk

public ManagedDisk managedDisk()

Get the managedDisk value.

Returns:

the managedDisk value

withCaching

public OSDisk withCaching(CachingType caching)

Set possible values include: 'none', 'readOnly', 'readWrite'.

Parameters:

caching - the caching value to set

Returns:

the OSDisk object itself.

withDiskSizeGB

public OSDisk withDiskSizeGB(Integer diskSizeGB)

Set the diskSizeGB value.

Parameters:

diskSizeGB - the diskSizeGB value to set

Returns:

the OSDisk object itself.

withEphemeralOSDiskSettings

public OSDisk withEphemeralOSDiskSettings(DiffDiskSettings ephemeralOSDiskSettings)

Set the ephemeralOSDiskSettings value.

Parameters:

ephemeralOSDiskSettings - the ephemeralOSDiskSettings value to set

Returns:

the OSDisk object itself.

withManagedDisk

public OSDisk withManagedDisk(ManagedDisk managedDisk)

Set the managedDisk value.

Parameters:

managedDisk - the managedDisk value to set

Returns:

the OSDisk object itself.

withWriteAcceleratorEnabled

public OSDisk withWriteAcceleratorEnabled(Boolean writeAcceleratorEnabled)

Set the writeAcceleratorEnabled value.

Parameters:

writeAcceleratorEnabled - the writeAcceleratorEnabled value to set

Returns:

the OSDisk object itself.

writeAcceleratorEnabled

public Boolean writeAcceleratorEnabled()

Get the writeAcceleratorEnabled value.

Returns:

the writeAcceleratorEnabled value

Applies to