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

package com.azure.resourcemanager.machinelearning.models;

import com.azure.core.annotation.Immutable;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Result of Diagnose. */
@Immutable
public final class DiagnoseResult {
    /*
     * Code for workspace setup error
     */
    @JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY)
    private String code;

    /*
     * Level of workspace setup error
     */
    @JsonProperty(value = "level", access = JsonProperty.Access.WRITE_ONLY)
    private DiagnoseResultLevel level;

    /*
     * Message of workspace setup error
     */
    @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY)
    private String message;

    /** Creates an instance of DiagnoseResult class. */
    public DiagnoseResult() {
    }

    /**
     * Get the code property: Code for workspace setup error.
     *
     * @return the code value.
     */
    public String code() {
        return this.code;
    }

    /**
     * Get the level property: Level of workspace setup error.
     *
     * @return the level value.
     */
    public DiagnoseResultLevel level() {
        return this.level;
    }

    /**
     * Get the message property: Message of workspace setup error.
     *
     * @return the message value.
     */
    public String message() {
        return this.message;
    }

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