NotebookPreparationError Class

  • java.lang.Object
    • com.azure.resourcemanager.machinelearning.models.NotebookPreparationError

Implements

public final class NotebookPreparationError
implements JsonSerializable<NotebookPreparationError>

The NotebookPreparationError model.

Constructor Summary

Constructor Description
NotebookPreparationError()

Creates an instance of NotebookPreparationError class.

Method Summary

Modifier and Type Method and Description
String errorMessage()

Get the errorMessage property: The errorMessage property.

static NotebookPreparationError fromJson(JsonReader jsonReader)

Reads an instance of NotebookPreparationError from the JsonReader.

Integer statusCode()

Get the statusCode property: The statusCode property.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

NotebookPreparationError withErrorMessage(String errorMessage)

Set the errorMessage property: The errorMessage property.

NotebookPreparationError withStatusCode(Integer statusCode)

Set the statusCode property: The statusCode property.

Methods inherited from java.lang.Object

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.

fromJson

public static NotebookPreparationError fromJson(JsonReader jsonReader)

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.

statusCode

public Integer statusCode()

Get the statusCode property: The statusCode property.

Returns:

the statusCode value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

Applies to