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/macie2/Macie2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/macie2/model/FindingCategory.h>
10#include <aws/macie2/model/ClassificationDetails.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/macie2/model/PolicyDetails.h>
13#include <aws/macie2/model/ResourcesAffected.h>
14#include <aws/macie2/model/Severity.h>
15#include <aws/macie2/model/FindingType.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 Macie2
29{
30namespace Model
31{
32
38 class Finding
39 {
40 public:
41 AWS_MACIE2_API Finding();
42 AWS_MACIE2_API Finding(Aws::Utils::Json::JsonView jsonValue);
43 AWS_MACIE2_API Finding& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline const Aws::String& GetAccountId() const{ return m_accountId; }
53 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
54 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
55 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
56 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
57 inline Finding& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
58 inline Finding& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
59 inline Finding& WithAccountId(const char* value) { SetAccountId(value); return *this;}
61
63
66 inline bool GetArchived() const{ return m_archived; }
67 inline bool ArchivedHasBeenSet() const { return m_archivedHasBeenSet; }
68 inline void SetArchived(bool value) { m_archivedHasBeenSet = true; m_archived = value; }
69 inline Finding& WithArchived(bool value) { SetArchived(value); return *this;}
71
73
77 inline const FindingCategory& GetCategory() const{ return m_category; }
78 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
79 inline void SetCategory(const FindingCategory& value) { m_categoryHasBeenSet = true; m_category = value; }
80 inline void SetCategory(FindingCategory&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); }
81 inline Finding& WithCategory(const FindingCategory& value) { SetCategory(value); return *this;}
82 inline Finding& WithCategory(FindingCategory&& value) { SetCategory(std::move(value)); return *this;}
84
86
90 inline const ClassificationDetails& GetClassificationDetails() const{ return m_classificationDetails; }
91 inline bool ClassificationDetailsHasBeenSet() const { return m_classificationDetailsHasBeenSet; }
92 inline void SetClassificationDetails(const ClassificationDetails& value) { m_classificationDetailsHasBeenSet = true; m_classificationDetails = value; }
93 inline void SetClassificationDetails(ClassificationDetails&& value) { m_classificationDetailsHasBeenSet = true; m_classificationDetails = std::move(value); }
95 inline Finding& WithClassificationDetails(ClassificationDetails&& value) { SetClassificationDetails(std::move(value)); return *this;}
97
99
103 inline long long GetCount() const{ return m_count; }
104 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
105 inline void SetCount(long long value) { m_countHasBeenSet = true; m_count = value; }
106 inline Finding& WithCount(long long value) { SetCount(value); return *this;}
108
110
114 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
115 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
116 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
117 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
118 inline Finding& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
119 inline Finding& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
121
123
126 inline const Aws::String& GetDescription() const{ return m_description; }
127 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
128 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
129 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
130 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
131 inline Finding& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
132 inline Finding& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
133 inline Finding& WithDescription(const char* value) { SetDescription(value); return *this;}
135
137
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
156 inline const Aws::String& GetPartition() const{ return m_partition; }
157 inline bool PartitionHasBeenSet() const { return m_partitionHasBeenSet; }
158 inline void SetPartition(const Aws::String& value) { m_partitionHasBeenSet = true; m_partition = value; }
159 inline void SetPartition(Aws::String&& value) { m_partitionHasBeenSet = true; m_partition = std::move(value); }
160 inline void SetPartition(const char* value) { m_partitionHasBeenSet = true; m_partition.assign(value); }
161 inline Finding& WithPartition(const Aws::String& value) { SetPartition(value); return *this;}
162 inline Finding& WithPartition(Aws::String&& value) { SetPartition(std::move(value)); return *this;}
163 inline Finding& WithPartition(const char* value) { SetPartition(value); return *this;}
165
167
171 inline const PolicyDetails& GetPolicyDetails() const{ return m_policyDetails; }
172 inline bool PolicyDetailsHasBeenSet() const { return m_policyDetailsHasBeenSet; }
173 inline void SetPolicyDetails(const PolicyDetails& value) { m_policyDetailsHasBeenSet = true; m_policyDetails = value; }
174 inline void SetPolicyDetails(PolicyDetails&& value) { m_policyDetailsHasBeenSet = true; m_policyDetails = std::move(value); }
175 inline Finding& WithPolicyDetails(const PolicyDetails& value) { SetPolicyDetails(value); return *this;}
176 inline Finding& WithPolicyDetails(PolicyDetails&& value) { SetPolicyDetails(std::move(value)); return *this;}
178
180
183 inline const Aws::String& GetRegion() const{ return m_region; }
184 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
185 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
186 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
187 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
188 inline Finding& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
189 inline Finding& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
190 inline Finding& WithRegion(const char* value) { SetRegion(value); return *this;}
192
194
197 inline const ResourcesAffected& GetResourcesAffected() const{ return m_resourcesAffected; }
198 inline bool ResourcesAffectedHasBeenSet() const { return m_resourcesAffectedHasBeenSet; }
199 inline void SetResourcesAffected(const ResourcesAffected& value) { m_resourcesAffectedHasBeenSet = true; m_resourcesAffected = value; }
200 inline void SetResourcesAffected(ResourcesAffected&& value) { m_resourcesAffectedHasBeenSet = true; m_resourcesAffected = std::move(value); }
201 inline Finding& WithResourcesAffected(const ResourcesAffected& value) { SetResourcesAffected(value); return *this;}
202 inline Finding& WithResourcesAffected(ResourcesAffected&& value) { SetResourcesAffected(std::move(value)); return *this;}
204
206
211 inline bool GetSample() const{ return m_sample; }
212 inline bool SampleHasBeenSet() const { return m_sampleHasBeenSet; }
213 inline void SetSample(bool value) { m_sampleHasBeenSet = true; m_sample = value; }
214 inline Finding& WithSample(bool value) { SetSample(value); return *this;}
216
218
222 inline const Aws::String& GetSchemaVersion() const{ return m_schemaVersion; }
223 inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; }
224 inline void SetSchemaVersion(const Aws::String& value) { m_schemaVersionHasBeenSet = true; m_schemaVersion = value; }
225 inline void SetSchemaVersion(Aws::String&& value) { m_schemaVersionHasBeenSet = true; m_schemaVersion = std::move(value); }
226 inline void SetSchemaVersion(const char* value) { m_schemaVersionHasBeenSet = true; m_schemaVersion.assign(value); }
227 inline Finding& WithSchemaVersion(const Aws::String& value) { SetSchemaVersion(value); return *this;}
228 inline Finding& WithSchemaVersion(Aws::String&& value) { SetSchemaVersion(std::move(value)); return *this;}
229 inline Finding& WithSchemaVersion(const char* value) { SetSchemaVersion(value); return *this;}
231
233
236 inline const Severity& GetSeverity() const{ return m_severity; }
237 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
238 inline void SetSeverity(const Severity& value) { m_severityHasBeenSet = true; m_severity = value; }
239 inline void SetSeverity(Severity&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
240 inline Finding& WithSeverity(const Severity& value) { SetSeverity(value); return *this;}
241 inline Finding& WithSeverity(Severity&& value) { SetSeverity(std::move(value)); return *this;}
243
245
248 inline const Aws::String& GetTitle() const{ return m_title; }
249 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
250 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
251 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
252 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
253 inline Finding& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
254 inline Finding& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
255 inline Finding& WithTitle(const char* value) { SetTitle(value); return *this;}
257
259
262 inline const FindingType& GetType() const{ return m_type; }
263 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
264 inline void SetType(const FindingType& value) { m_typeHasBeenSet = true; m_type = value; }
265 inline void SetType(FindingType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
266 inline Finding& WithType(const FindingType& value) { SetType(value); return *this;}
267 inline Finding& WithType(FindingType&& value) { SetType(std::move(value)); return *this;}
269
271
277 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
278 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
279 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
280 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
281 inline Finding& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
282 inline Finding& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
284 private:
285
286 Aws::String m_accountId;
287 bool m_accountIdHasBeenSet = false;
288
289 bool m_archived;
290 bool m_archivedHasBeenSet = false;
291
292 FindingCategory m_category;
293 bool m_categoryHasBeenSet = false;
294
295 ClassificationDetails m_classificationDetails;
296 bool m_classificationDetailsHasBeenSet = false;
297
298 long long m_count;
299 bool m_countHasBeenSet = false;
300
301 Aws::Utils::DateTime m_createdAt;
302 bool m_createdAtHasBeenSet = false;
303
304 Aws::String m_description;
305 bool m_descriptionHasBeenSet = false;
306
307 Aws::String m_id;
308 bool m_idHasBeenSet = false;
309
310 Aws::String m_partition;
311 bool m_partitionHasBeenSet = false;
312
313 PolicyDetails m_policyDetails;
314 bool m_policyDetailsHasBeenSet = false;
315
316 Aws::String m_region;
317 bool m_regionHasBeenSet = false;
318
319 ResourcesAffected m_resourcesAffected;
320 bool m_resourcesAffectedHasBeenSet = false;
321
322 bool m_sample;
323 bool m_sampleHasBeenSet = false;
324
325 Aws::String m_schemaVersion;
326 bool m_schemaVersionHasBeenSet = false;
327
328 Severity m_severity;
329 bool m_severityHasBeenSet = false;
330
331 Aws::String m_title;
332 bool m_titleHasBeenSet = false;
333
334 FindingType m_type;
335 bool m_typeHasBeenSet = false;
336
337 Aws::Utils::DateTime m_updatedAt;
338 bool m_updatedAtHasBeenSet = false;
339 };
340
341} // namespace Model
342} // namespace Macie2
343} // namespace Aws
void SetId(const char *value)
Definition Finding.h:145
bool GetArchived() const
Definition Finding.h:66
void SetTitle(Aws::String &&value)
Definition Finding.h:251
void SetResourcesAffected(const ResourcesAffected &value)
Definition Finding.h:199
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
bool ClassificationDetailsHasBeenSet() const
Definition Finding.h:91
bool SampleHasBeenSet() const
Definition Finding.h:212
const PolicyDetails & GetPolicyDetails() const
Definition Finding.h:171
Finding & WithDescription(const char *value)
Definition Finding.h:133
Finding & WithPartition(Aws::String &&value)
Definition Finding.h:162
void SetSchemaVersion(const Aws::String &value)
Definition Finding.h:224
Finding & WithAccountId(Aws::String &&value)
Definition Finding.h:58
const ClassificationDetails & GetClassificationDetails() const
Definition Finding.h:90
Finding & WithDescription(const Aws::String &value)
Definition Finding.h:131
bool CreatedAtHasBeenSet() const
Definition Finding.h:115
void SetUpdatedAt(const Aws::Utils::DateTime &value)
Definition Finding.h:279
bool SeverityHasBeenSet() const
Definition Finding.h:237
Finding & WithResourcesAffected(ResourcesAffected &&value)
Definition Finding.h:202
void SetRegion(Aws::String &&value)
Definition Finding.h:186
const Severity & GetSeverity() const
Definition Finding.h:236
Finding & WithSchemaVersion(Aws::String &&value)
Definition Finding.h:228
Finding & WithCount(long long value)
Definition Finding.h:106
bool RegionHasBeenSet() const
Definition Finding.h:184
Finding & WithCategory(const FindingCategory &value)
Definition Finding.h:81
bool PolicyDetailsHasBeenSet() const
Definition Finding.h:172
Finding & WithType(FindingType &&value)
Definition Finding.h:267
Finding & WithId(const char *value)
Definition Finding.h:148
void SetCategory(FindingCategory &&value)
Definition Finding.h:80
bool SchemaVersionHasBeenSet() const
Definition Finding.h:223
Finding & WithCategory(FindingCategory &&value)
Definition Finding.h:82
Finding & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition Finding.h:119
Finding & WithClassificationDetails(const ClassificationDetails &value)
Definition Finding.h:94
Finding & WithRegion(Aws::String &&value)
Definition Finding.h:189
const ResourcesAffected & GetResourcesAffected() const
Definition Finding.h:197
void SetDescription(Aws::String &&value)
Definition Finding.h:129
Finding & WithTitle(const Aws::String &value)
Definition Finding.h:253
AWS_MACIE2_API Finding & operator=(Aws::Utils::Json::JsonView jsonValue)
const FindingType & GetType() const
Definition Finding.h:262
void SetCount(long long value)
Definition Finding.h:105
Finding & WithRegion(const Aws::String &value)
Definition Finding.h:188
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition Finding.h:117
void SetClassificationDetails(const ClassificationDetails &value)
Definition Finding.h:92
Finding & WithId(const Aws::String &value)
Definition Finding.h:146
void SetUpdatedAt(Aws::Utils::DateTime &&value)
Definition Finding.h:280
void SetTitle(const Aws::String &value)
Definition Finding.h:250
void SetDescription(const char *value)
Definition Finding.h:130
Finding & WithResourcesAffected(const ResourcesAffected &value)
Definition Finding.h:201
bool CountHasBeenSet() const
Definition Finding.h:104
bool CategoryHasBeenSet() const
Definition Finding.h:78
const Aws::String & GetAccountId() const
Definition Finding.h:52
bool TypeHasBeenSet() const
Definition Finding.h:263
void SetType(FindingType &&value)
Definition Finding.h:265
void SetClassificationDetails(ClassificationDetails &&value)
Definition Finding.h:93
bool IdHasBeenSet() const
Definition Finding.h:142
Finding & WithTitle(const char *value)
Definition Finding.h:255
Finding & WithRegion(const char *value)
Definition Finding.h:190
void SetPartition(const Aws::String &value)
Definition Finding.h:158
bool UpdatedAtHasBeenSet() const
Definition Finding.h:278
Finding & WithSchemaVersion(const Aws::String &value)
Definition Finding.h:227
Finding & WithAccountId(const char *value)
Definition Finding.h:59
Finding & WithPolicyDetails(PolicyDetails &&value)
Definition Finding.h:176
void SetAccountId(const Aws::String &value)
Definition Finding.h:54
Finding & WithPartition(const Aws::String &value)
Definition Finding.h:161
Finding & WithId(Aws::String &&value)
Definition Finding.h:147
void SetSeverity(Severity &&value)
Definition Finding.h:239
bool AccountIdHasBeenSet() const
Definition Finding.h:53
bool DescriptionHasBeenSet() const
Definition Finding.h:127
const Aws::String & GetTitle() const
Definition Finding.h:248
Finding & WithSeverity(const Severity &value)
Definition Finding.h:240
Finding & WithClassificationDetails(ClassificationDetails &&value)
Definition Finding.h:95
Finding & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition Finding.h:118
void SetPolicyDetails(PolicyDetails &&value)
Definition Finding.h:174
void SetType(const FindingType &value)
Definition Finding.h:264
void SetCategory(const FindingCategory &value)
Definition Finding.h:79
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Finding.h:277
void SetRegion(const char *value)
Definition Finding.h:187
const Aws::String & GetId() const
Definition Finding.h:141
void SetAccountId(Aws::String &&value)
Definition Finding.h:55
void SetPolicyDetails(const PolicyDetails &value)
Definition Finding.h:173
const Aws::String & GetDescription() const
Definition Finding.h:126
void SetPartition(const char *value)
Definition Finding.h:160
const Aws::String & GetRegion() const
Definition Finding.h:183
Finding & WithAccountId(const Aws::String &value)
Definition Finding.h:57
void SetAccountId(const char *value)
Definition Finding.h:56
const Aws::String & GetPartition() const
Definition Finding.h:156
void SetDescription(const Aws::String &value)
Definition Finding.h:128
bool ResourcesAffectedHasBeenSet() const
Definition Finding.h:198
Finding & WithType(const FindingType &value)
Definition Finding.h:266
void SetResourcesAffected(ResourcesAffected &&value)
Definition Finding.h:200
void SetSchemaVersion(Aws::String &&value)
Definition Finding.h:225
AWS_MACIE2_API Finding(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition Finding.h:116
Finding & WithTitle(Aws::String &&value)
Definition Finding.h:254
void SetPartition(Aws::String &&value)
Definition Finding.h:159
Finding & WithUpdatedAt(Aws::Utils::DateTime &&value)
Definition Finding.h:282
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Finding.h:114
bool TitleHasBeenSet() const
Definition Finding.h:249
const FindingCategory & GetCategory() const
Definition Finding.h:77
Finding & WithArchived(bool value)
Definition Finding.h:69
void SetSample(bool value)
Definition Finding.h:213
Finding & WithDescription(Aws::String &&value)
Definition Finding.h:132
void SetRegion(const Aws::String &value)
Definition Finding.h:185
void SetSchemaVersion(const char *value)
Definition Finding.h:226
void SetArchived(bool value)
Definition Finding.h:68
Finding & WithSeverity(Severity &&value)
Definition Finding.h:241
Finding & WithPartition(const char *value)
Definition Finding.h:163
long long GetCount() const
Definition Finding.h:103
void SetId(const Aws::String &value)
Definition Finding.h:143
bool PartitionHasBeenSet() const
Definition Finding.h:157
bool ArchivedHasBeenSet() const
Definition Finding.h:67
void SetTitle(const char *value)
Definition Finding.h:252
void SetId(Aws::String &&value)
Definition Finding.h:144
Finding & WithUpdatedAt(const Aws::Utils::DateTime &value)
Definition Finding.h:281
Finding & WithSample(bool value)
Definition Finding.h:214
void SetSeverity(const Severity &value)
Definition Finding.h:238
const Aws::String & GetSchemaVersion() const
Definition Finding.h:222
Finding & WithPolicyDetails(const PolicyDetails &value)
Definition Finding.h:175
AWS_MACIE2_API Finding()
Finding & WithSchemaVersion(const char *value)
Definition Finding.h:229
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue