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

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * A query response.
 * Contains the tables, columns &amp; rows resulting from a query.
 */
public class QueryResults {
    /**
     * The list of tables, columns and rows.
     */
    @JsonProperty(value = "tables", required = true)
    private List<Table> tables;

    /**
     * Get the list of tables, columns and rows.
     *
     * @return the tables value
     */
    public List<Table> tables() {
        return this.tables;
    }

    /**
     * Set the list of tables, columns and rows.
     *
     * @param tables the tables value to set
     * @return the QueryResults object itself.
     */
    public QueryResults withTables(List<Table> tables) {
        this.tables = tables;
        return this;
    }

}
