<?php
/**
* Copyright (c) Microsoft Corporation.  All Rights Reserved.  Licensed under the MIT License.  See License in the project root for license information.
* 
* Room 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;

/**
* Room 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 Room extends Place
{
    /**
    * Gets the audioDeviceName
    * Specifies the name of the audio device in the room.
    *
    * @return string|null The audioDeviceName
    */
    public function getAudioDeviceName()
    {
        if (array_key_exists("audioDeviceName", $this->_propDict)) {
            return $this->_propDict["audioDeviceName"];
        } else {
            return null;
        }
    }

    /**
    * Sets the audioDeviceName
    * Specifies the name of the audio device in the room.
    *
    * @param string $val The audioDeviceName
    *
    * @return Room
    */
    public function setAudioDeviceName($val)
    {
        $this->_propDict["audioDeviceName"] = $val;
        return $this;
    }

    /**
    * Gets the bookingType
    * Type of room. Possible values are standard, and reserved.
    *
    * @return BookingType|null The bookingType
    */
    public function getBookingType()
    {
        if (array_key_exists("bookingType", $this->_propDict)) {
            if (is_a($this->_propDict["bookingType"], "\Microsoft\Graph\Model\BookingType") || is_null($this->_propDict["bookingType"])) {
                return $this->_propDict["bookingType"];
            } else {
                $this->_propDict["bookingType"] = new BookingType($this->_propDict["bookingType"]);
                return $this->_propDict["bookingType"];
            }
        }
        return null;
    }

    /**
    * Sets the bookingType
    * Type of room. Possible values are standard, and reserved.
    *
    * @param BookingType $val The bookingType
    *
    * @return Room
    */
    public function setBookingType($val)
    {
        $this->_propDict["bookingType"] = $val;
        return $this;
    }

    /**
    * Gets the building
    * Specifies the building name or building number that the room is in.
    *
    * @return string|null The building
    */
    public function getBuilding()
    {
        if (array_key_exists("building", $this->_propDict)) {
            return $this->_propDict["building"];
        } else {
            return null;
        }
    }

    /**
    * Sets the building
    * Specifies the building name or building number that the room is in.
    *
    * @param string $val The building
    *
    * @return Room
    */
    public function setBuilding($val)
    {
        $this->_propDict["building"] = $val;
        return $this;
    }

    /**
    * Gets the capacity
    * Specifies the capacity of the room.
    *
    * @return int|null The capacity
    */
    public function getCapacity()
    {
        if (array_key_exists("capacity", $this->_propDict)) {
            return $this->_propDict["capacity"];
        } else {
            return null;
        }
    }

    /**
    * Sets the capacity
    * Specifies the capacity of the room.
    *
    * @param int $val The capacity
    *
    * @return Room
    */
    public function setCapacity($val)
    {
        $this->_propDict["capacity"] = intval($val);
        return $this;
    }

    /**
    * Gets the displayDeviceName
    * Specifies the name of the display device in the room.
    *
    * @return string|null The displayDeviceName
    */
    public function getDisplayDeviceName()
    {
        if (array_key_exists("displayDeviceName", $this->_propDict)) {
            return $this->_propDict["displayDeviceName"];
        } else {
            return null;
        }
    }

    /**
    * Sets the displayDeviceName
    * Specifies the name of the display device in the room.
    *
    * @param string $val The displayDeviceName
    *
    * @return Room
    */
    public function setDisplayDeviceName($val)
    {
        $this->_propDict["displayDeviceName"] = $val;
        return $this;
    }

    /**
    * Gets the emailAddress
    * Email address of the room.
    *
    * @return string|null The emailAddress
    */
    public function getEmailAddress()
    {
        if (array_key_exists("emailAddress", $this->_propDict)) {
            return $this->_propDict["emailAddress"];
        } else {
            return null;
        }
    }

    /**
    * Sets the emailAddress
    * Email address of the room.
    *
    * @param string $val The emailAddress
    *
    * @return Room
    */
    public function setEmailAddress($val)
    {
        $this->_propDict["emailAddress"] = $val;
        return $this;
    }

    /**
    * Gets the floorLabel
    * Specifies a descriptive label for the floor, for example, P.
    *
    * @return string|null The floorLabel
    */
    public function getFloorLabel()
    {
        if (array_key_exists("floorLabel", $this->_propDict)) {
            return $this->_propDict["floorLabel"];
        } else {
            return null;
        }
    }

    /**
    * Sets the floorLabel
    * Specifies a descriptive label for the floor, for example, P.
    *
    * @param string $val The floorLabel
    *
    * @return Room
    */
    public function setFloorLabel($val)
    {
        $this->_propDict["floorLabel"] = $val;
        return $this;
    }

    /**
    * Gets the floorNumber
    * Specifies the floor number that the room is on.
    *
    * @return int|null The floorNumber
    */
    public function getFloorNumber()
    {
        if (array_key_exists("floorNumber", $this->_propDict)) {
            return $this->_propDict["floorNumber"];
        } else {
            return null;
        }
    }

    /**
    * Sets the floorNumber
    * Specifies the floor number that the room is on.
    *
    * @param int $val The floorNumber
    *
    * @return Room
    */
    public function setFloorNumber($val)
    {
        $this->_propDict["floorNumber"] = intval($val);
        return $this;
    }

    /**
    * Gets the isWheelChairAccessible
    * Specifies whether the room is wheelchair accessible.
    *
    * @return bool|null The isWheelChairAccessible
    */
    public function getIsWheelChairAccessible()
    {
        if (array_key_exists("isWheelChairAccessible", $this->_propDict)) {
            return $this->_propDict["isWheelChairAccessible"];
        } else {
            return null;
        }
    }

    /**
    * Sets the isWheelChairAccessible
    * Specifies whether the room is wheelchair accessible.
    *
    * @param bool $val The isWheelChairAccessible
    *
    * @return Room
    */
    public function setIsWheelChairAccessible($val)
    {
        $this->_propDict["isWheelChairAccessible"] = boolval($val);
        return $this;
    }

    /**
    * Gets the label
    * Specifies a descriptive label for the room, for example, a number or name.
    *
    * @return string|null The label
    */
    public function getLabel()
    {
        if (array_key_exists("label", $this->_propDict)) {
            return $this->_propDict["label"];
        } else {
            return null;
        }
    }

    /**
    * Sets the label
    * Specifies a descriptive label for the room, for example, a number or name.
    *
    * @param string $val The label
    *
    * @return Room
    */
    public function setLabel($val)
    {
        $this->_propDict["label"] = $val;
        return $this;
    }

    /**
    * Gets the nickname
    * Specifies a nickname for the room, for example, 'conf room'.
    *
    * @return string|null The nickname
    */
    public function getNickname()
    {
        if (array_key_exists("nickname", $this->_propDict)) {
            return $this->_propDict["nickname"];
        } else {
            return null;
        }
    }

    /**
    * Sets the nickname
    * Specifies a nickname for the room, for example, 'conf room'.
    *
    * @param string $val The nickname
    *
    * @return Room
    */
    public function setNickname($val)
    {
        $this->_propDict["nickname"] = $val;
        return $this;
    }

    /**
    * Gets the tags
    * Specifies additional features of the room, for example, details like the type of view or furniture type.
    *
    * @return string|null The tags
    */
    public function getTags()
    {
        if (array_key_exists("tags", $this->_propDict)) {
            return $this->_propDict["tags"];
        } else {
            return null;
        }
    }

    /**
    * Sets the tags
    * Specifies additional features of the room, for example, details like the type of view or furniture type.
    *
    * @param string $val The tags
    *
    * @return Room
    */
    public function setTags($val)
    {
        $this->_propDict["tags"] = $val;
        return $this;
    }

    /**
    * Gets the videoDeviceName
    * Specifies the name of the video device in the room.
    *
    * @return string|null The videoDeviceName
    */
    public function getVideoDeviceName()
    {
        if (array_key_exists("videoDeviceName", $this->_propDict)) {
            return $this->_propDict["videoDeviceName"];
        } else {
            return null;
        }
    }

    /**
    * Sets the videoDeviceName
    * Specifies the name of the video device in the room.
    *
    * @param string $val The videoDeviceName
    *
    * @return Room
    */
    public function setVideoDeviceName($val)
    {
        $this->_propDict["videoDeviceName"] = $val;
        return $this;
    }

}
