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>
57 template<
typename AtigDataT = AtigData>
58 void SetAtigData(AtigDataT&& value) { m_atigDataHasBeenSet =
true; m_atigData = std::forward<AtigDataT>(value); }
59 template<
typename AtigDataT = AtigData>
70 template<
typename CisaDataT = CisaData>
71 void SetCisaData(CisaDataT&& value) { m_cisaDataHasBeenSet =
true; m_cisaData = std::forward<CisaDataT>(value); }
72 template<
typename CisaDataT = CisaData>
83 template<
typename Cvss2T = Cvss2>
84 void SetCvss2(Cvss2T&& value) { m_cvss2HasBeenSet =
true; m_cvss2 = std::forward<Cvss2T>(value); }
85 template<
typename Cvss2T = Cvss2>
96 template<
typename Cvss3T = Cvss3>
97 void SetCvss3(Cvss3T&& value) { m_cvss3HasBeenSet =
true; m_cvss3 = std::forward<Cvss3T>(value); }
98 template<
typename Cvss3T = Cvss3>
108 template<
typename CwesT = Aws::Vector<Aws::String>>
109 void SetCwes(CwesT&& value) { m_cwesHasBeenSet =
true; m_cwes = std::forward<CwesT>(value); }
110 template<
typename CwesT = Aws::Vector<Aws::String>>
112 template<
typename CwesT = Aws::String>
113 Vulnerability&
AddCwes(CwesT&& value) { m_cwesHasBeenSet =
true; m_cwes.emplace_back(std::forward<CwesT>(value));
return *
this; }
122 template<
typename DescriptionT = Aws::String>
123 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
124 template<
typename DescriptionT = Aws::String>
134 template<
typename DetectionPlatformsT = Aws::Vector<Aws::String>>
135 void SetDetectionPlatforms(DetectionPlatformsT&& value) { m_detectionPlatformsHasBeenSet =
true; m_detectionPlatforms = std::forward<DetectionPlatformsT>(value); }
136 template<
typename DetectionPlatformsT = Aws::Vector<Aws::String>>
138 template<
typename DetectionPlatformsT = Aws::String>
139 Vulnerability&
AddDetectionPlatforms(DetectionPlatformsT&& value) { m_detectionPlatformsHasBeenSet =
true; m_detectionPlatforms.emplace_back(std::forward<DetectionPlatformsT>(value));
return *
this; }
149 template<
typename EpssT = Epss>
150 void SetEpss(EpssT&& value) { m_epssHasBeenSet =
true; m_epss = std::forward<EpssT>(value); }
151 template<
typename EpssT = Epss>
161 template<
typename ExploitObservedT = ExploitObserved>
162 void SetExploitObserved(ExploitObservedT&& value) { m_exploitObservedHasBeenSet =
true; m_exploitObserved = std::forward<ExploitObservedT>(value); }
163 template<
typename ExploitObservedT = ExploitObserved>
173 template<
typename IdT = Aws::String>
174 void SetId(IdT&& value) { m_idHasBeenSet =
true; m_id = std::forward<IdT>(value); }
175 template<
typename IdT = Aws::String>
185 template<
typename ReferenceUrlsT = Aws::Vector<Aws::String>>
186 void SetReferenceUrls(ReferenceUrlsT&& value) { m_referenceUrlsHasBeenSet =
true; m_referenceUrls = std::forward<ReferenceUrlsT>(value); }
187 template<
typename ReferenceUrlsT = Aws::Vector<Aws::String>>
189 template<
typename ReferenceUrlsT = Aws::String>
190 Vulnerability&
AddReferenceUrls(ReferenceUrlsT&& value) { m_referenceUrlsHasBeenSet =
true; m_referenceUrls.emplace_back(std::forward<ReferenceUrlsT>(value));
return *
this; }
199 template<
typename RelatedVulnerabilitiesT = Aws::Vector<Aws::String>>
200 void SetRelatedVulnerabilities(RelatedVulnerabilitiesT&& value) { m_relatedVulnerabilitiesHasBeenSet =
true; m_relatedVulnerabilities = std::forward<RelatedVulnerabilitiesT>(value); }
201 template<
typename RelatedVulnerabilitiesT = Aws::Vector<Aws::String>>
203 template<
typename RelatedVulnerabilitiesT = Aws::String>
204 Vulnerability&
AddRelatedVulnerabilities(RelatedVulnerabilitiesT&& value) { m_relatedVulnerabilitiesHasBeenSet =
true; m_relatedVulnerabilities.emplace_back(std::forward<RelatedVulnerabilitiesT>(value));
return *
this; }
225 template<
typename SourceUrlT = Aws::String>
226 void SetSourceUrl(SourceUrlT&& value) { m_sourceUrlHasBeenSet =
true; m_sourceUrl = std::forward<SourceUrlT>(value); }
227 template<
typename SourceUrlT = Aws::String>
237 template<
typename VendorCreatedAtT = Aws::Utils::DateTime>
238 void SetVendorCreatedAt(VendorCreatedAtT&& value) { m_vendorCreatedAtHasBeenSet =
true; m_vendorCreatedAt = std::forward<VendorCreatedAtT>(value); }
239 template<
typename VendorCreatedAtT = Aws::Utils::DateTime>
249 template<
typename VendorSeverityT = Aws::String>
250 void SetVendorSeverity(VendorSeverityT&& value) { m_vendorSeverityHasBeenSet =
true; m_vendorSeverity = std::forward<VendorSeverityT>(value); }
251 template<
typename VendorSeverityT = Aws::String>
261 template<
typename VendorUpdatedAtT = Aws::Utils::DateTime>
262 void SetVendorUpdatedAt(VendorUpdatedAtT&& value) { m_vendorUpdatedAtHasBeenSet =
true; m_vendorUpdatedAt = std::forward<VendorUpdatedAtT>(value); }
263 template<
typename VendorUpdatedAtT = Aws::Utils::DateTime>
269 bool m_atigDataHasBeenSet =
false;
272 bool m_cisaDataHasBeenSet =
false;
275 bool m_cvss2HasBeenSet =
false;
278 bool m_cvss3HasBeenSet =
false;
281 bool m_cwesHasBeenSet =
false;
284 bool m_descriptionHasBeenSet =
false;
287 bool m_detectionPlatformsHasBeenSet =
false;
290 bool m_epssHasBeenSet =
false;
293 bool m_exploitObservedHasBeenSet =
false;
296 bool m_idHasBeenSet =
false;
299 bool m_referenceUrlsHasBeenSet =
false;
302 bool m_relatedVulnerabilitiesHasBeenSet =
false;
305 bool m_sourceHasBeenSet =
false;
308 bool m_sourceUrlHasBeenSet =
false;
311 bool m_vendorCreatedAtHasBeenSet =
false;
314 bool m_vendorSeverityHasBeenSet =
false;
317 bool m_vendorUpdatedAtHasBeenSet =
false;
bool Cvss3HasBeenSet() const
bool EpssHasBeenSet() const
Vulnerability & WithEpss(EpssT &&value)
void SetExploitObserved(ExploitObservedT &&value)
Vulnerability & WithDescription(DescriptionT &&value)
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 & 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 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
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