/src/Beta/Microsoft/Graph/Model/UserExperienceAnalyticsDeviceStartupHistory.php

https://github.com/microsoftgraph/msgraph-sdk-php · PHP · 499 lines · 221 code · 33 blank · 245 comment · 34 complexity · 0592637d8880c7e097d631d8ac9f8ddb MD5 · raw file

  1. <?php
  2. /**
  3. * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
  4. *
  5. * UserExperienceAnalyticsDeviceStartupHistory File
  6. * PHP version 7
  7. *
  8. * @category Library
  9. * @package Microsoft.Graph
  10. * @copyright © Microsoft Corporation. All rights reserved.
  11. * @license https://opensource.org/licenses/MIT MIT License
  12. * @link https://graph.microsoft.com
  13. */
  14. namespace Beta\Microsoft\Graph\Model;
  15. /**
  16. * UserExperienceAnalyticsDeviceStartupHistory class
  17. *
  18. * @category Model
  19. * @package Microsoft.Graph
  20. * @copyright © Microsoft Corporation. All rights reserved.
  21. * @license https://opensource.org/licenses/MIT MIT License
  22. * @link https://graph.microsoft.com
  23. */
  24. class UserExperienceAnalyticsDeviceStartupHistory extends Entity
  25. {
  26. /**
  27. * Gets the coreBootTimeInMs
  28. * The user experience analytics device core boot time in milliseconds.
  29. *
  30. * @return int The coreBootTimeInMs
  31. */
  32. public function getCoreBootTimeInMs()
  33. {
  34. if (array_key_exists("coreBootTimeInMs", $this->_propDict)) {
  35. return $this->_propDict["coreBootTimeInMs"];
  36. } else {
  37. return null;
  38. }
  39. }
  40. /**
  41. * Sets the coreBootTimeInMs
  42. * The user experience analytics device core boot time in milliseconds.
  43. *
  44. * @param int $val The coreBootTimeInMs
  45. *
  46. * @return UserExperienceAnalyticsDeviceStartupHistory
  47. */
  48. public function setCoreBootTimeInMs($val)
  49. {
  50. $this->_propDict["coreBootTimeInMs"] = intval($val);
  51. return $this;
  52. }
  53. /**
  54. * Gets the coreLoginTimeInMs
  55. * The user experience analytics device core login time in milliseconds.
  56. *
  57. * @return int The coreLoginTimeInMs
  58. */
  59. public function getCoreLoginTimeInMs()
  60. {
  61. if (array_key_exists("coreLoginTimeInMs", $this->_propDict)) {
  62. return $this->_propDict["coreLoginTimeInMs"];
  63. } else {
  64. return null;
  65. }
  66. }
  67. /**
  68. * Sets the coreLoginTimeInMs
  69. * The user experience analytics device core login time in milliseconds.
  70. *
  71. * @param int $val The coreLoginTimeInMs
  72. *
  73. * @return UserExperienceAnalyticsDeviceStartupHistory
  74. */
  75. public function setCoreLoginTimeInMs($val)
  76. {
  77. $this->_propDict["coreLoginTimeInMs"] = intval($val);
  78. return $this;
  79. }
  80. /**
  81. * Gets the deviceId
  82. * The user experience analytics device id.
  83. *
  84. * @return string The deviceId
  85. */
  86. public function getDeviceId()
  87. {
  88. if (array_key_exists("deviceId", $this->_propDict)) {
  89. return $this->_propDict["deviceId"];
  90. } else {
  91. return null;
  92. }
  93. }
  94. /**
  95. * Sets the deviceId
  96. * The user experience analytics device id.
  97. *
  98. * @param string $val The deviceId
  99. *
  100. * @return UserExperienceAnalyticsDeviceStartupHistory
  101. */
  102. public function setDeviceId($val)
  103. {
  104. $this->_propDict["deviceId"] = $val;
  105. return $this;
  106. }
  107. /**
  108. * Gets the featureUpdateBootTimeInMs
  109. * The user experience analytics device feature update time in milliseconds.
  110. *
  111. * @return int The featureUpdateBootTimeInMs
  112. */
  113. public function getFeatureUpdateBootTimeInMs()
  114. {
  115. if (array_key_exists("featureUpdateBootTimeInMs", $this->_propDict)) {
  116. return $this->_propDict["featureUpdateBootTimeInMs"];
  117. } else {
  118. return null;
  119. }
  120. }
  121. /**
  122. * Sets the featureUpdateBootTimeInMs
  123. * The user experience analytics device feature update time in milliseconds.
  124. *
  125. * @param int $val The featureUpdateBootTimeInMs
  126. *
  127. * @return UserExperienceAnalyticsDeviceStartupHistory
  128. */
  129. public function setFeatureUpdateBootTimeInMs($val)
  130. {
  131. $this->_propDict["featureUpdateBootTimeInMs"] = intval($val);
  132. return $this;
  133. }
  134. /**
  135. * Gets the groupPolicyBootTimeInMs
  136. * The User experience analytics Device group policy boot time in milliseconds.
  137. *
  138. * @return int The groupPolicyBootTimeInMs
  139. */
  140. public function getGroupPolicyBootTimeInMs()
  141. {
  142. if (array_key_exists("groupPolicyBootTimeInMs", $this->_propDict)) {
  143. return $this->_propDict["groupPolicyBootTimeInMs"];
  144. } else {
  145. return null;
  146. }
  147. }
  148. /**
  149. * Sets the groupPolicyBootTimeInMs
  150. * The User experience analytics Device group policy boot time in milliseconds.
  151. *
  152. * @param int $val The groupPolicyBootTimeInMs
  153. *
  154. * @return UserExperienceAnalyticsDeviceStartupHistory
  155. */
  156. public function setGroupPolicyBootTimeInMs($val)
  157. {
  158. $this->_propDict["groupPolicyBootTimeInMs"] = intval($val);
  159. return $this;
  160. }
  161. /**
  162. * Gets the groupPolicyLoginTimeInMs
  163. * The User experience analytics Device group policy login time in milliseconds.
  164. *
  165. * @return int The groupPolicyLoginTimeInMs
  166. */
  167. public function getGroupPolicyLoginTimeInMs()
  168. {
  169. if (array_key_exists("groupPolicyLoginTimeInMs", $this->_propDict)) {
  170. return $this->_propDict["groupPolicyLoginTimeInMs"];
  171. } else {
  172. return null;
  173. }
  174. }
  175. /**
  176. * Sets the groupPolicyLoginTimeInMs
  177. * The User experience analytics Device group policy login time in milliseconds.
  178. *
  179. * @param int $val The groupPolicyLoginTimeInMs
  180. *
  181. * @return UserExperienceAnalyticsDeviceStartupHistory
  182. */
  183. public function setGroupPolicyLoginTimeInMs($val)
  184. {
  185. $this->_propDict["groupPolicyLoginTimeInMs"] = intval($val);
  186. return $this;
  187. }
  188. /**
  189. * Gets the isFeatureUpdate
  190. * The user experience analytics device boot record is a feature update.
  191. *
  192. * @return bool The isFeatureUpdate
  193. */
  194. public function getIsFeatureUpdate()
  195. {
  196. if (array_key_exists("isFeatureUpdate", $this->_propDict)) {
  197. return $this->_propDict["isFeatureUpdate"];
  198. } else {
  199. return null;
  200. }
  201. }
  202. /**
  203. * Sets the isFeatureUpdate
  204. * The user experience analytics device boot record is a feature update.
  205. *
  206. * @param bool $val The isFeatureUpdate
  207. *
  208. * @return UserExperienceAnalyticsDeviceStartupHistory
  209. */
  210. public function setIsFeatureUpdate($val)
  211. {
  212. $this->_propDict["isFeatureUpdate"] = boolval($val);
  213. return $this;
  214. }
  215. /**
  216. * Gets the isFirstLogin
  217. * The user experience analytics device first login.
  218. *
  219. * @return bool The isFirstLogin
  220. */
  221. public function getIsFirstLogin()
  222. {
  223. if (array_key_exists("isFirstLogin", $this->_propDict)) {
  224. return $this->_propDict["isFirstLogin"];
  225. } else {
  226. return null;
  227. }
  228. }
  229. /**
  230. * Sets the isFirstLogin
  231. * The user experience analytics device first login.
  232. *
  233. * @param bool $val The isFirstLogin
  234. *
  235. * @return UserExperienceAnalyticsDeviceStartupHistory
  236. */
  237. public function setIsFirstLogin($val)
  238. {
  239. $this->_propDict["isFirstLogin"] = boolval($val);
  240. return $this;
  241. }
  242. /**
  243. * Gets the operatingSystemVersion
  244. * The user experience analytics device boot record's operating system version.
  245. *
  246. * @return string The operatingSystemVersion
  247. */
  248. public function getOperatingSystemVersion()
  249. {
  250. if (array_key_exists("operatingSystemVersion", $this->_propDict)) {
  251. return $this->_propDict["operatingSystemVersion"];
  252. } else {
  253. return null;
  254. }
  255. }
  256. /**
  257. * Sets the operatingSystemVersion
  258. * The user experience analytics device boot record's operating system version.
  259. *
  260. * @param string $val The operatingSystemVersion
  261. *
  262. * @return UserExperienceAnalyticsDeviceStartupHistory
  263. */
  264. public function setOperatingSystemVersion($val)
  265. {
  266. $this->_propDict["operatingSystemVersion"] = $val;
  267. return $this;
  268. }
  269. /**
  270. * Gets the responsiveDesktopTimeInMs
  271. * The user experience analytics responsive desktop time in milliseconds.
  272. *
  273. * @return int The responsiveDesktopTimeInMs
  274. */
  275. public function getResponsiveDesktopTimeInMs()
  276. {
  277. if (array_key_exists("responsiveDesktopTimeInMs", $this->_propDict)) {
  278. return $this->_propDict["responsiveDesktopTimeInMs"];
  279. } else {
  280. return null;
  281. }
  282. }
  283. /**
  284. * Sets the responsiveDesktopTimeInMs
  285. * The user experience analytics responsive desktop time in milliseconds.
  286. *
  287. * @param int $val The responsiveDesktopTimeInMs
  288. *
  289. * @return UserExperienceAnalyticsDeviceStartupHistory
  290. */
  291. public function setResponsiveDesktopTimeInMs($val)
  292. {
  293. $this->_propDict["responsiveDesktopTimeInMs"] = intval($val);
  294. return $this;
  295. }
  296. /**
  297. * Gets the restartCategory
  298. * OS restart category
  299. *
  300. * @return UserExperienceAnalyticsOperatingSystemRestartCategory The restartCategory
  301. */
  302. public function getRestartCategory()
  303. {
  304. if (array_key_exists("restartCategory", $this->_propDict)) {
  305. if (is_a($this->_propDict["restartCategory"], "Beta\Microsoft\Graph\Model\UserExperienceAnalyticsOperatingSystemRestartCategory")) {
  306. return $this->_propDict["restartCategory"];
  307. } else {
  308. $this->_propDict["restartCategory"] = new UserExperienceAnalyticsOperatingSystemRestartCategory($this->_propDict["restartCategory"]);
  309. return $this->_propDict["restartCategory"];
  310. }
  311. }
  312. return null;
  313. }
  314. /**
  315. * Sets the restartCategory
  316. * OS restart category
  317. *
  318. * @param UserExperienceAnalyticsOperatingSystemRestartCategory $val The restartCategory
  319. *
  320. * @return UserExperienceAnalyticsDeviceStartupHistory
  321. */
  322. public function setRestartCategory($val)
  323. {
  324. $this->_propDict["restartCategory"] = $val;
  325. return $this;
  326. }
  327. /**
  328. * Gets the restartFaultBucket
  329. * OS restart fault bucket. The fault bucket is used to find additional information about a system crash.
  330. *
  331. * @return string The restartFaultBucket
  332. */
  333. public function getRestartFaultBucket()
  334. {
  335. if (array_key_exists("restartFaultBucket", $this->_propDict)) {
  336. return $this->_propDict["restartFaultBucket"];
  337. } else {
  338. return null;
  339. }
  340. }
  341. /**
  342. * Sets the restartFaultBucket
  343. * OS restart fault bucket. The fault bucket is used to find additional information about a system crash.
  344. *
  345. * @param string $val The restartFaultBucket
  346. *
  347. * @return UserExperienceAnalyticsDeviceStartupHistory
  348. */
  349. public function setRestartFaultBucket($val)
  350. {
  351. $this->_propDict["restartFaultBucket"] = $val;
  352. return $this;
  353. }
  354. /**
  355. * Gets the restartStopCode
  356. * OS restart stop code. This shows the bug check code which can be used to look up the blue screen reason.
  357. *
  358. * @return string The restartStopCode
  359. */
  360. public function getRestartStopCode()
  361. {
  362. if (array_key_exists("restartStopCode", $this->_propDict)) {
  363. return $this->_propDict["restartStopCode"];
  364. } else {
  365. return null;
  366. }
  367. }
  368. /**
  369. * Sets the restartStopCode
  370. * OS restart stop code. This shows the bug check code which can be used to look up the blue screen reason.
  371. *
  372. * @param string $val The restartStopCode
  373. *
  374. * @return UserExperienceAnalyticsDeviceStartupHistory
  375. */
  376. public function setRestartStopCode($val)
  377. {
  378. $this->_propDict["restartStopCode"] = $val;
  379. return $this;
  380. }
  381. /**
  382. * Gets the startTime
  383. * The user experience analytics device boot start time.
  384. *
  385. * @return \DateTime The startTime
  386. */
  387. public function getStartTime()
  388. {
  389. if (array_key_exists("startTime", $this->_propDict)) {
  390. if (is_a($this->_propDict["startTime"], "\DateTime")) {
  391. return $this->_propDict["startTime"];
  392. } else {
  393. $this->_propDict["startTime"] = new \DateTime($this->_propDict["startTime"]);
  394. return $this->_propDict["startTime"];
  395. }
  396. }
  397. return null;
  398. }
  399. /**
  400. * Sets the startTime
  401. * The user experience analytics device boot start time.
  402. *
  403. * @param \DateTime $val The startTime
  404. *
  405. * @return UserExperienceAnalyticsDeviceStartupHistory
  406. */
  407. public function setStartTime($val)
  408. {
  409. $this->_propDict["startTime"] = $val;
  410. return $this;
  411. }
  412. /**
  413. * Gets the totalBootTimeInMs
  414. * The user experience analytics device total boot time in milliseconds.
  415. *
  416. * @return int The totalBootTimeInMs
  417. */
  418. public function getTotalBootTimeInMs()
  419. {
  420. if (array_key_exists("totalBootTimeInMs", $this->_propDict)) {
  421. return $this->_propDict["totalBootTimeInMs"];
  422. } else {
  423. return null;
  424. }
  425. }
  426. /**
  427. * Sets the totalBootTimeInMs
  428. * The user experience analytics device total boot time in milliseconds.
  429. *
  430. * @param int $val The totalBootTimeInMs
  431. *
  432. * @return UserExperienceAnalyticsDeviceStartupHistory
  433. */
  434. public function setTotalBootTimeInMs($val)
  435. {
  436. $this->_propDict["totalBootTimeInMs"] = intval($val);
  437. return $this;
  438. }
  439. /**
  440. * Gets the totalLoginTimeInMs
  441. * The user experience analytics device total login time in milliseconds.
  442. *
  443. * @return int The totalLoginTimeInMs
  444. */
  445. public function getTotalLoginTimeInMs()
  446. {
  447. if (array_key_exists("totalLoginTimeInMs", $this->_propDict)) {
  448. return $this->_propDict["totalLoginTimeInMs"];
  449. } else {
  450. return null;
  451. }
  452. }
  453. /**
  454. * Sets the totalLoginTimeInMs
  455. * The user experience analytics device total login time in milliseconds.
  456. *
  457. * @param int $val The totalLoginTimeInMs
  458. *
  459. * @return UserExperienceAnalyticsDeviceStartupHistory
  460. */
  461. public function setTotalLoginTimeInMs($val)
  462. {
  463. $this->_propDict["totalLoginTimeInMs"] = intval($val);
  464. return $this;
  465. }
  466. }