_propDict)) { return $this->_propDict["canAccept"]; } else { return null; } } /** * Sets the canAccept * * @param bool $val The canAccept * * @return CalendarSharingMessage */ public function setCanAccept($val) { $this->_propDict["canAccept"] = boolval($val); return $this; } /** * Gets the sharingMessageAction * * @return CalendarSharingMessageAction|null The sharingMessageAction */ public function getSharingMessageAction() { if (array_key_exists("sharingMessageAction", $this->_propDict)) { if (is_a($this->_propDict["sharingMessageAction"], "\Microsoft\Graph\Model\CalendarSharingMessageAction") || is_null($this->_propDict["sharingMessageAction"])) { return $this->_propDict["sharingMessageAction"]; } else { $this->_propDict["sharingMessageAction"] = new CalendarSharingMessageAction($this->_propDict["sharingMessageAction"]); return $this->_propDict["sharingMessageAction"]; } } return null; } /** * Sets the sharingMessageAction * * @param CalendarSharingMessageAction $val The sharingMessageAction * * @return CalendarSharingMessage */ public function setSharingMessageAction($val) { $this->_propDict["sharingMessageAction"] = $val; return $this; } /** * Gets the sharingMessageActions * * @return array|null The sharingMessageActions */ public function getSharingMessageActions() { if (array_key_exists("sharingMessageActions", $this->_propDict)) { return $this->_propDict["sharingMessageActions"]; } else { return null; } } /** * Sets the sharingMessageActions * * @param CalendarSharingMessageAction[] $val The sharingMessageActions * * @return CalendarSharingMessage */ public function setSharingMessageActions($val) { $this->_propDict["sharingMessageActions"] = $val; return $this; } /** * Gets the suggestedCalendarName * * @return string|null The suggestedCalendarName */ public function getSuggestedCalendarName() { if (array_key_exists("suggestedCalendarName", $this->_propDict)) { return $this->_propDict["suggestedCalendarName"]; } else { return null; } } /** * Sets the suggestedCalendarName * * @param string $val The suggestedCalendarName * * @return CalendarSharingMessage */ public function setSuggestedCalendarName($val) { $this->_propDict["suggestedCalendarName"] = $val; return $this; } }