<?php

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

use Office365\Runtime\ClientObject;
use Office365\Runtime\ResourcePath;
/**
 * A section group in a OneNote notebook. Section groups can contain sections and section groups.
 */
class SectionGroup extends ClientObject
{
    /**
     * The URL for the `sections` navigation property, which returns all the sections in the section group. Read-only.
     * @return string
     */
    public function getSectionsUrl()
    {
        if (!$this->isPropertyAvailable("SectionsUrl")) {
            return null;
        }
        return $this->getProperty("SectionsUrl");
    }
    /**
     * The URL for the `sections` navigation property, which returns all the sections in the section group. Read-only.
     * @var string
     */
    public function setSectionsUrl($value)
    {
        $this->setProperty("SectionsUrl", $value, true);
    }
    /**
     * The URL for the `sectionGroups` navigation property, which returns all the section groups in the section group. Read-only.
     * @return string
     */
    public function getSectionGroupsUrl()
    {
        if (!$this->isPropertyAvailable("SectionGroupsUrl")) {
            return null;
        }
        return $this->getProperty("SectionGroupsUrl");
    }
    /**
     * The URL for the `sectionGroups` navigation property, which returns all the section groups in the section group. Read-only.
     * @var string
     */
    public function setSectionGroupsUrl($value)
    {
        $this->setProperty("SectionGroupsUrl", $value, true);
    }
    /**
     * The notebook that contains the section group. Read-only.
     * @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");
    }
    /**
     * The section group that contains the section group. Read-only.
     * @return SectionGroup
     */
    public function getParentSectionGroup()
    {
        if (!$this->isPropertyAvailable("ParentSectionGroup")) {
            $this->setProperty("ParentSectionGroup", new SectionGroup($this->getContext(), new ResourcePath("ParentSectionGroup", $this->getResourcePath())));
        }
        return $this->getProperty("ParentSectionGroup");
    }
}