|
| 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 | +* AlertHistoryState 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 | +* AlertHistoryState 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 AlertHistoryState extends Entity |
| 27 | +{ |
| 28 | + /** |
| 29 | + * Gets the appId |
| 30 | + * |
| 31 | + * @return string The appId |
| 32 | + */ |
| 33 | + public function getAppId() |
| 34 | + { |
| 35 | + if (array_key_exists("appId", $this->_propDict)) { |
| 36 | + return $this->_propDict["appId"]; |
| 37 | + } else { |
| 38 | + return null; |
| 39 | + } |
| 40 | + } |
| 41 | + |
| 42 | + /** |
| 43 | + * Sets the appId |
| 44 | + * |
| 45 | + * @param string $val The value of the appId |
| 46 | + * |
| 47 | + * @return AlertHistoryState |
| 48 | + */ |
| 49 | + public function setAppId($val) |
| 50 | + { |
| 51 | + $this->_propDict["appId"] = $val; |
| 52 | + return $this; |
| 53 | + } |
| 54 | + /** |
| 55 | + * Gets the assignedTo |
| 56 | + * |
| 57 | + * @return string The assignedTo |
| 58 | + */ |
| 59 | + public function getAssignedTo() |
| 60 | + { |
| 61 | + if (array_key_exists("assignedTo", $this->_propDict)) { |
| 62 | + return $this->_propDict["assignedTo"]; |
| 63 | + } else { |
| 64 | + return null; |
| 65 | + } |
| 66 | + } |
| 67 | + |
| 68 | + /** |
| 69 | + * Sets the assignedTo |
| 70 | + * |
| 71 | + * @param string $val The value of the assignedTo |
| 72 | + * |
| 73 | + * @return AlertHistoryState |
| 74 | + */ |
| 75 | + public function setAssignedTo($val) |
| 76 | + { |
| 77 | + $this->_propDict["assignedTo"] = $val; |
| 78 | + return $this; |
| 79 | + } |
| 80 | + /** |
| 81 | + * Gets the comments |
| 82 | + * |
| 83 | + * @return string The comments |
| 84 | + */ |
| 85 | + public function getComments() |
| 86 | + { |
| 87 | + if (array_key_exists("comments", $this->_propDict)) { |
| 88 | + return $this->_propDict["comments"]; |
| 89 | + } else { |
| 90 | + return null; |
| 91 | + } |
| 92 | + } |
| 93 | + |
| 94 | + /** |
| 95 | + * Sets the comments |
| 96 | + * |
| 97 | + * @param string $val The value of the comments |
| 98 | + * |
| 99 | + * @return AlertHistoryState |
| 100 | + */ |
| 101 | + public function setComments($val) |
| 102 | + { |
| 103 | + $this->_propDict["comments"] = $val; |
| 104 | + return $this; |
| 105 | + } |
| 106 | + |
| 107 | + /** |
| 108 | + * Gets the feedback |
| 109 | + * |
| 110 | + * @return AlertFeedback The feedback |
| 111 | + */ |
| 112 | + public function getFeedback() |
| 113 | + { |
| 114 | + if (array_key_exists("feedback", $this->_propDict)) { |
| 115 | + if (is_a($this->_propDict["feedback"], "Microsoft\Graph\Model\AlertFeedback")) { |
| 116 | + return $this->_propDict["feedback"]; |
| 117 | + } else { |
| 118 | + $this->_propDict["feedback"] = new AlertFeedback($this->_propDict["feedback"]); |
| 119 | + return $this->_propDict["feedback"]; |
| 120 | + } |
| 121 | + } |
| 122 | + return null; |
| 123 | + } |
| 124 | + |
| 125 | + /** |
| 126 | + * Sets the feedback |
| 127 | + * |
| 128 | + * @param AlertFeedback $val The value to assign to the feedback |
| 129 | + * |
| 130 | + * @return AlertHistoryState The AlertHistoryState |
| 131 | + */ |
| 132 | + public function setFeedback($val) |
| 133 | + { |
| 134 | + $this->_propDict["feedback"] = $val; |
| 135 | + return $this; |
| 136 | + } |
| 137 | + |
| 138 | + /** |
| 139 | + * Gets the status |
| 140 | + * |
| 141 | + * @return AlertStatus The status |
| 142 | + */ |
| 143 | + public function getStatus() |
| 144 | + { |
| 145 | + if (array_key_exists("status", $this->_propDict)) { |
| 146 | + if (is_a($this->_propDict["status"], "Microsoft\Graph\Model\AlertStatus")) { |
| 147 | + return $this->_propDict["status"]; |
| 148 | + } else { |
| 149 | + $this->_propDict["status"] = new AlertStatus($this->_propDict["status"]); |
| 150 | + return $this->_propDict["status"]; |
| 151 | + } |
| 152 | + } |
| 153 | + return null; |
| 154 | + } |
| 155 | + |
| 156 | + /** |
| 157 | + * Sets the status |
| 158 | + * |
| 159 | + * @param AlertStatus $val The value to assign to the status |
| 160 | + * |
| 161 | + * @return AlertHistoryState The AlertHistoryState |
| 162 | + */ |
| 163 | + public function setStatus($val) |
| 164 | + { |
| 165 | + $this->_propDict["status"] = $val; |
| 166 | + return $this; |
| 167 | + } |
| 168 | + |
| 169 | + /** |
| 170 | + * Gets the updatedDateTime |
| 171 | + * |
| 172 | + * @return \DateTime The updatedDateTime |
| 173 | + */ |
| 174 | + public function getUpdatedDateTime() |
| 175 | + { |
| 176 | + if (array_key_exists("updatedDateTime", $this->_propDict)) { |
| 177 | + if (is_a($this->_propDict["updatedDateTime"], "Microsoft\Graph\Model\\DateTime")) { |
| 178 | + return $this->_propDict["updatedDateTime"]; |
| 179 | + } else { |
| 180 | + $this->_propDict["updatedDateTime"] = new \DateTime($this->_propDict["updatedDateTime"]); |
| 181 | + return $this->_propDict["updatedDateTime"]; |
| 182 | + } |
| 183 | + } |
| 184 | + return null; |
| 185 | + } |
| 186 | + |
| 187 | + /** |
| 188 | + * Sets the updatedDateTime |
| 189 | + * |
| 190 | + * @param \DateTime $val The value to assign to the updatedDateTime |
| 191 | + * |
| 192 | + * @return AlertHistoryState The AlertHistoryState |
| 193 | + */ |
| 194 | + public function setUpdatedDateTime($val) |
| 195 | + { |
| 196 | + $this->_propDict["updatedDateTime"] = $val; |
| 197 | + return $this; |
| 198 | + } |
| 199 | + /** |
| 200 | + * Gets the user |
| 201 | + * |
| 202 | + * @return string The user |
| 203 | + */ |
| 204 | + public function getUser() |
| 205 | + { |
| 206 | + if (array_key_exists("user", $this->_propDict)) { |
| 207 | + return $this->_propDict["user"]; |
| 208 | + } else { |
| 209 | + return null; |
| 210 | + } |
| 211 | + } |
| 212 | + |
| 213 | + /** |
| 214 | + * Sets the user |
| 215 | + * |
| 216 | + * @param string $val The value of the user |
| 217 | + * |
| 218 | + * @return AlertHistoryState |
| 219 | + */ |
| 220 | + public function setUser($val) |
| 221 | + { |
| 222 | + $this->_propDict["user"] = $val; |
| 223 | + return $this; |
| 224 | + } |
| 225 | +} |
0 commit comments