Class NotebookPreparationError

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

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

    • NotebookPreparationError

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

    • errorMessage

      public String errorMessage()
      Get the errorMessage property: The errorMessage property.
      Returns:
      the errorMessage value.
    • withErrorMessage

      public NotebookPreparationError withErrorMessage(String errorMessage)
      Set the errorMessage property: The errorMessage property.
      Parameters:
      errorMessage - the errorMessage value to set.
      Returns:
      the NotebookPreparationError object itself.
    • statusCode

      public Integer statusCode()
      Get the statusCode property: The statusCode property.
      Returns:
      the statusCode value.
    • withStatusCode

      public NotebookPreparationError withStatusCode(Integer statusCode)
      Set the statusCode property: The statusCode property.
      Parameters:
      statusCode - the statusCode value to set.
      Returns:
      the NotebookPreparationError 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<NotebookPreparationError>
      Throws:
      IOException
    • fromJson

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