_propDict)) { if (is_a($this->_propDict["permissions"], "\Microsoft\Graph\Model\ResourcePermission") || is_null($this->_propDict["permissions"])) { return $this->_propDict["permissions"]; } else { $this->_propDict["permissions"] = new ResourcePermission($this->_propDict["permissions"]); return $this->_propDict["permissions"]; } } return null; } /** * Sets the permissions * * @param ResourcePermission $val The value to assign to the permissions * * @return InstanceResourceAccess The InstanceResourceAccess */ public function setPermissions($val) { $this->_propDict["permissions"] = $val; return $this; } /** * Gets the resourceAppId * * @return string|null The resourceAppId */ public function getResourceAppId() { if (array_key_exists("resourceAppId", $this->_propDict)) { return $this->_propDict["resourceAppId"]; } else { return null; } } /** * Sets the resourceAppId * * @param string $val The value of the resourceAppId * * @return InstanceResourceAccess */ public function setResourceAppId($val) { $this->_propDict["resourceAppId"] = $val; return $this; } }