<?php

/**
* Copyright (c) Microsoft Corporation.  All Rights Reserved.  Licensed under the MIT License.  See License in the project root for license information.
* 
* MeetingParticipantInfo 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;
}
/**
* MeetingParticipantInfo 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 MeetingParticipantInfo extends Entity
{
    /**
     * Gets the identity
     * Identity information of the participant.
     *
     * @return IdentitySet|null The identity
     */
    public function getIdentity()
    {
        if (array_key_exists("identity", $this->_propDict)) {
            if (is_a($this->_propDict["identity"], "XCloner\\Beta\\Microsoft\\Graph\\Model\\IdentitySet") || is_null($this->_propDict["identity"])) {
                return $this->_propDict["identity"];
            } else {
                $this->_propDict["identity"] = new IdentitySet($this->_propDict["identity"]);
                return $this->_propDict["identity"];
            }
        }
        return null;
    }
    /**
     * Sets the identity
     * Identity information of the participant.
     *
     * @param IdentitySet $val The value to assign to the identity
     *
     * @return MeetingParticipantInfo The MeetingParticipantInfo
     */
    public function setIdentity($val)
    {
        $this->_propDict["identity"] = $val;
        return $this;
    }
    /**
     * Gets the role
     * Specifies the participant's role in the meeting.
     *
     * @return OnlineMeetingRole|null The role
     */
    public function getRole()
    {
        if (array_key_exists("role", $this->_propDict)) {
            if (is_a($this->_propDict["role"], "XCloner\\Beta\\Microsoft\\Graph\\Model\\OnlineMeetingRole") || is_null($this->_propDict["role"])) {
                return $this->_propDict["role"];
            } else {
                $this->_propDict["role"] = new OnlineMeetingRole($this->_propDict["role"]);
                return $this->_propDict["role"];
            }
        }
        return null;
    }
    /**
     * Sets the role
     * Specifies the participant's role in the meeting.
     *
     * @param OnlineMeetingRole $val The value to assign to the role
     *
     * @return MeetingParticipantInfo The MeetingParticipantInfo
     */
    public function setRole($val)
    {
        $this->_propDict["role"] = $val;
        return $this;
    }
    /**
     * Gets the upn
     * User principal name of the participant.
     *
     * @return string|null The upn
     */
    public function getUpn()
    {
        if (array_key_exists("upn", $this->_propDict)) {
            return $this->_propDict["upn"];
        } else {
            return null;
        }
    }
    /**
     * Sets the upn
     * User principal name of the participant.
     *
     * @param string $val The value of the upn
     *
     * @return MeetingParticipantInfo
     */
    public function setUpn($val)
    {
        $this->_propDict["upn"] = $val;
        return $this;
    }
}
