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/inspector/Inspector_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/inspector/model/InspectorServiceAttributes.h>
10#include <aws/inspector/model/AssetType.h>
11#include <aws/inspector/model/AssetAttributes.h>
12#include <aws/inspector/model/Severity.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/core/utils/DateTime.h>
15#include <aws/inspector/model/Attribute.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 Inspector
29{
30namespace Model
31{
32
40 class Finding
41 {
42 public:
43 AWS_INSPECTOR_API Finding();
44 AWS_INSPECTOR_API Finding(Aws::Utils::Json::JsonView jsonValue);
45 AWS_INSPECTOR_API Finding& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetArn() const{ return m_arn; }
54 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
55 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
56 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
57 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
58 inline Finding& WithArn(const Aws::String& value) { SetArn(value); return *this;}
59 inline Finding& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
60 inline Finding& WithArn(const char* value) { SetArn(value); return *this;}
62
64
67 inline int GetSchemaVersion() const{ return m_schemaVersion; }
68 inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; }
69 inline void SetSchemaVersion(int value) { m_schemaVersionHasBeenSet = true; m_schemaVersion = value; }
70 inline Finding& WithSchemaVersion(int value) { SetSchemaVersion(value); return *this;}
72
74
77 inline const Aws::String& GetService() const{ return m_service; }
78 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
79 inline void SetService(const Aws::String& value) { m_serviceHasBeenSet = true; m_service = value; }
80 inline void SetService(Aws::String&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); }
81 inline void SetService(const char* value) { m_serviceHasBeenSet = true; m_service.assign(value); }
82 inline Finding& WithService(const Aws::String& value) { SetService(value); return *this;}
83 inline Finding& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;}
84 inline Finding& WithService(const char* value) { SetService(value); return *this;}
86
88
91 inline const InspectorServiceAttributes& GetServiceAttributes() const{ return m_serviceAttributes; }
92 inline bool ServiceAttributesHasBeenSet() const { return m_serviceAttributesHasBeenSet; }
93 inline void SetServiceAttributes(const InspectorServiceAttributes& value) { m_serviceAttributesHasBeenSet = true; m_serviceAttributes = value; }
94 inline void SetServiceAttributes(InspectorServiceAttributes&& value) { m_serviceAttributesHasBeenSet = true; m_serviceAttributes = std::move(value); }
96 inline Finding& WithServiceAttributes(InspectorServiceAttributes&& value) { SetServiceAttributes(std::move(value)); return *this;}
98
100
103 inline const AssetType& GetAssetType() const{ return m_assetType; }
104 inline bool AssetTypeHasBeenSet() const { return m_assetTypeHasBeenSet; }
105 inline void SetAssetType(const AssetType& value) { m_assetTypeHasBeenSet = true; m_assetType = value; }
106 inline void SetAssetType(AssetType&& value) { m_assetTypeHasBeenSet = true; m_assetType = std::move(value); }
107 inline Finding& WithAssetType(const AssetType& value) { SetAssetType(value); return *this;}
108 inline Finding& WithAssetType(AssetType&& value) { SetAssetType(std::move(value)); return *this;}
110
112
116 inline const AssetAttributes& GetAssetAttributes() const{ return m_assetAttributes; }
117 inline bool AssetAttributesHasBeenSet() const { return m_assetAttributesHasBeenSet; }
118 inline void SetAssetAttributes(const AssetAttributes& value) { m_assetAttributesHasBeenSet = true; m_assetAttributes = value; }
119 inline void SetAssetAttributes(AssetAttributes&& value) { m_assetAttributesHasBeenSet = true; m_assetAttributes = std::move(value); }
120 inline Finding& WithAssetAttributes(const AssetAttributes& value) { SetAssetAttributes(value); return *this;}
121 inline Finding& WithAssetAttributes(AssetAttributes&& value) { SetAssetAttributes(std::move(value)); return *this;}
123
125
128 inline const Aws::String& GetId() const{ return m_id; }
129 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
130 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
131 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
132 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
133 inline Finding& WithId(const Aws::String& value) { SetId(value); return *this;}
134 inline Finding& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
135 inline Finding& WithId(const char* value) { SetId(value); return *this;}
137
139
142 inline const Aws::String& GetTitle() const{ return m_title; }
143 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
144 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
145 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
146 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
147 inline Finding& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
148 inline Finding& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
149 inline Finding& WithTitle(const char* value) { SetTitle(value); return *this;}
151
153
156 inline const Aws::String& GetDescription() const{ return m_description; }
157 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
158 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
159 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
160 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
161 inline Finding& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
162 inline Finding& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
163 inline Finding& WithDescription(const char* value) { SetDescription(value); return *this;}
165
167
170 inline const Aws::String& GetRecommendation() const{ return m_recommendation; }
171 inline bool RecommendationHasBeenSet() const { return m_recommendationHasBeenSet; }
172 inline void SetRecommendation(const Aws::String& value) { m_recommendationHasBeenSet = true; m_recommendation = value; }
173 inline void SetRecommendation(Aws::String&& value) { m_recommendationHasBeenSet = true; m_recommendation = std::move(value); }
174 inline void SetRecommendation(const char* value) { m_recommendationHasBeenSet = true; m_recommendation.assign(value); }
175 inline Finding& WithRecommendation(const Aws::String& value) { SetRecommendation(value); return *this;}
176 inline Finding& WithRecommendation(Aws::String&& value) { SetRecommendation(std::move(value)); return *this;}
177 inline Finding& WithRecommendation(const char* value) { SetRecommendation(value); return *this;}
179
181
185 inline const Severity& GetSeverity() const{ return m_severity; }
186 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
187 inline void SetSeverity(const Severity& value) { m_severityHasBeenSet = true; m_severity = value; }
188 inline void SetSeverity(Severity&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
189 inline Finding& WithSeverity(const Severity& value) { SetSeverity(value); return *this;}
190 inline Finding& WithSeverity(Severity&& value) { SetSeverity(std::move(value)); return *this;}
192
194
197 inline double GetNumericSeverity() const{ return m_numericSeverity; }
198 inline bool NumericSeverityHasBeenSet() const { return m_numericSeverityHasBeenSet; }
199 inline void SetNumericSeverity(double value) { m_numericSeverityHasBeenSet = true; m_numericSeverity = value; }
200 inline Finding& WithNumericSeverity(double value) { SetNumericSeverity(value); return *this;}
202
204
207 inline int GetConfidence() const{ return m_confidence; }
208 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
209 inline void SetConfidence(int value) { m_confidenceHasBeenSet = true; m_confidence = value; }
210 inline Finding& WithConfidence(int value) { SetConfidence(value); return *this;}
212
214
217 inline bool GetIndicatorOfCompromise() const{ return m_indicatorOfCompromise; }
218 inline bool IndicatorOfCompromiseHasBeenSet() const { return m_indicatorOfCompromiseHasBeenSet; }
219 inline void SetIndicatorOfCompromise(bool value) { m_indicatorOfCompromiseHasBeenSet = true; m_indicatorOfCompromise = value; }
220 inline Finding& WithIndicatorOfCompromise(bool value) { SetIndicatorOfCompromise(value); return *this;}
222
224
227 inline const Aws::Vector<Attribute>& GetAttributes() const{ return m_attributes; }
228 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
229 inline void SetAttributes(const Aws::Vector<Attribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
230 inline void SetAttributes(Aws::Vector<Attribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
231 inline Finding& WithAttributes(const Aws::Vector<Attribute>& value) { SetAttributes(value); return *this;}
232 inline Finding& WithAttributes(Aws::Vector<Attribute>&& value) { SetAttributes(std::move(value)); return *this;}
233 inline Finding& AddAttributes(const Attribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
234 inline Finding& AddAttributes(Attribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
236
238
241 inline const Aws::Vector<Attribute>& GetUserAttributes() const{ return m_userAttributes; }
242 inline bool UserAttributesHasBeenSet() const { return m_userAttributesHasBeenSet; }
243 inline void SetUserAttributes(const Aws::Vector<Attribute>& value) { m_userAttributesHasBeenSet = true; m_userAttributes = value; }
244 inline void SetUserAttributes(Aws::Vector<Attribute>&& value) { m_userAttributesHasBeenSet = true; m_userAttributes = std::move(value); }
245 inline Finding& WithUserAttributes(const Aws::Vector<Attribute>& value) { SetUserAttributes(value); return *this;}
246 inline Finding& WithUserAttributes(Aws::Vector<Attribute>&& value) { SetUserAttributes(std::move(value)); return *this;}
247 inline Finding& AddUserAttributes(const Attribute& value) { m_userAttributesHasBeenSet = true; m_userAttributes.push_back(value); return *this; }
248 inline Finding& AddUserAttributes(Attribute&& value) { m_userAttributesHasBeenSet = true; m_userAttributes.push_back(std::move(value)); return *this; }
250
252
255 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
256 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
257 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
258 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
259 inline Finding& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
260 inline Finding& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
262
264
267 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
268 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
269 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
270 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
271 inline Finding& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
272 inline Finding& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
274 private:
275
276 Aws::String m_arn;
277 bool m_arnHasBeenSet = false;
278
279 int m_schemaVersion;
280 bool m_schemaVersionHasBeenSet = false;
281
282 Aws::String m_service;
283 bool m_serviceHasBeenSet = false;
284
285 InspectorServiceAttributes m_serviceAttributes;
286 bool m_serviceAttributesHasBeenSet = false;
287
288 AssetType m_assetType;
289 bool m_assetTypeHasBeenSet = false;
290
291 AssetAttributes m_assetAttributes;
292 bool m_assetAttributesHasBeenSet = false;
293
294 Aws::String m_id;
295 bool m_idHasBeenSet = false;
296
297 Aws::String m_title;
298 bool m_titleHasBeenSet = false;
299
300 Aws::String m_description;
301 bool m_descriptionHasBeenSet = false;
302
303 Aws::String m_recommendation;
304 bool m_recommendationHasBeenSet = false;
305
306 Severity m_severity;
307 bool m_severityHasBeenSet = false;
308
309 double m_numericSeverity;
310 bool m_numericSeverityHasBeenSet = false;
311
312 int m_confidence;
313 bool m_confidenceHasBeenSet = false;
314
315 bool m_indicatorOfCompromise;
316 bool m_indicatorOfCompromiseHasBeenSet = false;
317
318 Aws::Vector<Attribute> m_attributes;
319 bool m_attributesHasBeenSet = false;
320
321 Aws::Vector<Attribute> m_userAttributes;
322 bool m_userAttributesHasBeenSet = false;
323
324 Aws::Utils::DateTime m_createdAt;
325 bool m_createdAtHasBeenSet = false;
326
327 Aws::Utils::DateTime m_updatedAt;
328 bool m_updatedAtHasBeenSet = false;
329 };
330
331} // namespace Model
332} // namespace Inspector
333} // namespace Aws
void SetId(const char *value)
Definition Finding.h:132
void SetServiceAttributes(InspectorServiceAttributes &&value)
Definition Finding.h:94
void SetSeverity(Severity &&value)
Definition Finding.h:188
Finding & WithUpdatedAt(const Aws::Utils::DateTime &value)
Definition Finding.h:271
Finding & WithRecommendation(const char *value)
Definition Finding.h:177
bool UpdatedAtHasBeenSet() const
Definition Finding.h:268
AWS_INSPECTOR_API Finding()
Finding & WithDescription(const Aws::String &value)
Definition Finding.h:161
void SetServiceAttributes(const InspectorServiceAttributes &value)
Definition Finding.h:93
Finding & WithUpdatedAt(Aws::Utils::DateTime &&value)
Definition Finding.h:272
bool IndicatorOfCompromiseHasBeenSet() const
Definition Finding.h:218
void SetUserAttributes(Aws::Vector< Attribute > &&value)
Definition Finding.h:244
Finding & WithService(Aws::String &&value)
Definition Finding.h:83
void SetAssetType(AssetType &&value)
Definition Finding.h:106
const Aws::Vector< Attribute > & GetUserAttributes() const
Definition Finding.h:241
bool ServiceAttributesHasBeenSet() const
Definition Finding.h:92
void SetArn(const char *value)
Definition Finding.h:57
void SetAssetAttributes(AssetAttributes &&value)
Definition Finding.h:119
bool NumericSeverityHasBeenSet() const
Definition Finding.h:198
bool CreatedAtHasBeenSet() const
Definition Finding.h:256
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Finding.h:255
const Aws::String & GetId() const
Definition Finding.h:128
double GetNumericSeverity() const
Definition Finding.h:197
bool ServiceHasBeenSet() const
Definition Finding.h:78
void SetAssetAttributes(const AssetAttributes &value)
Definition Finding.h:118
bool GetIndicatorOfCompromise() const
Definition Finding.h:217
Finding & WithArn(Aws::String &&value)
Definition Finding.h:59
void SetDescription(Aws::String &&value)
Definition Finding.h:159
bool ConfidenceHasBeenSet() const
Definition Finding.h:208
Finding & WithRecommendation(Aws::String &&value)
Definition Finding.h:176
Finding & WithId(const Aws::String &value)
Definition Finding.h:133
void SetService(Aws::String &&value)
Definition Finding.h:80
Finding & AddUserAttributes(const Attribute &value)
Definition Finding.h:247
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Finding.h:267
Finding & WithSchemaVersion(int value)
Definition Finding.h:70
void SetTitle(const char *value)
Definition Finding.h:146
bool AssetAttributesHasBeenSet() const
Definition Finding.h:117
void SetId(const Aws::String &value)
Definition Finding.h:130
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDescription(const char *value)
Definition Finding.h:160
Finding & AddAttributes(const Attribute &value)
Definition Finding.h:233
Finding & WithRecommendation(const Aws::String &value)
Definition Finding.h:175
void SetAttributes(const Aws::Vector< Attribute > &value)
Definition Finding.h:229
void SetService(const Aws::String &value)
Definition Finding.h:79
const InspectorServiceAttributes & GetServiceAttributes() const
Definition Finding.h:91
void SetNumericSeverity(double value)
Definition Finding.h:199
void SetUserAttributes(const Aws::Vector< Attribute > &value)
Definition Finding.h:243
bool SchemaVersionHasBeenSet() const
Definition Finding.h:68
Finding & WithUserAttributes(const Aws::Vector< Attribute > &value)
Definition Finding.h:245
Finding & WithTitle(const char *value)
Definition Finding.h:149
bool RecommendationHasBeenSet() const
Definition Finding.h:171
Finding & WithAssetAttributes(const AssetAttributes &value)
Definition Finding.h:120
Finding & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition Finding.h:259
void SetIndicatorOfCompromise(bool value)
Definition Finding.h:219
AWS_INSPECTOR_API Finding(Aws::Utils::Json::JsonView jsonValue)
const AssetAttributes & GetAssetAttributes() const
Definition Finding.h:116
bool DescriptionHasBeenSet() const
Definition Finding.h:157
Finding & WithService(const Aws::String &value)
Definition Finding.h:82
Finding & WithIndicatorOfCompromise(bool value)
Definition Finding.h:220
void SetTitle(const Aws::String &value)
Definition Finding.h:144
bool UserAttributesHasBeenSet() const
Definition Finding.h:242
void SetAssetType(const AssetType &value)
Definition Finding.h:105
const Aws::Vector< Attribute > & GetAttributes() const
Definition Finding.h:227
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition Finding.h:257
Finding & WithAssetAttributes(AssetAttributes &&value)
Definition Finding.h:121
Finding & WithSeverity(const Severity &value)
Definition Finding.h:189
Finding & WithConfidence(int value)
Definition Finding.h:210
Finding & WithTitle(const Aws::String &value)
Definition Finding.h:147
const Aws::String & GetRecommendation() const
Definition Finding.h:170
bool AttributesHasBeenSet() const
Definition Finding.h:228
Finding & WithId(const char *value)
Definition Finding.h:135
void SetRecommendation(Aws::String &&value)
Definition Finding.h:173
void SetUpdatedAt(const Aws::Utils::DateTime &value)
Definition Finding.h:269
const Aws::String & GetService() const
Definition Finding.h:77
Finding & AddUserAttributes(Attribute &&value)
Definition Finding.h:248
Finding & WithTitle(Aws::String &&value)
Definition Finding.h:148
void SetArn(const Aws::String &value)
Definition Finding.h:55
const Severity & GetSeverity() const
Definition Finding.h:185
bool AssetTypeHasBeenSet() const
Definition Finding.h:104
Finding & WithAttributes(const Aws::Vector< Attribute > &value)
Definition Finding.h:231
const AssetType & GetAssetType() const
Definition Finding.h:103
void SetUpdatedAt(Aws::Utils::DateTime &&value)
Definition Finding.h:270
AWS_INSPECTOR_API Finding & operator=(Aws::Utils::Json::JsonView jsonValue)
Finding & WithDescription(Aws::String &&value)
Definition Finding.h:162
void SetDescription(const Aws::String &value)
Definition Finding.h:158
const Aws::String & GetArn() const
Definition Finding.h:53
bool SeverityHasBeenSet() const
Definition Finding.h:186
void SetArn(Aws::String &&value)
Definition Finding.h:56
void SetRecommendation(const Aws::String &value)
Definition Finding.h:172
void SetAttributes(Aws::Vector< Attribute > &&value)
Definition Finding.h:230
void SetTitle(Aws::String &&value)
Definition Finding.h:145
const Aws::String & GetTitle() const
Definition Finding.h:142
Finding & WithServiceAttributes(const InspectorServiceAttributes &value)
Definition Finding.h:95
void SetConfidence(int value)
Definition Finding.h:209
Finding & WithArn(const char *value)
Definition Finding.h:60
Finding & WithAssetType(const AssetType &value)
Definition Finding.h:107
void SetId(Aws::String &&value)
Definition Finding.h:131
Finding & WithNumericSeverity(double value)
Definition Finding.h:200
Finding & WithSeverity(Severity &&value)
Definition Finding.h:190
void SetRecommendation(const char *value)
Definition Finding.h:174
Finding & AddAttributes(Attribute &&value)
Definition Finding.h:234
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition Finding.h:258
Finding & WithUserAttributes(Aws::Vector< Attribute > &&value)
Definition Finding.h:246
Finding & WithId(Aws::String &&value)
Definition Finding.h:134
void SetSchemaVersion(int value)
Definition Finding.h:69
Finding & WithDescription(const char *value)
Definition Finding.h:163
Finding & WithService(const char *value)
Definition Finding.h:84
Finding & WithAssetType(AssetType &&value)
Definition Finding.h:108
Finding & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition Finding.h:260
Finding & WithAttributes(Aws::Vector< Attribute > &&value)
Definition Finding.h:232
void SetSeverity(const Severity &value)
Definition Finding.h:187
Finding & WithServiceAttributes(InspectorServiceAttributes &&value)
Definition Finding.h:96
const Aws::String & GetDescription() const
Definition Finding.h:156
void SetService(const char *value)
Definition Finding.h:81
Finding & WithArn(const Aws::String &value)
Definition Finding.h:58
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue