Class PerformanceLevelCapability

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

public final class PerformanceLevelCapability extends Object implements com.azure.json.JsonSerializable<PerformanceLevelCapability>
The performance level capability.
  • Constructor Details

    • PerformanceLevelCapability

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

    • value

      public Double value()
      Get the value property: Performance level value.
      Returns:
      the value value.
    • unit

      public PerformanceLevelUnit unit()
      Get the unit property: Unit type used to measure performance level.
      Returns:
      the unit 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<PerformanceLevelCapability>
      Throws:
      IOException
    • fromJson

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