7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/inspector2/Inspector2_EXPORTS.h>
11#include <aws/inspector2/model/AtigData.h>
12#include <aws/inspector2/model/CisaData.h>
13#include <aws/inspector2/model/Cvss2.h>
14#include <aws/inspector2/model/Cvss3.h>
15#include <aws/inspector2/model/Cvss4.h>
16#include <aws/inspector2/model/Epss.h>
17#include <aws/inspector2/model/ExploitObserved.h>
18#include <aws/inspector2/model/VulnerabilitySource.h>
51 template <
typename IdT = Aws::String>
53 m_idHasBeenSet =
true;
54 m_id = std::forward<IdT>(value);
56 template <
typename IdT = Aws::String>
58 SetId(std::forward<IdT>(value));
69 template <
typename CwesT = Aws::Vector<Aws::String>>
71 m_cwesHasBeenSet =
true;
72 m_cwes = std::forward<CwesT>(value);
74 template <
typename CwesT = Aws::Vector<Aws::String>>
76 SetCwes(std::forward<CwesT>(value));
79 template <
typename CwesT = Aws::String>
81 m_cwesHasBeenSet =
true;
82 m_cwes.emplace_back(std::forward<CwesT>(value));
94 template <
typename CisaDataT = CisaData>
96 m_cisaDataHasBeenSet =
true;
97 m_cisaData = std::forward<CisaDataT>(value);
99 template <
typename CisaDataT = CisaData>
115 m_sourceHasBeenSet =
true;
130 template <
typename DescriptionT = Aws::String>
132 m_descriptionHasBeenSet =
true;
133 m_description = std::forward<DescriptionT>(value);
135 template <
typename DescriptionT = Aws::String>
149 template <
typename AtigDataT = AtigData>
151 m_atigDataHasBeenSet =
true;
152 m_atigData = std::forward<AtigDataT>(value);
154 template <
typename AtigDataT = AtigData>
167 template <
typename VendorSeverityT = Aws::String>
169 m_vendorSeverityHasBeenSet =
true;
170 m_vendorSeverity = std::forward<VendorSeverityT>(value);
172 template <
typename VendorSeverityT = Aws::String>
186 template <
typename Cvss4T = Cvss4>
188 m_cvss4HasBeenSet =
true;
189 m_cvss4 = std::forward<Cvss4T>(value);
191 template <
typename Cvss4T = Cvss4>
193 SetCvss4(std::forward<Cvss4T>(value));
205 template <
typename Cvss3T = Cvss3>
207 m_cvss3HasBeenSet =
true;
208 m_cvss3 = std::forward<Cvss3T>(value);
210 template <
typename Cvss3T = Cvss3>
212 SetCvss3(std::forward<Cvss3T>(value));
223 template <
typename RelatedVulnerabilitiesT = Aws::Vector<Aws::String>>
225 m_relatedVulnerabilitiesHasBeenSet =
true;
226 m_relatedVulnerabilities = std::forward<RelatedVulnerabilitiesT>(value);
228 template <
typename RelatedVulnerabilitiesT = Aws::Vector<Aws::String>>
233 template <
typename RelatedVulnerabilitiesT = Aws::String>
235 m_relatedVulnerabilitiesHasBeenSet =
true;
236 m_relatedVulnerabilities.emplace_back(std::forward<RelatedVulnerabilitiesT>(value));
248 template <
typename Cvss2T = Cvss2>
250 m_cvss2HasBeenSet =
true;
251 m_cvss2 = std::forward<Cvss2T>(value);
253 template <
typename Cvss2T = Cvss2>
255 SetCvss2(std::forward<Cvss2T>(value));
266 template <
typename VendorCreatedAtT = Aws::Utils::DateTime>
268 m_vendorCreatedAtHasBeenSet =
true;
269 m_vendorCreatedAt = std::forward<VendorCreatedAtT>(value);
271 template <
typename VendorCreatedAtT = Aws::Utils::DateTime>
284 template <
typename VendorUpdatedAtT = Aws::Utils::DateTime>
286 m_vendorUpdatedAtHasBeenSet =
true;
287 m_vendorUpdatedAt = std::forward<VendorUpdatedAtT>(value);
289 template <
typename VendorUpdatedAtT = Aws::Utils::DateTime>
302 template <
typename SourceUrlT = Aws::String>
304 m_sourceUrlHasBeenSet =
true;
305 m_sourceUrl = std::forward<SourceUrlT>(value);
307 template <
typename SourceUrlT = Aws::String>
320 template <
typename ReferenceUrlsT = Aws::Vector<Aws::String>>
322 m_referenceUrlsHasBeenSet =
true;
323 m_referenceUrls = std::forward<ReferenceUrlsT>(value);
325 template <
typename ReferenceUrlsT = Aws::Vector<Aws::String>>
330 template <
typename ReferenceUrlsT = Aws::String>
332 m_referenceUrlsHasBeenSet =
true;
333 m_referenceUrls.emplace_back(std::forward<ReferenceUrlsT>(value));
344 template <
typename ExploitObservedT = ExploitObserved>
346 m_exploitObservedHasBeenSet =
true;
347 m_exploitObserved = std::forward<ExploitObservedT>(value);
349 template <
typename ExploitObservedT = ExploitObserved>
362 template <
typename DetectionPlatformsT = Aws::Vector<Aws::String>>
364 m_detectionPlatformsHasBeenSet =
true;
365 m_detectionPlatforms = std::forward<DetectionPlatformsT>(value);
367 template <
typename DetectionPlatformsT = Aws::Vector<Aws::String>>
372 template <
typename DetectionPlatformsT = Aws::String>
374 m_detectionPlatformsHasBeenSet =
true;
375 m_detectionPlatforms.emplace_back(std::forward<DetectionPlatformsT>(value));
387 template <
typename EpssT = Epss>
389 m_epssHasBeenSet =
true;
390 m_epss = std::forward<EpssT>(value);
392 template <
typename EpssT = Epss>
394 SetEpss(std::forward<EpssT>(value));
429 ExploitObserved m_exploitObserved;
434 bool m_idHasBeenSet =
false;
435 bool m_cwesHasBeenSet =
false;
436 bool m_cisaDataHasBeenSet =
false;
437 bool m_sourceHasBeenSet =
false;
438 bool m_descriptionHasBeenSet =
false;
439 bool m_atigDataHasBeenSet =
false;
440 bool m_vendorSeverityHasBeenSet =
false;
441 bool m_cvss4HasBeenSet =
false;
442 bool m_cvss3HasBeenSet =
false;
443 bool m_relatedVulnerabilitiesHasBeenSet =
false;
444 bool m_cvss2HasBeenSet =
false;
445 bool m_vendorCreatedAtHasBeenSet =
false;
446 bool m_vendorUpdatedAtHasBeenSet =
false;
447 bool m_sourceUrlHasBeenSet =
false;
448 bool m_referenceUrlsHasBeenSet =
false;
449 bool m_exploitObservedHasBeenSet =
false;
450 bool m_detectionPlatformsHasBeenSet =
false;
451 bool m_epssHasBeenSet =
false;
bool Cvss3HasBeenSet() const
bool EpssHasBeenSet() const
Vulnerability & WithEpss(EpssT &&value)
void SetExploitObserved(ExploitObservedT &&value)
Vulnerability & WithDescription(DescriptionT &&value)
const Cvss4 & GetCvss4() const
const Aws::Vector< Aws::String > & GetCwes() const
bool ExploitObservedHasBeenSet() const
void SetSource(VulnerabilitySource value)
Vulnerability & WithVendorSeverity(VendorSeverityT &&value)
AWS_INSPECTOR2_API Vulnerability & operator=(Aws::Utils::Json::JsonView jsonValue)
const AtigData & GetAtigData() const
Vulnerability & WithCvss3(Cvss3T &&value)
void SetVendorUpdatedAt(VendorUpdatedAtT &&value)
bool AtigDataHasBeenSet() const
bool VendorUpdatedAtHasBeenSet() const
bool RelatedVulnerabilitiesHasBeenSet() const
bool Cvss2HasBeenSet() const
Vulnerability & WithReferenceUrls(ReferenceUrlsT &&value)
bool DetectionPlatformsHasBeenSet() const
Vulnerability & AddRelatedVulnerabilities(RelatedVulnerabilitiesT &&value)
Vulnerability & AddReferenceUrls(ReferenceUrlsT &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
bool CwesHasBeenSet() const
Vulnerability & WithCvss4(Cvss4T &&value)
Vulnerability & AddDetectionPlatforms(DetectionPlatformsT &&value)
Vulnerability & WithCvss2(Cvss2T &&value)
bool IdHasBeenSet() const
bool VendorSeverityHasBeenSet() const
void SetVendorSeverity(VendorSeverityT &&value)
void SetSourceUrl(SourceUrlT &&value)
Vulnerability & WithVendorUpdatedAt(VendorUpdatedAtT &&value)
Vulnerability & WithId(IdT &&value)
void SetCvss3(Cvss3T &&value)
void SetVendorCreatedAt(VendorCreatedAtT &&value)
AWS_INSPECTOR2_API Vulnerability(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetVendorUpdatedAt() const
void SetCvss2(Cvss2T &&value)
void SetAtigData(AtigDataT &&value)
const Aws::String & GetId() const
void SetCwes(CwesT &&value)
Vulnerability & AddCwes(CwesT &&value)
bool ReferenceUrlsHasBeenSet() const
Vulnerability & WithSourceUrl(SourceUrlT &&value)
const Aws::String & GetVendorSeverity() const
Vulnerability & WithVendorCreatedAt(VendorCreatedAtT &&value)
Vulnerability & WithDetectionPlatforms(DetectionPlatformsT &&value)
bool CisaDataHasBeenSet() const
bool SourceHasBeenSet() const
void SetCvss4(Cvss4T &&value)
void SetRelatedVulnerabilities(RelatedVulnerabilitiesT &&value)
const Aws::Vector< Aws::String > & GetDetectionPlatforms() const
const Aws::Vector< Aws::String > & GetReferenceUrls() const
const Aws::String & GetSourceUrl() const
Vulnerability & WithCwes(CwesT &&value)
void SetReferenceUrls(ReferenceUrlsT &&value)
Vulnerability & WithExploitObserved(ExploitObservedT &&value)
bool DescriptionHasBeenSet() const
const Aws::String & GetDescription() const
bool SourceUrlHasBeenSet() const
void SetEpss(EpssT &&value)
const ExploitObserved & GetExploitObserved() const
const Cvss3 & GetCvss3() const
void SetDescription(DescriptionT &&value)
bool VendorCreatedAtHasBeenSet() const
bool Cvss4HasBeenSet() const
Vulnerability & WithAtigData(AtigDataT &&value)
void SetCisaData(CisaDataT &&value)
VulnerabilitySource GetSource() const
const Epss & GetEpss() const
Vulnerability & WithRelatedVulnerabilities(RelatedVulnerabilitiesT &&value)
const Cvss2 & GetCvss2() const
AWS_INSPECTOR2_API Vulnerability()=default
Vulnerability & WithSource(VulnerabilitySource value)
const CisaData & GetCisaData() const
void SetDetectionPlatforms(DetectionPlatformsT &&value)
const Aws::Vector< Aws::String > & GetRelatedVulnerabilities() const
Vulnerability & WithCisaData(CisaDataT &&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