<?php

/**
 * Generated by phpSPO model generator 2020-05-26T22:12:31+00:00 
 */
namespace Office365\Graph;

use Office365\Runtime\ClientObject;
use Office365\Runtime\ResourcePath;
class OnenotePage extends ClientObject
{
    /**
     * @return string
     */
    public function getTitle()
    {
        if (!$this->isPropertyAvailable("Title")) {
            return null;
        }
        return $this->getProperty("Title");
    }
    /**
     * @var string
     */
    public function setTitle($value)
    {
        $this->setProperty("Title", $value, true);
    }
    /**
     * @return string
     */
    public function getCreatedByAppId()
    {
        if (!$this->isPropertyAvailable("CreatedByAppId")) {
            return null;
        }
        return $this->getProperty("CreatedByAppId");
    }
    /**
     * @var string
     */
    public function setCreatedByAppId($value)
    {
        $this->setProperty("CreatedByAppId", $value, true);
    }
    /**
     * @return string
     */
    public function getContentUrl()
    {
        if (!$this->isPropertyAvailable("ContentUrl")) {
            return null;
        }
        return $this->getProperty("ContentUrl");
    }
    /**
     * @var string
     */
    public function setContentUrl($value)
    {
        $this->setProperty("ContentUrl", $value, true);
    }
    /**
     * @return integer
     */
    public function getLevel()
    {
        if (!$this->isPropertyAvailable("Level")) {
            return null;
        }
        return $this->getProperty("Level");
    }
    /**
     * @var integer
     */
    public function setLevel($value)
    {
        $this->setProperty("Level", $value, true);
    }
    /**
     * @return integer
     */
    public function getOrder()
    {
        if (!$this->isPropertyAvailable("Order")) {
            return null;
        }
        return $this->getProperty("Order");
    }
    /**
     * @var integer
     */
    public function setOrder($value)
    {
        $this->setProperty("Order", $value, true);
    }
    /**
     * @return array
     */
    public function getUserTags()
    {
        if (!$this->isPropertyAvailable("UserTags")) {
            return null;
        }
        return $this->getProperty("UserTags");
    }
    /**
     * @var array
     */
    public function setUserTags($value)
    {
        $this->setProperty("UserTags", $value, true);
    }
    /**
     * @return PageLinks
     */
    public function getLinks()
    {
        if (!$this->isPropertyAvailable("Links")) {
            return null;
        }
        return $this->getProperty("Links");
    }
    /**
     * @var PageLinks
     */
    public function setLinks($value)
    {
        $this->setProperty("Links", $value, true);
    }
    /**
     * @return OnenoteSection
     */
    public function getParentSection()
    {
        if (!$this->isPropertyAvailable("ParentSection")) {
            $this->setProperty("ParentSection", new OnenoteSection($this->getContext(), new ResourcePath("ParentSection", $this->getResourcePath())));
        }
        return $this->getProperty("ParentSection");
    }
    /**
     * @return Notebook
     */
    public function getParentNotebook()
    {
        if (!$this->isPropertyAvailable("ParentNotebook")) {
            $this->setProperty("ParentNotebook", new Notebook($this->getContext(), new ResourcePath("ParentNotebook", $this->getResourcePath())));
        }
        return $this->getProperty("ParentNotebook");
    }
}