<?php

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

use Office365\Runtime\ClientObject;
use Office365\Runtime\ResourcePath;
/**
 *  "A contact, event, or message that's attached to another event, message, or post.  "
 */
class ItemAttachment extends ClientObject
{
    /**
     * The attached message or event. Navigation property.
     * @return OutlookItem
     */
    public function getItem()
    {
        if (!$this->isPropertyAvailable("Item")) {
            $this->setProperty("Item", new OutlookItem($this->getContext(), new ResourcePath("Item", $this->getResourcePath())));
        }
        return $this->getProperty("Item");
    }
}