// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.machinelearningservices.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The NotebookPreparationError model. */
@Fluent
public final class NotebookPreparationError {
    @JsonIgnore private final ClientLogger logger = new ClientLogger(NotebookPreparationError.class);

    /*
     * The errorMessage property.
     */
    @JsonProperty(value = "errorMessage")
    private String errorMessage;

    /*
     * The statusCode property.
     */
    @JsonProperty(value = "statusCode")
    private Integer statusCode;

    /**
     * Get the errorMessage property: The errorMessage property.
     *
     * @return the errorMessage value.
     */
    public String errorMessage() {
        return this.errorMessage;
    }

    /**
     * Set the errorMessage property: The errorMessage property.
     *
     * @param errorMessage the errorMessage value to set.
     * @return the NotebookPreparationError object itself.
     */
    public NotebookPreparationError withErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
        return this;
    }

    /**
     * Get the statusCode property: The statusCode property.
     *
     * @return the statusCode value.
     */
    public Integer statusCode() {
        return this.statusCode;
    }

    /**
     * Set the statusCode property: The statusCode property.
     *
     * @param statusCode the statusCode value to set.
     * @return the NotebookPreparationError object itself.
     */
    public NotebookPreparationError withStatusCode(Integer statusCode) {
        this.statusCode = statusCode;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
