/**
 * 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 java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Context associated with Qna.
 */
public class ContextDTO {
    /**
     * To mark if a prompt is relevant only with a previous question or not.
     * true - Do not include this QnA as search result for queries without
     * context
     * false - ignores context and includes this QnA in search result.
     */
    @JsonProperty(value = "isContextOnly")
    private Boolean isContextOnly;

    /**
     * List of prompts associated with the answer.
     */
    @JsonProperty(value = "prompts")
    private List<PromptDTO> prompts;

    /**
     * Get the isContextOnly value.
     *
     * @return the isContextOnly value
     */
    public Boolean isContextOnly() {
        return this.isContextOnly;
    }

    /**
     * Set the isContextOnly value.
     *
     * @param isContextOnly the isContextOnly value to set
     * @return the ContextDTO object itself.
     */
    public ContextDTO withIsContextOnly(Boolean isContextOnly) {
        this.isContextOnly = isContextOnly;
        return this;
    }

    /**
     * Get the prompts value.
     *
     * @return the prompts value
     */
    public List<PromptDTO> prompts() {
        return this.prompts;
    }

    /**
     * Set the prompts value.
     *
     * @param prompts the prompts value to set
     * @return the ContextDTO object itself.
     */
    public ContextDTO withPrompts(List<PromptDTO> prompts) {
        this.prompts = prompts;
        return this;
    }

}
