<?php

/**
* Copyright (c) Microsoft Corporation.  All Rights Reserved.  Licensed under the MIT License.  See License in the project root for license information.
* 
* WindowsAutopilotSettings 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 XCloner\Beta\Microsoft\Graph\Model;

if (!defined('ABSPATH') && \PHP_SAPI !== 'cli') {
    die;
}
/**
* WindowsAutopilotSettings 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 WindowsAutopilotSettings extends Entity
{
    /**
     * Gets the lastManualSyncTriggerDateTime
     * Last data sync date time with DDS service.
     *
     * @return \DateTime|null The lastManualSyncTriggerDateTime
     */
    public function getLastManualSyncTriggerDateTime()
    {
        if (array_key_exists("lastManualSyncTriggerDateTime", $this->_propDict)) {
            if (is_a($this->_propDict["lastManualSyncTriggerDateTime"], "\\DateTime") || is_null($this->_propDict["lastManualSyncTriggerDateTime"])) {
                return $this->_propDict["lastManualSyncTriggerDateTime"];
            } else {
                $this->_propDict["lastManualSyncTriggerDateTime"] = new \DateTime($this->_propDict["lastManualSyncTriggerDateTime"]);
                return $this->_propDict["lastManualSyncTriggerDateTime"];
            }
        }
        return null;
    }
    /**
     * Sets the lastManualSyncTriggerDateTime
     * Last data sync date time with DDS service.
     *
     * @param \DateTime $val The lastManualSyncTriggerDateTime
     *
     * @return WindowsAutopilotSettings
     */
    public function setLastManualSyncTriggerDateTime($val)
    {
        $this->_propDict["lastManualSyncTriggerDateTime"] = $val;
        return $this;
    }
    /**
     * Gets the lastSyncDateTime
     * Last data sync date time with DDS service.
     *
     * @return \DateTime|null The lastSyncDateTime
     */
    public function getLastSyncDateTime()
    {
        if (array_key_exists("lastSyncDateTime", $this->_propDict)) {
            if (is_a($this->_propDict["lastSyncDateTime"], "\\DateTime") || is_null($this->_propDict["lastSyncDateTime"])) {
                return $this->_propDict["lastSyncDateTime"];
            } else {
                $this->_propDict["lastSyncDateTime"] = new \DateTime($this->_propDict["lastSyncDateTime"]);
                return $this->_propDict["lastSyncDateTime"];
            }
        }
        return null;
    }
    /**
     * Sets the lastSyncDateTime
     * Last data sync date time with DDS service.
     *
     * @param \DateTime $val The lastSyncDateTime
     *
     * @return WindowsAutopilotSettings
     */
    public function setLastSyncDateTime($val)
    {
        $this->_propDict["lastSyncDateTime"] = $val;
        return $this;
    }
    /**
     * Gets the syncStatus
     * Indicates the status of sync with Device data sync (DDS) service. Possible values are: unknown, inProgress, completed, failed.
     *
     * @return WindowsAutopilotSyncStatus|null The syncStatus
     */
    public function getSyncStatus()
    {
        if (array_key_exists("syncStatus", $this->_propDict)) {
            if (is_a($this->_propDict["syncStatus"], "XCloner\\Beta\\Microsoft\\Graph\\Model\\WindowsAutopilotSyncStatus") || is_null($this->_propDict["syncStatus"])) {
                return $this->_propDict["syncStatus"];
            } else {
                $this->_propDict["syncStatus"] = new WindowsAutopilotSyncStatus($this->_propDict["syncStatus"]);
                return $this->_propDict["syncStatus"];
            }
        }
        return null;
    }
    /**
     * Sets the syncStatus
     * Indicates the status of sync with Device data sync (DDS) service. Possible values are: unknown, inProgress, completed, failed.
     *
     * @param WindowsAutopilotSyncStatus $val The syncStatus
     *
     * @return WindowsAutopilotSettings
     */
    public function setSyncStatus($val)
    {
        $this->_propDict["syncStatus"] = $val;
        return $this;
    }
}
