7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/inspector2/model/CvssScore.h>
12#include <aws/inspector2/model/VulnerablePackage.h>
51 template<
typename CvssT = Aws::Vector<CvssScore>>
52 void SetCvss(CvssT&& value) { m_cvssHasBeenSet =
true; m_cvss = std::forward<CvssT>(value); }
53 template<
typename CvssT = Aws::Vector<CvssScore>>
55 template<
typename CvssT = CvssScore>
65 template<
typename ReferenceUrlsT = Aws::Vector<Aws::String>>
66 void SetReferenceUrls(ReferenceUrlsT&& value) { m_referenceUrlsHasBeenSet =
true; m_referenceUrls = std::forward<ReferenceUrlsT>(value); }
67 template<
typename ReferenceUrlsT = Aws::Vector<Aws::String>>
69 template<
typename ReferenceUrlsT = Aws::String>
80 template<
typename RelatedVulnerabilitiesT = Aws::Vector<Aws::String>>
81 void SetRelatedVulnerabilities(RelatedVulnerabilitiesT&& value) { m_relatedVulnerabilitiesHasBeenSet =
true; m_relatedVulnerabilities = std::forward<RelatedVulnerabilitiesT>(value); }
82 template<
typename RelatedVulnerabilitiesT = Aws::Vector<Aws::String>>
84 template<
typename RelatedVulnerabilitiesT = Aws::String>
94 template<
typename SourceT = Aws::String>
95 void SetSource(SourceT&& value) { m_sourceHasBeenSet =
true; m_source = std::forward<SourceT>(value); }
96 template<
typename SourceT = Aws::String>
106 template<
typename SourceUrlT = Aws::String>
107 void SetSourceUrl(SourceUrlT&& value) { m_sourceUrlHasBeenSet =
true; m_sourceUrl = std::forward<SourceUrlT>(value); }
108 template<
typename SourceUrlT = Aws::String>
119 template<
typename VendorCreatedAtT = Aws::Utils::DateTime>
120 void SetVendorCreatedAt(VendorCreatedAtT&& value) { m_vendorCreatedAtHasBeenSet =
true; m_vendorCreatedAt = std::forward<VendorCreatedAtT>(value); }
121 template<
typename VendorCreatedAtT = Aws::Utils::DateTime>
131 template<
typename VendorSeverityT = Aws::String>
132 void SetVendorSeverity(VendorSeverityT&& value) { m_vendorSeverityHasBeenSet =
true; m_vendorSeverity = std::forward<VendorSeverityT>(value); }
133 template<
typename VendorSeverityT = Aws::String>
144 template<
typename VendorUpdatedAtT = Aws::Utils::DateTime>
145 void SetVendorUpdatedAt(VendorUpdatedAtT&& value) { m_vendorUpdatedAtHasBeenSet =
true; m_vendorUpdatedAt = std::forward<VendorUpdatedAtT>(value); }
146 template<
typename VendorUpdatedAtT = Aws::Utils::DateTime>
156 template<
typename VulnerabilityIdT = Aws::String>
157 void SetVulnerabilityId(VulnerabilityIdT&& value) { m_vulnerabilityIdHasBeenSet =
true; m_vulnerabilityId = std::forward<VulnerabilityIdT>(value); }
158 template<
typename VulnerabilityIdT = Aws::String>
168 template<
typename VulnerablePackagesT = Aws::Vector<VulnerablePackage>>
169 void SetVulnerablePackages(VulnerablePackagesT&& value) { m_vulnerablePackagesHasBeenSet =
true; m_vulnerablePackages = std::forward<VulnerablePackagesT>(value); }
170 template<
typename VulnerablePackagesT = Aws::Vector<VulnerablePackage>>
172 template<
typename VulnerablePackagesT = VulnerablePackage>
178 bool m_cvssHasBeenSet =
false;
181 bool m_referenceUrlsHasBeenSet =
false;
184 bool m_relatedVulnerabilitiesHasBeenSet =
false;
187 bool m_sourceHasBeenSet =
false;
190 bool m_sourceUrlHasBeenSet =
false;
193 bool m_vendorCreatedAtHasBeenSet =
false;
196 bool m_vendorSeverityHasBeenSet =
false;
199 bool m_vendorUpdatedAtHasBeenSet =
false;
202 bool m_vulnerabilityIdHasBeenSet =
false;
205 bool m_vulnerablePackagesHasBeenSet =
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