AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
55 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
56 inline Finding& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
57 inline Finding& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
59
61
64 inline const Aws::String& GetDescription() const{ return m_description; }
65 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
66 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
67 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
68 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
69 inline Finding& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
70 inline Finding& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
71 inline Finding& WithDescription(const char* value) { SetDescription(value); return *this;}
73
75
80 inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
81 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
82 inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
83 inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
84 inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
85 inline Finding& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
86 inline Finding& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
87 inline Finding& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
89
91
95 inline const Aws::String& GetDetectorName() const{ return m_detectorName; }
96 inline bool DetectorNameHasBeenSet() const { return m_detectorNameHasBeenSet; }
97 inline void SetDetectorName(const Aws::String& value) { m_detectorNameHasBeenSet = true; m_detectorName = value; }
98 inline void SetDetectorName(Aws::String&& value) { m_detectorNameHasBeenSet = true; m_detectorName = std::move(value); }
99 inline void SetDetectorName(const char* value) { m_detectorNameHasBeenSet = true; m_detectorName.assign(value); }
100 inline Finding& WithDetectorName(const Aws::String& value) { SetDetectorName(value); return *this;}
101 inline Finding& WithDetectorName(Aws::String&& value) { SetDetectorName(std::move(value)); return *this;}
102 inline Finding& WithDetectorName(const char* value) { SetDetectorName(value); return *this;}
104
106
111 inline const Aws::Vector<Aws::String>& GetDetectorTags() const{ return m_detectorTags; }
112 inline bool DetectorTagsHasBeenSet() const { return m_detectorTagsHasBeenSet; }
113 inline void SetDetectorTags(const Aws::Vector<Aws::String>& value) { m_detectorTagsHasBeenSet = true; m_detectorTags = value; }
114 inline void SetDetectorTags(Aws::Vector<Aws::String>&& value) { m_detectorTagsHasBeenSet = true; m_detectorTags = std::move(value); }
115 inline Finding& WithDetectorTags(const Aws::Vector<Aws::String>& value) { SetDetectorTags(value); return *this;}
116 inline Finding& WithDetectorTags(Aws::Vector<Aws::String>&& value) { SetDetectorTags(std::move(value)); return *this;}
117 inline Finding& AddDetectorTags(const Aws::String& value) { m_detectorTagsHasBeenSet = true; m_detectorTags.push_back(value); return *this; }
118 inline Finding& AddDetectorTags(Aws::String&& value) { m_detectorTagsHasBeenSet = true; m_detectorTags.push_back(std::move(value)); return *this; }
119 inline Finding& AddDetectorTags(const char* value) { m_detectorTagsHasBeenSet = true; m_detectorTags.push_back(value); return *this; }
121
123
127 inline const Aws::String& GetGeneratorId() const{ return m_generatorId; }
128 inline bool GeneratorIdHasBeenSet() const { return m_generatorIdHasBeenSet; }
129 inline void SetGeneratorId(const Aws::String& value) { m_generatorIdHasBeenSet = true; m_generatorId = value; }
130 inline void SetGeneratorId(Aws::String&& value) { m_generatorIdHasBeenSet = true; m_generatorId = std::move(value); }
131 inline void SetGeneratorId(const char* value) { m_generatorIdHasBeenSet = true; m_generatorId.assign(value); }
132 inline Finding& WithGeneratorId(const Aws::String& value) { SetGeneratorId(value); return *this;}
133 inline Finding& WithGeneratorId(Aws::String&& value) { SetGeneratorId(std::move(value)); return *this;}
134 inline Finding& WithGeneratorId(const char* value) { SetGeneratorId(value); return *this;}
136
138
141 inline const Aws::String& GetId() const{ return m_id; }
142 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
143 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
144 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
145 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
146 inline Finding& WithId(const Aws::String& value) { SetId(value); return *this;}
147 inline Finding& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
148 inline Finding& WithId(const char* value) { SetId(value); return *this;}
150
152
155 inline const Remediation& GetRemediation() const{ return m_remediation; }
156 inline bool RemediationHasBeenSet() const { return m_remediationHasBeenSet; }
157 inline void SetRemediation(const Remediation& value) { m_remediationHasBeenSet = true; m_remediation = value; }
158 inline void SetRemediation(Remediation&& value) { m_remediationHasBeenSet = true; m_remediation = std::move(value); }
159 inline Finding& WithRemediation(const Remediation& value) { SetRemediation(value); return *this;}
160 inline Finding& WithRemediation(Remediation&& value) { SetRemediation(std::move(value)); return *this;}
162
164
167 inline const Resource& GetResource() const{ return m_resource; }
168 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
169 inline void SetResource(const Resource& value) { m_resourceHasBeenSet = true; m_resource = value; }
170 inline void SetResource(Resource&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
171 inline Finding& WithResource(const Resource& value) { SetResource(value); return *this;}
172 inline Finding& WithResource(Resource&& value) { SetResource(std::move(value)); return *this;}
174
176
179 inline const Aws::String& GetRuleId() const{ return m_ruleId; }
180 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
181 inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
182 inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); }
183 inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); }
184 inline Finding& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
185 inline Finding& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;}
186 inline Finding& WithRuleId(const char* value) { SetRuleId(value); return *this;}
188
190
196 inline const Severity& GetSeverity() const{ return m_severity; }
197 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
198 inline void SetSeverity(const Severity& value) { m_severityHasBeenSet = true; m_severity = value; }
199 inline void SetSeverity(Severity&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
200 inline Finding& WithSeverity(const Severity& value) { SetSeverity(value); return *this;}
201 inline Finding& WithSeverity(Severity&& value) { SetSeverity(std::move(value)); return *this;}
203
205
208 inline const Status& GetStatus() const{ return m_status; }
209 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
210 inline void SetStatus(const Status& value) { m_statusHasBeenSet = true; m_status = value; }
211 inline void SetStatus(Status&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
212 inline Finding& WithStatus(const Status& value) { SetStatus(value); return *this;}
213 inline Finding& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;}
215
217
220 inline const Aws::String& GetTitle() const{ return m_title; }
221 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
222 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
223 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
224 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
225 inline Finding& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
226 inline Finding& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
227 inline Finding& WithTitle(const char* value) { SetTitle(value); return *this;}
229
231
234 inline const Aws::String& GetType() const{ return m_type; }
235 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
236 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
237 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
238 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
239 inline Finding& WithType(const Aws::String& value) { SetType(value); return *this;}
240 inline Finding& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
241 inline Finding& WithType(const char* value) { SetType(value); return *this;}
243
245
249 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
250 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
251 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
252 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
253 inline Finding& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
254 inline Finding& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
256
258
261 inline const Vulnerability& GetVulnerability() const{ return m_vulnerability; }
262 inline bool VulnerabilityHasBeenSet() const { return m_vulnerabilityHasBeenSet; }
263 inline void SetVulnerability(const Vulnerability& value) { m_vulnerabilityHasBeenSet = true; m_vulnerability = value; }
264 inline void SetVulnerability(Vulnerability&& value) { m_vulnerabilityHasBeenSet = true; m_vulnerability = std::move(value); }
265 inline Finding& WithVulnerability(const Vulnerability& value) { SetVulnerability(value); return *this;}
266 inline Finding& WithVulnerability(Vulnerability&& value) { SetVulnerability(std::move(value)); return *this;}
268 private:
269
270 Aws::Utils::DateTime m_createdAt;
271 bool m_createdAtHasBeenSet = false;
272
273 Aws::String m_description;
274 bool m_descriptionHasBeenSet = false;
275
276 Aws::String m_detectorId;
277 bool m_detectorIdHasBeenSet = false;
278
279 Aws::String m_detectorName;
280 bool m_detectorNameHasBeenSet = false;
281
282 Aws::Vector<Aws::String> m_detectorTags;
283 bool m_detectorTagsHasBeenSet = false;
284
285 Aws::String m_generatorId;
286 bool m_generatorIdHasBeenSet = false;
287
288 Aws::String m_id;
289 bool m_idHasBeenSet = false;
290
291 Remediation m_remediation;
292 bool m_remediationHasBeenSet = false;
293
294 Resource m_resource;
295 bool m_resourceHasBeenSet = false;
296
297 Aws::String m_ruleId;
298 bool m_ruleIdHasBeenSet = false;
299
300 Severity m_severity;
301 bool m_severityHasBeenSet = false;
302
303 Status m_status;
304 bool m_statusHasBeenSet = false;
305
306 Aws::String m_title;
307 bool m_titleHasBeenSet = false;
308
309 Aws::String m_type;
310 bool m_typeHasBeenSet = false;
311
312 Aws::Utils::DateTime m_updatedAt;
313 bool m_updatedAtHasBeenSet = false;
314
315 Vulnerability m_vulnerability;
316 bool m_vulnerabilityHasBeenSet = false;
317 };
318
319} // namespace Model
320} // namespace CodeGuruSecurity
321} // namespace Aws
void SetResource(Resource &&value)
Definition Finding.h:170
void SetVulnerability(const Vulnerability &value)
Definition Finding.h:263
void SetType(const Aws::String &value)
Definition Finding.h:236
Finding & AddDetectorTags(const Aws::String &value)
Definition Finding.h:117
void SetTitle(const char *value)
Definition Finding.h:224
void SetUpdatedAt(Aws::Utils::DateTime &&value)
Definition Finding.h:252
Finding & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition Finding.h:56
Finding & WithDetectorId(const Aws::String &value)
Definition Finding.h:85
Finding & WithVulnerability(const Vulnerability &value)
Definition Finding.h:265
Finding & WithSeverity(Severity &&value)
Definition Finding.h:201
Finding & WithTitle(const char *value)
Definition Finding.h:227
void SetStatus(const Status &value)
Definition Finding.h:210
void SetRuleId(const Aws::String &value)
Definition Finding.h:181
Finding & WithRuleId(Aws::String &&value)
Definition Finding.h:185
void SetRemediation(Remediation &&value)
Definition Finding.h:158
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Finding.h:249
AWS_CODEGURUSECURITY_API Finding()
void SetRemediation(const Remediation &value)
Definition Finding.h:157
const Aws::String & GetType() const
Definition Finding.h:234
Finding & AddDetectorTags(Aws::String &&value)
Definition Finding.h:118
const Aws::Vector< Aws::String > & GetDetectorTags() const
Definition Finding.h:111
Finding & WithId(Aws::String &&value)
Definition Finding.h:147
Finding & WithGeneratorId(const Aws::String &value)
Definition Finding.h:132
Finding & WithType(const char *value)
Definition Finding.h:241
Finding & WithDescription(const Aws::String &value)
Definition Finding.h:69
void SetSeverity(const Severity &value)
Definition Finding.h:198
const Aws::String & GetRuleId() const
Definition Finding.h:179
const Aws::String & GetDetectorId() const
Definition Finding.h:80
void SetVulnerability(Vulnerability &&value)
Definition Finding.h:264
AWS_CODEGURUSECURITY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(Status &&value)
Definition Finding.h:211
Finding & WithDetectorId(const char *value)
Definition Finding.h:87
void SetTitle(Aws::String &&value)
Definition Finding.h:223
void SetDetectorName(Aws::String &&value)
Definition Finding.h:98
Finding & WithTitle(Aws::String &&value)
Definition Finding.h:226
void SetId(const Aws::String &value)
Definition Finding.h:143
void SetRuleId(const char *value)
Definition Finding.h:183
void SetDetectorName(const Aws::String &value)
Definition Finding.h:97
Finding & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition Finding.h:57
void SetDetectorId(const Aws::String &value)
Definition Finding.h:82
void SetGeneratorId(const char *value)
Definition Finding.h:131
Finding & WithStatus(Status &&value)
Definition Finding.h:213
void SetUpdatedAt(const Aws::Utils::DateTime &value)
Definition Finding.h:251
const Aws::String & GetDescription() const
Definition Finding.h:64
Finding & WithType(Aws::String &&value)
Definition Finding.h:240
void SetGeneratorId(const Aws::String &value)
Definition Finding.h:129
void SetId(const char *value)
Definition Finding.h:145
void SetRuleId(Aws::String &&value)
Definition Finding.h:182
Finding & WithDescription(const char *value)
Definition Finding.h:71
void SetDescription(Aws::String &&value)
Definition Finding.h:67
Finding & WithDetectorName(Aws::String &&value)
Definition Finding.h:101
Finding & WithGeneratorId(Aws::String &&value)
Definition Finding.h:133
void SetResource(const Resource &value)
Definition Finding.h:169
void SetDetectorTags(Aws::Vector< Aws::String > &&value)
Definition Finding.h:114
Finding & WithVulnerability(Vulnerability &&value)
Definition Finding.h:266
Finding & WithStatus(const Status &value)
Definition Finding.h:212
Finding & WithResource(const Resource &value)
Definition Finding.h:171
const Severity & GetSeverity() const
Definition Finding.h:196
Finding & WithGeneratorId(const char *value)
Definition Finding.h:134
void SetTitle(const Aws::String &value)
Definition Finding.h:222
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition Finding.h:55
Finding & WithTitle(const Aws::String &value)
Definition Finding.h:225
const Aws::String & GetDetectorName() const
Definition Finding.h:95
void SetSeverity(Severity &&value)
Definition Finding.h:199
void SetDetectorName(const char *value)
Definition Finding.h:99
void SetGeneratorId(Aws::String &&value)
Definition Finding.h:130
void SetType(Aws::String &&value)
Definition Finding.h:237
const Aws::String & GetGeneratorId() const
Definition Finding.h:127
const Status & GetStatus() const
Definition Finding.h:208
Finding & WithId(const Aws::String &value)
Definition Finding.h:146
const Vulnerability & GetVulnerability() const
Definition Finding.h:261
Finding & WithType(const Aws::String &value)
Definition Finding.h:239
Finding & WithSeverity(const Severity &value)
Definition Finding.h:200
Finding & WithDetectorTags(Aws::Vector< Aws::String > &&value)
Definition Finding.h:116
const Aws::String & GetId() const
Definition Finding.h:141
const Aws::String & GetTitle() const
Definition Finding.h:220
Finding & WithRemediation(Remediation &&value)
Definition Finding.h:160
Finding & WithRuleId(const Aws::String &value)
Definition Finding.h:184
Finding & WithDetectorTags(const Aws::Vector< Aws::String > &value)
Definition Finding.h:115
void SetId(Aws::String &&value)
Definition Finding.h:144
void SetDescription(const char *value)
Definition Finding.h:68
Finding & WithUpdatedAt(const Aws::Utils::DateTime &value)
Definition Finding.h:253
Finding & WithDetectorId(Aws::String &&value)
Definition Finding.h:86
Finding & WithDescription(Aws::String &&value)
Definition Finding.h:70
AWS_CODEGURUSECURITY_API Finding(Aws::Utils::Json::JsonView jsonValue)
Finding & WithRemediation(const Remediation &value)
Definition Finding.h:159
Finding & WithUpdatedAt(Aws::Utils::DateTime &&value)
Definition Finding.h:254
const Remediation & GetRemediation() const
Definition Finding.h:155
const Resource & GetResource() const
Definition Finding.h:167
Finding & WithRuleId(const char *value)
Definition Finding.h:186
void SetType(const char *value)
Definition Finding.h:238
void SetDescription(const Aws::String &value)
Definition Finding.h:66
Finding & WithResource(Resource &&value)
Definition Finding.h:172
AWS_CODEGURUSECURITY_API Finding & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDetectorId(const char *value)
Definition Finding.h:84
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition Finding.h:54
Finding & AddDetectorTags(const char *value)
Definition Finding.h:119
void SetDetectorTags(const Aws::Vector< Aws::String > &value)
Definition Finding.h:113
Finding & WithId(const char *value)
Definition Finding.h:148
Finding & WithDetectorName(const char *value)
Definition Finding.h:102
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Finding.h:52
Finding & WithDetectorName(const Aws::String &value)
Definition Finding.h:100
void SetDetectorId(Aws::String &&value)
Definition Finding.h:83
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue