_propDict)) { return $this->_propDict["errorCount"]; } else { return null; } } /** * Sets the errorCount * Number of errors during synchronization. * * @param int $val The errorCount * * @return EducationSynchronizationProfileStatus */ public function setErrorCount($val) { $this->_propDict["errorCount"] = intval($val); return $this; } /** * Gets the lastActivityDateTime * Date and time when most recent changes were observed in the profile. * * @return \DateTime|null The lastActivityDateTime */ public function getLastActivityDateTime() { if (array_key_exists("lastActivityDateTime", $this->_propDict)) { if (is_a($this->_propDict["lastActivityDateTime"], "\DateTime") || is_null($this->_propDict["lastActivityDateTime"])) { return $this->_propDict["lastActivityDateTime"]; } else { $this->_propDict["lastActivityDateTime"] = new \DateTime($this->_propDict["lastActivityDateTime"]); return $this->_propDict["lastActivityDateTime"]; } } return null; } /** * Sets the lastActivityDateTime * Date and time when most recent changes were observed in the profile. * * @param \DateTime $val The lastActivityDateTime * * @return EducationSynchronizationProfileStatus */ public function setLastActivityDateTime($val) { $this->_propDict["lastActivityDateTime"] = $val; return $this; } /** * Gets the lastSynchronizationDateTime * Date and time of the most recent successful synchronization. * * @return \DateTime|null The lastSynchronizationDateTime */ public function getLastSynchronizationDateTime() { if (array_key_exists("lastSynchronizationDateTime", $this->_propDict)) { if (is_a($this->_propDict["lastSynchronizationDateTime"], "\DateTime") || is_null($this->_propDict["lastSynchronizationDateTime"])) { return $this->_propDict["lastSynchronizationDateTime"]; } else { $this->_propDict["lastSynchronizationDateTime"] = new \DateTime($this->_propDict["lastSynchronizationDateTime"]); return $this->_propDict["lastSynchronizationDateTime"]; } } return null; } /** * Sets the lastSynchronizationDateTime * Date and time of the most recent successful synchronization. * * @param \DateTime $val The lastSynchronizationDateTime * * @return EducationSynchronizationProfileStatus */ public function setLastSynchronizationDateTime($val) { $this->_propDict["lastSynchronizationDateTime"] = $val; return $this; } /** * Gets the status * The status of a sync. The possible values are: paused, inProgress, success, error, validationError, quarantined, unknownFutureValue, extracting, validating. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: extracting, validating. * * @return EducationSynchronizationStatus|null The status */ public function getStatus() { if (array_key_exists("status", $this->_propDict)) { if (is_a($this->_propDict["status"], "\Beta\Microsoft\Graph\Model\EducationSynchronizationStatus") || is_null($this->_propDict["status"])) { return $this->_propDict["status"]; } else { $this->_propDict["status"] = new EducationSynchronizationStatus($this->_propDict["status"]); return $this->_propDict["status"]; } } return null; } /** * Sets the status * The status of a sync. The possible values are: paused, inProgress, success, error, validationError, quarantined, unknownFutureValue, extracting, validating. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: extracting, validating. * * @param EducationSynchronizationStatus $val The status * * @return EducationSynchronizationProfileStatus */ public function setStatus($val) { $this->_propDict["status"] = $val; return $this; } /** * Gets the statusMessage * Status message for the synchronization stage of the current profile. * * @return string|null The statusMessage */ public function getStatusMessage() { if (array_key_exists("statusMessage", $this->_propDict)) { return $this->_propDict["statusMessage"]; } else { return null; } } /** * Sets the statusMessage * Status message for the synchronization stage of the current profile. * * @param string $val The statusMessage * * @return EducationSynchronizationProfileStatus */ public function setStatusMessage($val) { $this->_propDict["statusMessage"] = $val; return $this; } }