Class MetricsAdvisorError

java.lang.Object
com.azure.ai.metricsadvisor.models.MetricsAdvisorError
All Implemented Interfaces:
com.azure.json.JsonSerializable<MetricsAdvisorError>

public final class MetricsAdvisorError extends Object implements com.azure.json.JsonSerializable<MetricsAdvisorError>
The MetricsAdvisorError model.
  • Constructor Details

    • MetricsAdvisorError

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

    • getMessage

      public String getMessage()
      Get the message property: The message property.
      Returns:
      the message value.
    • setMessage

      public MetricsAdvisorError setMessage(String message)
      Set the message property: The message property.
      Parameters:
      message - the message value to set.
      Returns:
      the MetricsAdvisorError object itself.
    • getCode

      public String getCode()
      Get the code property: The code property.
      Returns:
      the code value.
    • setCode

      public MetricsAdvisorError setCode(String code)
      Set the code property: The code property.
      Parameters:
      code - the code value to set.
      Returns:
      the MetricsAdvisorError object itself.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<MetricsAdvisorError>
      Throws:
      IOException
    • fromJson

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