DataDisks Class
- java.
lang. Object - com.
microsoft. azure. management. batchai. DataDisks
- com.
public class DataDisks
Data disks settings.
Method Summary
Modifier and Type | Method and Description |
---|---|
Caching |
cachingType()
Get caching type for the disks. Available values are none (default), readonly, readwrite. Caching type can be set only for VM sizes supporting premium storage. Possible values include: 'none', 'readonly', 'readwrite'. |
int |
diskCount()
Get number of data disks attached to the File Server. If multiple disks attached, they will be configured in RAID level 0. |
int |
diskSizeInGB()
Get disk size in GB for the blank data disks. |
Storage |
storageAccountType()
Get type of storage account to be used on the disk. Possible values are: Standard_LRS or Premium_LRS. Premium storage account type can only be used with VM sizes supporting premium storage. Possible values include: 'Standard_LRS', 'Premium_LRS'. |
Data |
withCachingType(CachingType cachingType)
Set caching type for the disks. Available values are none (default), readonly, readwrite. Caching type can be set only for VM sizes supporting premium storage. Possible values include: 'none', 'readonly', 'readwrite'. |
Data |
withDiskCount(int diskCount)
Set number of data disks attached to the File Server. If multiple disks attached, they will be configured in RAID level 0. |
Data |
withDiskSizeInGB(int diskSizeInGB)
Set disk size in GB for the blank data disks. |
Data |
withStorageAccountType(StorageAccountType storageAccountType)
Set type of storage account to be used on the disk. Possible values are: Standard_LRS or Premium_LRS. Premium storage account type can only be used with VM sizes supporting premium storage. Possible values include: 'Standard_LRS', 'Premium_LRS'. |
Method Details
cachingType
public CachingType cachingType()
Get caching type for the disks. Available values are none (default), readonly, readwrite. Caching type can be set only for VM sizes supporting premium storage. Possible values include: 'none', 'readonly', 'readwrite'.
Returns:
diskCount
public int diskCount()
Get number of data disks attached to the File Server. If multiple disks attached, they will be configured in RAID level 0.
Returns:
diskSizeInGB
public int diskSizeInGB()
Get disk size in GB for the blank data disks.
Returns:
storageAccountType
public StorageAccountType storageAccountType()
Get type of storage account to be used on the disk. Possible values are: Standard_LRS or Premium_LRS. Premium storage account type can only be used with VM sizes supporting premium storage. Possible values include: 'Standard_LRS', 'Premium_LRS'.
Returns:
withCachingType
public DataDisks withCachingType(CachingType cachingType)
Set caching type for the disks. Available values are none (default), readonly, readwrite. Caching type can be set only for VM sizes supporting premium storage. Possible values include: 'none', 'readonly', 'readwrite'.
Parameters:
Returns:
withDiskCount
public DataDisks withDiskCount(int diskCount)
Set number of data disks attached to the File Server. If multiple disks attached, they will be configured in RAID level 0.
Parameters:
Returns:
withDiskSizeInGB
public DataDisks withDiskSizeInGB(int diskSizeInGB)
Set disk size in GB for the blank data disks.
Parameters:
Returns:
withStorageAccountType
public DataDisks withStorageAccountType(StorageAccountType storageAccountType)
Set type of storage account to be used on the disk. Possible values are: Standard_LRS or Premium_LRS. Premium storage account type can only be used with VM sizes supporting premium storage. Possible values include: 'Standard_LRS', 'Premium_LRS'.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for