AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Finding.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9#include <aws/guardduty/model/Resource.h>
10#include <aws/guardduty/model/Service.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GuardDuty {
22namespace Model {
23
30class Finding {
31 public:
32 AWS_GUARDDUTY_API Finding() = default;
33 AWS_GUARDDUTY_API Finding(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GUARDDUTY_API Finding& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetAccountId() const { return m_accountId; }
42 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
43 template <typename AccountIdT = Aws::String>
44 void SetAccountId(AccountIdT&& value) {
45 m_accountIdHasBeenSet = true;
46 m_accountId = std::forward<AccountIdT>(value);
47 }
48 template <typename AccountIdT = Aws::String>
49 Finding& WithAccountId(AccountIdT&& value) {
50 SetAccountId(std::forward<AccountIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetArn() const { return m_arn; }
60 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
61 template <typename ArnT = Aws::String>
62 void SetArn(ArnT&& value) {
63 m_arnHasBeenSet = true;
64 m_arn = std::forward<ArnT>(value);
65 }
66 template <typename ArnT = Aws::String>
67 Finding& WithArn(ArnT&& value) {
68 SetArn(std::forward<ArnT>(value));
69 return *this;
70 }
72
74
77 inline double GetConfidence() const { return m_confidence; }
78 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
79 inline void SetConfidence(double value) {
80 m_confidenceHasBeenSet = true;
81 m_confidence = value;
82 }
83 inline Finding& WithConfidence(double value) {
84 SetConfidence(value);
85 return *this;
86 }
88
90
93 inline const Aws::String& GetCreatedAt() const { return m_createdAt; }
94 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
95 template <typename CreatedAtT = Aws::String>
96 void SetCreatedAt(CreatedAtT&& value) {
97 m_createdAtHasBeenSet = true;
98 m_createdAt = std::forward<CreatedAtT>(value);
99 }
100 template <typename CreatedAtT = Aws::String>
101 Finding& WithCreatedAt(CreatedAtT&& value) {
102 SetCreatedAt(std::forward<CreatedAtT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetDescription() const { return m_description; }
112 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
113 template <typename DescriptionT = Aws::String>
114 void SetDescription(DescriptionT&& value) {
115 m_descriptionHasBeenSet = true;
116 m_description = std::forward<DescriptionT>(value);
117 }
118 template <typename DescriptionT = Aws::String>
119 Finding& WithDescription(DescriptionT&& value) {
120 SetDescription(std::forward<DescriptionT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetId() const { return m_id; }
130 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
131 template <typename IdT = Aws::String>
132 void SetId(IdT&& value) {
133 m_idHasBeenSet = true;
134 m_id = std::forward<IdT>(value);
135 }
136 template <typename IdT = Aws::String>
137 Finding& WithId(IdT&& value) {
138 SetId(std::forward<IdT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::String& GetPartition() const { return m_partition; }
148 inline bool PartitionHasBeenSet() const { return m_partitionHasBeenSet; }
149 template <typename PartitionT = Aws::String>
150 void SetPartition(PartitionT&& value) {
151 m_partitionHasBeenSet = true;
152 m_partition = std::forward<PartitionT>(value);
153 }
154 template <typename PartitionT = Aws::String>
155 Finding& WithPartition(PartitionT&& value) {
156 SetPartition(std::forward<PartitionT>(value));
157 return *this;
158 }
160
162
171 inline const Aws::String& GetRegion() const { return m_region; }
172 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
173 template <typename RegionT = Aws::String>
174 void SetRegion(RegionT&& value) {
175 m_regionHasBeenSet = true;
176 m_region = std::forward<RegionT>(value);
177 }
178 template <typename RegionT = Aws::String>
179 Finding& WithRegion(RegionT&& value) {
180 SetRegion(std::forward<RegionT>(value));
181 return *this;
182 }
184
186
187 inline const Resource& GetResource() const { return m_resource; }
188 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
189 template <typename ResourceT = Resource>
190 void SetResource(ResourceT&& value) {
191 m_resourceHasBeenSet = true;
192 m_resource = std::forward<ResourceT>(value);
193 }
194 template <typename ResourceT = Resource>
195 Finding& WithResource(ResourceT&& value) {
196 SetResource(std::forward<ResourceT>(value));
197 return *this;
198 }
200
202
205 inline const Aws::String& GetSchemaVersion() const { return m_schemaVersion; }
206 inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; }
207 template <typename SchemaVersionT = Aws::String>
208 void SetSchemaVersion(SchemaVersionT&& value) {
209 m_schemaVersionHasBeenSet = true;
210 m_schemaVersion = std::forward<SchemaVersionT>(value);
211 }
212 template <typename SchemaVersionT = Aws::String>
213 Finding& WithSchemaVersion(SchemaVersionT&& value) {
214 SetSchemaVersion(std::forward<SchemaVersionT>(value));
215 return *this;
216 }
218
220
221 inline const Service& GetService() const { return m_service; }
222 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
223 template <typename ServiceT = Service>
224 void SetService(ServiceT&& value) {
225 m_serviceHasBeenSet = true;
226 m_service = std::forward<ServiceT>(value);
227 }
228 template <typename ServiceT = Service>
229 Finding& WithService(ServiceT&& value) {
230 SetService(std::forward<ServiceT>(value));
231 return *this;
232 }
234
236
239 inline double GetSeverity() const { return m_severity; }
240 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
241 inline void SetSeverity(double value) {
242 m_severityHasBeenSet = true;
243 m_severity = value;
244 }
245 inline Finding& WithSeverity(double value) {
246 SetSeverity(value);
247 return *this;
248 }
250
252
255 inline const Aws::String& GetTitle() const { return m_title; }
256 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
257 template <typename TitleT = Aws::String>
258 void SetTitle(TitleT&& value) {
259 m_titleHasBeenSet = true;
260 m_title = std::forward<TitleT>(value);
261 }
262 template <typename TitleT = Aws::String>
263 Finding& WithTitle(TitleT&& value) {
264 SetTitle(std::forward<TitleT>(value));
265 return *this;
266 }
268
270
273 inline const Aws::String& GetType() const { return m_type; }
274 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
275 template <typename TypeT = Aws::String>
276 void SetType(TypeT&& value) {
277 m_typeHasBeenSet = true;
278 m_type = std::forward<TypeT>(value);
279 }
280 template <typename TypeT = Aws::String>
281 Finding& WithType(TypeT&& value) {
282 SetType(std::forward<TypeT>(value));
283 return *this;
284 }
286
288
291 inline const Aws::String& GetUpdatedAt() const { return m_updatedAt; }
292 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
293 template <typename UpdatedAtT = Aws::String>
294 void SetUpdatedAt(UpdatedAtT&& value) {
295 m_updatedAtHasBeenSet = true;
296 m_updatedAt = std::forward<UpdatedAtT>(value);
297 }
298 template <typename UpdatedAtT = Aws::String>
299 Finding& WithUpdatedAt(UpdatedAtT&& value) {
300 SetUpdatedAt(std::forward<UpdatedAtT>(value));
301 return *this;
302 }
304
306
309 inline const Aws::String& GetAssociatedAttackSequenceArn() const { return m_associatedAttackSequenceArn; }
310 inline bool AssociatedAttackSequenceArnHasBeenSet() const { return m_associatedAttackSequenceArnHasBeenSet; }
311 template <typename AssociatedAttackSequenceArnT = Aws::String>
312 void SetAssociatedAttackSequenceArn(AssociatedAttackSequenceArnT&& value) {
313 m_associatedAttackSequenceArnHasBeenSet = true;
314 m_associatedAttackSequenceArn = std::forward<AssociatedAttackSequenceArnT>(value);
315 }
316 template <typename AssociatedAttackSequenceArnT = Aws::String>
317 Finding& WithAssociatedAttackSequenceArn(AssociatedAttackSequenceArnT&& value) {
318 SetAssociatedAttackSequenceArn(std::forward<AssociatedAttackSequenceArnT>(value));
319 return *this;
320 }
322 private:
323 Aws::String m_accountId;
324
325 Aws::String m_arn;
326
327 double m_confidence{0.0};
328
329 Aws::String m_createdAt;
330
331 Aws::String m_description;
332
333 Aws::String m_id;
334
335 Aws::String m_partition;
336
337 Aws::String m_region;
338
339 Resource m_resource;
340
341 Aws::String m_schemaVersion;
342
343 Service m_service;
344
345 double m_severity{0.0};
346
347 Aws::String m_title;
348
349 Aws::String m_type;
350
351 Aws::String m_updatedAt;
352
353 Aws::String m_associatedAttackSequenceArn;
354 bool m_accountIdHasBeenSet = false;
355 bool m_arnHasBeenSet = false;
356 bool m_confidenceHasBeenSet = false;
357 bool m_createdAtHasBeenSet = false;
358 bool m_descriptionHasBeenSet = false;
359 bool m_idHasBeenSet = false;
360 bool m_partitionHasBeenSet = false;
361 bool m_regionHasBeenSet = false;
362 bool m_resourceHasBeenSet = false;
363 bool m_schemaVersionHasBeenSet = false;
364 bool m_serviceHasBeenSet = false;
365 bool m_severityHasBeenSet = false;
366 bool m_titleHasBeenSet = false;
367 bool m_typeHasBeenSet = false;
368 bool m_updatedAtHasBeenSet = false;
369 bool m_associatedAttackSequenceArnHasBeenSet = false;
370};
371
372} // namespace Model
373} // namespace GuardDuty
374} // namespace Aws
const Aws::String & GetRegion() const
Definition Finding.h:171
AWS_GUARDDUTY_API Finding & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAssociatedAttackSequenceArn() const
Definition Finding.h:309
AWS_GUARDDUTY_API Finding()=default
Finding & WithSchemaVersion(SchemaVersionT &&value)
Definition Finding.h:213
void SetSeverity(double value)
Definition Finding.h:241
double GetConfidence() const
Definition Finding.h:77
Finding & WithPartition(PartitionT &&value)
Definition Finding.h:155
AWS_GUARDDUTY_API Finding(Aws::Utils::Json::JsonView jsonValue)
Finding & WithDescription(DescriptionT &&value)
Definition Finding.h:119
void SetResource(ResourceT &&value)
Definition Finding.h:190
void SetAccountId(AccountIdT &&value)
Definition Finding.h:44
const Aws::String & GetUpdatedAt() const
Definition Finding.h:291
const Aws::String & GetTitle() const
Definition Finding.h:255
Finding & WithArn(ArnT &&value)
Definition Finding.h:67
bool AssociatedAttackSequenceArnHasBeenSet() const
Definition Finding.h:310
Finding & WithUpdatedAt(UpdatedAtT &&value)
Definition Finding.h:299
Finding & WithAccountId(AccountIdT &&value)
Definition Finding.h:49
bool DescriptionHasBeenSet() const
Definition Finding.h:112
void SetUpdatedAt(UpdatedAtT &&value)
Definition Finding.h:294
void SetConfidence(double value)
Definition Finding.h:79
bool PartitionHasBeenSet() const
Definition Finding.h:148
bool AccountIdHasBeenSet() const
Definition Finding.h:42
bool SeverityHasBeenSet() const
Definition Finding.h:240
void SetService(ServiceT &&value)
Definition Finding.h:224
Finding & WithRegion(RegionT &&value)
Definition Finding.h:179
bool UpdatedAtHasBeenSet() const
Definition Finding.h:292
void SetTitle(TitleT &&value)
Definition Finding.h:258
void SetSchemaVersion(SchemaVersionT &&value)
Definition Finding.h:208
void SetId(IdT &&value)
Definition Finding.h:132
const Service & GetService() const
Definition Finding.h:221
const Aws::String & GetType() const
Definition Finding.h:273
bool ConfidenceHasBeenSet() const
Definition Finding.h:78
const Aws::String & GetId() const
Definition Finding.h:129
bool CreatedAtHasBeenSet() const
Definition Finding.h:94
const Aws::String & GetCreatedAt() const
Definition Finding.h:93
const Resource & GetResource() const
Definition Finding.h:187
Finding & WithTitle(TitleT &&value)
Definition Finding.h:263
void SetCreatedAt(CreatedAtT &&value)
Definition Finding.h:96
Finding & WithCreatedAt(CreatedAtT &&value)
Definition Finding.h:101
const Aws::String & GetPartition() const
Definition Finding.h:147
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetSchemaVersion() const
Definition Finding.h:205
void SetAssociatedAttackSequenceArn(AssociatedAttackSequenceArnT &&value)
Definition Finding.h:312
Finding & WithConfidence(double value)
Definition Finding.h:83
void SetType(TypeT &&value)
Definition Finding.h:276
void SetPartition(PartitionT &&value)
Definition Finding.h:150
bool ResourceHasBeenSet() const
Definition Finding.h:188
void SetDescription(DescriptionT &&value)
Definition Finding.h:114
void SetRegion(RegionT &&value)
Definition Finding.h:174
void SetArn(ArnT &&value)
Definition Finding.h:62
Finding & WithResource(ResourceT &&value)
Definition Finding.h:195
const Aws::String & GetArn() const
Definition Finding.h:59
const Aws::String & GetDescription() const
Definition Finding.h:111
Finding & WithType(TypeT &&value)
Definition Finding.h:281
Finding & WithId(IdT &&value)
Definition Finding.h:137
Finding & WithAssociatedAttackSequenceArn(AssociatedAttackSequenceArnT &&value)
Definition Finding.h:317
Finding & WithService(ServiceT &&value)
Definition Finding.h:229
Finding & WithSeverity(double value)
Definition Finding.h:245
const Aws::String & GetAccountId() const
Definition Finding.h:41
bool SchemaVersionHasBeenSet() const
Definition Finding.h:206
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue