AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Finding.h
1
6#pragma once
7#include <aws/codeguru-security/CodeGuruSecurity_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/codeguru-security/model/Remediation.h>
12#include <aws/codeguru-security/model/Resource.h>
13#include <aws/codeguru-security/model/Severity.h>
14#include <aws/codeguru-security/model/Status.h>
15#include <aws/codeguru-security/model/Vulnerability.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace CodeGuruSecurity
29{
30namespace Model
31{
32
39 class Finding
40 {
41 public:
42 AWS_CODEGURUSECURITY_API Finding() = default;
43 AWS_CODEGURUSECURITY_API Finding(Aws::Utils::Json::JsonView jsonValue);
44 AWS_CODEGURUSECURITY_API Finding& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_CODEGURUSECURITY_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
53 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
54 template<typename CreatedAtT = Aws::Utils::DateTime>
55 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
56 template<typename CreatedAtT = Aws::Utils::DateTime>
57 Finding& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
68 template<typename DescriptionT = Aws::String>
69 Finding& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
71
73
78 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
79 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
80 template<typename DetectorIdT = Aws::String>
81 void SetDetectorId(DetectorIdT&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::forward<DetectorIdT>(value); }
82 template<typename DetectorIdT = Aws::String>
83 Finding& WithDetectorId(DetectorIdT&& value) { SetDetectorId(std::forward<DetectorIdT>(value)); return *this;}
85
87
91 inline const Aws::String& GetDetectorName() const { return m_detectorName; }
92 inline bool DetectorNameHasBeenSet() const { return m_detectorNameHasBeenSet; }
93 template<typename DetectorNameT = Aws::String>
94 void SetDetectorName(DetectorNameT&& value) { m_detectorNameHasBeenSet = true; m_detectorName = std::forward<DetectorNameT>(value); }
95 template<typename DetectorNameT = Aws::String>
96 Finding& WithDetectorName(DetectorNameT&& value) { SetDetectorName(std::forward<DetectorNameT>(value)); return *this;}
98
100
105 inline const Aws::Vector<Aws::String>& GetDetectorTags() const { return m_detectorTags; }
106 inline bool DetectorTagsHasBeenSet() const { return m_detectorTagsHasBeenSet; }
107 template<typename DetectorTagsT = Aws::Vector<Aws::String>>
108 void SetDetectorTags(DetectorTagsT&& value) { m_detectorTagsHasBeenSet = true; m_detectorTags = std::forward<DetectorTagsT>(value); }
109 template<typename DetectorTagsT = Aws::Vector<Aws::String>>
110 Finding& WithDetectorTags(DetectorTagsT&& value) { SetDetectorTags(std::forward<DetectorTagsT>(value)); return *this;}
111 template<typename DetectorTagsT = Aws::String>
112 Finding& AddDetectorTags(DetectorTagsT&& value) { m_detectorTagsHasBeenSet = true; m_detectorTags.emplace_back(std::forward<DetectorTagsT>(value)); return *this; }
114
116
120 inline const Aws::String& GetGeneratorId() const { return m_generatorId; }
121 inline bool GeneratorIdHasBeenSet() const { return m_generatorIdHasBeenSet; }
122 template<typename GeneratorIdT = Aws::String>
123 void SetGeneratorId(GeneratorIdT&& value) { m_generatorIdHasBeenSet = true; m_generatorId = std::forward<GeneratorIdT>(value); }
124 template<typename GeneratorIdT = Aws::String>
125 Finding& WithGeneratorId(GeneratorIdT&& value) { SetGeneratorId(std::forward<GeneratorIdT>(value)); return *this;}
127
129
132 inline const Aws::String& GetId() const { return m_id; }
133 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
134 template<typename IdT = Aws::String>
135 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
136 template<typename IdT = Aws::String>
137 Finding& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
139
141
144 inline const Remediation& GetRemediation() const { return m_remediation; }
145 inline bool RemediationHasBeenSet() const { return m_remediationHasBeenSet; }
146 template<typename RemediationT = Remediation>
147 void SetRemediation(RemediationT&& value) { m_remediationHasBeenSet = true; m_remediation = std::forward<RemediationT>(value); }
148 template<typename RemediationT = Remediation>
149 Finding& WithRemediation(RemediationT&& value) { SetRemediation(std::forward<RemediationT>(value)); return *this;}
151
153
156 inline const Resource& GetResource() const { return m_resource; }
157 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
158 template<typename ResourceT = Resource>
159 void SetResource(ResourceT&& value) { m_resourceHasBeenSet = true; m_resource = std::forward<ResourceT>(value); }
160 template<typename ResourceT = Resource>
161 Finding& WithResource(ResourceT&& value) { SetResource(std::forward<ResourceT>(value)); return *this;}
163
165
168 inline const Aws::String& GetRuleId() const { return m_ruleId; }
169 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
170 template<typename RuleIdT = Aws::String>
171 void SetRuleId(RuleIdT&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::forward<RuleIdT>(value); }
172 template<typename RuleIdT = Aws::String>
173 Finding& WithRuleId(RuleIdT&& value) { SetRuleId(std::forward<RuleIdT>(value)); return *this;}
175
177
183 inline Severity GetSeverity() const { return m_severity; }
184 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
185 inline void SetSeverity(Severity value) { m_severityHasBeenSet = true; m_severity = value; }
186 inline Finding& WithSeverity(Severity value) { SetSeverity(value); return *this;}
188
190
193 inline Status GetStatus() const { return m_status; }
194 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
195 inline void SetStatus(Status value) { m_statusHasBeenSet = true; m_status = value; }
196 inline Finding& WithStatus(Status value) { SetStatus(value); return *this;}
198
200
203 inline const Aws::String& GetTitle() const { return m_title; }
204 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
205 template<typename TitleT = Aws::String>
206 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
207 template<typename TitleT = Aws::String>
208 Finding& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
210
212
215 inline const Aws::String& GetType() const { return m_type; }
216 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
217 template<typename TypeT = Aws::String>
218 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
219 template<typename TypeT = Aws::String>
220 Finding& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
222
224
228 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
229 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
230 template<typename UpdatedAtT = Aws::Utils::DateTime>
231 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
232 template<typename UpdatedAtT = Aws::Utils::DateTime>
233 Finding& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
235
237
240 inline const Vulnerability& GetVulnerability() const { return m_vulnerability; }
241 inline bool VulnerabilityHasBeenSet() const { return m_vulnerabilityHasBeenSet; }
242 template<typename VulnerabilityT = Vulnerability>
243 void SetVulnerability(VulnerabilityT&& value) { m_vulnerabilityHasBeenSet = true; m_vulnerability = std::forward<VulnerabilityT>(value); }
244 template<typename VulnerabilityT = Vulnerability>
245 Finding& WithVulnerability(VulnerabilityT&& value) { SetVulnerability(std::forward<VulnerabilityT>(value)); return *this;}
247 private:
248
249 Aws::Utils::DateTime m_createdAt{};
250 bool m_createdAtHasBeenSet = false;
251
252 Aws::String m_description;
253 bool m_descriptionHasBeenSet = false;
254
255 Aws::String m_detectorId;
256 bool m_detectorIdHasBeenSet = false;
257
258 Aws::String m_detectorName;
259 bool m_detectorNameHasBeenSet = false;
260
261 Aws::Vector<Aws::String> m_detectorTags;
262 bool m_detectorTagsHasBeenSet = false;
263
264 Aws::String m_generatorId;
265 bool m_generatorIdHasBeenSet = false;
266
267 Aws::String m_id;
268 bool m_idHasBeenSet = false;
269
270 Remediation m_remediation;
271 bool m_remediationHasBeenSet = false;
272
273 Resource m_resource;
274 bool m_resourceHasBeenSet = false;
275
276 Aws::String m_ruleId;
277 bool m_ruleIdHasBeenSet = false;
278
279 Severity m_severity{Severity::NOT_SET};
280 bool m_severityHasBeenSet = false;
281
282 Status m_status{Status::NOT_SET};
283 bool m_statusHasBeenSet = false;
284
285 Aws::String m_title;
286 bool m_titleHasBeenSet = false;
287
288 Aws::String m_type;
289 bool m_typeHasBeenSet = false;
290
291 Aws::Utils::DateTime m_updatedAt{};
292 bool m_updatedAtHasBeenSet = false;
293
294 Vulnerability m_vulnerability;
295 bool m_vulnerabilityHasBeenSet = false;
296 };
297
298} // namespace Model
299} // namespace CodeGuruSecurity
300} // namespace Aws
void SetRemediation(RemediationT &&value)
Definition Finding.h:147
Finding & WithDescription(DescriptionT &&value)
Definition Finding.h:69
Finding & WithTitle(TitleT &&value)
Definition Finding.h:208
void SetVulnerability(VulnerabilityT &&value)
Definition Finding.h:243
AWS_CODEGURUSECURITY_API Finding()=default
Finding & WithStatus(Status value)
Definition Finding.h:196
void SetDetectorTags(DetectorTagsT &&value)
Definition Finding.h:108
void SetTitle(TitleT &&value)
Definition Finding.h:206
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Finding.h:228
const Aws::String & GetType() const
Definition Finding.h:215
const Aws::Vector< Aws::String > & GetDetectorTags() const
Definition Finding.h:105
const Aws::String & GetRuleId() const
Definition Finding.h:168
const Aws::String & GetDetectorId() const
Definition Finding.h:78
AWS_CODEGURUSECURITY_API Aws::Utils::Json::JsonValue Jsonize() const
Finding & WithVulnerability(VulnerabilityT &&value)
Definition Finding.h:245
void SetSeverity(Severity value)
Definition Finding.h:185
Finding & WithType(TypeT &&value)
Definition Finding.h:220
void SetDescription(DescriptionT &&value)
Definition Finding.h:67
const Aws::String & GetDescription() const
Definition Finding.h:64
void SetGeneratorId(GeneratorIdT &&value)
Definition Finding.h:123
Finding & WithResource(ResourceT &&value)
Definition Finding.h:161
Finding & WithRuleId(RuleIdT &&value)
Definition Finding.h:173
Finding & WithGeneratorId(GeneratorIdT &&value)
Definition Finding.h:125
Finding & WithId(IdT &&value)
Definition Finding.h:137
const Aws::String & GetDetectorName() const
Definition Finding.h:91
Finding & WithDetectorId(DetectorIdT &&value)
Definition Finding.h:83
const Aws::String & GetGeneratorId() const
Definition Finding.h:120
const Vulnerability & GetVulnerability() const
Definition Finding.h:240
const Aws::String & GetId() const
Definition Finding.h:132
const Aws::String & GetTitle() const
Definition Finding.h:203
Finding & WithDetectorName(DetectorNameT &&value)
Definition Finding.h:96
Finding & WithCreatedAt(CreatedAtT &&value)
Definition Finding.h:57
void SetRuleId(RuleIdT &&value)
Definition Finding.h:171
void SetCreatedAt(CreatedAtT &&value)
Definition Finding.h:55
Finding & WithDetectorTags(DetectorTagsT &&value)
Definition Finding.h:110
Finding & AddDetectorTags(DetectorTagsT &&value)
Definition Finding.h:112
void SetDetectorName(DetectorNameT &&value)
Definition Finding.h:94
void SetDetectorId(DetectorIdT &&value)
Definition Finding.h:81
AWS_CODEGURUSECURITY_API Finding(Aws::Utils::Json::JsonView jsonValue)
Finding & WithUpdatedAt(UpdatedAtT &&value)
Definition Finding.h:233
const Remediation & GetRemediation() const
Definition Finding.h:144
void SetUpdatedAt(UpdatedAtT &&value)
Definition Finding.h:231
const Resource & GetResource() const
Definition Finding.h:156
Finding & WithRemediation(RemediationT &&value)
Definition Finding.h:149
AWS_CODEGURUSECURITY_API Finding & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetResource(ResourceT &&value)
Definition Finding.h:159
Finding & WithSeverity(Severity value)
Definition Finding.h:186
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Finding.h:52
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue