Class DataDisks
java.lang.Object
com.microsoft.azure.management.batchai.DataDisks
Data disks settings.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet caching type for the disks.int
Get number of data disks attached to the File Server.int
Get disk size in GB for the blank data disks.Get type of storage account to be used on the disk.withCachingType
(CachingType cachingType) Set caching type for the disks.withDiskCount
(int diskCount) Set number of data disks attached to the File Server.withDiskSizeInGB
(int diskSizeInGB) Set disk size in GB for the blank data disks.withStorageAccountType
(StorageAccountType storageAccountType) Set type of storage account to be used on the disk.
-
Constructor Details
-
DataDisks
public DataDisks()
-
-
Method Details
-
diskSizeInGB
public int diskSizeInGB()Get disk size in GB for the blank data disks.- Returns:
- the diskSizeInGB value
-
withDiskSizeInGB
Set disk size in GB for the blank data disks.- Parameters:
diskSizeInGB
- the diskSizeInGB value to set- Returns:
- the DataDisks object itself.
-
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:
- the cachingType value
-
withCachingType
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:
cachingType
- the cachingType value to set- Returns:
- the DataDisks object itself.
-
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:
- the diskCount value
-
withDiskCount
Set number of data disks attached to the File Server. If multiple disks attached, they will be configured in RAID level 0.- Parameters:
diskCount
- the diskCount value to set- Returns:
- the DataDisks object itself.
-
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:
- the storageAccountType value
-
withStorageAccountType
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:
storageAccountType
- the storageAccountType value to set- Returns:
- the DataDisks object itself.
-