_propDict)) { return $this->_propDict["errorDeviceCount"]; } else { return null; } } /** * Sets the errorDeviceCount * Error device count for specific user. * * @param int $val The errorDeviceCount * * @return DeviceManagementScriptUserState */ public function setErrorDeviceCount($val) { $this->_propDict["errorDeviceCount"] = intval($val); return $this; } /** * Gets the successDeviceCount * Success device count for specific user. * * @return int|null The successDeviceCount */ public function getSuccessDeviceCount() { if (array_key_exists("successDeviceCount", $this->_propDict)) { return $this->_propDict["successDeviceCount"]; } else { return null; } } /** * Sets the successDeviceCount * Success device count for specific user. * * @param int $val The successDeviceCount * * @return DeviceManagementScriptUserState */ public function setSuccessDeviceCount($val) { $this->_propDict["successDeviceCount"] = intval($val); return $this; } /** * Gets the userPrincipalName * User principle name of specific user. * * @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 principle name of specific user. * * @param string $val The userPrincipalName * * @return DeviceManagementScriptUserState */ public function setUserPrincipalName($val) { $this->_propDict["userPrincipalName"] = $val; return $this; } /** * Gets the deviceRunStates * List of run states for this script across all devices of specific user. * * @return array|null The deviceRunStates */ public function getDeviceRunStates() { if (array_key_exists("deviceRunStates", $this->_propDict)) { return $this->_propDict["deviceRunStates"]; } else { return null; } } /** * Sets the deviceRunStates * List of run states for this script across all devices of specific user. * * @param DeviceManagementScriptDeviceState[] $val The deviceRunStates * * @return DeviceManagementScriptUserState */ public function setDeviceRunStates($val) { $this->_propDict["deviceRunStates"] = $val; return $this; } }