<?php
/**
* Copyright (c) Microsoft Corporation.  All Rights Reserved.  Licensed under the MIT License.  See License in the project root for license information.
* 
* HuntingQueryResults File
* PHP version 7
*
* @category  Library
* @package   Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license   https://opensource.org/licenses/MIT MIT License
* @link      https://graph.microsoft.com
*/
namespace Beta\Microsoft\Graph\SecurityNamespace\Model;
/**
* HuntingQueryResults class
*
* @category  Model
* @package   Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license   https://opensource.org/licenses/MIT MIT License
* @link      https://graph.microsoft.com
*/
class HuntingQueryResults extends \Beta\Microsoft\Graph\Model\Entity
{

    /**
    * Gets the results
    * The results of the hunting query.
    *
    * @return HuntingRowResult|null The results
    */
    public function getResults()
    {
        if (array_key_exists("results", $this->_propDict)) {
            if (is_a($this->_propDict["results"], "\Beta\Microsoft\Graph\SecurityNamespace\Model\HuntingRowResult") || is_null($this->_propDict["results"])) {
                return $this->_propDict["results"];
            } else {
                $this->_propDict["results"] = new HuntingRowResult($this->_propDict["results"]);
                return $this->_propDict["results"];
            }
        }
        return null;
    }

    /**
    * Sets the results
    * The results of the hunting query.
    *
    * @param HuntingRowResult $val The value to assign to the results
    *
    * @return HuntingQueryResults The HuntingQueryResults
    */
    public function setResults($val)
    {
        $this->_propDict["results"] = $val;
         return $this;
    }

    /**
    * Gets the schema
    * The schema for the response.
    *
    * @return SinglePropertySchema|null The schema
    */
    public function getSchema()
    {
        if (array_key_exists("schema", $this->_propDict)) {
            if (is_a($this->_propDict["schema"], "\Beta\Microsoft\Graph\SecurityNamespace\Model\SinglePropertySchema") || is_null($this->_propDict["schema"])) {
                return $this->_propDict["schema"];
            } else {
                $this->_propDict["schema"] = new SinglePropertySchema($this->_propDict["schema"]);
                return $this->_propDict["schema"];
            }
        }
        return null;
    }

    /**
    * Sets the schema
    * The schema for the response.
    *
    * @param SinglePropertySchema $val The value to assign to the schema
    *
    * @return HuntingQueryResults The HuntingQueryResults
    */
    public function setSchema($val)
    {
        $this->_propDict["schema"] = $val;
         return $this;
    }
}
