Class DataDisk
- java.lang.Object
-
- com.microsoft.azure.batch.protocol.models.DataDisk
-
public class DataDisk extends Object
Settings which will be used by the data disks associated to Compute Nodes in the Pool. When using attached data disks, you need to mount and format the disks from within a VM to use them.
-
-
Constructor Summary
Constructors Constructor Description DataDisk()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CachingType
caching()
Get the default value for caching is readwrite.int
diskSizeGB()
Get the diskSizeGB value.int
lun()
Get the lun is used to uniquely identify each data disk.StorageAccountType
storageAccountType()
Get if omitted, the default is "standard_lrs".DataDisk
withCaching(CachingType caching)
Set the default value for caching is readwrite.DataDisk
withDiskSizeGB(int diskSizeGB)
Set the diskSizeGB value.DataDisk
withLun(int lun)
Set the lun is used to uniquely identify each data disk.DataDisk
withStorageAccountType(StorageAccountType storageAccountType)
Set if omitted, the default is "standard_lrs".
-
-
-
Method Detail
-
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. The value must be between 0 and 63, inclusive.- Returns:
- the lun value
-
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. The value must be between 0 and 63, inclusive.- Parameters:
lun
- the lun value to set- Returns:
- the DataDisk object itself.
-
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
-
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.
-
diskSizeGB
public int diskSizeGB()
Get the diskSizeGB value.- Returns:
- the diskSizeGB value
-
withDiskSizeGB
public DataDisk withDiskSizeGB(int diskSizeGB)
Set the diskSizeGB value.- Parameters:
diskSizeGB
- the diskSizeGB value to set- Returns:
- the DataDisk object itself.
-
storageAccountType
public StorageAccountType storageAccountType()
Get if omitted, the default is "standard_lrs". Possible values include: 'StandardLRS', 'PremiumLRS'.- Returns:
- the storageAccountType value
-
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.
-
-