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/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/guardduty/model/Resource.h>
10#include <aws/guardduty/model/Service.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GuardDuty
24{
25namespace Model
26{
27
34 class Finding
35 {
36 public:
37 AWS_GUARDDUTY_API Finding();
38 AWS_GUARDDUTY_API Finding(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GUARDDUTY_API Finding& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetAccountId() const{ return m_accountId; }
48 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
49 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
50 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
51 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
52 inline Finding& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
53 inline Finding& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
54 inline Finding& WithAccountId(const char* value) { SetAccountId(value); return *this;}
56
58
61 inline const Aws::String& GetArn() const{ return m_arn; }
62 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
63 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
64 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
65 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
66 inline Finding& WithArn(const Aws::String& value) { SetArn(value); return *this;}
67 inline Finding& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
68 inline Finding& WithArn(const char* value) { SetArn(value); return *this;}
70
72
75 inline double GetConfidence() const{ return m_confidence; }
76 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
77 inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; }
78 inline Finding& WithConfidence(double value) { SetConfidence(value); return *this;}
80
82
85 inline const Aws::String& GetCreatedAt() const{ return m_createdAt; }
86 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
87 inline void SetCreatedAt(const Aws::String& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
88 inline void SetCreatedAt(Aws::String&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
89 inline void SetCreatedAt(const char* value) { m_createdAtHasBeenSet = true; m_createdAt.assign(value); }
90 inline Finding& WithCreatedAt(const Aws::String& value) { SetCreatedAt(value); return *this;}
91 inline Finding& WithCreatedAt(Aws::String&& value) { SetCreatedAt(std::move(value)); return *this;}
92 inline Finding& WithCreatedAt(const char* value) { SetCreatedAt(value); return *this;}
94
96
99 inline const Aws::String& GetDescription() const{ return m_description; }
100 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
101 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
102 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
103 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
104 inline Finding& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
105 inline Finding& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
106 inline Finding& WithDescription(const char* value) { SetDescription(value); return *this;}
108
110
113 inline const Aws::String& GetId() const{ return m_id; }
114 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
115 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
116 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
117 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
118 inline Finding& WithId(const Aws::String& value) { SetId(value); return *this;}
119 inline Finding& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
120 inline Finding& WithId(const char* value) { SetId(value); return *this;}
122
124
127 inline const Aws::String& GetPartition() const{ return m_partition; }
128 inline bool PartitionHasBeenSet() const { return m_partitionHasBeenSet; }
129 inline void SetPartition(const Aws::String& value) { m_partitionHasBeenSet = true; m_partition = value; }
130 inline void SetPartition(Aws::String&& value) { m_partitionHasBeenSet = true; m_partition = std::move(value); }
131 inline void SetPartition(const char* value) { m_partitionHasBeenSet = true; m_partition.assign(value); }
132 inline Finding& WithPartition(const Aws::String& value) { SetPartition(value); return *this;}
133 inline Finding& WithPartition(Aws::String&& value) { SetPartition(std::move(value)); return *this;}
134 inline Finding& WithPartition(const char* value) { SetPartition(value); return *this;}
136
138
141 inline const Aws::String& GetRegion() const{ return m_region; }
142 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
143 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
144 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
145 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
146 inline Finding& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
147 inline Finding& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
148 inline Finding& WithRegion(const char* value) { SetRegion(value); return *this;}
150
152
153 inline const Resource& GetResource() const{ return m_resource; }
154 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
155 inline void SetResource(const Resource& value) { m_resourceHasBeenSet = true; m_resource = value; }
156 inline void SetResource(Resource&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
157 inline Finding& WithResource(const Resource& value) { SetResource(value); return *this;}
158 inline Finding& WithResource(Resource&& value) { SetResource(std::move(value)); return *this;}
160
162
165 inline const Aws::String& GetSchemaVersion() const{ return m_schemaVersion; }
166 inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; }
167 inline void SetSchemaVersion(const Aws::String& value) { m_schemaVersionHasBeenSet = true; m_schemaVersion = value; }
168 inline void SetSchemaVersion(Aws::String&& value) { m_schemaVersionHasBeenSet = true; m_schemaVersion = std::move(value); }
169 inline void SetSchemaVersion(const char* value) { m_schemaVersionHasBeenSet = true; m_schemaVersion.assign(value); }
170 inline Finding& WithSchemaVersion(const Aws::String& value) { SetSchemaVersion(value); return *this;}
171 inline Finding& WithSchemaVersion(Aws::String&& value) { SetSchemaVersion(std::move(value)); return *this;}
172 inline Finding& WithSchemaVersion(const char* value) { SetSchemaVersion(value); return *this;}
174
176
177 inline const Service& GetService() const{ return m_service; }
178 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
179 inline void SetService(const Service& value) { m_serviceHasBeenSet = true; m_service = value; }
180 inline void SetService(Service&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); }
181 inline Finding& WithService(const Service& value) { SetService(value); return *this;}
182 inline Finding& WithService(Service&& value) { SetService(std::move(value)); return *this;}
184
186
189 inline double GetSeverity() const{ return m_severity; }
190 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
191 inline void SetSeverity(double value) { m_severityHasBeenSet = true; m_severity = value; }
192 inline Finding& WithSeverity(double value) { SetSeverity(value); return *this;}
194
196
199 inline const Aws::String& GetTitle() const{ return m_title; }
200 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
201 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
202 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
203 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
204 inline Finding& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
205 inline Finding& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
206 inline Finding& WithTitle(const char* value) { SetTitle(value); return *this;}
208
210
213 inline const Aws::String& GetType() const{ return m_type; }
214 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
215 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
216 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
217 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
218 inline Finding& WithType(const Aws::String& value) { SetType(value); return *this;}
219 inline Finding& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
220 inline Finding& WithType(const char* value) { SetType(value); return *this;}
222
224
227 inline const Aws::String& GetUpdatedAt() const{ return m_updatedAt; }
228 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
229 inline void SetUpdatedAt(const Aws::String& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
230 inline void SetUpdatedAt(Aws::String&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
231 inline void SetUpdatedAt(const char* value) { m_updatedAtHasBeenSet = true; m_updatedAt.assign(value); }
232 inline Finding& WithUpdatedAt(const Aws::String& value) { SetUpdatedAt(value); return *this;}
233 inline Finding& WithUpdatedAt(Aws::String&& value) { SetUpdatedAt(std::move(value)); return *this;}
234 inline Finding& WithUpdatedAt(const char* value) { SetUpdatedAt(value); return *this;}
236 private:
237
238 Aws::String m_accountId;
239 bool m_accountIdHasBeenSet = false;
240
241 Aws::String m_arn;
242 bool m_arnHasBeenSet = false;
243
244 double m_confidence;
245 bool m_confidenceHasBeenSet = false;
246
247 Aws::String m_createdAt;
248 bool m_createdAtHasBeenSet = false;
249
250 Aws::String m_description;
251 bool m_descriptionHasBeenSet = false;
252
253 Aws::String m_id;
254 bool m_idHasBeenSet = false;
255
256 Aws::String m_partition;
257 bool m_partitionHasBeenSet = false;
258
259 Aws::String m_region;
260 bool m_regionHasBeenSet = false;
261
262 Resource m_resource;
263 bool m_resourceHasBeenSet = false;
264
265 Aws::String m_schemaVersion;
266 bool m_schemaVersionHasBeenSet = false;
267
268 Service m_service;
269 bool m_serviceHasBeenSet = false;
270
271 double m_severity;
272 bool m_severityHasBeenSet = false;
273
274 Aws::String m_title;
275 bool m_titleHasBeenSet = false;
276
277 Aws::String m_type;
278 bool m_typeHasBeenSet = false;
279
280 Aws::String m_updatedAt;
281 bool m_updatedAtHasBeenSet = false;
282 };
283
284} // namespace Model
285} // namespace GuardDuty
286} // namespace Aws
AWS_GUARDDUTY_API Finding()
void SetPartition(const char *value)
Definition Finding.h:131
Finding & WithRegion(const Aws::String &value)
Definition Finding.h:146
const Aws::String & GetRegion() const
Definition Finding.h:141
void SetService(const Service &value)
Definition Finding.h:179
AWS_GUARDDUTY_API Finding & operator=(Aws::Utils::Json::JsonView jsonValue)
Finding & WithId(const Aws::String &value)
Definition Finding.h:118
void SetArn(const Aws::String &value)
Definition Finding.h:63
void SetTitle(Aws::String &&value)
Definition Finding.h:202
void SetDescription(const Aws::String &value)
Definition Finding.h:101
void SetRegion(const char *value)
Definition Finding.h:145
void SetSchemaVersion(Aws::String &&value)
Definition Finding.h:168
void SetSeverity(double value)
Definition Finding.h:191
double GetConfidence() const
Definition Finding.h:75
void SetSchemaVersion(const char *value)
Definition Finding.h:169
Finding & WithTitle(const Aws::String &value)
Definition Finding.h:204
Finding & WithTitle(Aws::String &&value)
Definition Finding.h:205
void SetPartition(Aws::String &&value)
Definition Finding.h:130
void SetAccountId(Aws::String &&value)
Definition Finding.h:50
void SetId(Aws::String &&value)
Definition Finding.h:116
AWS_GUARDDUTY_API Finding(Aws::Utils::Json::JsonView jsonValue)
Finding & WithDescription(const char *value)
Definition Finding.h:106
Finding & WithPartition(const char *value)
Definition Finding.h:134
Finding & WithCreatedAt(const Aws::String &value)
Definition Finding.h:90
Finding & WithUpdatedAt(Aws::String &&value)
Definition Finding.h:233
Finding & WithResource(const Resource &value)
Definition Finding.h:157
Finding & WithId(Aws::String &&value)
Definition Finding.h:119
const Aws::String & GetUpdatedAt() const
Definition Finding.h:227
const Aws::String & GetTitle() const
Definition Finding.h:199
Finding & WithSchemaVersion(const char *value)
Definition Finding.h:172
void SetAccountId(const Aws::String &value)
Definition Finding.h:49
Finding & WithDescription(const Aws::String &value)
Definition Finding.h:104
bool DescriptionHasBeenSet() const
Definition Finding.h:100
Finding & WithAccountId(const char *value)
Definition Finding.h:54
void SetUpdatedAt(const Aws::String &value)
Definition Finding.h:229
void SetConfidence(double value)
Definition Finding.h:77
void SetPartition(const Aws::String &value)
Definition Finding.h:129
void SetResource(Resource &&value)
Definition Finding.h:156
bool PartitionHasBeenSet() const
Definition Finding.h:128
void SetCreatedAt(const char *value)
Definition Finding.h:89
bool AccountIdHasBeenSet() const
Definition Finding.h:48
bool SeverityHasBeenSet() const
Definition Finding.h:190
void SetArn(const char *value)
Definition Finding.h:65
Finding & WithAccountId(Aws::String &&value)
Definition Finding.h:53
void SetArn(Aws::String &&value)
Definition Finding.h:64
void SetUpdatedAt(Aws::String &&value)
Definition Finding.h:230
bool UpdatedAtHasBeenSet() const
Definition Finding.h:228
Finding & WithRegion(const char *value)
Definition Finding.h:148
void SetUpdatedAt(const char *value)
Definition Finding.h:231
Finding & WithSchemaVersion(Aws::String &&value)
Definition Finding.h:171
Finding & WithType(const Aws::String &value)
Definition Finding.h:218
const Service & GetService() const
Definition Finding.h:177
void SetRegion(const Aws::String &value)
Definition Finding.h:143
Finding & WithCreatedAt(Aws::String &&value)
Definition Finding.h:91
void SetCreatedAt(Aws::String &&value)
Definition Finding.h:88
const Aws::String & GetType() const
Definition Finding.h:213
bool ConfidenceHasBeenSet() const
Definition Finding.h:76
Finding & WithId(const char *value)
Definition Finding.h:120
void SetDescription(Aws::String &&value)
Definition Finding.h:102
Finding & WithCreatedAt(const char *value)
Definition Finding.h:92
void SetType(const char *value)
Definition Finding.h:217
void SetId(const char *value)
Definition Finding.h:117
void SetTitle(const char *value)
Definition Finding.h:203
void SetAccountId(const char *value)
Definition Finding.h:51
const Aws::String & GetId() const
Definition Finding.h:113
void SetCreatedAt(const Aws::String &value)
Definition Finding.h:87
Finding & WithRegion(Aws::String &&value)
Definition Finding.h:147
Finding & WithAccountId(const Aws::String &value)
Definition Finding.h:52
Finding & WithService(Service &&value)
Definition Finding.h:182
bool CreatedAtHasBeenSet() const
Definition Finding.h:86
void SetSchemaVersion(const Aws::String &value)
Definition Finding.h:167
const Aws::String & GetCreatedAt() const
Definition Finding.h:85
Finding & WithPartition(const Aws::String &value)
Definition Finding.h:132
void SetService(Service &&value)
Definition Finding.h:180
void SetRegion(Aws::String &&value)
Definition Finding.h:144
const Resource & GetResource() const
Definition Finding.h:153
Finding & WithUpdatedAt(const Aws::String &value)
Definition Finding.h:232
Finding & WithUpdatedAt(const char *value)
Definition Finding.h:234
Finding & WithSchemaVersion(const Aws::String &value)
Definition Finding.h:170
const Aws::String & GetPartition() const
Definition Finding.h:127
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetResource(const Resource &value)
Definition Finding.h:155
const Aws::String & GetSchemaVersion() const
Definition Finding.h:165
void SetId(const Aws::String &value)
Definition Finding.h:115
void SetTitle(const Aws::String &value)
Definition Finding.h:201
Finding & WithConfidence(double value)
Definition Finding.h:78
Finding & WithTitle(const char *value)
Definition Finding.h:206
Finding & WithService(const Service &value)
Definition Finding.h:181
Finding & WithType(Aws::String &&value)
Definition Finding.h:219
Finding & WithType(const char *value)
Definition Finding.h:220
void SetType(const Aws::String &value)
Definition Finding.h:215
bool ResourceHasBeenSet() const
Definition Finding.h:154
Finding & WithPartition(Aws::String &&value)
Definition Finding.h:133
Finding & WithArn(Aws::String &&value)
Definition Finding.h:67
const Aws::String & GetArn() const
Definition Finding.h:61
Finding & WithDescription(Aws::String &&value)
Definition Finding.h:105
const Aws::String & GetDescription() const
Definition Finding.h:99
void SetType(Aws::String &&value)
Definition Finding.h:216
Finding & WithResource(Resource &&value)
Definition Finding.h:158
void SetDescription(const char *value)
Definition Finding.h:103
Finding & WithSeverity(double value)
Definition Finding.h:192
Finding & WithArn(const char *value)
Definition Finding.h:68
const Aws::String & GetAccountId() const
Definition Finding.h:47
bool SchemaVersionHasBeenSet() const
Definition Finding.h:166
Finding & WithArn(const Aws::String &value)
Definition Finding.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue