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 Summary
ConstructorsConstructorDescriptionCreates an instance of NotebookPreparationError class. -
Method Summary
Modifier and TypeMethodDescriptionGet the errorMessage property: The errorMessage property.static NotebookPreparationErrorfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of NotebookPreparationError from the JsonReader.Get the statusCode property: The statusCode property.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withErrorMessage(String errorMessage) Set the errorMessage property: The errorMessage property.withStatusCode(Integer statusCode) Set the statusCode property: The statusCode property.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
-
NotebookPreparationError
public NotebookPreparationError()Creates an instance of NotebookPreparationError class.
-
-
Method Details
-
errorMessage
Get the errorMessage property: The errorMessage property.- Returns:
- the errorMessage value.
-
withErrorMessage
Set the errorMessage property: The errorMessage property.- Parameters:
errorMessage- the errorMessage value to set.- Returns:
- the NotebookPreparationError object itself.
-
statusCode
Get the statusCode property: The statusCode property.- Returns:
- the statusCode value.
-
withStatusCode
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
- Specified by:
toJsonin interfacecom.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.
-