DataDisk Class
- java.
lang. Object - com.
azure. resourcemanager. batch. models. DataDisk
- com.
Implements
public final class DataDisk
implements JsonSerializable<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
Constructor | Description |
---|---|
DataDisk() |
Creates an instance of Data |
Method Summary
Modifier and Type | Method and Description |
---|---|
Caching |
caching()
Get the caching property: Values are: none - The caching mode for the disk is not enabled. |
int |
diskSizeGB()
Get the disk |
static
Data |
fromJson(JsonReader jsonReader)
Reads an instance of Data |
int |
lun()
Get the lun property: The lun is used to uniquely identify each data disk. |
Storage |
storageAccountType()
Get the storage |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Data |
withCaching(CachingType caching)
Set the caching property: Values are: none - The caching mode for the disk is not enabled. |
Data |
withDiskSizeGB(int diskSizeGB)
Set the disk |
Data |
withLun(int lun)
Set the lun property: The lun is used to uniquely identify each data disk. |
Data |
withStorageAccountType(StorageAccountType storageAccountType)
Set the storage |
Methods inherited from java.lang.Object
Constructor Details
DataDisk
public DataDisk()
Creates an instance of DataDisk class.
Method Details
caching
public CachingType caching()
Get the caching property: 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/.
Returns:
diskSizeGB
public int diskSizeGB()
Get the diskSizeGB property: The initial disk size in GB when creating new data disk.
Returns:
fromJson
public static DataDisk fromJson(JsonReader jsonReader)
Reads an instance of DataDisk from the JsonReader.
Parameters:
Returns:
Throws:
lun
public int lun()
Get the lun property: 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:
storageAccountType
public StorageAccountType storageAccountType()
Get the storageAccountType property: 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.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCaching
public DataDisk withCaching(CachingType caching)
Set the caching property: 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/.
Parameters:
Returns:
withDiskSizeGB
public DataDisk withDiskSizeGB(int diskSizeGB)
Set the diskSizeGB property: The initial disk size in GB when creating new data disk.
Parameters:
Returns:
withLun
public DataDisk withLun(int lun)
Set the lun property: 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:
Returns:
withStorageAccountType
public DataDisk withStorageAccountType(StorageAccountType storageAccountType)
Set the storageAccountType property: 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.
Parameters:
Returns:
Applies to
Azure SDK for Java