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/CvssScore.h>
12#include <aws/inspector2/model/VulnerablePackage.h>
45 template <
typename VulnerabilityIdT = Aws::String>
47 m_vulnerabilityIdHasBeenSet =
true;
48 m_vulnerabilityId = std::forward<VulnerabilityIdT>(value);
50 template <
typename VulnerabilityIdT = Aws::String>
63 template <
typename VulnerablePackagesT = Aws::Vector<VulnerablePackage>>
65 m_vulnerablePackagesHasBeenSet =
true;
66 m_vulnerablePackages = std::forward<VulnerablePackagesT>(value);
68 template <
typename VulnerablePackagesT = Aws::Vector<VulnerablePackage>>
73 template <
typename VulnerablePackagesT = VulnerablePackage>
75 m_vulnerablePackagesHasBeenSet =
true;
76 m_vulnerablePackages.emplace_back(std::forward<VulnerablePackagesT>(value));
87 template <
typename SourceT = Aws::String>
89 m_sourceHasBeenSet =
true;
90 m_source = std::forward<SourceT>(value);
92 template <
typename SourceT = Aws::String>
105 template <
typename CvssT = Aws::Vector<CvssScore>>
107 m_cvssHasBeenSet =
true;
108 m_cvss = std::forward<CvssT>(value);
110 template <
typename CvssT = Aws::Vector<CvssScore>>
112 SetCvss(std::forward<CvssT>(value));
115 template <
typename CvssT = CvssScore>
117 m_cvssHasBeenSet =
true;
118 m_cvss.emplace_back(std::forward<CvssT>(value));
130 template <
typename RelatedVulnerabilitiesT = Aws::Vector<Aws::String>>
132 m_relatedVulnerabilitiesHasBeenSet =
true;
133 m_relatedVulnerabilities = std::forward<RelatedVulnerabilitiesT>(value);
135 template <
typename RelatedVulnerabilitiesT = Aws::Vector<Aws::String>>
140 template <
typename RelatedVulnerabilitiesT = Aws::String>
142 m_relatedVulnerabilitiesHasBeenSet =
true;
143 m_relatedVulnerabilities.emplace_back(std::forward<RelatedVulnerabilitiesT>(value));
154 template <
typename SourceUrlT = Aws::String>
156 m_sourceUrlHasBeenSet =
true;
157 m_sourceUrl = std::forward<SourceUrlT>(value);
159 template <
typename SourceUrlT = Aws::String>
172 template <
typename VendorSeverityT = Aws::String>
174 m_vendorSeverityHasBeenSet =
true;
175 m_vendorSeverity = std::forward<VendorSeverityT>(value);
177 template <
typename VendorSeverityT = Aws::String>
191 template <
typename VendorCreatedAtT = Aws::Utils::DateTime>
193 m_vendorCreatedAtHasBeenSet =
true;
194 m_vendorCreatedAt = std::forward<VendorCreatedAtT>(value);
196 template <
typename VendorCreatedAtT = Aws::Utils::DateTime>
210 template <
typename VendorUpdatedAtT = Aws::Utils::DateTime>
212 m_vendorUpdatedAtHasBeenSet =
true;
213 m_vendorUpdatedAt = std::forward<VendorUpdatedAtT>(value);
215 template <
typename VendorUpdatedAtT = Aws::Utils::DateTime>
228 template <
typename ReferenceUrlsT = Aws::Vector<Aws::String>>
230 m_referenceUrlsHasBeenSet =
true;
231 m_referenceUrls = std::forward<ReferenceUrlsT>(value);
233 template <
typename ReferenceUrlsT = Aws::Vector<Aws::String>>
238 template <
typename ReferenceUrlsT = Aws::String>
240 m_referenceUrlsHasBeenSet =
true;
241 m_referenceUrls.emplace_back(std::forward<ReferenceUrlsT>(value));
265 bool m_vulnerabilityIdHasBeenSet =
false;
266 bool m_vulnerablePackagesHasBeenSet =
false;
267 bool m_sourceHasBeenSet =
false;
268 bool m_cvssHasBeenSet =
false;
269 bool m_relatedVulnerabilitiesHasBeenSet =
false;
270 bool m_sourceUrlHasBeenSet =
false;
271 bool m_vendorSeverityHasBeenSet =
false;
272 bool m_vendorCreatedAtHasBeenSet =
false;
273 bool m_vendorUpdatedAtHasBeenSet =
false;
274 bool m_referenceUrlsHasBeenSet =
false;
void SetVendorUpdatedAt(VendorUpdatedAtT &&value)
void SetVulnerablePackages(VulnerablePackagesT &&value)
PackageVulnerabilityDetails & AddCvss(CvssT &&value)
const Aws::Utils::DateTime & GetVendorUpdatedAt() const
bool ReferenceUrlsHasBeenSet() const
void SetRelatedVulnerabilities(RelatedVulnerabilitiesT &&value)
const Aws::String & GetVulnerabilityId() const
bool RelatedVulnerabilitiesHasBeenSet() const
void SetVendorSeverity(VendorSeverityT &&value)
bool VendorUpdatedAtHasBeenSet() const
AWS_INSPECTOR2_API PackageVulnerabilityDetails()=default
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
PackageVulnerabilityDetails & WithVendorCreatedAt(VendorCreatedAtT &&value)
AWS_INSPECTOR2_API PackageVulnerabilityDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetVendorSeverity() const
const Aws::Vector< CvssScore > & GetCvss() const
PackageVulnerabilityDetails & WithSource(SourceT &&value)
bool CvssHasBeenSet() const
void SetVulnerabilityId(VulnerabilityIdT &&value)
void SetSource(SourceT &&value)
const Aws::Utils::DateTime & GetVendorCreatedAt() const
const Aws::String & GetSource() const
const Aws::Vector< Aws::String > & GetReferenceUrls() const
PackageVulnerabilityDetails & WithSourceUrl(SourceUrlT &&value)
PackageVulnerabilityDetails & AddVulnerablePackages(VulnerablePackagesT &&value)
PackageVulnerabilityDetails & WithVendorUpdatedAt(VendorUpdatedAtT &&value)
PackageVulnerabilityDetails & WithCvss(CvssT &&value)
void SetReferenceUrls(ReferenceUrlsT &&value)
bool VendorCreatedAtHasBeenSet() const
bool SourceHasBeenSet() const
PackageVulnerabilityDetails & AddRelatedVulnerabilities(RelatedVulnerabilitiesT &&value)
AWS_INSPECTOR2_API PackageVulnerabilityDetails(Aws::Utils::Json::JsonView jsonValue)
PackageVulnerabilityDetails & WithReferenceUrls(ReferenceUrlsT &&value)
const Aws::String & GetSourceUrl() const
PackageVulnerabilityDetails & AddReferenceUrls(ReferenceUrlsT &&value)
void SetVendorCreatedAt(VendorCreatedAtT &&value)
void SetSourceUrl(SourceUrlT &&value)
bool VendorSeverityHasBeenSet() const
bool SourceUrlHasBeenSet() const
PackageVulnerabilityDetails & WithVulnerablePackages(VulnerablePackagesT &&value)
const Aws::Vector< VulnerablePackage > & GetVulnerablePackages() const
PackageVulnerabilityDetails & WithVendorSeverity(VendorSeverityT &&value)
PackageVulnerabilityDetails & WithRelatedVulnerabilities(RelatedVulnerabilitiesT &&value)
bool VulnerablePackagesHasBeenSet() const
bool VulnerabilityIdHasBeenSet() const
void SetCvss(CvssT &&value)
PackageVulnerabilityDetails & WithVulnerabilityId(VulnerabilityIdT &&value)
const Aws::Vector< Aws::String > & GetRelatedVulnerabilities() 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