Class ComputeInstanceDataDisk
- java.lang.Object
-
- com.azure.resourcemanager.machinelearning.models.ComputeInstanceDataDisk
-
public final class ComputeInstanceDataDisk extends Object
Defines an Aml Instance DataDisk.
-
-
Constructor Summary
Constructors Constructor Description ComputeInstanceDataDisk()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Caching
caching()
Get the caching property: Caching type of Data Disk.Integer
diskSizeGB()
Get the diskSizeGB property: The initial disk size in gigabytes.Integer
lun()
Get the lun property: The logical unit number.StorageAccountType
storageAccountType()
Get the storageAccountType property: type of this storage account.void
validate()
Validates the instance.ComputeInstanceDataDisk
withCaching(Caching caching)
Set the caching property: Caching type of Data Disk.ComputeInstanceDataDisk
withDiskSizeGB(Integer diskSizeGB)
Set the diskSizeGB property: The initial disk size in gigabytes.ComputeInstanceDataDisk
withLun(Integer lun)
Set the lun property: The logical unit number.ComputeInstanceDataDisk
withStorageAccountType(StorageAccountType storageAccountType)
Set the storageAccountType property: type of this storage account.
-
-
-
Method Detail
-
caching
public Caching caching()
Get the caching property: Caching type of Data Disk.- Returns:
- the caching value.
-
withCaching
public ComputeInstanceDataDisk withCaching(Caching caching)
Set the caching property: Caching type of Data Disk.- Parameters:
caching
- the caching value to set.- Returns:
- the ComputeInstanceDataDisk object itself.
-
diskSizeGB
public Integer diskSizeGB()
Get the diskSizeGB property: The initial disk size in gigabytes.- Returns:
- the diskSizeGB value.
-
withDiskSizeGB
public ComputeInstanceDataDisk withDiskSizeGB(Integer diskSizeGB)
Set the diskSizeGB property: The initial disk size in gigabytes.- Parameters:
diskSizeGB
- the diskSizeGB value to set.- Returns:
- the ComputeInstanceDataDisk object itself.
-
lun
public Integer lun()
Get the lun property: The logical unit number. The lun is used to uniquely identify each data disk. If attaching multiple disks, each should have a distinct lun.- Returns:
- the lun value.
-
withLun
public ComputeInstanceDataDisk withLun(Integer lun)
Set the lun property: The logical unit number. The lun is used to uniquely identify each data disk. If attaching multiple disks, each should have a distinct lun.- Parameters:
lun
- the lun value to set.- Returns:
- the ComputeInstanceDataDisk object itself.
-
storageAccountType
public StorageAccountType storageAccountType()
Get the storageAccountType property: type of this storage account.- Returns:
- the storageAccountType value.
-
withStorageAccountType
public ComputeInstanceDataDisk withStorageAccountType(StorageAccountType storageAccountType)
Set the storageAccountType property: type of this storage account.- Parameters:
storageAccountType
- the storageAccountType value to set.- Returns:
- the ComputeInstanceDataDisk object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-