<?php

/**
* Copyright (c) Microsoft Corporation.  All Rights Reserved.  Licensed under the MIT License.  See License in the project root for license information.
* 
* EducationIdentityMatchingOptions 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;
}
/**
* EducationIdentityMatchingOptions 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 EducationIdentityMatchingOptions extends Entity
{
    /**
     * Gets the appliesTo
     * The user role type to assign to the license. Possible values are: student, teacher, faculty.
     *
     * @return EducationUserRole|null The appliesTo
     */
    public function getAppliesTo()
    {
        if (array_key_exists("appliesTo", $this->_propDict)) {
            if (is_a($this->_propDict["appliesTo"], "XCloner\\Beta\\Microsoft\\Graph\\Model\\EducationUserRole") || is_null($this->_propDict["appliesTo"])) {
                return $this->_propDict["appliesTo"];
            } else {
                $this->_propDict["appliesTo"] = new EducationUserRole($this->_propDict["appliesTo"]);
                return $this->_propDict["appliesTo"];
            }
        }
        return null;
    }
    /**
     * Sets the appliesTo
     * The user role type to assign to the license. Possible values are: student, teacher, faculty.
     *
     * @param EducationUserRole $val The value to assign to the appliesTo
     *
     * @return EducationIdentityMatchingOptions The EducationIdentityMatchingOptions
     */
    public function setAppliesTo($val)
    {
        $this->_propDict["appliesTo"] = $val;
        return $this;
    }
    /**
     * Gets the sourcePropertyName
     * The name of the source property, which should be a field name in the source data. This property is case-sensitive.
     *
     * @return string|null The sourcePropertyName
     */
    public function getSourcePropertyName()
    {
        if (array_key_exists("sourcePropertyName", $this->_propDict)) {
            return $this->_propDict["sourcePropertyName"];
        } else {
            return null;
        }
    }
    /**
     * Sets the sourcePropertyName
     * The name of the source property, which should be a field name in the source data. This property is case-sensitive.
     *
     * @param string $val The value of the sourcePropertyName
     *
     * @return EducationIdentityMatchingOptions
     */
    public function setSourcePropertyName($val)
    {
        $this->_propDict["sourcePropertyName"] = $val;
        return $this;
    }
    /**
     * Gets the targetDomain
     * The domain to suffix with the source property to match on the target. If provided as null, the source property will be used to match with the target property.
     *
     * @return string|null The targetDomain
     */
    public function getTargetDomain()
    {
        if (array_key_exists("targetDomain", $this->_propDict)) {
            return $this->_propDict["targetDomain"];
        } else {
            return null;
        }
    }
    /**
     * Sets the targetDomain
     * The domain to suffix with the source property to match on the target. If provided as null, the source property will be used to match with the target property.
     *
     * @param string $val The value of the targetDomain
     *
     * @return EducationIdentityMatchingOptions
     */
    public function setTargetDomain($val)
    {
        $this->_propDict["targetDomain"] = $val;
        return $this;
    }
    /**
     * Gets the targetPropertyName
     * The name of the target property, which should be a valid property in Azure AD. This property is case-sensitive.
     *
     * @return string|null The targetPropertyName
     */
    public function getTargetPropertyName()
    {
        if (array_key_exists("targetPropertyName", $this->_propDict)) {
            return $this->_propDict["targetPropertyName"];
        } else {
            return null;
        }
    }
    /**
     * Sets the targetPropertyName
     * The name of the target property, which should be a valid property in Azure AD. This property is case-sensitive.
     *
     * @param string $val The value of the targetPropertyName
     *
     * @return EducationIdentityMatchingOptions
     */
    public function setTargetPropertyName($val)
    {
        $this->_propDict["targetPropertyName"] = $val;
        return $this;
    }
}
