Class DataDisks

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

public class DataDisks extends Object
Data disks settings.
  • 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

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

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