/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 */

package com.microsoft.azure.cognitiveservices.language.luis.runtime.models;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Error information returned by the API.
 */
public class APIError {
    /**
     * HTTP Status code.
     */
    @JsonProperty(value = "statusCode")
    private String statusCode;

    /**
     * Cause of the error.
     */
    @JsonProperty(value = "message")
    private String message;

    /**
     * Get the statusCode value.
     *
     * @return the statusCode value
     */
    public String statusCode() {
        return this.statusCode;
    }

    /**
     * Set the statusCode value.
     *
     * @param statusCode the statusCode value to set
     * @return the APIError object itself.
     */
    public APIError withStatusCode(String statusCode) {
        this.statusCode = statusCode;
        return this;
    }

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

    /**
     * Set the message value.
     *
     * @param message the message value to set
     * @return the APIError object itself.
     */
    public APIError withMessage(String message) {
        this.message = message;
        return this;
    }

}
