/vendor/microsoft/microsoft-graph/src/Model/MailTips.php

https://github.com/xiebruce/PicUploader · PHP · 389 lines · 181 code · 17 blank · 191 comment · 29 complexity · 63fe962fc98cc3b15de30061f7bc077d 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. * MailTips 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. * @version GIT: 1.4.0
  13. * @link https://graph.microsoft.io/
  14. */
  15. namespace Microsoft\Graph\Model;
  16. /**
  17. * MailTips class
  18. *
  19. * @category Model
  20. * @package Microsoft.Graph
  21. * @copyright © Microsoft Corporation. All rights reserved.
  22. * @license https://opensource.org/licenses/MIT MIT License
  23. * @version Release: 1.4.0
  24. * @link https://graph.microsoft.io/
  25. */
  26. class MailTips extends Entity
  27. {
  28. /**
  29. * Gets the emailAddress
  30. * The email address of the recipient to get mailtips for.
  31. *
  32. * @return EmailAddress The emailAddress
  33. */
  34. public function getEmailAddress()
  35. {
  36. if (array_key_exists("emailAddress", $this->_propDict)) {
  37. if (is_a($this->_propDict["emailAddress"], "Microsoft\Graph\Model\EmailAddress")) {
  38. return $this->_propDict["emailAddress"];
  39. } else {
  40. $this->_propDict["emailAddress"] = new EmailAddress($this->_propDict["emailAddress"]);
  41. return $this->_propDict["emailAddress"];
  42. }
  43. }
  44. return null;
  45. }
  46. /**
  47. * Sets the emailAddress
  48. * The email address of the recipient to get mailtips for.
  49. *
  50. * @param EmailAddress $val The value to assign to the emailAddress
  51. *
  52. * @return MailTips The MailTips
  53. */
  54. public function setEmailAddress($val)
  55. {
  56. $this->_propDict["emailAddress"] = $val;
  57. return $this;
  58. }
  59. /**
  60. * Gets the automaticReplies
  61. * Mail tips for automatic reply if it has been set up by the recipient.
  62. *
  63. * @return AutomaticRepliesMailTips The automaticReplies
  64. */
  65. public function getAutomaticReplies()
  66. {
  67. if (array_key_exists("automaticReplies", $this->_propDict)) {
  68. if (is_a($this->_propDict["automaticReplies"], "Microsoft\Graph\Model\AutomaticRepliesMailTips")) {
  69. return $this->_propDict["automaticReplies"];
  70. } else {
  71. $this->_propDict["automaticReplies"] = new AutomaticRepliesMailTips($this->_propDict["automaticReplies"]);
  72. return $this->_propDict["automaticReplies"];
  73. }
  74. }
  75. return null;
  76. }
  77. /**
  78. * Sets the automaticReplies
  79. * Mail tips for automatic reply if it has been set up by the recipient.
  80. *
  81. * @param AutomaticRepliesMailTips $val The value to assign to the automaticReplies
  82. *
  83. * @return MailTips The MailTips
  84. */
  85. public function setAutomaticReplies($val)
  86. {
  87. $this->_propDict["automaticReplies"] = $val;
  88. return $this;
  89. }
  90. /**
  91. * Gets the mailboxFull
  92. * The mailbox full status of the recipient.
  93. *
  94. * @return bool The mailboxFull
  95. */
  96. public function getMailboxFull()
  97. {
  98. if (array_key_exists("mailboxFull", $this->_propDict)) {
  99. return $this->_propDict["mailboxFull"];
  100. } else {
  101. return null;
  102. }
  103. }
  104. /**
  105. * Sets the mailboxFull
  106. * The mailbox full status of the recipient.
  107. *
  108. * @param bool $val The value of the mailboxFull
  109. *
  110. * @return MailTips
  111. */
  112. public function setMailboxFull($val)
  113. {
  114. $this->_propDict["mailboxFull"] = $val;
  115. return $this;
  116. }
  117. /**
  118. * Gets the customMailTip
  119. * A custom mail tip that can be set on the recipient's mailbox.
  120. *
  121. * @return string The customMailTip
  122. */
  123. public function getCustomMailTip()
  124. {
  125. if (array_key_exists("customMailTip", $this->_propDict)) {
  126. return $this->_propDict["customMailTip"];
  127. } else {
  128. return null;
  129. }
  130. }
  131. /**
  132. * Sets the customMailTip
  133. * A custom mail tip that can be set on the recipient's mailbox.
  134. *
  135. * @param string $val The value of the customMailTip
  136. *
  137. * @return MailTips
  138. */
  139. public function setCustomMailTip($val)
  140. {
  141. $this->_propDict["customMailTip"] = $val;
  142. return $this;
  143. }
  144. /**
  145. * Gets the externalMemberCount
  146. * The number of external members if the recipient is a distribution list.
  147. *
  148. * @return int The externalMemberCount
  149. */
  150. public function getExternalMemberCount()
  151. {
  152. if (array_key_exists("externalMemberCount", $this->_propDict)) {
  153. return $this->_propDict["externalMemberCount"];
  154. } else {
  155. return null;
  156. }
  157. }
  158. /**
  159. * Sets the externalMemberCount
  160. * The number of external members if the recipient is a distribution list.
  161. *
  162. * @param int $val The value of the externalMemberCount
  163. *
  164. * @return MailTips
  165. */
  166. public function setExternalMemberCount($val)
  167. {
  168. $this->_propDict["externalMemberCount"] = $val;
  169. return $this;
  170. }
  171. /**
  172. * Gets the totalMemberCount
  173. * The number of members if the recipient is a distribution list.
  174. *
  175. * @return int The totalMemberCount
  176. */
  177. public function getTotalMemberCount()
  178. {
  179. if (array_key_exists("totalMemberCount", $this->_propDict)) {
  180. return $this->_propDict["totalMemberCount"];
  181. } else {
  182. return null;
  183. }
  184. }
  185. /**
  186. * Sets the totalMemberCount
  187. * The number of members if the recipient is a distribution list.
  188. *
  189. * @param int $val The value of the totalMemberCount
  190. *
  191. * @return MailTips
  192. */
  193. public function setTotalMemberCount($val)
  194. {
  195. $this->_propDict["totalMemberCount"] = $val;
  196. return $this;
  197. }
  198. /**
  199. * Gets the deliveryRestricted
  200. * Whether the recipient's mailbox is restricted, for example, accepting messages from only a predefined list of senders, rejecting messages from a predefined list of senders, or accepting messages from only authenticated senders.
  201. *
  202. * @return bool The deliveryRestricted
  203. */
  204. public function getDeliveryRestricted()
  205. {
  206. if (array_key_exists("deliveryRestricted", $this->_propDict)) {
  207. return $this->_propDict["deliveryRestricted"];
  208. } else {
  209. return null;
  210. }
  211. }
  212. /**
  213. * Sets the deliveryRestricted
  214. * Whether the recipient's mailbox is restricted, for example, accepting messages from only a predefined list of senders, rejecting messages from a predefined list of senders, or accepting messages from only authenticated senders.
  215. *
  216. * @param bool $val The value of the deliveryRestricted
  217. *
  218. * @return MailTips
  219. */
  220. public function setDeliveryRestricted($val)
  221. {
  222. $this->_propDict["deliveryRestricted"] = $val;
  223. return $this;
  224. }
  225. /**
  226. * Gets the isModerated
  227. * Whether sending messages to the recipient requires approval. For example, if the recipient is a large distribution list and a moderator has been set up to approve messages sent to that distribution list, or if sending messages to a recipient requires approval of the recipient's manager.
  228. *
  229. * @return bool The isModerated
  230. */
  231. public function getIsModerated()
  232. {
  233. if (array_key_exists("isModerated", $this->_propDict)) {
  234. return $this->_propDict["isModerated"];
  235. } else {
  236. return null;
  237. }
  238. }
  239. /**
  240. * Sets the isModerated
  241. * Whether sending messages to the recipient requires approval. For example, if the recipient is a large distribution list and a moderator has been set up to approve messages sent to that distribution list, or if sending messages to a recipient requires approval of the recipient's manager.
  242. *
  243. * @param bool $val The value of the isModerated
  244. *
  245. * @return MailTips
  246. */
  247. public function setIsModerated($val)
  248. {
  249. $this->_propDict["isModerated"] = $val;
  250. return $this;
  251. }
  252. /**
  253. * Gets the recipientScope
  254. * The scope of the recipient. Possible values are: none, internal, external, externalPartner, externalNonParther. For example, an administrator can set another organization to be its 'partner'. The scope is useful if an administrator wants certain mailtips to be accessible to certain scopes. It's also useful to senders to inform them that their message may leave the organization, helping them make the correct decisions about wording, tone and content.
  255. *
  256. * @return RecipientScopeType The recipientScope
  257. */
  258. public function getRecipientScope()
  259. {
  260. if (array_key_exists("recipientScope", $this->_propDict)) {
  261. if (is_a($this->_propDict["recipientScope"], "Microsoft\Graph\Model\RecipientScopeType")) {
  262. return $this->_propDict["recipientScope"];
  263. } else {
  264. $this->_propDict["recipientScope"] = new RecipientScopeType($this->_propDict["recipientScope"]);
  265. return $this->_propDict["recipientScope"];
  266. }
  267. }
  268. return null;
  269. }
  270. /**
  271. * Sets the recipientScope
  272. * The scope of the recipient. Possible values are: none, internal, external, externalPartner, externalNonParther. For example, an administrator can set another organization to be its 'partner'. The scope is useful if an administrator wants certain mailtips to be accessible to certain scopes. It's also useful to senders to inform them that their message may leave the organization, helping them make the correct decisions about wording, tone and content.
  273. *
  274. * @param RecipientScopeType $val The value to assign to the recipientScope
  275. *
  276. * @return MailTips The MailTips
  277. */
  278. public function setRecipientScope($val)
  279. {
  280. $this->_propDict["recipientScope"] = $val;
  281. return $this;
  282. }
  283. /**
  284. * Gets the recipientSuggestions
  285. * Recipients suggested based on previous contexts where they appear in the same message.
  286. *
  287. * @return Recipient The recipientSuggestions
  288. */
  289. public function getRecipientSuggestions()
  290. {
  291. if (array_key_exists("recipientSuggestions", $this->_propDict)) {
  292. if (is_a($this->_propDict["recipientSuggestions"], "Microsoft\Graph\Model\Recipient")) {
  293. return $this->_propDict["recipientSuggestions"];
  294. } else {
  295. $this->_propDict["recipientSuggestions"] = new Recipient($this->_propDict["recipientSuggestions"]);
  296. return $this->_propDict["recipientSuggestions"];
  297. }
  298. }
  299. return null;
  300. }
  301. /**
  302. * Sets the recipientSuggestions
  303. * Recipients suggested based on previous contexts where they appear in the same message.
  304. *
  305. * @param Recipient $val The value to assign to the recipientSuggestions
  306. *
  307. * @return MailTips The MailTips
  308. */
  309. public function setRecipientSuggestions($val)
  310. {
  311. $this->_propDict["recipientSuggestions"] = $val;
  312. return $this;
  313. }
  314. /**
  315. * Gets the maxMessageSize
  316. * The maximum message size that has been configured for the recipient's organization or mailbox.
  317. *
  318. * @return int The maxMessageSize
  319. */
  320. public function getMaxMessageSize()
  321. {
  322. if (array_key_exists("maxMessageSize", $this->_propDict)) {
  323. return $this->_propDict["maxMessageSize"];
  324. } else {
  325. return null;
  326. }
  327. }
  328. /**
  329. * Sets the maxMessageSize
  330. * The maximum message size that has been configured for the recipient's organization or mailbox.
  331. *
  332. * @param int $val The value of the maxMessageSize
  333. *
  334. * @return MailTips
  335. */
  336. public function setMaxMessageSize($val)
  337. {
  338. $this->_propDict["maxMessageSize"] = $val;
  339. return $this;
  340. }
  341. /**
  342. * Gets the error
  343. * Errors that occur during the getMailTips action.
  344. *
  345. * @return MailTipsError The error
  346. */
  347. public function getError()
  348. {
  349. if (array_key_exists("error", $this->_propDict)) {
  350. if (is_a($this->_propDict["error"], "Microsoft\Graph\Model\MailTipsError")) {
  351. return $this->_propDict["error"];
  352. } else {
  353. $this->_propDict["error"] = new MailTipsError($this->_propDict["error"]);
  354. return $this->_propDict["error"];
  355. }
  356. }
  357. return null;
  358. }
  359. /**
  360. * Sets the error
  361. * Errors that occur during the getMailTips action.
  362. *
  363. * @param MailTipsError $val The value to assign to the error
  364. *
  365. * @return MailTips The MailTips
  366. */
  367. public function setError($val)
  368. {
  369. $this->_propDict["error"] = $val;
  370. return $this;
  371. }
  372. }