DataDisks Class

  • java.lang.Object
    • com.microsoft.azure.management.batchai.DataDisks

public class DataDisks

Data disks settings.

Method Summary

Modifier and Type Method and Description
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'.

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.

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'.

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'.

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.

DataDisks withDiskSizeInGB(int diskSizeInGB)

Set disk size in GB for the blank data disks.

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'.

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:

the cachingType value

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

diskSizeInGB

public int diskSizeInGB()

Get disk size in GB for the blank data disks.

Returns:

the diskSizeInGB value

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:

the storageAccountType value

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:

cachingType - the cachingType value to set

Returns:

the DataDisks object itself.

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:

diskCount - the diskCount value to set

Returns:

the DataDisks object itself.

withDiskSizeInGB

public DataDisks withDiskSizeInGB(int diskSizeInGB)

Set disk size in GB for the blank data disks.

Parameters:

diskSizeInGB - the diskSizeInGB value to set

Returns:

the DataDisks object itself.

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:

storageAccountType - the storageAccountType value to set

Returns:

the DataDisks object itself.

Applies to