/**
 * 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.knowledge.qnamaker.models;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Context object with previous QnA's information.
 */
public class QueryContextDTO {
    /**
     * Previous QnA Id - qnaId of the top result.
     */
    @JsonProperty(value = "previousQnaId")
    private Integer previousQnaId;

    /**
     * Previous user query.
     */
    @JsonProperty(value = "previousUserQuery")
    private String previousUserQuery;

    /**
     * Get the previousQnaId value.
     *
     * @return the previousQnaId value
     */
    public Integer previousQnaId() {
        return this.previousQnaId;
    }

    /**
     * Set the previousQnaId value.
     *
     * @param previousQnaId the previousQnaId value to set
     * @return the QueryContextDTO object itself.
     */
    public QueryContextDTO withPreviousQnaId(Integer previousQnaId) {
        this.previousQnaId = previousQnaId;
        return this;
    }

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

    /**
     * Set the previousUserQuery value.
     *
     * @param previousUserQuery the previousUserQuery value to set
     * @return the QueryContextDTO object itself.
     */
    public QueryContextDTO withPreviousUserQuery(String previousUserQuery) {
        this.previousUserQuery = previousUserQuery;
        return this;
    }

}
