forked from microsoftgraph/msgraph-sdk-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAlertEvidence.php
More file actions
242 lines (231 loc) · 8.05 KB
/
Copy pathAlertEvidence.php
File metadata and controls
242 lines (231 loc) · 8.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* AlertEvidence File
* PHP version 7
*
* @category Library
* @package Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license https://opensource.org/licenses/MIT MIT License
* @link https://graph.microsoft.com
*/
namespace Microsoft\Graph\SecurityNamespace\Model;
/**
* AlertEvidence class
*
* @category Model
* @package Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license https://opensource.org/licenses/MIT MIT License
* @link https://graph.microsoft.com
*/
class AlertEvidence extends \Microsoft\Graph\Model\Entity
{
/**
* Gets the createdDateTime
* The date and time when the evidence was created and added to the alert. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
*
* @return \DateTime|null The createdDateTime
*/
public function getCreatedDateTime()
{
if (array_key_exists("createdDateTime", $this->_propDict)) {
if (is_a($this->_propDict["createdDateTime"], "\DateTime") || is_null($this->_propDict["createdDateTime"])) {
return $this->_propDict["createdDateTime"];
} else {
$this->_propDict["createdDateTime"] = new \DateTime($this->_propDict["createdDateTime"]);
return $this->_propDict["createdDateTime"];
}
}
return null;
}
/**
* Sets the createdDateTime
* The date and time when the evidence was created and added to the alert. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
*
* @param \DateTime $val The value to assign to the createdDateTime
*
* @return AlertEvidence The AlertEvidence
*/
public function setCreatedDateTime($val)
{
$this->_propDict["createdDateTime"] = $val;
return $this;
}
/**
* Gets the detailedRoles
* Detailed description of the entity role/s in an alert. Values are free-form.
*
* @return string|null The detailedRoles
*/
public function getDetailedRoles()
{
if (array_key_exists("detailedRoles", $this->_propDict)) {
return $this->_propDict["detailedRoles"];
} else {
return null;
}
}
/**
* Sets the detailedRoles
* Detailed description of the entity role/s in an alert. Values are free-form.
*
* @param string $val The value of the detailedRoles
*
* @return AlertEvidence
*/
public function setDetailedRoles($val)
{
$this->_propDict["detailedRoles"] = $val;
return $this;
}
/**
* Gets the remediationStatus
* Status of the remediation action taken. The possible values are: none, remediated, prevented, blocked, notFound, unknownFutureValue.
*
* @return EvidenceRemediationStatus|null The remediationStatus
*/
public function getRemediationStatus()
{
if (array_key_exists("remediationStatus", $this->_propDict)) {
if (is_a($this->_propDict["remediationStatus"], "\Microsoft\Graph\SecurityNamespace\Model\EvidenceRemediationStatus") || is_null($this->_propDict["remediationStatus"])) {
return $this->_propDict["remediationStatus"];
} else {
$this->_propDict["remediationStatus"] = new EvidenceRemediationStatus($this->_propDict["remediationStatus"]);
return $this->_propDict["remediationStatus"];
}
}
return null;
}
/**
* Sets the remediationStatus
* Status of the remediation action taken. The possible values are: none, remediated, prevented, blocked, notFound, unknownFutureValue.
*
* @param EvidenceRemediationStatus $val The value to assign to the remediationStatus
*
* @return AlertEvidence The AlertEvidence
*/
public function setRemediationStatus($val)
{
$this->_propDict["remediationStatus"] = $val;
return $this;
}
/**
* Gets the remediationStatusDetails
* Details about the remediation status.
*
* @return string|null The remediationStatusDetails
*/
public function getRemediationStatusDetails()
{
if (array_key_exists("remediationStatusDetails", $this->_propDict)) {
return $this->_propDict["remediationStatusDetails"];
} else {
return null;
}
}
/**
* Sets the remediationStatusDetails
* Details about the remediation status.
*
* @param string $val The value of the remediationStatusDetails
*
* @return AlertEvidence
*/
public function setRemediationStatusDetails($val)
{
$this->_propDict["remediationStatusDetails"] = $val;
return $this;
}
/**
* Gets the roles
* The role/s that an evidence entity represents in an alert, for example, an IP address that is associated with an attacker has the evidence role Attacker.
*
* @return EvidenceRole|null The roles
*/
public function getRoles()
{
if (array_key_exists("roles", $this->_propDict)) {
if (is_a($this->_propDict["roles"], "\Microsoft\Graph\SecurityNamespace\Model\EvidenceRole") || is_null($this->_propDict["roles"])) {
return $this->_propDict["roles"];
} else {
$this->_propDict["roles"] = new EvidenceRole($this->_propDict["roles"]);
return $this->_propDict["roles"];
}
}
return null;
}
/**
* Sets the roles
* The role/s that an evidence entity represents in an alert, for example, an IP address that is associated with an attacker has the evidence role Attacker.
*
* @param EvidenceRole $val The value to assign to the roles
*
* @return AlertEvidence The AlertEvidence
*/
public function setRoles($val)
{
$this->_propDict["roles"] = $val;
return $this;
}
/**
* Gets the tags
* Array of custom tags associated with an evidence instance, for example, to denote a group of devices, high-value assets, etc.
*
* @return string|null The tags
*/
public function getTags()
{
if (array_key_exists("tags", $this->_propDict)) {
return $this->_propDict["tags"];
} else {
return null;
}
}
/**
* Sets the tags
* Array of custom tags associated with an evidence instance, for example, to denote a group of devices, high-value assets, etc.
*
* @param string $val The value of the tags
*
* @return AlertEvidence
*/
public function setTags($val)
{
$this->_propDict["tags"] = $val;
return $this;
}
/**
* Gets the verdict
* The decision reached by automated investigation. The possible values are: unknown, suspicious, malicious, noThreatsFound, unknownFutureValue.
*
* @return EvidenceVerdict|null The verdict
*/
public function getVerdict()
{
if (array_key_exists("verdict", $this->_propDict)) {
if (is_a($this->_propDict["verdict"], "\Microsoft\Graph\SecurityNamespace\Model\EvidenceVerdict") || is_null($this->_propDict["verdict"])) {
return $this->_propDict["verdict"];
} else {
$this->_propDict["verdict"] = new EvidenceVerdict($this->_propDict["verdict"]);
return $this->_propDict["verdict"];
}
}
return null;
}
/**
* Sets the verdict
* The decision reached by automated investigation. The possible values are: unknown, suspicious, malicious, noThreatsFound, unknownFutureValue.
*
* @param EvidenceVerdict $val The value to assign to the verdict
*
* @return AlertEvidence The AlertEvidence
*/
public function setVerdict($val)
{
$this->_propDict["verdict"] = $val;
return $this;
}
}