Class ValidateResponseInner

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

public final class ValidateResponseInner extends Object implements com.azure.json.JsonSerializable<ValidateResponseInner>
Describes the result of resource validation.
  • Constructor Details

    • ValidateResponseInner

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

    • status

      public String status()
      Get the status property: Result of validation.
      Returns:
      the status value.
    • withStatus

      public ValidateResponseInner withStatus(String status)
      Set the status property: Result of validation.
      Parameters:
      status - the status value to set.
      Returns:
      the ValidateResponseInner object itself.
    • error

      public ValidateResponseError error()
      Get the error property: Error details for the case when validation fails.
      Returns:
      the error value.
    • withError

      public ValidateResponseInner withError(ValidateResponseError error)
      Set the error property: Error details for the case when validation fails.
      Parameters:
      error - the error value to set.
      Returns:
      the ValidateResponseInner 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<ValidateResponseInner>
      Throws:
      IOException
    • fromJson

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