_propDict)) { if (is_a($this->_propDict["action"], "\Microsoft\Graph\Model\CalendarSharingAction") || is_null($this->_propDict["action"])) { return $this->_propDict["action"]; } else { $this->_propDict["action"] = new CalendarSharingAction($this->_propDict["action"]); return $this->_propDict["action"]; } } return null; } /** * Sets the action * * @param CalendarSharingAction $val The value to assign to the action * * @return CalendarSharingMessageAction The CalendarSharingMessageAction */ public function setAction($val) { $this->_propDict["action"] = $val; return $this; } /** * Gets the actionType * * @return CalendarSharingActionType|null The actionType */ public function getActionType() { if (array_key_exists("actionType", $this->_propDict)) { if (is_a($this->_propDict["actionType"], "\Microsoft\Graph\Model\CalendarSharingActionType") || is_null($this->_propDict["actionType"])) { return $this->_propDict["actionType"]; } else { $this->_propDict["actionType"] = new CalendarSharingActionType($this->_propDict["actionType"]); return $this->_propDict["actionType"]; } } return null; } /** * Sets the actionType * * @param CalendarSharingActionType $val The value to assign to the actionType * * @return CalendarSharingMessageAction The CalendarSharingMessageAction */ public function setActionType($val) { $this->_propDict["actionType"] = $val; return $this; } /** * Gets the importance * * @return CalendarSharingActionImportance|null The importance */ public function getImportance() { if (array_key_exists("importance", $this->_propDict)) { if (is_a($this->_propDict["importance"], "\Microsoft\Graph\Model\CalendarSharingActionImportance") || is_null($this->_propDict["importance"])) { return $this->_propDict["importance"]; } else { $this->_propDict["importance"] = new CalendarSharingActionImportance($this->_propDict["importance"]); return $this->_propDict["importance"]; } } return null; } /** * Sets the importance * * @param CalendarSharingActionImportance $val The value to assign to the importance * * @return CalendarSharingMessageAction The CalendarSharingMessageAction */ public function setImportance($val) { $this->_propDict["importance"] = $val; return $this; } }