Class ValidateResponseError

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

public final class ValidateResponseError extends Object implements com.azure.json.JsonSerializable<ValidateResponseError>
Error details for when validation fails.
  • Constructor Details

    • ValidateResponseError

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

    • code

      public String code()
      Get the code property: Validation error code.
      Returns:
      the code value.
    • withCode

      public ValidateResponseError withCode(String code)
      Set the code property: Validation error code.
      Parameters:
      code - the code value to set.
      Returns:
      the ValidateResponseError object itself.
    • message

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

      public ValidateResponseError withMessage(String message)
      Set the message property: Validation error message.
      Parameters:
      message - the message value to set.
      Returns:
      the ValidateResponseError object itself.
    • 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<ValidateResponseError>
      Throws:
      IOException
    • fromJson

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