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>
106 template <
typename CvssT = Aws::Vector<CvssScore>>
108 m_cvssHasBeenSet =
true;
109 m_cvss = std::forward<CvssT>(value);
111 template <
typename CvssT = Aws::Vector<CvssScore>>
113 SetCvss(std::forward<CvssT>(value));
116 template <
typename CvssT = CvssScore>
118 m_cvssHasBeenSet =
true;
119 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>
229 template <
typename ReferenceUrlsT = Aws::Vector<Aws::String>>
231 m_referenceUrlsHasBeenSet =
true;
232 m_referenceUrls = std::forward<ReferenceUrlsT>(value);
234 template <
typename ReferenceUrlsT = Aws::Vector<Aws::String>>
239 template <
typename ReferenceUrlsT = Aws::String>
241 m_referenceUrlsHasBeenSet =
true;
242 m_referenceUrls.emplace_back(std::forward<ReferenceUrlsT>(value));
266 bool m_vulnerabilityIdHasBeenSet =
false;
267 bool m_vulnerablePackagesHasBeenSet =
false;
268 bool m_sourceHasBeenSet =
false;
269 bool m_cvssHasBeenSet =
false;
270 bool m_relatedVulnerabilitiesHasBeenSet =
false;
271 bool m_sourceUrlHasBeenSet =
false;
272 bool m_vendorSeverityHasBeenSet =
false;
273 bool m_vendorCreatedAtHasBeenSet =
false;
274 bool m_vendorUpdatedAtHasBeenSet =
false;
275 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