AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename AccountIdT = Aws::String>
50 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
51 template<typename AccountIdT = Aws::String>
52 Finding& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
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) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
63 template<typename ArnT = Aws::String>
64 Finding& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
66
68
71 inline double GetConfidence() const { return m_confidence; }
72 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
73 inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; }
74 inline Finding& WithConfidence(double value) { SetConfidence(value); return *this;}
76
78
81 inline const Aws::String& GetCreatedAt() const { return m_createdAt; }
82 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
83 template<typename CreatedAtT = Aws::String>
84 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
85 template<typename CreatedAtT = Aws::String>
86 Finding& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
88
90
93 inline const Aws::String& GetDescription() const { return m_description; }
94 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
95 template<typename DescriptionT = Aws::String>
96 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
97 template<typename DescriptionT = Aws::String>
98 Finding& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
100
102
105 inline const Aws::String& GetId() const { return m_id; }
106 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
107 template<typename IdT = Aws::String>
108 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
109 template<typename IdT = Aws::String>
110 Finding& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
112
114
117 inline const Aws::String& GetPartition() const { return m_partition; }
118 inline bool PartitionHasBeenSet() const { return m_partitionHasBeenSet; }
119 template<typename PartitionT = Aws::String>
120 void SetPartition(PartitionT&& value) { m_partitionHasBeenSet = true; m_partition = std::forward<PartitionT>(value); }
121 template<typename PartitionT = Aws::String>
122 Finding& WithPartition(PartitionT&& value) { SetPartition(std::forward<PartitionT>(value)); return *this;}
124
126
135 inline const Aws::String& GetRegion() const { return m_region; }
136 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
137 template<typename RegionT = Aws::String>
138 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
139 template<typename RegionT = Aws::String>
140 Finding& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
142
144
145 inline const Resource& GetResource() const { return m_resource; }
146 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
147 template<typename ResourceT = Resource>
148 void SetResource(ResourceT&& value) { m_resourceHasBeenSet = true; m_resource = std::forward<ResourceT>(value); }
149 template<typename ResourceT = Resource>
150 Finding& WithResource(ResourceT&& value) { SetResource(std::forward<ResourceT>(value)); return *this;}
152
154
157 inline const Aws::String& GetSchemaVersion() const { return m_schemaVersion; }
158 inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; }
159 template<typename SchemaVersionT = Aws::String>
160 void SetSchemaVersion(SchemaVersionT&& value) { m_schemaVersionHasBeenSet = true; m_schemaVersion = std::forward<SchemaVersionT>(value); }
161 template<typename SchemaVersionT = Aws::String>
162 Finding& WithSchemaVersion(SchemaVersionT&& value) { SetSchemaVersion(std::forward<SchemaVersionT>(value)); return *this;}
164
166
167 inline const Service& GetService() const { return m_service; }
168 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
169 template<typename ServiceT = Service>
170 void SetService(ServiceT&& value) { m_serviceHasBeenSet = true; m_service = std::forward<ServiceT>(value); }
171 template<typename ServiceT = Service>
172 Finding& WithService(ServiceT&& value) { SetService(std::forward<ServiceT>(value)); return *this;}
174
176
179 inline double GetSeverity() const { return m_severity; }
180 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
181 inline void SetSeverity(double value) { m_severityHasBeenSet = true; m_severity = value; }
182 inline Finding& WithSeverity(double value) { SetSeverity(value); return *this;}
184
186
189 inline const Aws::String& GetTitle() const { return m_title; }
190 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
191 template<typename TitleT = Aws::String>
192 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
193 template<typename TitleT = Aws::String>
194 Finding& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
196
198
201 inline const Aws::String& GetType() const { return m_type; }
202 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
203 template<typename TypeT = Aws::String>
204 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
205 template<typename TypeT = Aws::String>
206 Finding& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
208
210
213 inline const Aws::String& GetUpdatedAt() const { return m_updatedAt; }
214 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
215 template<typename UpdatedAtT = Aws::String>
216 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
217 template<typename UpdatedAtT = Aws::String>
218 Finding& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
220
222
225 inline const Aws::String& GetAssociatedAttackSequenceArn() const { return m_associatedAttackSequenceArn; }
226 inline bool AssociatedAttackSequenceArnHasBeenSet() const { return m_associatedAttackSequenceArnHasBeenSet; }
227 template<typename AssociatedAttackSequenceArnT = Aws::String>
228 void SetAssociatedAttackSequenceArn(AssociatedAttackSequenceArnT&& value) { m_associatedAttackSequenceArnHasBeenSet = true; m_associatedAttackSequenceArn = std::forward<AssociatedAttackSequenceArnT>(value); }
229 template<typename AssociatedAttackSequenceArnT = Aws::String>
230 Finding& WithAssociatedAttackSequenceArn(AssociatedAttackSequenceArnT&& value) { SetAssociatedAttackSequenceArn(std::forward<AssociatedAttackSequenceArnT>(value)); return *this;}
232 private:
233
234 Aws::String m_accountId;
235 bool m_accountIdHasBeenSet = false;
236
237 Aws::String m_arn;
238 bool m_arnHasBeenSet = false;
239
240 double m_confidence{0.0};
241 bool m_confidenceHasBeenSet = false;
242
243 Aws::String m_createdAt;
244 bool m_createdAtHasBeenSet = false;
245
246 Aws::String m_description;
247 bool m_descriptionHasBeenSet = false;
248
249 Aws::String m_id;
250 bool m_idHasBeenSet = false;
251
252 Aws::String m_partition;
253 bool m_partitionHasBeenSet = false;
254
255 Aws::String m_region;
256 bool m_regionHasBeenSet = false;
257
258 Resource m_resource;
259 bool m_resourceHasBeenSet = false;
260
261 Aws::String m_schemaVersion;
262 bool m_schemaVersionHasBeenSet = false;
263
264 Service m_service;
265 bool m_serviceHasBeenSet = false;
266
267 double m_severity{0.0};
268 bool m_severityHasBeenSet = false;
269
270 Aws::String m_title;
271 bool m_titleHasBeenSet = false;
272
273 Aws::String m_type;
274 bool m_typeHasBeenSet = false;
275
276 Aws::String m_updatedAt;
277 bool m_updatedAtHasBeenSet = false;
278
279 Aws::String m_associatedAttackSequenceArn;
280 bool m_associatedAttackSequenceArnHasBeenSet = false;
281 };
282
283} // namespace Model
284} // namespace GuardDuty
285} // namespace Aws
const Aws::String & GetRegion() const
Definition Finding.h:135
AWS_GUARDDUTY_API Finding & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAssociatedAttackSequenceArn() const
Definition Finding.h:225
AWS_GUARDDUTY_API Finding()=default
Finding & WithSchemaVersion(SchemaVersionT &&value)
Definition Finding.h:162
void SetSeverity(double value)
Definition Finding.h:181
double GetConfidence() const
Definition Finding.h:71
Finding & WithPartition(PartitionT &&value)
Definition Finding.h:122
AWS_GUARDDUTY_API Finding(Aws::Utils::Json::JsonView jsonValue)
Finding & WithDescription(DescriptionT &&value)
Definition Finding.h:98
void SetResource(ResourceT &&value)
Definition Finding.h:148
void SetAccountId(AccountIdT &&value)
Definition Finding.h:50
const Aws::String & GetUpdatedAt() const
Definition Finding.h:213
const Aws::String & GetTitle() const
Definition Finding.h:189
Finding & WithArn(ArnT &&value)
Definition Finding.h:64
bool AssociatedAttackSequenceArnHasBeenSet() const
Definition Finding.h:226
Finding & WithUpdatedAt(UpdatedAtT &&value)
Definition Finding.h:218
Finding & WithAccountId(AccountIdT &&value)
Definition Finding.h:52
bool DescriptionHasBeenSet() const
Definition Finding.h:94
void SetUpdatedAt(UpdatedAtT &&value)
Definition Finding.h:216
void SetConfidence(double value)
Definition Finding.h:73
bool PartitionHasBeenSet() const
Definition Finding.h:118
bool AccountIdHasBeenSet() const
Definition Finding.h:48
bool SeverityHasBeenSet() const
Definition Finding.h:180
void SetService(ServiceT &&value)
Definition Finding.h:170
Finding & WithRegion(RegionT &&value)
Definition Finding.h:140
bool UpdatedAtHasBeenSet() const
Definition Finding.h:214
void SetTitle(TitleT &&value)
Definition Finding.h:192
void SetSchemaVersion(SchemaVersionT &&value)
Definition Finding.h:160
void SetId(IdT &&value)
Definition Finding.h:108
const Service & GetService() const
Definition Finding.h:167
const Aws::String & GetType() const
Definition Finding.h:201
bool ConfidenceHasBeenSet() const
Definition Finding.h:72
const Aws::String & GetId() const
Definition Finding.h:105
bool CreatedAtHasBeenSet() const
Definition Finding.h:82
const Aws::String & GetCreatedAt() const
Definition Finding.h:81
const Resource & GetResource() const
Definition Finding.h:145
Finding & WithTitle(TitleT &&value)
Definition Finding.h:194
void SetCreatedAt(CreatedAtT &&value)
Definition Finding.h:84
Finding & WithCreatedAt(CreatedAtT &&value)
Definition Finding.h:86
const Aws::String & GetPartition() const
Definition Finding.h:117
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetSchemaVersion() const
Definition Finding.h:157
void SetAssociatedAttackSequenceArn(AssociatedAttackSequenceArnT &&value)
Definition Finding.h:228
Finding & WithConfidence(double value)
Definition Finding.h:74
void SetType(TypeT &&value)
Definition Finding.h:204
void SetPartition(PartitionT &&value)
Definition Finding.h:120
bool ResourceHasBeenSet() const
Definition Finding.h:146
void SetDescription(DescriptionT &&value)
Definition Finding.h:96
void SetRegion(RegionT &&value)
Definition Finding.h:138
void SetArn(ArnT &&value)
Definition Finding.h:62
Finding & WithResource(ResourceT &&value)
Definition Finding.h:150
const Aws::String & GetArn() const
Definition Finding.h:59
const Aws::String & GetDescription() const
Definition Finding.h:93
Finding & WithType(TypeT &&value)
Definition Finding.h:206
Finding & WithId(IdT &&value)
Definition Finding.h:110
Finding & WithAssociatedAttackSequenceArn(AssociatedAttackSequenceArnT &&value)
Definition Finding.h:230
Finding & WithService(ServiceT &&value)
Definition Finding.h:172
Finding & WithSeverity(double value)
Definition Finding.h:182
const Aws::String & GetAccountId() const
Definition Finding.h:47
bool SchemaVersionHasBeenSet() const
Definition Finding.h:158
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue