AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
Finding.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityagent/SecurityAgent_EXPORTS.h>
10#include <aws/securityagent/model/CodeRemediationTask.h>
11#include <aws/securityagent/model/ConfidenceLevel.h>
12#include <aws/securityagent/model/FindingStatus.h>
13#include <aws/securityagent/model/RiskLevel.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SecurityAgent {
25namespace Model {
26
33class Finding {
34 public:
35 AWS_SECURITYAGENT_API Finding() = default;
36 AWS_SECURITYAGENT_API Finding(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SECURITYAGENT_API Finding& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetFindingId() const { return m_findingId; }
45 inline bool FindingIdHasBeenSet() const { return m_findingIdHasBeenSet; }
46 template <typename FindingIdT = Aws::String>
47 void SetFindingId(FindingIdT&& value) {
48 m_findingIdHasBeenSet = true;
49 m_findingId = std::forward<FindingIdT>(value);
50 }
51 template <typename FindingIdT = Aws::String>
52 Finding& WithFindingId(FindingIdT&& value) {
53 SetFindingId(std::forward<FindingIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
63 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
64 template <typename AgentSpaceIdT = Aws::String>
65 void SetAgentSpaceId(AgentSpaceIdT&& value) {
66 m_agentSpaceIdHasBeenSet = true;
67 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
68 }
69 template <typename AgentSpaceIdT = Aws::String>
70 Finding& WithAgentSpaceId(AgentSpaceIdT&& value) {
71 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetPentestId() const { return m_pentestId; }
81 inline bool PentestIdHasBeenSet() const { return m_pentestIdHasBeenSet; }
82 template <typename PentestIdT = Aws::String>
83 void SetPentestId(PentestIdT&& value) {
84 m_pentestIdHasBeenSet = true;
85 m_pentestId = std::forward<PentestIdT>(value);
86 }
87 template <typename PentestIdT = Aws::String>
88 Finding& WithPentestId(PentestIdT&& value) {
89 SetPentestId(std::forward<PentestIdT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetPentestJobId() const { return m_pentestJobId; }
99 inline bool PentestJobIdHasBeenSet() const { return m_pentestJobIdHasBeenSet; }
100 template <typename PentestJobIdT = Aws::String>
101 void SetPentestJobId(PentestJobIdT&& value) {
102 m_pentestJobIdHasBeenSet = true;
103 m_pentestJobId = std::forward<PentestJobIdT>(value);
104 }
105 template <typename PentestJobIdT = Aws::String>
106 Finding& WithPentestJobId(PentestJobIdT&& value) {
107 SetPentestJobId(std::forward<PentestJobIdT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetTaskId() const { return m_taskId; }
117 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
118 template <typename TaskIdT = Aws::String>
119 void SetTaskId(TaskIdT&& value) {
120 m_taskIdHasBeenSet = true;
121 m_taskId = std::forward<TaskIdT>(value);
122 }
123 template <typename TaskIdT = Aws::String>
124 Finding& WithTaskId(TaskIdT&& value) {
125 SetTaskId(std::forward<TaskIdT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::String& GetName() const { return m_name; }
135 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
136 template <typename NameT = Aws::String>
137 void SetName(NameT&& value) {
138 m_nameHasBeenSet = true;
139 m_name = std::forward<NameT>(value);
140 }
141 template <typename NameT = Aws::String>
142 Finding& WithName(NameT&& value) {
143 SetName(std::forward<NameT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::String& GetDescription() const { return m_description; }
153 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
154 template <typename DescriptionT = Aws::String>
155 void SetDescription(DescriptionT&& value) {
156 m_descriptionHasBeenSet = true;
157 m_description = std::forward<DescriptionT>(value);
158 }
159 template <typename DescriptionT = Aws::String>
160 Finding& WithDescription(DescriptionT&& value) {
161 SetDescription(std::forward<DescriptionT>(value));
162 return *this;
163 }
165
167
170 inline FindingStatus GetStatus() const { return m_status; }
171 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
172 inline void SetStatus(FindingStatus value) {
173 m_statusHasBeenSet = true;
174 m_status = value;
175 }
177 SetStatus(value);
178 return *this;
179 }
181
183
186 inline const Aws::String& GetRiskType() const { return m_riskType; }
187 inline bool RiskTypeHasBeenSet() const { return m_riskTypeHasBeenSet; }
188 template <typename RiskTypeT = Aws::String>
189 void SetRiskType(RiskTypeT&& value) {
190 m_riskTypeHasBeenSet = true;
191 m_riskType = std::forward<RiskTypeT>(value);
192 }
193 template <typename RiskTypeT = Aws::String>
194 Finding& WithRiskType(RiskTypeT&& value) {
195 SetRiskType(std::forward<RiskTypeT>(value));
196 return *this;
197 }
199
201
204 inline RiskLevel GetRiskLevel() const { return m_riskLevel; }
205 inline bool RiskLevelHasBeenSet() const { return m_riskLevelHasBeenSet; }
206 inline void SetRiskLevel(RiskLevel value) {
207 m_riskLevelHasBeenSet = true;
208 m_riskLevel = value;
209 }
211 SetRiskLevel(value);
212 return *this;
213 }
215
217
220 inline const Aws::String& GetRiskScore() const { return m_riskScore; }
221 inline bool RiskScoreHasBeenSet() const { return m_riskScoreHasBeenSet; }
222 template <typename RiskScoreT = Aws::String>
223 void SetRiskScore(RiskScoreT&& value) {
224 m_riskScoreHasBeenSet = true;
225 m_riskScore = std::forward<RiskScoreT>(value);
226 }
227 template <typename RiskScoreT = Aws::String>
228 Finding& WithRiskScore(RiskScoreT&& value) {
229 SetRiskScore(std::forward<RiskScoreT>(value));
230 return *this;
231 }
233
235
238 inline const Aws::String& GetReasoning() const { return m_reasoning; }
239 inline bool ReasoningHasBeenSet() const { return m_reasoningHasBeenSet; }
240 template <typename ReasoningT = Aws::String>
241 void SetReasoning(ReasoningT&& value) {
242 m_reasoningHasBeenSet = true;
243 m_reasoning = std::forward<ReasoningT>(value);
244 }
245 template <typename ReasoningT = Aws::String>
246 Finding& WithReasoning(ReasoningT&& value) {
247 SetReasoning(std::forward<ReasoningT>(value));
248 return *this;
249 }
251
253
256 inline ConfidenceLevel GetConfidence() const { return m_confidence; }
257 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
258 inline void SetConfidence(ConfidenceLevel value) {
259 m_confidenceHasBeenSet = true;
260 m_confidence = value;
261 }
263 SetConfidence(value);
264 return *this;
265 }
267
269
272 inline const Aws::String& GetAttackScript() const { return m_attackScript; }
273 inline bool AttackScriptHasBeenSet() const { return m_attackScriptHasBeenSet; }
274 template <typename AttackScriptT = Aws::String>
275 void SetAttackScript(AttackScriptT&& value) {
276 m_attackScriptHasBeenSet = true;
277 m_attackScript = std::forward<AttackScriptT>(value);
278 }
279 template <typename AttackScriptT = Aws::String>
280 Finding& WithAttackScript(AttackScriptT&& value) {
281 SetAttackScript(std::forward<AttackScriptT>(value));
282 return *this;
283 }
285
287
290 inline const CodeRemediationTask& GetCodeRemediationTask() const { return m_codeRemediationTask; }
291 inline bool CodeRemediationTaskHasBeenSet() const { return m_codeRemediationTaskHasBeenSet; }
292 template <typename CodeRemediationTaskT = CodeRemediationTask>
293 void SetCodeRemediationTask(CodeRemediationTaskT&& value) {
294 m_codeRemediationTaskHasBeenSet = true;
295 m_codeRemediationTask = std::forward<CodeRemediationTaskT>(value);
296 }
297 template <typename CodeRemediationTaskT = CodeRemediationTask>
298 Finding& WithCodeRemediationTask(CodeRemediationTaskT&& value) {
299 SetCodeRemediationTask(std::forward<CodeRemediationTaskT>(value));
300 return *this;
301 }
303
305
308 inline const Aws::String& GetLastUpdatedBy() const { return m_lastUpdatedBy; }
309 inline bool LastUpdatedByHasBeenSet() const { return m_lastUpdatedByHasBeenSet; }
310 template <typename LastUpdatedByT = Aws::String>
311 void SetLastUpdatedBy(LastUpdatedByT&& value) {
312 m_lastUpdatedByHasBeenSet = true;
313 m_lastUpdatedBy = std::forward<LastUpdatedByT>(value);
314 }
315 template <typename LastUpdatedByT = Aws::String>
316 Finding& WithLastUpdatedBy(LastUpdatedByT&& value) {
317 SetLastUpdatedBy(std::forward<LastUpdatedByT>(value));
318 return *this;
319 }
321
323
326 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
327 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
328 template <typename CreatedAtT = Aws::Utils::DateTime>
329 void SetCreatedAt(CreatedAtT&& value) {
330 m_createdAtHasBeenSet = true;
331 m_createdAt = std::forward<CreatedAtT>(value);
332 }
333 template <typename CreatedAtT = Aws::Utils::DateTime>
334 Finding& WithCreatedAt(CreatedAtT&& value) {
335 SetCreatedAt(std::forward<CreatedAtT>(value));
336 return *this;
337 }
339
341
344 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
345 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
346 template <typename UpdatedAtT = Aws::Utils::DateTime>
347 void SetUpdatedAt(UpdatedAtT&& value) {
348 m_updatedAtHasBeenSet = true;
349 m_updatedAt = std::forward<UpdatedAtT>(value);
350 }
351 template <typename UpdatedAtT = Aws::Utils::DateTime>
352 Finding& WithUpdatedAt(UpdatedAtT&& value) {
353 SetUpdatedAt(std::forward<UpdatedAtT>(value));
354 return *this;
355 }
357 private:
358 Aws::String m_findingId;
359
360 Aws::String m_agentSpaceId;
361
362 Aws::String m_pentestId;
363
364 Aws::String m_pentestJobId;
365
366 Aws::String m_taskId;
367
368 Aws::String m_name;
369
370 Aws::String m_description;
371
373
374 Aws::String m_riskType;
375
376 RiskLevel m_riskLevel{RiskLevel::NOT_SET};
377
378 Aws::String m_riskScore;
379
380 Aws::String m_reasoning;
381
383
384 Aws::String m_attackScript;
385
386 CodeRemediationTask m_codeRemediationTask;
387
388 Aws::String m_lastUpdatedBy;
389
390 Aws::Utils::DateTime m_createdAt{};
391
392 Aws::Utils::DateTime m_updatedAt{};
393 bool m_findingIdHasBeenSet = false;
394 bool m_agentSpaceIdHasBeenSet = false;
395 bool m_pentestIdHasBeenSet = false;
396 bool m_pentestJobIdHasBeenSet = false;
397 bool m_taskIdHasBeenSet = false;
398 bool m_nameHasBeenSet = false;
399 bool m_descriptionHasBeenSet = false;
400 bool m_statusHasBeenSet = false;
401 bool m_riskTypeHasBeenSet = false;
402 bool m_riskLevelHasBeenSet = false;
403 bool m_riskScoreHasBeenSet = false;
404 bool m_reasoningHasBeenSet = false;
405 bool m_confidenceHasBeenSet = false;
406 bool m_attackScriptHasBeenSet = false;
407 bool m_codeRemediationTaskHasBeenSet = false;
408 bool m_lastUpdatedByHasBeenSet = false;
409 bool m_createdAtHasBeenSet = false;
410 bool m_updatedAtHasBeenSet = false;
411};
412
413} // namespace Model
414} // namespace SecurityAgent
415} // namespace Aws
bool CodeRemediationTaskHasBeenSet() const
Definition Finding.h:291
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYAGENT_API Finding & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Finding.h:344
void SetCodeRemediationTask(CodeRemediationTaskT &&value)
Definition Finding.h:293
const Aws::String & GetTaskId() const
Definition Finding.h:116
const Aws::String & GetAgentSpaceId() const
Definition Finding.h:62
const Aws::String & GetName() const
Definition Finding.h:134
const Aws::String & GetRiskType() const
Definition Finding.h:186
Finding & WithRiskType(RiskTypeT &&value)
Definition Finding.h:194
Finding & WithDescription(DescriptionT &&value)
Definition Finding.h:160
void SetStatus(FindingStatus value)
Definition Finding.h:172
void SetName(NameT &&value)
Definition Finding.h:137
Finding & WithPentestId(PentestIdT &&value)
Definition Finding.h:88
void SetDescription(DescriptionT &&value)
Definition Finding.h:155
Finding & WithCodeRemediationTask(CodeRemediationTaskT &&value)
Definition Finding.h:298
void SetReasoning(ReasoningT &&value)
Definition Finding.h:241
Finding & WithStatus(FindingStatus value)
Definition Finding.h:176
Finding & WithTaskId(TaskIdT &&value)
Definition Finding.h:124
void SetUpdatedAt(UpdatedAtT &&value)
Definition Finding.h:347
FindingStatus GetStatus() const
Definition Finding.h:170
Finding & WithConfidence(ConfidenceLevel value)
Definition Finding.h:262
AWS_SECURITYAGENT_API Finding(Aws::Utils::Json::JsonView jsonValue)
const CodeRemediationTask & GetCodeRemediationTask() const
Definition Finding.h:290
const Aws::String & GetLastUpdatedBy() const
Definition Finding.h:308
Finding & WithLastUpdatedBy(LastUpdatedByT &&value)
Definition Finding.h:316
void SetCreatedAt(CreatedAtT &&value)
Definition Finding.h:329
const Aws::String & GetAttackScript() const
Definition Finding.h:272
const Aws::String & GetPentestJobId() const
Definition Finding.h:98
Finding & WithFindingId(FindingIdT &&value)
Definition Finding.h:52
RiskLevel GetRiskLevel() const
Definition Finding.h:204
void SetAttackScript(AttackScriptT &&value)
Definition Finding.h:275
void SetAgentSpaceId(AgentSpaceIdT &&value)
Definition Finding.h:65
Finding & WithRiskLevel(RiskLevel value)
Definition Finding.h:210
Finding & WithRiskScore(RiskScoreT &&value)
Definition Finding.h:228
void SetTaskId(TaskIdT &&value)
Definition Finding.h:119
Finding & WithUpdatedAt(UpdatedAtT &&value)
Definition Finding.h:352
void SetConfidence(ConfidenceLevel value)
Definition Finding.h:258
Finding & WithAgentSpaceId(AgentSpaceIdT &&value)
Definition Finding.h:70
Finding & WithAttackScript(AttackScriptT &&value)
Definition Finding.h:280
const Aws::String & GetPentestId() const
Definition Finding.h:80
const Aws::String & GetDescription() const
Definition Finding.h:152
Finding & WithName(NameT &&value)
Definition Finding.h:142
void SetLastUpdatedBy(LastUpdatedByT &&value)
Definition Finding.h:311
AWS_SECURITYAGENT_API Finding()=default
void SetRiskScore(RiskScoreT &&value)
Definition Finding.h:223
const Aws::String & GetReasoning() const
Definition Finding.h:238
Finding & WithReasoning(ReasoningT &&value)
Definition Finding.h:246
void SetFindingId(FindingIdT &&value)
Definition Finding.h:47
Finding & WithPentestJobId(PentestJobIdT &&value)
Definition Finding.h:106
Finding & WithCreatedAt(CreatedAtT &&value)
Definition Finding.h:334
ConfidenceLevel GetConfidence() const
Definition Finding.h:256
void SetRiskType(RiskTypeT &&value)
Definition Finding.h:189
const Aws::String & GetFindingId() const
Definition Finding.h:44
void SetPentestJobId(PentestJobIdT &&value)
Definition Finding.h:101
void SetPentestId(PentestIdT &&value)
Definition Finding.h:83
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Finding.h:326
void SetRiskLevel(RiskLevel value)
Definition Finding.h:206
const Aws::String & GetRiskScore() const
Definition Finding.h:220
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue