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 Details

    • ComputeInstanceDataDisk

      public ComputeInstanceDataDisk()
      Creates an instance of ComputeInstanceDataDisk class.
  • Method Details

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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.