AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Vulnerability.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/inspector2/model/AtigData.h>
9#include <aws/inspector2/model/CisaData.h>
10#include <aws/inspector2/model/Cvss2.h>
11#include <aws/inspector2/model/Cvss3.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/inspector2/model/Epss.h>
15#include <aws/inspector2/model/ExploitObserved.h>
16#include <aws/inspector2/model/VulnerabilitySource.h>
17#include <aws/core/utils/DateTime.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace Inspector2
31{
32namespace Model
33{
34
42 {
43 public:
44 AWS_INSPECTOR2_API Vulnerability();
45 AWS_INSPECTOR2_API Vulnerability(Aws::Utils::Json::JsonView jsonValue);
46 AWS_INSPECTOR2_API Vulnerability& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
55 inline const AtigData& GetAtigData() const{ return m_atigData; }
56 inline bool AtigDataHasBeenSet() const { return m_atigDataHasBeenSet; }
57 inline void SetAtigData(const AtigData& value) { m_atigDataHasBeenSet = true; m_atigData = value; }
58 inline void SetAtigData(AtigData&& value) { m_atigDataHasBeenSet = true; m_atigData = std::move(value); }
59 inline Vulnerability& WithAtigData(const AtigData& value) { SetAtigData(value); return *this;}
60 inline Vulnerability& WithAtigData(AtigData&& value) { SetAtigData(std::move(value)); return *this;}
62
64
68 inline const CisaData& GetCisaData() const{ return m_cisaData; }
69 inline bool CisaDataHasBeenSet() const { return m_cisaDataHasBeenSet; }
70 inline void SetCisaData(const CisaData& value) { m_cisaDataHasBeenSet = true; m_cisaData = value; }
71 inline void SetCisaData(CisaData&& value) { m_cisaDataHasBeenSet = true; m_cisaData = std::move(value); }
72 inline Vulnerability& WithCisaData(const CisaData& value) { SetCisaData(value); return *this;}
73 inline Vulnerability& WithCisaData(CisaData&& value) { SetCisaData(std::move(value)); return *this;}
75
77
81 inline const Cvss2& GetCvss2() const{ return m_cvss2; }
82 inline bool Cvss2HasBeenSet() const { return m_cvss2HasBeenSet; }
83 inline void SetCvss2(const Cvss2& value) { m_cvss2HasBeenSet = true; m_cvss2 = value; }
84 inline void SetCvss2(Cvss2&& value) { m_cvss2HasBeenSet = true; m_cvss2 = std::move(value); }
85 inline Vulnerability& WithCvss2(const Cvss2& value) { SetCvss2(value); return *this;}
86 inline Vulnerability& WithCvss2(Cvss2&& value) { SetCvss2(std::move(value)); return *this;}
88
90
94 inline const Cvss3& GetCvss3() const{ return m_cvss3; }
95 inline bool Cvss3HasBeenSet() const { return m_cvss3HasBeenSet; }
96 inline void SetCvss3(const Cvss3& value) { m_cvss3HasBeenSet = true; m_cvss3 = value; }
97 inline void SetCvss3(Cvss3&& value) { m_cvss3HasBeenSet = true; m_cvss3 = std::move(value); }
98 inline Vulnerability& WithCvss3(const Cvss3& value) { SetCvss3(value); return *this;}
99 inline Vulnerability& WithCvss3(Cvss3&& value) { SetCvss3(std::move(value)); return *this;}
101
103
106 inline const Aws::Vector<Aws::String>& GetCwes() const{ return m_cwes; }
107 inline bool CwesHasBeenSet() const { return m_cwesHasBeenSet; }
108 inline void SetCwes(const Aws::Vector<Aws::String>& value) { m_cwesHasBeenSet = true; m_cwes = value; }
109 inline void SetCwes(Aws::Vector<Aws::String>&& value) { m_cwesHasBeenSet = true; m_cwes = std::move(value); }
110 inline Vulnerability& WithCwes(const Aws::Vector<Aws::String>& value) { SetCwes(value); return *this;}
111 inline Vulnerability& WithCwes(Aws::Vector<Aws::String>&& value) { SetCwes(std::move(value)); return *this;}
112 inline Vulnerability& AddCwes(const Aws::String& value) { m_cwesHasBeenSet = true; m_cwes.push_back(value); return *this; }
113 inline Vulnerability& AddCwes(Aws::String&& value) { m_cwesHasBeenSet = true; m_cwes.push_back(std::move(value)); return *this; }
114 inline Vulnerability& AddCwes(const char* value) { m_cwesHasBeenSet = true; m_cwes.push_back(value); return *this; }
116
118
121 inline const Aws::String& GetDescription() const{ return m_description; }
122 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
123 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
124 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
125 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
126 inline Vulnerability& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
127 inline Vulnerability& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
128 inline Vulnerability& WithDescription(const char* value) { SetDescription(value); return *this;}
130
132
135 inline const Aws::Vector<Aws::String>& GetDetectionPlatforms() const{ return m_detectionPlatforms; }
136 inline bool DetectionPlatformsHasBeenSet() const { return m_detectionPlatformsHasBeenSet; }
137 inline void SetDetectionPlatforms(const Aws::Vector<Aws::String>& value) { m_detectionPlatformsHasBeenSet = true; m_detectionPlatforms = value; }
138 inline void SetDetectionPlatforms(Aws::Vector<Aws::String>&& value) { m_detectionPlatformsHasBeenSet = true; m_detectionPlatforms = std::move(value); }
140 inline Vulnerability& WithDetectionPlatforms(Aws::Vector<Aws::String>&& value) { SetDetectionPlatforms(std::move(value)); return *this;}
141 inline Vulnerability& AddDetectionPlatforms(const Aws::String& value) { m_detectionPlatformsHasBeenSet = true; m_detectionPlatforms.push_back(value); return *this; }
142 inline Vulnerability& AddDetectionPlatforms(Aws::String&& value) { m_detectionPlatformsHasBeenSet = true; m_detectionPlatforms.push_back(std::move(value)); return *this; }
143 inline Vulnerability& AddDetectionPlatforms(const char* value) { m_detectionPlatformsHasBeenSet = true; m_detectionPlatforms.push_back(value); return *this; }
145
147
151 inline const Epss& GetEpss() const{ return m_epss; }
152 inline bool EpssHasBeenSet() const { return m_epssHasBeenSet; }
153 inline void SetEpss(const Epss& value) { m_epssHasBeenSet = true; m_epss = value; }
154 inline void SetEpss(Epss&& value) { m_epssHasBeenSet = true; m_epss = std::move(value); }
155 inline Vulnerability& WithEpss(const Epss& value) { SetEpss(value); return *this;}
156 inline Vulnerability& WithEpss(Epss&& value) { SetEpss(std::move(value)); return *this;}
158
160
163 inline const ExploitObserved& GetExploitObserved() const{ return m_exploitObserved; }
164 inline bool ExploitObservedHasBeenSet() const { return m_exploitObservedHasBeenSet; }
165 inline void SetExploitObserved(const ExploitObserved& value) { m_exploitObservedHasBeenSet = true; m_exploitObserved = value; }
166 inline void SetExploitObserved(ExploitObserved&& value) { m_exploitObservedHasBeenSet = true; m_exploitObserved = std::move(value); }
167 inline Vulnerability& WithExploitObserved(const ExploitObserved& value) { SetExploitObserved(value); return *this;}
168 inline Vulnerability& WithExploitObserved(ExploitObserved&& value) { SetExploitObserved(std::move(value)); return *this;}
170
172
175 inline const Aws::String& GetId() const{ return m_id; }
176 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
177 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
178 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
179 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
180 inline Vulnerability& WithId(const Aws::String& value) { SetId(value); return *this;}
181 inline Vulnerability& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
182 inline Vulnerability& WithId(const char* value) { SetId(value); return *this;}
184
186
189 inline const Aws::Vector<Aws::String>& GetReferenceUrls() const{ return m_referenceUrls; }
190 inline bool ReferenceUrlsHasBeenSet() const { return m_referenceUrlsHasBeenSet; }
191 inline void SetReferenceUrls(const Aws::Vector<Aws::String>& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls = value; }
192 inline void SetReferenceUrls(Aws::Vector<Aws::String>&& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls = std::move(value); }
193 inline Vulnerability& WithReferenceUrls(const Aws::Vector<Aws::String>& value) { SetReferenceUrls(value); return *this;}
194 inline Vulnerability& WithReferenceUrls(Aws::Vector<Aws::String>&& value) { SetReferenceUrls(std::move(value)); return *this;}
195 inline Vulnerability& AddReferenceUrls(const Aws::String& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls.push_back(value); return *this; }
196 inline Vulnerability& AddReferenceUrls(Aws::String&& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls.push_back(std::move(value)); return *this; }
197 inline Vulnerability& AddReferenceUrls(const char* value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls.push_back(value); return *this; }
199
201
204 inline const Aws::Vector<Aws::String>& GetRelatedVulnerabilities() const{ return m_relatedVulnerabilities; }
205 inline bool RelatedVulnerabilitiesHasBeenSet() const { return m_relatedVulnerabilitiesHasBeenSet; }
206 inline void SetRelatedVulnerabilities(const Aws::Vector<Aws::String>& value) { m_relatedVulnerabilitiesHasBeenSet = true; m_relatedVulnerabilities = value; }
207 inline void SetRelatedVulnerabilities(Aws::Vector<Aws::String>&& value) { m_relatedVulnerabilitiesHasBeenSet = true; m_relatedVulnerabilities = std::move(value); }
210 inline Vulnerability& AddRelatedVulnerabilities(const Aws::String& value) { m_relatedVulnerabilitiesHasBeenSet = true; m_relatedVulnerabilities.push_back(value); return *this; }
211 inline Vulnerability& AddRelatedVulnerabilities(Aws::String&& value) { m_relatedVulnerabilitiesHasBeenSet = true; m_relatedVulnerabilities.push_back(std::move(value)); return *this; }
212 inline Vulnerability& AddRelatedVulnerabilities(const char* value) { m_relatedVulnerabilitiesHasBeenSet = true; m_relatedVulnerabilities.push_back(value); return *this; }
214
216
221 inline const VulnerabilitySource& GetSource() const{ return m_source; }
222 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
223 inline void SetSource(const VulnerabilitySource& value) { m_sourceHasBeenSet = true; m_source = value; }
224 inline void SetSource(VulnerabilitySource&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
225 inline Vulnerability& WithSource(const VulnerabilitySource& value) { SetSource(value); return *this;}
226 inline Vulnerability& WithSource(VulnerabilitySource&& value) { SetSource(std::move(value)); return *this;}
228
230
233 inline const Aws::String& GetSourceUrl() const{ return m_sourceUrl; }
234 inline bool SourceUrlHasBeenSet() const { return m_sourceUrlHasBeenSet; }
235 inline void SetSourceUrl(const Aws::String& value) { m_sourceUrlHasBeenSet = true; m_sourceUrl = value; }
236 inline void SetSourceUrl(Aws::String&& value) { m_sourceUrlHasBeenSet = true; m_sourceUrl = std::move(value); }
237 inline void SetSourceUrl(const char* value) { m_sourceUrlHasBeenSet = true; m_sourceUrl.assign(value); }
238 inline Vulnerability& WithSourceUrl(const Aws::String& value) { SetSourceUrl(value); return *this;}
239 inline Vulnerability& WithSourceUrl(Aws::String&& value) { SetSourceUrl(std::move(value)); return *this;}
240 inline Vulnerability& WithSourceUrl(const char* value) { SetSourceUrl(value); return *this;}
242
244
247 inline const Aws::Utils::DateTime& GetVendorCreatedAt() const{ return m_vendorCreatedAt; }
248 inline bool VendorCreatedAtHasBeenSet() const { return m_vendorCreatedAtHasBeenSet; }
249 inline void SetVendorCreatedAt(const Aws::Utils::DateTime& value) { m_vendorCreatedAtHasBeenSet = true; m_vendorCreatedAt = value; }
250 inline void SetVendorCreatedAt(Aws::Utils::DateTime&& value) { m_vendorCreatedAtHasBeenSet = true; m_vendorCreatedAt = std::move(value); }
251 inline Vulnerability& WithVendorCreatedAt(const Aws::Utils::DateTime& value) { SetVendorCreatedAt(value); return *this;}
252 inline Vulnerability& WithVendorCreatedAt(Aws::Utils::DateTime&& value) { SetVendorCreatedAt(std::move(value)); return *this;}
254
256
259 inline const Aws::String& GetVendorSeverity() const{ return m_vendorSeverity; }
260 inline bool VendorSeverityHasBeenSet() const { return m_vendorSeverityHasBeenSet; }
261 inline void SetVendorSeverity(const Aws::String& value) { m_vendorSeverityHasBeenSet = true; m_vendorSeverity = value; }
262 inline void SetVendorSeverity(Aws::String&& value) { m_vendorSeverityHasBeenSet = true; m_vendorSeverity = std::move(value); }
263 inline void SetVendorSeverity(const char* value) { m_vendorSeverityHasBeenSet = true; m_vendorSeverity.assign(value); }
264 inline Vulnerability& WithVendorSeverity(const Aws::String& value) { SetVendorSeverity(value); return *this;}
265 inline Vulnerability& WithVendorSeverity(Aws::String&& value) { SetVendorSeverity(std::move(value)); return *this;}
266 inline Vulnerability& WithVendorSeverity(const char* value) { SetVendorSeverity(value); return *this;}
268
270
273 inline const Aws::Utils::DateTime& GetVendorUpdatedAt() const{ return m_vendorUpdatedAt; }
274 inline bool VendorUpdatedAtHasBeenSet() const { return m_vendorUpdatedAtHasBeenSet; }
275 inline void SetVendorUpdatedAt(const Aws::Utils::DateTime& value) { m_vendorUpdatedAtHasBeenSet = true; m_vendorUpdatedAt = value; }
276 inline void SetVendorUpdatedAt(Aws::Utils::DateTime&& value) { m_vendorUpdatedAtHasBeenSet = true; m_vendorUpdatedAt = std::move(value); }
277 inline Vulnerability& WithVendorUpdatedAt(const Aws::Utils::DateTime& value) { SetVendorUpdatedAt(value); return *this;}
278 inline Vulnerability& WithVendorUpdatedAt(Aws::Utils::DateTime&& value) { SetVendorUpdatedAt(std::move(value)); return *this;}
280 private:
281
282 AtigData m_atigData;
283 bool m_atigDataHasBeenSet = false;
284
285 CisaData m_cisaData;
286 bool m_cisaDataHasBeenSet = false;
287
288 Cvss2 m_cvss2;
289 bool m_cvss2HasBeenSet = false;
290
291 Cvss3 m_cvss3;
292 bool m_cvss3HasBeenSet = false;
293
295 bool m_cwesHasBeenSet = false;
296
297 Aws::String m_description;
298 bool m_descriptionHasBeenSet = false;
299
300 Aws::Vector<Aws::String> m_detectionPlatforms;
301 bool m_detectionPlatformsHasBeenSet = false;
302
303 Epss m_epss;
304 bool m_epssHasBeenSet = false;
305
306 ExploitObserved m_exploitObserved;
307 bool m_exploitObservedHasBeenSet = false;
308
309 Aws::String m_id;
310 bool m_idHasBeenSet = false;
311
312 Aws::Vector<Aws::String> m_referenceUrls;
313 bool m_referenceUrlsHasBeenSet = false;
314
315 Aws::Vector<Aws::String> m_relatedVulnerabilities;
316 bool m_relatedVulnerabilitiesHasBeenSet = false;
317
318 VulnerabilitySource m_source;
319 bool m_sourceHasBeenSet = false;
320
321 Aws::String m_sourceUrl;
322 bool m_sourceUrlHasBeenSet = false;
323
324 Aws::Utils::DateTime m_vendorCreatedAt;
325 bool m_vendorCreatedAtHasBeenSet = false;
326
327 Aws::String m_vendorSeverity;
328 bool m_vendorSeverityHasBeenSet = false;
329
330 Aws::Utils::DateTime m_vendorUpdatedAt;
331 bool m_vendorUpdatedAtHasBeenSet = false;
332 };
333
334} // namespace Model
335} // namespace Inspector2
336} // namespace Aws
Vulnerability & WithCisaData(CisaData &&value)
Vulnerability & WithSourceUrl(const Aws::String &value)
Vulnerability & WithCvss3(Cvss3 &&value)
const Aws::Vector< Aws::String > & GetCwes() const
Vulnerability & WithSourceUrl(Aws::String &&value)
Vulnerability & WithSourceUrl(const char *value)
Vulnerability & WithEpss(Epss &&value)
AWS_INSPECTOR2_API Vulnerability & operator=(Aws::Utils::Json::JsonView jsonValue)
const AtigData & GetAtigData() const
Vulnerability & AddReferenceUrls(Aws::String &&value)
Vulnerability & AddDetectionPlatforms(const char *value)
Vulnerability & WithAtigData(AtigData &&value)
void SetSourceUrl(const char *value)
Vulnerability & WithAtigData(const AtigData &value)
Vulnerability & WithExploitObserved(const ExploitObserved &value)
Vulnerability & WithDescription(Aws::String &&value)
Vulnerability & AddRelatedVulnerabilities(Aws::String &&value)
Vulnerability & WithVendorSeverity(Aws::String &&value)
const VulnerabilitySource & GetSource() const
void SetSourceUrl(Aws::String &&value)
void SetId(const Aws::String &value)
void SetSource(VulnerabilitySource &&value)
void SetDetectionPlatforms(const Aws::Vector< Aws::String > &value)
void SetReferenceUrls(Aws::Vector< Aws::String > &&value)
void SetDetectionPlatforms(Aws::Vector< Aws::String > &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
Vulnerability & WithVendorSeverity(const char *value)
Vulnerability & WithDetectionPlatforms(const Aws::Vector< Aws::String > &value)
Vulnerability & WithSource(const VulnerabilitySource &value)
Vulnerability & WithDescription(const Aws::String &value)
Vulnerability & AddDetectionPlatforms(Aws::String &&value)
Vulnerability & WithVendorCreatedAt(const Aws::Utils::DateTime &value)
Vulnerability & AddReferenceUrls(const char *value)
Vulnerability & WithId(const char *value)
void SetSourceUrl(const Aws::String &value)
Vulnerability & AddCwes(const Aws::String &value)
void SetExploitObserved(const ExploitObserved &value)
void SetCwes(Aws::Vector< Aws::String > &&value)
Vulnerability & WithDescription(const char *value)
Vulnerability & WithReferenceUrls(const Aws::Vector< Aws::String > &value)
void SetDescription(const char *value)
void SetVendorSeverity(const char *value)
void SetVendorCreatedAt(const Aws::Utils::DateTime &value)
void SetCvss3(const Cvss3 &value)
void SetRelatedVulnerabilities(Aws::Vector< Aws::String > &&value)
AWS_INSPECTOR2_API Vulnerability(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetVendorUpdatedAt() const
const Aws::String & GetId() const
void SetVendorSeverity(const Aws::String &value)
void SetCisaData(const CisaData &value)
void SetAtigData(const AtigData &value)
void SetVendorUpdatedAt(Aws::Utils::DateTime &&value)
const Aws::String & GetVendorSeverity() const
Vulnerability & WithDetectionPlatforms(Aws::Vector< Aws::String > &&value)
Vulnerability & AddCwes(Aws::String &&value)
Vulnerability & WithId(const Aws::String &value)
void SetId(Aws::String &&value)
void SetRelatedVulnerabilities(const Aws::Vector< Aws::String > &value)
Vulnerability & WithCvss3(const Cvss3 &value)
Vulnerability & WithReferenceUrls(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetDetectionPlatforms() const
const Aws::Vector< Aws::String > & GetReferenceUrls() const
Vulnerability & WithVendorUpdatedAt(const Aws::Utils::DateTime &value)
const Aws::String & GetSourceUrl() const
void SetVendorCreatedAt(Aws::Utils::DateTime &&value)
void SetCwes(const Aws::Vector< Aws::String > &value)
void SetDescription(const Aws::String &value)
Vulnerability & WithCvss2(const Cvss2 &value)
const Aws::String & GetDescription() const
Vulnerability & AddReferenceUrls(const Aws::String &value)
Vulnerability & WithVendorSeverity(const Aws::String &value)
Vulnerability & WithCwes(const Aws::Vector< Aws::String > &value)
Vulnerability & WithVendorCreatedAt(Aws::Utils::DateTime &&value)
void SetCvss2(const Cvss2 &value)
Vulnerability & AddRelatedVulnerabilities(const Aws::String &value)
Vulnerability & AddRelatedVulnerabilities(const char *value)
Vulnerability & WithRelatedVulnerabilities(const Aws::Vector< Aws::String > &value)
Vulnerability & WithCwes(Aws::Vector< Aws::String > &&value)
void SetReferenceUrls(const Aws::Vector< Aws::String > &value)
Vulnerability & WithExploitObserved(ExploitObserved &&value)
void SetVendorUpdatedAt(const Aws::Utils::DateTime &value)
Vulnerability & AddCwes(const char *value)
void SetSource(const VulnerabilitySource &value)
void SetVendorSeverity(Aws::String &&value)
const ExploitObserved & GetExploitObserved() const
Vulnerability & WithEpss(const Epss &value)
Vulnerability & WithSource(VulnerabilitySource &&value)
void SetDescription(Aws::String &&value)
Vulnerability & WithId(Aws::String &&value)
Vulnerability & WithCvss2(Cvss2 &&value)
const CisaData & GetCisaData() const
Vulnerability & WithRelatedVulnerabilities(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetRelatedVulnerabilities() const
Vulnerability & WithCisaData(const CisaData &value)
void SetExploitObserved(ExploitObserved &&value)
Vulnerability & WithVendorUpdatedAt(Aws::Utils::DateTime &&value)
Vulnerability & AddDetectionPlatforms(const Aws::String &value)
const Aws::Utils::DateTime & GetVendorCreatedAt() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue