_propDict)) { return $this->_propDict["deviceDisplayName"]; } else { return null; } } /** * Sets the deviceDisplayName * Display name of the device * * @param string $val The deviceDisplayName * * @return SecurityBaselineDeviceState */ public function setDeviceDisplayName($val) { $this->_propDict["deviceDisplayName"] = $val; return $this; } /** * Gets the lastReportedDateTime * Last modified date time of the policy report * * @return \DateTime|null The lastReportedDateTime */ public function getLastReportedDateTime() { if (array_key_exists("lastReportedDateTime", $this->_propDict)) { if (is_a($this->_propDict["lastReportedDateTime"], "\DateTime") || is_null($this->_propDict["lastReportedDateTime"])) { return $this->_propDict["lastReportedDateTime"]; } else { $this->_propDict["lastReportedDateTime"] = new \DateTime($this->_propDict["lastReportedDateTime"]); return $this->_propDict["lastReportedDateTime"]; } } return null; } /** * Sets the lastReportedDateTime * Last modified date time of the policy report * * @param \DateTime $val The lastReportedDateTime * * @return SecurityBaselineDeviceState */ public function setLastReportedDateTime($val) { $this->_propDict["lastReportedDateTime"] = $val; return $this; } /** * Gets the managedDeviceId * Intune device id * * @return string|null The managedDeviceId */ public function getManagedDeviceId() { if (array_key_exists("managedDeviceId", $this->_propDict)) { return $this->_propDict["managedDeviceId"]; } else { return null; } } /** * Sets the managedDeviceId * Intune device id * * @param string $val The managedDeviceId * * @return SecurityBaselineDeviceState */ public function setManagedDeviceId($val) { $this->_propDict["managedDeviceId"] = $val; return $this; } /** * Gets the state * Security baseline compliance state. Possible values are: unknown, secure, notApplicable, notSecure, error, conflict. * * @return SecurityBaselineComplianceState|null The state */ public function getState() { if (array_key_exists("state", $this->_propDict)) { if (is_a($this->_propDict["state"], "\Beta\Microsoft\Graph\Model\SecurityBaselineComplianceState") || is_null($this->_propDict["state"])) { return $this->_propDict["state"]; } else { $this->_propDict["state"] = new SecurityBaselineComplianceState($this->_propDict["state"]); return $this->_propDict["state"]; } } return null; } /** * Sets the state * Security baseline compliance state. Possible values are: unknown, secure, notApplicable, notSecure, error, conflict. * * @param SecurityBaselineComplianceState $val The state * * @return SecurityBaselineDeviceState */ public function setState($val) { $this->_propDict["state"] = $val; return $this; } /** * Gets the userPrincipalName * User Principal Name * * @return string|null The userPrincipalName */ public function getUserPrincipalName() { if (array_key_exists("userPrincipalName", $this->_propDict)) { return $this->_propDict["userPrincipalName"]; } else { return null; } } /** * Sets the userPrincipalName * User Principal Name * * @param string $val The userPrincipalName * * @return SecurityBaselineDeviceState */ public function setUserPrincipalName($val) { $this->_propDict["userPrincipalName"] = $val; return $this; } }