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/imagebuilder/Imagebuilder_EXPORTS.h>
11#include <aws/imagebuilder/model/CvssScore.h>
12#include <aws/imagebuilder/model/VulnerablePackage.h>
23namespace imagebuilder {
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>
107 template <
typename CvssT = Aws::Vector<CvssScore>>
109 m_cvssHasBeenSet =
true;
110 m_cvss = std::forward<CvssT>(value);
112 template <
typename CvssT = Aws::Vector<CvssScore>>
114 SetCvss(std::forward<CvssT>(value));
117 template <
typename CvssT = CvssScore>
119 m_cvssHasBeenSet =
true;
120 m_cvss.emplace_back(std::forward<CvssT>(value));
131 template <
typename RelatedVulnerabilitiesT = Aws::Vector<Aws::String>>
133 m_relatedVulnerabilitiesHasBeenSet =
true;
134 m_relatedVulnerabilities = std::forward<RelatedVulnerabilitiesT>(value);
136 template <
typename RelatedVulnerabilitiesT = Aws::Vector<Aws::String>>
141 template <
typename RelatedVulnerabilitiesT = Aws::String>
143 m_relatedVulnerabilitiesHasBeenSet =
true;
144 m_relatedVulnerabilities.emplace_back(std::forward<RelatedVulnerabilitiesT>(value));
155 template <
typename SourceUrlT = Aws::String>
157 m_sourceUrlHasBeenSet =
true;
158 m_sourceUrl = std::forward<SourceUrlT>(value);
160 template <
typename SourceUrlT = Aws::String>
173 template <
typename VendorSeverityT = Aws::String>
175 m_vendorSeverityHasBeenSet =
true;
176 m_vendorSeverity = std::forward<VendorSeverityT>(value);
178 template <
typename VendorSeverityT = Aws::String>
192 template <
typename VendorCreatedAtT = Aws::Utils::DateTime>
194 m_vendorCreatedAtHasBeenSet =
true;
195 m_vendorCreatedAt = std::forward<VendorCreatedAtT>(value);
197 template <
typename VendorCreatedAtT = Aws::Utils::DateTime>
211 template <
typename VendorUpdatedAtT = Aws::Utils::DateTime>
213 m_vendorUpdatedAtHasBeenSet =
true;
214 m_vendorUpdatedAt = std::forward<VendorUpdatedAtT>(value);
216 template <
typename VendorUpdatedAtT = Aws::Utils::DateTime>
230 template <
typename ReferenceUrlsT = Aws::Vector<Aws::String>>
232 m_referenceUrlsHasBeenSet =
true;
233 m_referenceUrls = std::forward<ReferenceUrlsT>(value);
235 template <
typename ReferenceUrlsT = Aws::Vector<Aws::String>>
240 template <
typename ReferenceUrlsT = Aws::String>
242 m_referenceUrlsHasBeenSet =
true;
243 m_referenceUrls.emplace_back(std::forward<ReferenceUrlsT>(value));
267 bool m_vulnerabilityIdHasBeenSet =
false;
268 bool m_vulnerablePackagesHasBeenSet =
false;
269 bool m_sourceHasBeenSet =
false;
270 bool m_cvssHasBeenSet =
false;
271 bool m_relatedVulnerabilitiesHasBeenSet =
false;
272 bool m_sourceUrlHasBeenSet =
false;
273 bool m_vendorSeverityHasBeenSet =
false;
274 bool m_vendorCreatedAtHasBeenSet =
false;
275 bool m_vendorUpdatedAtHasBeenSet =
false;
276 bool m_referenceUrlsHasBeenSet =
false;
const Aws::Utils::DateTime & GetVendorCreatedAt() const
void SetSource(SourceT &&value)
const Aws::String & GetVendorSeverity() const
void SetSourceUrl(SourceUrlT &&value)
bool CvssHasBeenSet() const
AWS_IMAGEBUILDER_API PackageVulnerabilityDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetVendorUpdatedAt() const
PackageVulnerabilityDetails & WithRelatedVulnerabilities(RelatedVulnerabilitiesT &&value)
PackageVulnerabilityDetails & AddRelatedVulnerabilities(RelatedVulnerabilitiesT &&value)
PackageVulnerabilityDetails & WithVendorUpdatedAt(VendorUpdatedAtT &&value)
AWS_IMAGEBUILDER_API PackageVulnerabilityDetails()=default
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
PackageVulnerabilityDetails & WithVulnerabilityId(VulnerabilityIdT &&value)
PackageVulnerabilityDetails & AddVulnerablePackages(VulnerablePackagesT &&value)
void SetVulnerablePackages(VulnerablePackagesT &&value)
bool VulnerablePackagesHasBeenSet() const
bool SourceUrlHasBeenSet() const
PackageVulnerabilityDetails & WithSourceUrl(SourceUrlT &&value)
PackageVulnerabilityDetails & WithSource(SourceT &&value)
const Aws::Vector< CvssScore > & GetCvss() const
void SetReferenceUrls(ReferenceUrlsT &&value)
void SetVulnerabilityId(VulnerabilityIdT &&value)
bool VendorCreatedAtHasBeenSet() const
bool VendorSeverityHasBeenSet() const
bool RelatedVulnerabilitiesHasBeenSet() const
PackageVulnerabilityDetails & WithVendorSeverity(VendorSeverityT &&value)
bool SourceHasBeenSet() const
void SetCvss(CvssT &&value)
PackageVulnerabilityDetails & WithReferenceUrls(ReferenceUrlsT &&value)
bool VulnerabilityIdHasBeenSet() const
void SetVendorSeverity(VendorSeverityT &&value)
const Aws::String & GetSourceUrl() const
const Aws::Vector< VulnerablePackage > & GetVulnerablePackages() const
AWS_IMAGEBUILDER_API PackageVulnerabilityDetails(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetVulnerabilityId() const
const Aws::Vector< Aws::String > & GetRelatedVulnerabilities() const
void SetVendorCreatedAt(VendorCreatedAtT &&value)
void SetVendorUpdatedAt(VendorUpdatedAtT &&value)
PackageVulnerabilityDetails & WithVendorCreatedAt(VendorCreatedAtT &&value)
PackageVulnerabilityDetails & AddCvss(CvssT &&value)
bool ReferenceUrlsHasBeenSet() const
const Aws::Vector< Aws::String > & GetReferenceUrls() const
void SetRelatedVulnerabilities(RelatedVulnerabilitiesT &&value)
const Aws::String & GetSource() const
PackageVulnerabilityDetails & WithVulnerablePackages(VulnerablePackagesT &&value)
PackageVulnerabilityDetails & AddReferenceUrls(ReferenceUrlsT &&value)
PackageVulnerabilityDetails & WithCvss(CvssT &&value)
bool VendorUpdatedAtHasBeenSet() 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