Class ComputeInstanceDataDisk
java.lang.Object
com.azure.resourcemanager.machinelearning.models.ComputeInstanceDataDisk
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ComputeInstanceDataDisk>
public final class ComputeInstanceDataDisk
extends Object
implements com.azure.json.JsonSerializable<ComputeInstanceDataDisk>
Defines an Aml Instance DataDisk.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ComputeInstanceDataDisk class. -
Method Summary
Modifier and TypeMethodDescriptioncaching()Get the caching property: Caching type of Data Disk.Get the diskSizeGB property: The initial disk size in gigabytes.static ComputeInstanceDataDiskfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ComputeInstanceDataDisk from the JsonReader.lun()Get the lun property: The lun is used to uniquely identify each data disk.Get the storageAccountType property: type of this storage account.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCaching(Caching caching) Set the caching property: Caching type of Data Disk.withDiskSizeGB(Integer diskSizeGB) Set the diskSizeGB property: The initial disk size in gigabytes.Set the lun property: The lun is used to uniquely identify each data disk.withStorageAccountType(StorageAccountType storageAccountType) Set the storageAccountType property: type of this storage account.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ComputeInstanceDataDisk
public ComputeInstanceDataDisk()Creates an instance of ComputeInstanceDataDisk class.
-
-
Method Details
-
caching
Get the caching property: Caching type of Data Disk.- Returns:
- the caching value.
-
withCaching
Set the caching property: Caching type of Data Disk.- Parameters:
caching- the caching value to set.- Returns:
- the ComputeInstanceDataDisk object itself.
-
diskSizeGB
Get the diskSizeGB property: The initial disk size in gigabytes.- Returns:
- the diskSizeGB value.
-
withDiskSizeGB
Set the diskSizeGB property: The initial disk size in gigabytes.- Parameters:
diskSizeGB- the diskSizeGB value to set.- Returns:
- the ComputeInstanceDataDisk object itself.
-
lun
Get the lun property: 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
Set the lun property: 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
Get the storageAccountType property: type of this storage account.- Returns:
- the storageAccountType value.
-
withStorageAccountType
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ComputeInstanceDataDisk>- Throws:
IOException
-
fromJson
public static ComputeInstanceDataDisk fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ComputeInstanceDataDisk from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ComputeInstanceDataDisk if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ComputeInstanceDataDisk.
-