AWS SDK for C++

AWS SDK for C++ Version 1.11.644

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/codeguru-security/model/Status.h>
11#include <aws/codeguru-security/model/Resource.h>
12#include <aws/codeguru-security/model/Vulnerability.h>
13#include <aws/codeguru-security/model/Severity.h>
14#include <aws/codeguru-security/model/Remediation.h>
15#include <aws/core/utils/memory/stl/AWSVector.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
77 inline const Aws::String& GetGeneratorId() const { return m_generatorId; }
78 inline bool GeneratorIdHasBeenSet() const { return m_generatorIdHasBeenSet; }
79 template<typename GeneratorIdT = Aws::String>
80 void SetGeneratorId(GeneratorIdT&& value) { m_generatorIdHasBeenSet = true; m_generatorId = std::forward<GeneratorIdT>(value); }
81 template<typename GeneratorIdT = Aws::String>
82 Finding& WithGeneratorId(GeneratorIdT&& value) { SetGeneratorId(std::forward<GeneratorIdT>(value)); return *this;}
84
86
89 inline const Aws::String& GetId() const { return m_id; }
90 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
91 template<typename IdT = Aws::String>
92 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
93 template<typename IdT = Aws::String>
94 Finding& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
96
98
102 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
103 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
104 template<typename UpdatedAtT = Aws::Utils::DateTime>
105 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
106 template<typename UpdatedAtT = Aws::Utils::DateTime>
107 Finding& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
109
111
114 inline const Aws::String& GetType() const { return m_type; }
115 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
116 template<typename TypeT = Aws::String>
117 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
118 template<typename TypeT = Aws::String>
119 Finding& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
121
123
126 inline Status GetStatus() const { return m_status; }
127 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
128 inline void SetStatus(Status value) { m_statusHasBeenSet = true; m_status = value; }
129 inline Finding& WithStatus(Status value) { SetStatus(value); return *this;}
131
133
136 inline const Resource& GetResource() const { return m_resource; }
137 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
138 template<typename ResourceT = Resource>
139 void SetResource(ResourceT&& value) { m_resourceHasBeenSet = true; m_resource = std::forward<ResourceT>(value); }
140 template<typename ResourceT = Resource>
141 Finding& WithResource(ResourceT&& value) { SetResource(std::forward<ResourceT>(value)); return *this;}
143
145
148 inline const Vulnerability& GetVulnerability() const { return m_vulnerability; }
149 inline bool VulnerabilityHasBeenSet() const { return m_vulnerabilityHasBeenSet; }
150 template<typename VulnerabilityT = Vulnerability>
151 void SetVulnerability(VulnerabilityT&& value) { m_vulnerabilityHasBeenSet = true; m_vulnerability = std::forward<VulnerabilityT>(value); }
152 template<typename VulnerabilityT = Vulnerability>
153 Finding& WithVulnerability(VulnerabilityT&& value) { SetVulnerability(std::forward<VulnerabilityT>(value)); return *this;}
155
157
163 inline Severity GetSeverity() const { return m_severity; }
164 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
165 inline void SetSeverity(Severity value) { m_severityHasBeenSet = true; m_severity = value; }
166 inline Finding& WithSeverity(Severity value) { SetSeverity(value); return *this;}
168
170
173 inline const Remediation& GetRemediation() const { return m_remediation; }
174 inline bool RemediationHasBeenSet() const { return m_remediationHasBeenSet; }
175 template<typename RemediationT = Remediation>
176 void SetRemediation(RemediationT&& value) { m_remediationHasBeenSet = true; m_remediation = std::forward<RemediationT>(value); }
177 template<typename RemediationT = Remediation>
178 Finding& WithRemediation(RemediationT&& value) { SetRemediation(std::forward<RemediationT>(value)); return *this;}
180
182
185 inline const Aws::String& GetTitle() const { return m_title; }
186 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
187 template<typename TitleT = Aws::String>
188 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
189 template<typename TitleT = Aws::String>
190 Finding& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
192
194
199 inline const Aws::Vector<Aws::String>& GetDetectorTags() const { return m_detectorTags; }
200 inline bool DetectorTagsHasBeenSet() const { return m_detectorTagsHasBeenSet; }
201 template<typename DetectorTagsT = Aws::Vector<Aws::String>>
202 void SetDetectorTags(DetectorTagsT&& value) { m_detectorTagsHasBeenSet = true; m_detectorTags = std::forward<DetectorTagsT>(value); }
203 template<typename DetectorTagsT = Aws::Vector<Aws::String>>
204 Finding& WithDetectorTags(DetectorTagsT&& value) { SetDetectorTags(std::forward<DetectorTagsT>(value)); return *this;}
205 template<typename DetectorTagsT = Aws::String>
206 Finding& AddDetectorTags(DetectorTagsT&& value) { m_detectorTagsHasBeenSet = true; m_detectorTags.emplace_back(std::forward<DetectorTagsT>(value)); return *this; }
208
210
215 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
216 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
217 template<typename DetectorIdT = Aws::String>
218 void SetDetectorId(DetectorIdT&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::forward<DetectorIdT>(value); }
219 template<typename DetectorIdT = Aws::String>
220 Finding& WithDetectorId(DetectorIdT&& value) { SetDetectorId(std::forward<DetectorIdT>(value)); return *this;}
222
224
228 inline const Aws::String& GetDetectorName() const { return m_detectorName; }
229 inline bool DetectorNameHasBeenSet() const { return m_detectorNameHasBeenSet; }
230 template<typename DetectorNameT = Aws::String>
231 void SetDetectorName(DetectorNameT&& value) { m_detectorNameHasBeenSet = true; m_detectorName = std::forward<DetectorNameT>(value); }
232 template<typename DetectorNameT = Aws::String>
233 Finding& WithDetectorName(DetectorNameT&& value) { SetDetectorName(std::forward<DetectorNameT>(value)); return *this;}
235
237
240 inline const Aws::String& GetRuleId() const { return m_ruleId; }
241 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
242 template<typename RuleIdT = Aws::String>
243 void SetRuleId(RuleIdT&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::forward<RuleIdT>(value); }
244 template<typename RuleIdT = Aws::String>
245 Finding& WithRuleId(RuleIdT&& value) { SetRuleId(std::forward<RuleIdT>(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_generatorId;
256 bool m_generatorIdHasBeenSet = false;
257
258 Aws::String m_id;
259 bool m_idHasBeenSet = false;
260
261 Aws::Utils::DateTime m_updatedAt{};
262 bool m_updatedAtHasBeenSet = false;
263
264 Aws::String m_type;
265 bool m_typeHasBeenSet = false;
266
267 Status m_status{Status::NOT_SET};
268 bool m_statusHasBeenSet = false;
269
270 Resource m_resource;
271 bool m_resourceHasBeenSet = false;
272
273 Vulnerability m_vulnerability;
274 bool m_vulnerabilityHasBeenSet = false;
275
276 Severity m_severity{Severity::NOT_SET};
277 bool m_severityHasBeenSet = false;
278
279 Remediation m_remediation;
280 bool m_remediationHasBeenSet = false;
281
282 Aws::String m_title;
283 bool m_titleHasBeenSet = false;
284
285 Aws::Vector<Aws::String> m_detectorTags;
286 bool m_detectorTagsHasBeenSet = false;
287
288 Aws::String m_detectorId;
289 bool m_detectorIdHasBeenSet = false;
290
291 Aws::String m_detectorName;
292 bool m_detectorNameHasBeenSet = false;
293
294 Aws::String m_ruleId;
295 bool m_ruleIdHasBeenSet = false;
296 };
297
298} // namespace Model
299} // namespace CodeGuruSecurity
300} // namespace Aws
void SetRemediation(RemediationT &&value)
Definition Finding.h:176
Finding & WithDescription(DescriptionT &&value)
Definition Finding.h:69
Finding & WithTitle(TitleT &&value)
Definition Finding.h:190
void SetVulnerability(VulnerabilityT &&value)
Definition Finding.h:151
AWS_CODEGURUSECURITY_API Finding()=default
Finding & WithStatus(Status value)
Definition Finding.h:129
void SetDetectorTags(DetectorTagsT &&value)
Definition Finding.h:202
void SetTitle(TitleT &&value)
Definition Finding.h:188
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Finding.h:102
const Aws::String & GetType() const
Definition Finding.h:114
const Aws::Vector< Aws::String > & GetDetectorTags() const
Definition Finding.h:199
const Aws::String & GetRuleId() const
Definition Finding.h:240
const Aws::String & GetDetectorId() const
Definition Finding.h:215
AWS_CODEGURUSECURITY_API Aws::Utils::Json::JsonValue Jsonize() const
Finding & WithVulnerability(VulnerabilityT &&value)
Definition Finding.h:153
void SetSeverity(Severity value)
Definition Finding.h:165
Finding & WithType(TypeT &&value)
Definition Finding.h:119
void SetDescription(DescriptionT &&value)
Definition Finding.h:67
const Aws::String & GetDescription() const
Definition Finding.h:64
void SetGeneratorId(GeneratorIdT &&value)
Definition Finding.h:80
Finding & WithResource(ResourceT &&value)
Definition Finding.h:141
Finding & WithRuleId(RuleIdT &&value)
Definition Finding.h:245
Finding & WithGeneratorId(GeneratorIdT &&value)
Definition Finding.h:82
Finding & WithId(IdT &&value)
Definition Finding.h:94
const Aws::String & GetDetectorName() const
Definition Finding.h:228
Finding & WithDetectorId(DetectorIdT &&value)
Definition Finding.h:220
const Aws::String & GetGeneratorId() const
Definition Finding.h:77
const Vulnerability & GetVulnerability() const
Definition Finding.h:148
const Aws::String & GetId() const
Definition Finding.h:89
const Aws::String & GetTitle() const
Definition Finding.h:185
Finding & WithDetectorName(DetectorNameT &&value)
Definition Finding.h:233
Finding & WithCreatedAt(CreatedAtT &&value)
Definition Finding.h:57
void SetRuleId(RuleIdT &&value)
Definition Finding.h:243
void SetCreatedAt(CreatedAtT &&value)
Definition Finding.h:55
Finding & WithDetectorTags(DetectorTagsT &&value)
Definition Finding.h:204
Finding & AddDetectorTags(DetectorTagsT &&value)
Definition Finding.h:206
void SetDetectorName(DetectorNameT &&value)
Definition Finding.h:231
void SetDetectorId(DetectorIdT &&value)
Definition Finding.h:218
AWS_CODEGURUSECURITY_API Finding(Aws::Utils::Json::JsonView jsonValue)
Finding & WithUpdatedAt(UpdatedAtT &&value)
Definition Finding.h:107
const Remediation & GetRemediation() const
Definition Finding.h:173
void SetUpdatedAt(UpdatedAtT &&value)
Definition Finding.h:105
const Resource & GetResource() const
Definition Finding.h:136
Finding & WithRemediation(RemediationT &&value)
Definition Finding.h:178
AWS_CODEGURUSECURITY_API Finding & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetResource(ResourceT &&value)
Definition Finding.h:139
Finding & WithSeverity(Severity value)
Definition Finding.h:166
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