Class DataDisk
java.lang.Object
com.microsoft.azure.management.batch.DataDisk
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
-
Method Summary
Modifier and TypeMethodDescriptioncaching()
Get values are: none - The caching mode for the disk is not enabled.int
Get the diskSizeGB value.int
lun()
Get the lun is used to uniquely identify each data disk.Get if omitted, the default is "Standard_LRS".withCaching
(CachingType caching) Set values are: none - The caching mode for the disk is not enabled.withDiskSizeGB
(int diskSizeGB) Set the diskSizeGB value.withLun
(int lun) Set the lun is used to uniquely identify each data disk.withStorageAccountType
(StorageAccountType storageAccountType) Set if omitted, the default is "Standard_LRS".
-
Constructor Details
-
DataDisk
public DataDisk()
-
-
Method Details
-
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
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
Get values are: none - The caching mode for the disk is not enabled. readOnly - The caching mode for the disk is read only. readWrite - The caching mode for the disk is read and write. The default value for caching is none. 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
Set values are: none - The caching mode for the disk is not enabled. readOnly - The caching mode for the disk is read only. readWrite - The caching mode for the disk is read and write. The default value for caching is none. 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
Set the diskSizeGB value.- Parameters:
diskSizeGB
- the diskSizeGB value to set- Returns:
- the DataDisk object itself.
-
storageAccountType
Get if omitted, the default is "Standard_LRS". Values are: Standard_LRS - The data disk should use standard locally redundant storage. Premium_LRS - The data disk should use premium locally redundant storage. Possible values include: 'Standard_LRS', 'Premium_LRS'.- Returns:
- the storageAccountType value
-
withStorageAccountType
Set if omitted, the default is "Standard_LRS". Values are: Standard_LRS - The data disk should use standard locally redundant storage. Premium_LRS - The data disk should use premium locally redundant storage. Possible values include: 'Standard_LRS', 'Premium_LRS'.- Parameters:
storageAccountType
- the storageAccountType value to set- Returns:
- the DataDisk object itself.
-