AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Finding.h
1
6#pragma once
7#include <aws/codeguru-security/CodeGuruSecurity_EXPORTS.h>
8#include <aws/codeguru-security/model/Remediation.h>
9#include <aws/codeguru-security/model/Resource.h>
10#include <aws/codeguru-security/model/Severity.h>
11#include <aws/codeguru-security/model/Status.h>
12#include <aws/codeguru-security/model/Vulnerability.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace CodeGuruSecurity {
27namespace Model {
28
35class Finding {
36 public:
37 AWS_CODEGURUSECURITY_API Finding() = default;
38 AWS_CODEGURUSECURITY_API Finding(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEGURUSECURITY_API Finding& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEGURUSECURITY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
47 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
48 template <typename CreatedAtT = Aws::Utils::DateTime>
49 void SetCreatedAt(CreatedAtT&& value) {
50 m_createdAtHasBeenSet = true;
51 m_createdAt = std::forward<CreatedAtT>(value);
52 }
53 template <typename CreatedAtT = Aws::Utils::DateTime>
54 Finding& WithCreatedAt(CreatedAtT&& value) {
55 SetCreatedAt(std::forward<CreatedAtT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetDescription() const { return m_description; }
65 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
66 template <typename DescriptionT = Aws::String>
67 void SetDescription(DescriptionT&& value) {
68 m_descriptionHasBeenSet = true;
69 m_description = std::forward<DescriptionT>(value);
70 }
71 template <typename DescriptionT = Aws::String>
72 Finding& WithDescription(DescriptionT&& value) {
73 SetDescription(std::forward<DescriptionT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::String& GetGeneratorId() const { return m_generatorId; }
84 inline bool GeneratorIdHasBeenSet() const { return m_generatorIdHasBeenSet; }
85 template <typename GeneratorIdT = Aws::String>
86 void SetGeneratorId(GeneratorIdT&& value) {
87 m_generatorIdHasBeenSet = true;
88 m_generatorId = std::forward<GeneratorIdT>(value);
89 }
90 template <typename GeneratorIdT = Aws::String>
91 Finding& WithGeneratorId(GeneratorIdT&& value) {
92 SetGeneratorId(std::forward<GeneratorIdT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetId() const { return m_id; }
102 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
103 template <typename IdT = Aws::String>
104 void SetId(IdT&& value) {
105 m_idHasBeenSet = true;
106 m_id = std::forward<IdT>(value);
107 }
108 template <typename IdT = Aws::String>
109 Finding& WithId(IdT&& value) {
110 SetId(std::forward<IdT>(value));
111 return *this;
112 }
114
116
120 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
121 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
122 template <typename UpdatedAtT = Aws::Utils::DateTime>
123 void SetUpdatedAt(UpdatedAtT&& value) {
124 m_updatedAtHasBeenSet = true;
125 m_updatedAt = std::forward<UpdatedAtT>(value);
126 }
127 template <typename UpdatedAtT = Aws::Utils::DateTime>
128 Finding& WithUpdatedAt(UpdatedAtT&& value) {
129 SetUpdatedAt(std::forward<UpdatedAtT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetType() const { return m_type; }
139 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
140 template <typename TypeT = Aws::String>
141 void SetType(TypeT&& value) {
142 m_typeHasBeenSet = true;
143 m_type = std::forward<TypeT>(value);
144 }
145 template <typename TypeT = Aws::String>
146 Finding& WithType(TypeT&& value) {
147 SetType(std::forward<TypeT>(value));
148 return *this;
149 }
151
153
156 inline Status GetStatus() const { return m_status; }
157 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
158 inline void SetStatus(Status value) {
159 m_statusHasBeenSet = true;
160 m_status = value;
161 }
162 inline Finding& WithStatus(Status value) {
163 SetStatus(value);
164 return *this;
165 }
167
169
172 inline const Resource& GetResource() const { return m_resource; }
173 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
174 template <typename ResourceT = Resource>
175 void SetResource(ResourceT&& value) {
176 m_resourceHasBeenSet = true;
177 m_resource = std::forward<ResourceT>(value);
178 }
179 template <typename ResourceT = Resource>
180 Finding& WithResource(ResourceT&& value) {
181 SetResource(std::forward<ResourceT>(value));
182 return *this;
183 }
185
187
190 inline const Vulnerability& GetVulnerability() const { return m_vulnerability; }
191 inline bool VulnerabilityHasBeenSet() const { return m_vulnerabilityHasBeenSet; }
192 template <typename VulnerabilityT = Vulnerability>
193 void SetVulnerability(VulnerabilityT&& value) {
194 m_vulnerabilityHasBeenSet = true;
195 m_vulnerability = std::forward<VulnerabilityT>(value);
196 }
197 template <typename VulnerabilityT = Vulnerability>
198 Finding& WithVulnerability(VulnerabilityT&& value) {
199 SetVulnerability(std::forward<VulnerabilityT>(value));
200 return *this;
201 }
203
205
211 inline Severity GetSeverity() const { return m_severity; }
212 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
213 inline void SetSeverity(Severity value) {
214 m_severityHasBeenSet = true;
215 m_severity = value;
216 }
218 SetSeverity(value);
219 return *this;
220 }
222
224
227 inline const Remediation& GetRemediation() const { return m_remediation; }
228 inline bool RemediationHasBeenSet() const { return m_remediationHasBeenSet; }
229 template <typename RemediationT = Remediation>
230 void SetRemediation(RemediationT&& value) {
231 m_remediationHasBeenSet = true;
232 m_remediation = std::forward<RemediationT>(value);
233 }
234 template <typename RemediationT = Remediation>
235 Finding& WithRemediation(RemediationT&& value) {
236 SetRemediation(std::forward<RemediationT>(value));
237 return *this;
238 }
240
242
245 inline const Aws::String& GetTitle() const { return m_title; }
246 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
247 template <typename TitleT = Aws::String>
248 void SetTitle(TitleT&& value) {
249 m_titleHasBeenSet = true;
250 m_title = std::forward<TitleT>(value);
251 }
252 template <typename TitleT = Aws::String>
253 Finding& WithTitle(TitleT&& value) {
254 SetTitle(std::forward<TitleT>(value));
255 return *this;
256 }
258
260
265 inline const Aws::Vector<Aws::String>& GetDetectorTags() const { return m_detectorTags; }
266 inline bool DetectorTagsHasBeenSet() const { return m_detectorTagsHasBeenSet; }
267 template <typename DetectorTagsT = Aws::Vector<Aws::String>>
268 void SetDetectorTags(DetectorTagsT&& value) {
269 m_detectorTagsHasBeenSet = true;
270 m_detectorTags = std::forward<DetectorTagsT>(value);
271 }
272 template <typename DetectorTagsT = Aws::Vector<Aws::String>>
273 Finding& WithDetectorTags(DetectorTagsT&& value) {
274 SetDetectorTags(std::forward<DetectorTagsT>(value));
275 return *this;
276 }
277 template <typename DetectorTagsT = Aws::String>
278 Finding& AddDetectorTags(DetectorTagsT&& value) {
279 m_detectorTagsHasBeenSet = true;
280 m_detectorTags.emplace_back(std::forward<DetectorTagsT>(value));
281 return *this;
282 }
284
286
291 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
292 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
293 template <typename DetectorIdT = Aws::String>
294 void SetDetectorId(DetectorIdT&& value) {
295 m_detectorIdHasBeenSet = true;
296 m_detectorId = std::forward<DetectorIdT>(value);
297 }
298 template <typename DetectorIdT = Aws::String>
299 Finding& WithDetectorId(DetectorIdT&& value) {
300 SetDetectorId(std::forward<DetectorIdT>(value));
301 return *this;
302 }
304
306
310 inline const Aws::String& GetDetectorName() const { return m_detectorName; }
311 inline bool DetectorNameHasBeenSet() const { return m_detectorNameHasBeenSet; }
312 template <typename DetectorNameT = Aws::String>
313 void SetDetectorName(DetectorNameT&& value) {
314 m_detectorNameHasBeenSet = true;
315 m_detectorName = std::forward<DetectorNameT>(value);
316 }
317 template <typename DetectorNameT = Aws::String>
318 Finding& WithDetectorName(DetectorNameT&& value) {
319 SetDetectorName(std::forward<DetectorNameT>(value));
320 return *this;
321 }
323
325
328 inline const Aws::String& GetRuleId() const { return m_ruleId; }
329 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
330 template <typename RuleIdT = Aws::String>
331 void SetRuleId(RuleIdT&& value) {
332 m_ruleIdHasBeenSet = true;
333 m_ruleId = std::forward<RuleIdT>(value);
334 }
335 template <typename RuleIdT = Aws::String>
336 Finding& WithRuleId(RuleIdT&& value) {
337 SetRuleId(std::forward<RuleIdT>(value));
338 return *this;
339 }
341 private:
342 Aws::Utils::DateTime m_createdAt{};
343
344 Aws::String m_description;
345
346 Aws::String m_generatorId;
347
348 Aws::String m_id;
349
350 Aws::Utils::DateTime m_updatedAt{};
351
352 Aws::String m_type;
353
354 Status m_status{Status::NOT_SET};
355
356 Resource m_resource;
357
358 Vulnerability m_vulnerability;
359
360 Severity m_severity{Severity::NOT_SET};
361
362 Remediation m_remediation;
363
364 Aws::String m_title;
365
366 Aws::Vector<Aws::String> m_detectorTags;
367
368 Aws::String m_detectorId;
369
370 Aws::String m_detectorName;
371
372 Aws::String m_ruleId;
373 bool m_createdAtHasBeenSet = false;
374 bool m_descriptionHasBeenSet = false;
375 bool m_generatorIdHasBeenSet = false;
376 bool m_idHasBeenSet = false;
377 bool m_updatedAtHasBeenSet = false;
378 bool m_typeHasBeenSet = false;
379 bool m_statusHasBeenSet = false;
380 bool m_resourceHasBeenSet = false;
381 bool m_vulnerabilityHasBeenSet = false;
382 bool m_severityHasBeenSet = false;
383 bool m_remediationHasBeenSet = false;
384 bool m_titleHasBeenSet = false;
385 bool m_detectorTagsHasBeenSet = false;
386 bool m_detectorIdHasBeenSet = false;
387 bool m_detectorNameHasBeenSet = false;
388 bool m_ruleIdHasBeenSet = false;
389};
390
391} // namespace Model
392} // namespace CodeGuruSecurity
393} // namespace Aws
void SetRemediation(RemediationT &&value)
Definition Finding.h:230
Finding & WithDescription(DescriptionT &&value)
Definition Finding.h:72
Finding & WithTitle(TitleT &&value)
Definition Finding.h:253
void SetVulnerability(VulnerabilityT &&value)
Definition Finding.h:193
AWS_CODEGURUSECURITY_API Finding()=default
Finding & WithStatus(Status value)
Definition Finding.h:162
void SetDetectorTags(DetectorTagsT &&value)
Definition Finding.h:268
void SetTitle(TitleT &&value)
Definition Finding.h:248
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Finding.h:120
const Aws::String & GetType() const
Definition Finding.h:138
const Aws::Vector< Aws::String > & GetDetectorTags() const
Definition Finding.h:265
const Aws::String & GetRuleId() const
Definition Finding.h:328
const Aws::String & GetDetectorId() const
Definition Finding.h:291
AWS_CODEGURUSECURITY_API Aws::Utils::Json::JsonValue Jsonize() const
Finding & WithVulnerability(VulnerabilityT &&value)
Definition Finding.h:198
void SetSeverity(Severity value)
Definition Finding.h:213
Finding & WithType(TypeT &&value)
Definition Finding.h:146
void SetDescription(DescriptionT &&value)
Definition Finding.h:67
const Aws::String & GetDescription() const
Definition Finding.h:64
void SetGeneratorId(GeneratorIdT &&value)
Definition Finding.h:86
Finding & WithResource(ResourceT &&value)
Definition Finding.h:180
Finding & WithRuleId(RuleIdT &&value)
Definition Finding.h:336
Finding & WithGeneratorId(GeneratorIdT &&value)
Definition Finding.h:91
Finding & WithId(IdT &&value)
Definition Finding.h:109
const Aws::String & GetDetectorName() const
Definition Finding.h:310
Finding & WithDetectorId(DetectorIdT &&value)
Definition Finding.h:299
const Aws::String & GetGeneratorId() const
Definition Finding.h:83
const Vulnerability & GetVulnerability() const
Definition Finding.h:190
const Aws::String & GetId() const
Definition Finding.h:101
const Aws::String & GetTitle() const
Definition Finding.h:245
Finding & WithDetectorName(DetectorNameT &&value)
Definition Finding.h:318
Finding & WithCreatedAt(CreatedAtT &&value)
Definition Finding.h:54
void SetRuleId(RuleIdT &&value)
Definition Finding.h:331
void SetCreatedAt(CreatedAtT &&value)
Definition Finding.h:49
Finding & WithDetectorTags(DetectorTagsT &&value)
Definition Finding.h:273
Finding & AddDetectorTags(DetectorTagsT &&value)
Definition Finding.h:278
void SetDetectorName(DetectorNameT &&value)
Definition Finding.h:313
void SetDetectorId(DetectorIdT &&value)
Definition Finding.h:294
AWS_CODEGURUSECURITY_API Finding(Aws::Utils::Json::JsonView jsonValue)
Finding & WithUpdatedAt(UpdatedAtT &&value)
Definition Finding.h:128
const Remediation & GetRemediation() const
Definition Finding.h:227
void SetUpdatedAt(UpdatedAtT &&value)
Definition Finding.h:123
const Resource & GetResource() const
Definition Finding.h:172
Finding & WithRemediation(RemediationT &&value)
Definition Finding.h:235
AWS_CODEGURUSECURITY_API Finding & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetResource(ResourceT &&value)
Definition Finding.h:175
Finding & WithSeverity(Severity value)
Definition Finding.h:217
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Finding.h:46
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue