<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* PrinterLocation 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;
/**
* PrinterLocation 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 PrinterLocation extends Entity
{
/**
* Gets the altitudeInMeters
* The altitude, in meters, that the printer is located at.
*
* @return int|null The altitudeInMeters
*/
public function getAltitudeInMeters()
{
if (array_key_exists("altitudeInMeters", $this->_propDict)) {
return $this->_propDict["altitudeInMeters"];
} else {
return null;
}
}
/**
* Sets the altitudeInMeters
* The altitude, in meters, that the printer is located at.
*
* @param int $val The value of the altitudeInMeters
*
* @return PrinterLocation
*/
public function setAltitudeInMeters($val)
{
$this->_propDict["altitudeInMeters"] = $val;
return $this;
}
/**
* Gets the building
* The building that the printer is located 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
* The building that the printer is located in.
*
* @param string $val The value of the building
*
* @return PrinterLocation
*/
public function setBuilding($val)
{
$this->_propDict["building"] = $val;
return $this;
}
/**
* Gets the city
* The city that the printer is located in.
*
* @return string|null The city
*/
public function getCity()
{
if (array_key_exists("city", $this->_propDict)) {
return $this->_propDict["city"];
} else {
return null;
}
}
/**
* Sets the city
* The city that the printer is located in.
*
* @param string $val The value of the city
*
* @return PrinterLocation
*/
public function setCity($val)
{
$this->_propDict["city"] = $val;
return $this;
}
/**
* Gets the countryOrRegion
* The country or region that the printer is located in.
*
* @return string|null The countryOrRegion
*/
public function getCountryOrRegion()
{
if (array_key_exists("countryOrRegion", $this->_propDict)) {
return $this->_propDict["countryOrRegion"];
} else {
return null;
}
}
/**
* Sets the countryOrRegion
* The country or region that the printer is located in.
*
* @param string $val The value of the countryOrRegion
*
* @return PrinterLocation
*/
public function setCountryOrRegion($val)
{
$this->_propDict["countryOrRegion"] = $val;
return $this;
}
/**
* Gets the floor
* The floor that the printer is located on. Only numerical values are supported right now.
*
* @return string|null The floor
*/
public function getFloor()
{
if (array_key_exists("floor", $this->_propDict)) {
return $this->_propDict["floor"];
} else {
return null;
}
}
/**
* Sets the floor
* The floor that the printer is located on. Only numerical values are supported right now.
*
* @param string $val The value of the floor
*
* @return PrinterLocation
*/
public function setFloor($val)
{
$this->_propDict["floor"] = $val;
return $this;
}
/**
* Gets the floorDescription
* The description of the floor that the printer is located on.
*
* @return string|null The floorDescription
*/
public function getFloorDescription()
{
if (array_key_exists("floorDescription", $this->_propDict)) {
return $this->_propDict["floorDescription"];
} else {
return null;
}
}
/**
* Sets the floorDescription
* The description of the floor that the printer is located on.
*
* @param string $val The value of the floorDescription
*
* @return PrinterLocation
*/
public function setFloorDescription($val)
{
$this->_propDict["floorDescription"] = $val;
return $this;
}
/**
* Gets the latitude
* The latitude that the printer is located at.
*
* @return float|null The latitude
*/
public function getLatitude()
{
if (array_key_exists("latitude", $this->_propDict)) {
return $this->_propDict["latitude"];
} else {
return null;
}
}
/**
* Sets the latitude
* The latitude that the printer is located at.
*
* @param float $val The value of the latitude
*
* @return PrinterLocation
*/
public function setLatitude($val)
{
$this->_propDict["latitude"] = $val;
return $this;
}
/**
* Gets the longitude
* The longitude that the printer is located at.
*
* @return float|null The longitude
*/
public function getLongitude()
{
if (array_key_exists("longitude", $this->_propDict)) {
return $this->_propDict["longitude"];
} else {
return null;
}
}
/**
* Sets the longitude
* The longitude that the printer is located at.
*
* @param float $val The value of the longitude
*
* @return PrinterLocation
*/
public function setLongitude($val)
{
$this->_propDict["longitude"] = $val;
return $this;
}
/**
* Gets the organization
* The organizational hierarchy that the printer belongs to. The elements should be in hierarchical order.
*
* @return string|null The organization
*/
public function getOrganization()
{
if (array_key_exists("organization", $this->_propDict)) {
return $this->_propDict["organization"];
} else {
return null;
}
}
/**
* Sets the organization
* The organizational hierarchy that the printer belongs to. The elements should be in hierarchical order.
*
* @param string $val The value of the organization
*
* @return PrinterLocation
*/
public function setOrganization($val)
{
$this->_propDict["organization"] = $val;
return $this;
}
/**
* Gets the postalCode
* The postal code that the printer is located in.
*
* @return string|null The postalCode
*/
public function getPostalCode()
{
if (array_key_exists("postalCode", $this->_propDict)) {
return $this->_propDict["postalCode"];
} else {
return null;
}
}
/**
* Sets the postalCode
* The postal code that the printer is located in.
*
* @param string $val The value of the postalCode
*
* @return PrinterLocation
*/
public function setPostalCode($val)
{
$this->_propDict["postalCode"] = $val;
return $this;
}
/**
* Gets the roomDescription
* The description of the room that the printer is located in.
*
* @return string|null The roomDescription
*/
public function getRoomDescription()
{
if (array_key_exists("roomDescription", $this->_propDict)) {
return $this->_propDict["roomDescription"];
} else {
return null;
}
}
/**
* Sets the roomDescription
* The description of the room that the printer is located in.
*
* @param string $val The value of the roomDescription
*
* @return PrinterLocation
*/
public function setRoomDescription($val)
{
$this->_propDict["roomDescription"] = $val;
return $this;
}
/**
* Gets the roomName
* The room that the printer is located in. Only numerical values are supported right now.
*
* @return string|null The roomName
*/
public function getRoomName()
{
if (array_key_exists("roomName", $this->_propDict)) {
return $this->_propDict["roomName"];
} else {
return null;
}
}
/**
* Sets the roomName
* The room that the printer is located in. Only numerical values are supported right now.
*
* @param string $val The value of the roomName
*
* @return PrinterLocation
*/
public function setRoomName($val)
{
$this->_propDict["roomName"] = $val;
return $this;
}
/**
* Gets the site
* The site that the printer is located in.
*
* @return string|null The site
*/
public function getSite()
{
if (array_key_exists("site", $this->_propDict)) {
return $this->_propDict["site"];
} else {
return null;
}
}
/**
* Sets the site
* The site that the printer is located in.
*
* @param string $val The value of the site
*
* @return PrinterLocation
*/
public function setSite($val)
{
$this->_propDict["site"] = $val;
return $this;
}
/**
* Gets the stateOrProvince
* The state or province that the printer is located in.
*
* @return string|null The stateOrProvince
*/
public function getStateOrProvince()
{
if (array_key_exists("stateOrProvince", $this->_propDict)) {
return $this->_propDict["stateOrProvince"];
} else {
return null;
}
}
/**
* Sets the stateOrProvince
* The state or province that the printer is located in.
*
* @param string $val The value of the stateOrProvince
*
* @return PrinterLocation
*/
public function setStateOrProvince($val)
{
$this->_propDict["stateOrProvince"] = $val;
return $this;
}
/**
* Gets the streetAddress
* The street address where the printer is located.
*
* @return string|null The streetAddress
*/
public function getStreetAddress()
{
if (array_key_exists("streetAddress", $this->_propDict)) {
return $this->_propDict["streetAddress"];
} else {
return null;
}
}
/**
* Sets the streetAddress
* The street address where the printer is located.
*
* @param string $val The value of the streetAddress
*
* @return PrinterLocation
*/
public function setStreetAddress($val)
{
$this->_propDict["streetAddress"] = $val;
return $this;
}
/**
* Gets the subdivision
* The subdivision that the printer is located in. The elements should be in hierarchical order.
*
* @return string|null The subdivision
*/
public function getSubdivision()
{
if (array_key_exists("subdivision", $this->_propDict)) {
return $this->_propDict["subdivision"];
} else {
return null;
}
}
/**
* Sets the subdivision
* The subdivision that the printer is located in. The elements should be in hierarchical order.
*
* @param string $val The value of the subdivision
*
* @return PrinterLocation
*/
public function setSubdivision($val)
{
$this->_propDict["subdivision"] = $val;
return $this;
}
/**
* Gets the subunit
*
* @return string|null The subunit
*/
public function getSubunit()
{
if (array_key_exists("subunit", $this->_propDict)) {
return $this->_propDict["subunit"];
} else {
return null;
}
}
/**
* Sets the subunit
*
* @param string $val The value of the subunit
*
* @return PrinterLocation
*/
public function setSubunit($val)
{
$this->_propDict["subunit"] = $val;
return $this;
}
}
|