Class AzureResourceErrorInfo

java.lang.Object
com.azure.resourcemanager.appservice.models.ErrorInfo
com.azure.resourcemanager.appservice.models.AzureResourceErrorInfo
All Implemented Interfaces:
com.azure.json.JsonSerializable<ErrorInfo>

public final class AzureResourceErrorInfo extends ErrorInfo
The azure resource error info.
  • Constructor Details

    • AzureResourceErrorInfo

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

    • message

      public String message()
      Get the message property: The error message.
      Returns:
      the message value.
    • withMessage

      public AzureResourceErrorInfo withMessage(String message)
      Set the message property: The error message.
      Parameters:
      message - the message value to set.
      Returns:
      the AzureResourceErrorInfo object itself.
    • details

      public List<AzureResourceErrorInfo> details()
      Get the details property: The error details.
      Returns:
      the details value.
    • withDetails

      public AzureResourceErrorInfo withDetails(List<AzureResourceErrorInfo> details)
      Set the details property: The error details.
      Parameters:
      details - the details value to set.
      Returns:
      the AzureResourceErrorInfo object itself.
    • withCode

      public AzureResourceErrorInfo withCode(String code)
      Set the code property: The error code.
      Overrides:
      withCode in class ErrorInfo
      Parameters:
      code - the code value to set.
      Returns:
      the ErrorInfo object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class ErrorInfo
      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<ErrorInfo>
      Overrides:
      toJson in class ErrorInfo
      Throws:
      IOException
    • fromJson

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