DataDisk Class

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

public class DataDisk

Settings which will be used by the data disks associated to compute nodes in the pool.

Method Summary

Modifier and Type Method and Description
CachingType caching()

Get the default value for caching is readwrite. For information about the caching options see: https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. Possible values include: 'none', 'readOnly', 'readWrite'.

int diskSizeGB()

Get the diskSizeGB value.

int lun()

Get the lun is used to uniquely identify each data disk. If attaching multiple disks, each should have a distinct lun.

StorageAccountType storageAccountType()

Get if omitted, the default is "standard_lrs". Possible values include: 'StandardLRS', 'PremiumLRS'.

DataDisk withCaching(CachingType caching)

Set the default value for caching is readwrite. For information about the caching options see: https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. Possible values include: 'none', 'readOnly', 'readWrite'.

DataDisk withDiskSizeGB(int diskSizeGB)

Set the diskSizeGB value.

DataDisk withLun(int lun)

Set the lun is used to uniquely identify each data disk. If attaching multiple disks, each should have a distinct lun.

DataDisk withStorageAccountType(StorageAccountType storageAccountType)

Set if omitted, the default is "standard_lrs". Possible values include: 'StandardLRS', 'PremiumLRS'.

Method Details

caching

public CachingType caching()

Get the default value for caching is readwrite. For information about the caching options see: https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. Possible values include: 'none', 'readOnly', 'readWrite'.

Returns:

the caching value

diskSizeGB

public int diskSizeGB()

Get the diskSizeGB value.

Returns:

the diskSizeGB value

lun

public int lun()

Get the lun is used to uniquely identify each data disk. If attaching multiple disks, each should have a distinct lun.

Returns:

the lun value

storageAccountType

public StorageAccountType storageAccountType()

Get if omitted, the default is "standard_lrs". Possible values include: 'StandardLRS', 'PremiumLRS'.

Returns:

the storageAccountType value

withCaching

public DataDisk withCaching(CachingType caching)

Set the default value for caching is readwrite. For information about the caching options see: https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. Possible values include: 'none', 'readOnly', 'readWrite'.

Parameters:

caching - the caching value to set

Returns:

the DataDisk object itself.

withDiskSizeGB

public DataDisk withDiskSizeGB(int diskSizeGB)

Set the diskSizeGB value.

Parameters:

diskSizeGB - the diskSizeGB value to set

Returns:

the DataDisk object itself.

withLun

public DataDisk withLun(int lun)

Set the lun is used to uniquely identify each data disk. If attaching multiple disks, each should have a distinct lun.

Parameters:

lun - the lun value to set

Returns:

the DataDisk object itself.

withStorageAccountType

public DataDisk withStorageAccountType(StorageAccountType storageAccountType)

Set if omitted, the default is "standard_lrs". Possible values include: 'StandardLRS', 'PremiumLRS'.

Parameters:

storageAccountType - the storageAccountType value to set

Returns:

the DataDisk object itself.

Applies to