_propDict)) { if (is_a($this->_propDict["error"], "\Microsoft\Graph\Model\OnenoteOperationError") || is_null($this->_propDict["error"])) { return $this->_propDict["error"]; } else { $this->_propDict["error"] = new OnenoteOperationError($this->_propDict["error"]); return $this->_propDict["error"]; } } return null; } /** * Sets the error * The error returned by the operation. * * @param OnenoteOperationError $val The error * * @return OnenoteOperation */ public function setError($val) { $this->_propDict["error"] = $val; return $this; } /** * Gets the percentComplete * The operation percent complete if the operation is still in running status. * * @return string|null The percentComplete */ public function getPercentComplete() { if (array_key_exists("percentComplete", $this->_propDict)) { return $this->_propDict["percentComplete"]; } else { return null; } } /** * Sets the percentComplete * The operation percent complete if the operation is still in running status. * * @param string $val The percentComplete * * @return OnenoteOperation */ public function setPercentComplete($val) { $this->_propDict["percentComplete"] = $val; return $this; } /** * Gets the resourceId * The resource id. * * @return string|null The resourceId */ public function getResourceId() { if (array_key_exists("resourceId", $this->_propDict)) { return $this->_propDict["resourceId"]; } else { return null; } } /** * Sets the resourceId * The resource id. * * @param string $val The resourceId * * @return OnenoteOperation */ public function setResourceId($val) { $this->_propDict["resourceId"] = $val; return $this; } /** * Gets the resourceLocation * The resource URI for the object. For example, the resource URI for a copied page or section. * * @return string|null The resourceLocation */ public function getResourceLocation() { if (array_key_exists("resourceLocation", $this->_propDict)) { return $this->_propDict["resourceLocation"]; } else { return null; } } /** * Sets the resourceLocation * The resource URI for the object. For example, the resource URI for a copied page or section. * * @param string $val The resourceLocation * * @return OnenoteOperation */ public function setResourceLocation($val) { $this->_propDict["resourceLocation"] = $val; return $this; } }