/**
 * 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;

/**
 * PATCH body schema for Update operation in Update Kb.
 */
public class UpdateKbContentsDTO {
    /**
     * Friendly name for the knowledgebase.
     */
    @JsonProperty(value = "name")
    private String name;

    /**
     * List of Q-A (UpdateQnaDTO) to be added to the knowledgebase.
     */
    @JsonProperty(value = "qnaList")
    private List<UpdateQnaDTO> qnaList;

    /**
     * List of existing URLs to be refreshed. The content will be extracted
     * again and re-indexed.
     */
    @JsonProperty(value = "urls")
    private List<String> urls;

    /**
     * Default answer sent to user if no good match is found in the KB.
     */
    @JsonProperty(value = "defaultAnswer")
    private String defaultAnswer;

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

    /**
     * Set the name value.
     *
     * @param name the name value to set
     * @return the UpdateKbContentsDTO object itself.
     */
    public UpdateKbContentsDTO withName(String name) {
        this.name = name;
        return this;
    }

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

    /**
     * Set the qnaList value.
     *
     * @param qnaList the qnaList value to set
     * @return the UpdateKbContentsDTO object itself.
     */
    public UpdateKbContentsDTO withQnaList(List<UpdateQnaDTO> qnaList) {
        this.qnaList = qnaList;
        return this;
    }

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

    /**
     * Set the urls value.
     *
     * @param urls the urls value to set
     * @return the UpdateKbContentsDTO object itself.
     */
    public UpdateKbContentsDTO withUrls(List<String> urls) {
        this.urls = urls;
        return this;
    }

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

    /**
     * Set the defaultAnswer value.
     *
     * @param defaultAnswer the defaultAnswer value to set
     * @return the UpdateKbContentsDTO object itself.
     */
    public UpdateKbContentsDTO withDefaultAnswer(String defaultAnswer) {
        this.defaultAnswer = defaultAnswer;
        return this;
    }

}
