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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MetricsAdvisorErrorfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AzureTableParameter from the JsonReader.getCode()Get the code property: The code property.Get the message property: The message property.Set the code property: The code property.setMessage(String message) Set the message property: The message property.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
MetricsAdvisorError
public MetricsAdvisorError()Creates an instance of MetricsAdvisorError class.
-
-
Method Details
-
getMessage
Get the message property: The message property.- Returns:
- the message value.
-
setMessage
Set the message property: The message property.- Parameters:
message- the message value to set.- Returns:
- the MetricsAdvisorError object itself.
-
getCode
Get the code property: The code property.- Returns:
- the code value.
-
setCode
Set the code property: The code property.- Parameters:
code- the code value to set.- Returns:
- the MetricsAdvisorError object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<MetricsAdvisorError>- Throws:
IOException
-
fromJson
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.
-