_propDict)) { return $this->_propDict["errorCode"]; } else { return null; } } /** * Sets the errorCode * Error code for failed state. * * @param int $val The value of the errorCode * * @return ConfigurationManagerClientHealthState */ public function setErrorCode($val) { $this->_propDict["errorCode"] = $val; return $this; } /** * Gets the lastSyncDateTime * Datetime for last sync with configuration manager management point. * * @return \DateTime|null The lastSyncDateTime */ public function getLastSyncDateTime() { if (array_key_exists("lastSyncDateTime", $this->_propDict)) { if (is_a($this->_propDict["lastSyncDateTime"], "\DateTime") || is_null($this->_propDict["lastSyncDateTime"])) { return $this->_propDict["lastSyncDateTime"]; } else { $this->_propDict["lastSyncDateTime"] = new \DateTime($this->_propDict["lastSyncDateTime"]); return $this->_propDict["lastSyncDateTime"]; } } return null; } /** * Sets the lastSyncDateTime * Datetime for last sync with configuration manager management point. * * @param \DateTime $val The value to assign to the lastSyncDateTime * * @return ConfigurationManagerClientHealthState The ConfigurationManagerClientHealthState */ public function setLastSyncDateTime($val) { $this->_propDict["lastSyncDateTime"] = $val; return $this; } /** * Gets the state * Current configuration manager client state. Possible values are: unknown, installed, healthy, installFailed, updateFailed, communicationError. * * @return ConfigurationManagerClientState|null The state */ public function getState() { if (array_key_exists("state", $this->_propDict)) { if (is_a($this->_propDict["state"], "\Beta\Microsoft\Graph\Model\ConfigurationManagerClientState") || is_null($this->_propDict["state"])) { return $this->_propDict["state"]; } else { $this->_propDict["state"] = new ConfigurationManagerClientState($this->_propDict["state"]); return $this->_propDict["state"]; } } return null; } /** * Sets the state * Current configuration manager client state. Possible values are: unknown, installed, healthy, installFailed, updateFailed, communicationError. * * @param ConfigurationManagerClientState $val The value to assign to the state * * @return ConfigurationManagerClientHealthState The ConfigurationManagerClientHealthState */ public function setState($val) { $this->_propDict["state"] = $val; return $this; } }