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

package com.azure.ai.metricsadvisor.models;

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

/** The MetricsAdvisorError model. */
@Fluent
public final class MetricsAdvisorError {
    /*
     * The message property.
     */
    @JsonProperty(value = "message")
    private String message;

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

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

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

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

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