<?php
/**
* Copyright (c) Microsoft Corporation.  All Rights Reserved.  Licensed under the MIT License.  See License in the project root for license information.
* 
* SynchronizationJobApplicationParameters 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 Microsoft\Graph\Model;
/**
* SynchronizationJobApplicationParameters 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 SynchronizationJobApplicationParameters extends Entity
{
    /**
    * Gets the ruleId
    * The identifier of the synchronizationRule to be applied. This rule ID is defined in the schema for a given synchronization job or template.
    *
    * @return string|null The ruleId
    */
    public function getRuleId()
    {
        if (array_key_exists("ruleId", $this->_propDict)) {
            return $this->_propDict["ruleId"];
        } else {
            return null;
        }
    }

    /**
    * Sets the ruleId
    * The identifier of the synchronizationRule to be applied. This rule ID is defined in the schema for a given synchronization job or template.
    *
    * @param string $val The value of the ruleId
    *
    * @return SynchronizationJobApplicationParameters
    */
    public function setRuleId($val)
    {
        $this->_propDict["ruleId"] = $val;
        return $this;
    }

    /**
    * Gets the subjects
    * The identifiers of one or more objects to which a synchronizationJob is to be applied.
    *
    * @return SynchronizationJobSubject|null The subjects
    */
    public function getSubjects()
    {
        if (array_key_exists("subjects", $this->_propDict)) {
            if (is_a($this->_propDict["subjects"], "\Microsoft\Graph\Model\SynchronizationJobSubject") || is_null($this->_propDict["subjects"])) {
                return $this->_propDict["subjects"];
            } else {
                $this->_propDict["subjects"] = new SynchronizationJobSubject($this->_propDict["subjects"]);
                return $this->_propDict["subjects"];
            }
        }
        return null;
    }

    /**
    * Sets the subjects
    * The identifiers of one or more objects to which a synchronizationJob is to be applied.
    *
    * @param SynchronizationJobSubject $val The value to assign to the subjects
    *
    * @return SynchronizationJobApplicationParameters The SynchronizationJobApplicationParameters
    */
    public function setSubjects($val)
    {
        $this->_propDict["subjects"] = $val;
         return $this;
    }
}
