/src/Model/WindowsPhone81CompliancePolicy.php

https://github.com/microsoftgraph/msgraph-sdk-php · PHP · 350 lines · 152 code · 23 blank · 175 comment · 23 complexity · cc1f0063f9428ed427fc4c0dc9eff736 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. * WindowsPhone81CompliancePolicy 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 Microsoft\Graph\Model;
  15. /**
  16. * WindowsPhone81CompliancePolicy 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 WindowsPhone81CompliancePolicy extends DeviceCompliancePolicy
  25. {
  26. /**
  27. * Gets the osMaximumVersion
  28. * Maximum Windows Phone version.
  29. *
  30. * @return string The osMaximumVersion
  31. */
  32. public function getOsMaximumVersion()
  33. {
  34. if (array_key_exists("osMaximumVersion", $this->_propDict)) {
  35. return $this->_propDict["osMaximumVersion"];
  36. } else {
  37. return null;
  38. }
  39. }
  40. /**
  41. * Sets the osMaximumVersion
  42. * Maximum Windows Phone version.
  43. *
  44. * @param string $val The osMaximumVersion
  45. *
  46. * @return WindowsPhone81CompliancePolicy
  47. */
  48. public function setOsMaximumVersion($val)
  49. {
  50. $this->_propDict["osMaximumVersion"] = $val;
  51. return $this;
  52. }
  53. /**
  54. * Gets the osMinimumVersion
  55. * Minimum Windows Phone version.
  56. *
  57. * @return string The osMinimumVersion
  58. */
  59. public function getOsMinimumVersion()
  60. {
  61. if (array_key_exists("osMinimumVersion", $this->_propDict)) {
  62. return $this->_propDict["osMinimumVersion"];
  63. } else {
  64. return null;
  65. }
  66. }
  67. /**
  68. * Sets the osMinimumVersion
  69. * Minimum Windows Phone version.
  70. *
  71. * @param string $val The osMinimumVersion
  72. *
  73. * @return WindowsPhone81CompliancePolicy
  74. */
  75. public function setOsMinimumVersion($val)
  76. {
  77. $this->_propDict["osMinimumVersion"] = $val;
  78. return $this;
  79. }
  80. /**
  81. * Gets the passwordBlockSimple
  82. * Whether or not to block syncing the calendar.
  83. *
  84. * @return bool The passwordBlockSimple
  85. */
  86. public function getPasswordBlockSimple()
  87. {
  88. if (array_key_exists("passwordBlockSimple", $this->_propDict)) {
  89. return $this->_propDict["passwordBlockSimple"];
  90. } else {
  91. return null;
  92. }
  93. }
  94. /**
  95. * Sets the passwordBlockSimple
  96. * Whether or not to block syncing the calendar.
  97. *
  98. * @param bool $val The passwordBlockSimple
  99. *
  100. * @return WindowsPhone81CompliancePolicy
  101. */
  102. public function setPasswordBlockSimple($val)
  103. {
  104. $this->_propDict["passwordBlockSimple"] = boolval($val);
  105. return $this;
  106. }
  107. /**
  108. * Gets the passwordExpirationDays
  109. * Number of days before the password expires.
  110. *
  111. * @return int The passwordExpirationDays
  112. */
  113. public function getPasswordExpirationDays()
  114. {
  115. if (array_key_exists("passwordExpirationDays", $this->_propDict)) {
  116. return $this->_propDict["passwordExpirationDays"];
  117. } else {
  118. return null;
  119. }
  120. }
  121. /**
  122. * Sets the passwordExpirationDays
  123. * Number of days before the password expires.
  124. *
  125. * @param int $val The passwordExpirationDays
  126. *
  127. * @return WindowsPhone81CompliancePolicy
  128. */
  129. public function setPasswordExpirationDays($val)
  130. {
  131. $this->_propDict["passwordExpirationDays"] = intval($val);
  132. return $this;
  133. }
  134. /**
  135. * Gets the passwordMinimumCharacterSetCount
  136. * The number of character sets required in the password.
  137. *
  138. * @return int The passwordMinimumCharacterSetCount
  139. */
  140. public function getPasswordMinimumCharacterSetCount()
  141. {
  142. if (array_key_exists("passwordMinimumCharacterSetCount", $this->_propDict)) {
  143. return $this->_propDict["passwordMinimumCharacterSetCount"];
  144. } else {
  145. return null;
  146. }
  147. }
  148. /**
  149. * Sets the passwordMinimumCharacterSetCount
  150. * The number of character sets required in the password.
  151. *
  152. * @param int $val The passwordMinimumCharacterSetCount
  153. *
  154. * @return WindowsPhone81CompliancePolicy
  155. */
  156. public function setPasswordMinimumCharacterSetCount($val)
  157. {
  158. $this->_propDict["passwordMinimumCharacterSetCount"] = intval($val);
  159. return $this;
  160. }
  161. /**
  162. * Gets the passwordMinimumLength
  163. * Minimum length of passwords.
  164. *
  165. * @return int The passwordMinimumLength
  166. */
  167. public function getPasswordMinimumLength()
  168. {
  169. if (array_key_exists("passwordMinimumLength", $this->_propDict)) {
  170. return $this->_propDict["passwordMinimumLength"];
  171. } else {
  172. return null;
  173. }
  174. }
  175. /**
  176. * Sets the passwordMinimumLength
  177. * Minimum length of passwords.
  178. *
  179. * @param int $val The passwordMinimumLength
  180. *
  181. * @return WindowsPhone81CompliancePolicy
  182. */
  183. public function setPasswordMinimumLength($val)
  184. {
  185. $this->_propDict["passwordMinimumLength"] = intval($val);
  186. return $this;
  187. }
  188. /**
  189. * Gets the passwordMinutesOfInactivityBeforeLock
  190. * Minutes of inactivity before a password is required.
  191. *
  192. * @return int The passwordMinutesOfInactivityBeforeLock
  193. */
  194. public function getPasswordMinutesOfInactivityBeforeLock()
  195. {
  196. if (array_key_exists("passwordMinutesOfInactivityBeforeLock", $this->_propDict)) {
  197. return $this->_propDict["passwordMinutesOfInactivityBeforeLock"];
  198. } else {
  199. return null;
  200. }
  201. }
  202. /**
  203. * Sets the passwordMinutesOfInactivityBeforeLock
  204. * Minutes of inactivity before a password is required.
  205. *
  206. * @param int $val The passwordMinutesOfInactivityBeforeLock
  207. *
  208. * @return WindowsPhone81CompliancePolicy
  209. */
  210. public function setPasswordMinutesOfInactivityBeforeLock($val)
  211. {
  212. $this->_propDict["passwordMinutesOfInactivityBeforeLock"] = intval($val);
  213. return $this;
  214. }
  215. /**
  216. * Gets the passwordPreviousPasswordBlockCount
  217. * Number of previous passwords to block. Valid values 0 to 24
  218. *
  219. * @return int The passwordPreviousPasswordBlockCount
  220. */
  221. public function getPasswordPreviousPasswordBlockCount()
  222. {
  223. if (array_key_exists("passwordPreviousPasswordBlockCount", $this->_propDict)) {
  224. return $this->_propDict["passwordPreviousPasswordBlockCount"];
  225. } else {
  226. return null;
  227. }
  228. }
  229. /**
  230. * Sets the passwordPreviousPasswordBlockCount
  231. * Number of previous passwords to block. Valid values 0 to 24
  232. *
  233. * @param int $val The passwordPreviousPasswordBlockCount
  234. *
  235. * @return WindowsPhone81CompliancePolicy
  236. */
  237. public function setPasswordPreviousPasswordBlockCount($val)
  238. {
  239. $this->_propDict["passwordPreviousPasswordBlockCount"] = intval($val);
  240. return $this;
  241. }
  242. /**
  243. * Gets the passwordRequired
  244. * Whether or not to require a password.
  245. *
  246. * @return bool The passwordRequired
  247. */
  248. public function getPasswordRequired()
  249. {
  250. if (array_key_exists("passwordRequired", $this->_propDict)) {
  251. return $this->_propDict["passwordRequired"];
  252. } else {
  253. return null;
  254. }
  255. }
  256. /**
  257. * Sets the passwordRequired
  258. * Whether or not to require a password.
  259. *
  260. * @param bool $val The passwordRequired
  261. *
  262. * @return WindowsPhone81CompliancePolicy
  263. */
  264. public function setPasswordRequired($val)
  265. {
  266. $this->_propDict["passwordRequired"] = boolval($val);
  267. return $this;
  268. }
  269. /**
  270. * Gets the passwordRequiredType
  271. * The required password type. Possible values are: deviceDefault, alphanumeric, numeric.
  272. *
  273. * @return RequiredPasswordType The passwordRequiredType
  274. */
  275. public function getPasswordRequiredType()
  276. {
  277. if (array_key_exists("passwordRequiredType", $this->_propDict)) {
  278. if (is_a($this->_propDict["passwordRequiredType"], "Microsoft\Graph\Model\RequiredPasswordType")) {
  279. return $this->_propDict["passwordRequiredType"];
  280. } else {
  281. $this->_propDict["passwordRequiredType"] = new RequiredPasswordType($this->_propDict["passwordRequiredType"]);
  282. return $this->_propDict["passwordRequiredType"];
  283. }
  284. }
  285. return null;
  286. }
  287. /**
  288. * Sets the passwordRequiredType
  289. * The required password type. Possible values are: deviceDefault, alphanumeric, numeric.
  290. *
  291. * @param RequiredPasswordType $val The passwordRequiredType
  292. *
  293. * @return WindowsPhone81CompliancePolicy
  294. */
  295. public function setPasswordRequiredType($val)
  296. {
  297. $this->_propDict["passwordRequiredType"] = $val;
  298. return $this;
  299. }
  300. /**
  301. * Gets the storageRequireEncryption
  302. * Require encryption on windows phone devices.
  303. *
  304. * @return bool The storageRequireEncryption
  305. */
  306. public function getStorageRequireEncryption()
  307. {
  308. if (array_key_exists("storageRequireEncryption", $this->_propDict)) {
  309. return $this->_propDict["storageRequireEncryption"];
  310. } else {
  311. return null;
  312. }
  313. }
  314. /**
  315. * Sets the storageRequireEncryption
  316. * Require encryption on windows phone devices.
  317. *
  318. * @param bool $val The storageRequireEncryption
  319. *
  320. * @return WindowsPhone81CompliancePolicy
  321. */
  322. public function setStorageRequireEncryption($val)
  323. {
  324. $this->_propDict["storageRequireEncryption"] = boolval($val);
  325. return $this;
  326. }
  327. }