Class DiskSku

java.lang.Object
com.azure.resourcemanager.compute.models.DiskSku
All Implemented Interfaces:
com.azure.json.JsonSerializable<DiskSku>

public final class DiskSku extends Object implements com.azure.json.JsonSerializable<DiskSku>
The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, StandardSSD_ZRS, or PremiumV2_LRS.
  • Constructor Details

    • DiskSku

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

    • name

      public DiskStorageAccountTypes name()
      Get the name property: The sku name.
      Returns:
      the name value.
    • withName

      public DiskSku withName(DiskStorageAccountTypes name)
      Set the name property: The sku name.
      Parameters:
      name - the name value to set.
      Returns:
      the DiskSku object itself.
    • tier

      public String tier()
      Get the tier property: The sku tier.
      Returns:
      the tier value.
    • 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<DiskSku>
      Throws:
      IOException
    • fromJson

      public static DiskSku fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of DiskSku from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of DiskSku 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 DiskSku.