Class DiskStorageProfile

java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.DiskStorageProfile
All Implemented Interfaces:
com.azure.json.JsonSerializable<DiskStorageProfile>

public final class DiskStorageProfile extends Object implements com.azure.json.JsonSerializable<DiskStorageProfile>
Kafka disk storage profile.
  • Constructor Details

    • DiskStorageProfile

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

    • dataDiskSize

      public int dataDiskSize()
      Get the dataDiskSize property: Managed Disk size in GB. The maximum supported disk size for Standard and Premium HDD/SSD is 32TB, except for Premium SSD v2, which supports up to 64TB.
      Returns:
      the dataDiskSize value.
    • withDataDiskSize

      public DiskStorageProfile withDataDiskSize(int dataDiskSize)
      Set the dataDiskSize property: Managed Disk size in GB. The maximum supported disk size for Standard and Premium HDD/SSD is 32TB, except for Premium SSD v2, which supports up to 64TB.
      Parameters:
      dataDiskSize - the dataDiskSize value to set.
      Returns:
      the DiskStorageProfile object itself.
    • dataDiskType

      public DataDiskType dataDiskType()
      Get the dataDiskType property: Managed Disk Type.
      Returns:
      the dataDiskType value.
    • withDataDiskType

      public DiskStorageProfile withDataDiskType(DataDiskType dataDiskType)
      Set the dataDiskType property: Managed Disk Type.
      Parameters:
      dataDiskType - the dataDiskType value to set.
      Returns:
      the DiskStorageProfile 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<DiskStorageProfile>
      Throws:
      IOException
    • fromJson

      public static DiskStorageProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of DiskStorageProfile from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of DiskStorageProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the DiskStorageProfile.