AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
PackageVulnerabilityDetails.h
1
6#pragma once
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>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Inspector2 {
24namespace Model {
25
33 public:
34 AWS_INSPECTOR2_API PackageVulnerabilityDetails() = default;
37 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetVulnerabilityId() const { return m_vulnerabilityId; }
44 inline bool VulnerabilityIdHasBeenSet() const { return m_vulnerabilityIdHasBeenSet; }
45 template <typename VulnerabilityIdT = Aws::String>
46 void SetVulnerabilityId(VulnerabilityIdT&& value) {
47 m_vulnerabilityIdHasBeenSet = true;
48 m_vulnerabilityId = std::forward<VulnerabilityIdT>(value);
49 }
50 template <typename VulnerabilityIdT = Aws::String>
52 SetVulnerabilityId(std::forward<VulnerabilityIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Vector<VulnerablePackage>& GetVulnerablePackages() const { return m_vulnerablePackages; }
62 inline bool VulnerablePackagesHasBeenSet() const { return m_vulnerablePackagesHasBeenSet; }
63 template <typename VulnerablePackagesT = Aws::Vector<VulnerablePackage>>
64 void SetVulnerablePackages(VulnerablePackagesT&& value) {
65 m_vulnerablePackagesHasBeenSet = true;
66 m_vulnerablePackages = std::forward<VulnerablePackagesT>(value);
67 }
68 template <typename VulnerablePackagesT = Aws::Vector<VulnerablePackage>>
70 SetVulnerablePackages(std::forward<VulnerablePackagesT>(value));
71 return *this;
72 }
73 template <typename VulnerablePackagesT = VulnerablePackage>
74 PackageVulnerabilityDetails& AddVulnerablePackages(VulnerablePackagesT&& value) {
75 m_vulnerablePackagesHasBeenSet = true;
76 m_vulnerablePackages.emplace_back(std::forward<VulnerablePackagesT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetSource() const { return m_source; }
86 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
87 template <typename SourceT = Aws::String>
88 void SetSource(SourceT&& value) {
89 m_sourceHasBeenSet = true;
90 m_source = std::forward<SourceT>(value);
91 }
92 template <typename SourceT = Aws::String>
94 SetSource(std::forward<SourceT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::Vector<CvssScore>& GetCvss() const { return m_cvss; }
104 inline bool CvssHasBeenSet() const { return m_cvssHasBeenSet; }
105 template <typename CvssT = Aws::Vector<CvssScore>>
106 void SetCvss(CvssT&& value) {
107 m_cvssHasBeenSet = true;
108 m_cvss = std::forward<CvssT>(value);
109 }
110 template <typename CvssT = Aws::Vector<CvssScore>>
112 SetCvss(std::forward<CvssT>(value));
113 return *this;
114 }
115 template <typename CvssT = CvssScore>
117 m_cvssHasBeenSet = true;
118 m_cvss.emplace_back(std::forward<CvssT>(value));
119 return *this;
120 }
122
124
128 inline const Aws::Vector<Aws::String>& GetRelatedVulnerabilities() const { return m_relatedVulnerabilities; }
129 inline bool RelatedVulnerabilitiesHasBeenSet() const { return m_relatedVulnerabilitiesHasBeenSet; }
130 template <typename RelatedVulnerabilitiesT = Aws::Vector<Aws::String>>
131 void SetRelatedVulnerabilities(RelatedVulnerabilitiesT&& value) {
132 m_relatedVulnerabilitiesHasBeenSet = true;
133 m_relatedVulnerabilities = std::forward<RelatedVulnerabilitiesT>(value);
134 }
135 template <typename RelatedVulnerabilitiesT = Aws::Vector<Aws::String>>
136 PackageVulnerabilityDetails& WithRelatedVulnerabilities(RelatedVulnerabilitiesT&& value) {
137 SetRelatedVulnerabilities(std::forward<RelatedVulnerabilitiesT>(value));
138 return *this;
139 }
140 template <typename RelatedVulnerabilitiesT = Aws::String>
141 PackageVulnerabilityDetails& AddRelatedVulnerabilities(RelatedVulnerabilitiesT&& value) {
142 m_relatedVulnerabilitiesHasBeenSet = true;
143 m_relatedVulnerabilities.emplace_back(std::forward<RelatedVulnerabilitiesT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::String& GetSourceUrl() const { return m_sourceUrl; }
153 inline bool SourceUrlHasBeenSet() const { return m_sourceUrlHasBeenSet; }
154 template <typename SourceUrlT = Aws::String>
155 void SetSourceUrl(SourceUrlT&& value) {
156 m_sourceUrlHasBeenSet = true;
157 m_sourceUrl = std::forward<SourceUrlT>(value);
158 }
159 template <typename SourceUrlT = Aws::String>
161 SetSourceUrl(std::forward<SourceUrlT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::String& GetVendorSeverity() const { return m_vendorSeverity; }
171 inline bool VendorSeverityHasBeenSet() const { return m_vendorSeverityHasBeenSet; }
172 template <typename VendorSeverityT = Aws::String>
173 void SetVendorSeverity(VendorSeverityT&& value) {
174 m_vendorSeverityHasBeenSet = true;
175 m_vendorSeverity = std::forward<VendorSeverityT>(value);
176 }
177 template <typename VendorSeverityT = Aws::String>
179 SetVendorSeverity(std::forward<VendorSeverityT>(value));
180 return *this;
181 }
183
185
189 inline const Aws::Utils::DateTime& GetVendorCreatedAt() const { return m_vendorCreatedAt; }
190 inline bool VendorCreatedAtHasBeenSet() const { return m_vendorCreatedAtHasBeenSet; }
191 template <typename VendorCreatedAtT = Aws::Utils::DateTime>
192 void SetVendorCreatedAt(VendorCreatedAtT&& value) {
193 m_vendorCreatedAtHasBeenSet = true;
194 m_vendorCreatedAt = std::forward<VendorCreatedAtT>(value);
195 }
196 template <typename VendorCreatedAtT = Aws::Utils::DateTime>
198 SetVendorCreatedAt(std::forward<VendorCreatedAtT>(value));
199 return *this;
200 }
202
204
208 inline const Aws::Utils::DateTime& GetVendorUpdatedAt() const { return m_vendorUpdatedAt; }
209 inline bool VendorUpdatedAtHasBeenSet() const { return m_vendorUpdatedAtHasBeenSet; }
210 template <typename VendorUpdatedAtT = Aws::Utils::DateTime>
211 void SetVendorUpdatedAt(VendorUpdatedAtT&& value) {
212 m_vendorUpdatedAtHasBeenSet = true;
213 m_vendorUpdatedAt = std::forward<VendorUpdatedAtT>(value);
214 }
215 template <typename VendorUpdatedAtT = Aws::Utils::DateTime>
217 SetVendorUpdatedAt(std::forward<VendorUpdatedAtT>(value));
218 return *this;
219 }
221
223
226 inline const Aws::Vector<Aws::String>& GetReferenceUrls() const { return m_referenceUrls; }
227 inline bool ReferenceUrlsHasBeenSet() const { return m_referenceUrlsHasBeenSet; }
228 template <typename ReferenceUrlsT = Aws::Vector<Aws::String>>
229 void SetReferenceUrls(ReferenceUrlsT&& value) {
230 m_referenceUrlsHasBeenSet = true;
231 m_referenceUrls = std::forward<ReferenceUrlsT>(value);
232 }
233 template <typename ReferenceUrlsT = Aws::Vector<Aws::String>>
235 SetReferenceUrls(std::forward<ReferenceUrlsT>(value));
236 return *this;
237 }
238 template <typename ReferenceUrlsT = Aws::String>
240 m_referenceUrlsHasBeenSet = true;
241 m_referenceUrls.emplace_back(std::forward<ReferenceUrlsT>(value));
242 return *this;
243 }
245 private:
246 Aws::String m_vulnerabilityId;
247
248 Aws::Vector<VulnerablePackage> m_vulnerablePackages;
249
250 Aws::String m_source;
251
253
254 Aws::Vector<Aws::String> m_relatedVulnerabilities;
255
256 Aws::String m_sourceUrl;
257
258 Aws::String m_vendorSeverity;
259
260 Aws::Utils::DateTime m_vendorCreatedAt{};
261
262 Aws::Utils::DateTime m_vendorUpdatedAt{};
263
264 Aws::Vector<Aws::String> m_referenceUrls;
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;
275};
276
277} // namespace Model
278} // namespace Inspector2
279} // namespace Aws
PackageVulnerabilityDetails & AddCvss(CvssT &&value)
void SetRelatedVulnerabilities(RelatedVulnerabilitiesT &&value)
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)
PackageVulnerabilityDetails & WithSource(SourceT &&value)
const Aws::Vector< Aws::String > & GetReferenceUrls() const
PackageVulnerabilityDetails & WithSourceUrl(SourceUrlT &&value)
PackageVulnerabilityDetails & AddVulnerablePackages(VulnerablePackagesT &&value)
PackageVulnerabilityDetails & WithVendorUpdatedAt(VendorUpdatedAtT &&value)
PackageVulnerabilityDetails & WithCvss(CvssT &&value)
PackageVulnerabilityDetails & AddRelatedVulnerabilities(RelatedVulnerabilitiesT &&value)
AWS_INSPECTOR2_API PackageVulnerabilityDetails(Aws::Utils::Json::JsonView jsonValue)
PackageVulnerabilityDetails & WithReferenceUrls(ReferenceUrlsT &&value)
PackageVulnerabilityDetails & AddReferenceUrls(ReferenceUrlsT &&value)
PackageVulnerabilityDetails & WithVulnerablePackages(VulnerablePackagesT &&value)
const Aws::Vector< VulnerablePackage > & GetVulnerablePackages() const
PackageVulnerabilityDetails & WithVendorSeverity(VendorSeverityT &&value)
PackageVulnerabilityDetails & WithRelatedVulnerabilities(RelatedVulnerabilitiesT &&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