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/ecr/ECR_EXPORTS.h>
11#include <aws/ecr/model/CvssScore.h>
12#include <aws/ecr/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 ECR {
24namespace Model {
25
33 public:
34 AWS_ECR_API PackageVulnerabilityDetails() = default;
38
40
43 inline const Aws::Vector<CvssScore>& GetCvss() const { return m_cvss; }
44 inline bool CvssHasBeenSet() const { return m_cvssHasBeenSet; }
45 template <typename CvssT = Aws::Vector<CvssScore>>
46 void SetCvss(CvssT&& value) {
47 m_cvssHasBeenSet = true;
48 m_cvss = std::forward<CvssT>(value);
49 }
50 template <typename CvssT = Aws::Vector<CvssScore>>
52 SetCvss(std::forward<CvssT>(value));
53 return *this;
54 }
55 template <typename CvssT = CvssScore>
57 m_cvssHasBeenSet = true;
58 m_cvss.emplace_back(std::forward<CvssT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::Vector<Aws::String>& GetReferenceUrls() const { return m_referenceUrls; }
68 inline bool ReferenceUrlsHasBeenSet() const { return m_referenceUrlsHasBeenSet; }
69 template <typename ReferenceUrlsT = Aws::Vector<Aws::String>>
70 void SetReferenceUrls(ReferenceUrlsT&& value) {
71 m_referenceUrlsHasBeenSet = true;
72 m_referenceUrls = std::forward<ReferenceUrlsT>(value);
73 }
74 template <typename ReferenceUrlsT = Aws::Vector<Aws::String>>
76 SetReferenceUrls(std::forward<ReferenceUrlsT>(value));
77 return *this;
78 }
79 template <typename ReferenceUrlsT = Aws::String>
81 m_referenceUrlsHasBeenSet = true;
82 m_referenceUrls.emplace_back(std::forward<ReferenceUrlsT>(value));
83 return *this;
84 }
86
88
92 inline const Aws::Vector<Aws::String>& GetRelatedVulnerabilities() const { return m_relatedVulnerabilities; }
93 inline bool RelatedVulnerabilitiesHasBeenSet() const { return m_relatedVulnerabilitiesHasBeenSet; }
94 template <typename RelatedVulnerabilitiesT = Aws::Vector<Aws::String>>
95 void SetRelatedVulnerabilities(RelatedVulnerabilitiesT&& value) {
96 m_relatedVulnerabilitiesHasBeenSet = true;
97 m_relatedVulnerabilities = std::forward<RelatedVulnerabilitiesT>(value);
98 }
99 template <typename RelatedVulnerabilitiesT = Aws::Vector<Aws::String>>
100 PackageVulnerabilityDetails& WithRelatedVulnerabilities(RelatedVulnerabilitiesT&& value) {
101 SetRelatedVulnerabilities(std::forward<RelatedVulnerabilitiesT>(value));
102 return *this;
103 }
104 template <typename RelatedVulnerabilitiesT = Aws::String>
105 PackageVulnerabilityDetails& AddRelatedVulnerabilities(RelatedVulnerabilitiesT&& value) {
106 m_relatedVulnerabilitiesHasBeenSet = true;
107 m_relatedVulnerabilities.emplace_back(std::forward<RelatedVulnerabilitiesT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetSource() const { return m_source; }
117 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
118 template <typename SourceT = Aws::String>
119 void SetSource(SourceT&& value) {
120 m_sourceHasBeenSet = true;
121 m_source = std::forward<SourceT>(value);
122 }
123 template <typename SourceT = Aws::String>
125 SetSource(std::forward<SourceT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::String& GetSourceUrl() const { return m_sourceUrl; }
135 inline bool SourceUrlHasBeenSet() const { return m_sourceUrlHasBeenSet; }
136 template <typename SourceUrlT = Aws::String>
137 void SetSourceUrl(SourceUrlT&& value) {
138 m_sourceUrlHasBeenSet = true;
139 m_sourceUrl = std::forward<SourceUrlT>(value);
140 }
141 template <typename SourceUrlT = Aws::String>
143 SetSourceUrl(std::forward<SourceUrlT>(value));
144 return *this;
145 }
147
149
153 inline const Aws::Utils::DateTime& GetVendorCreatedAt() const { return m_vendorCreatedAt; }
154 inline bool VendorCreatedAtHasBeenSet() const { return m_vendorCreatedAtHasBeenSet; }
155 template <typename VendorCreatedAtT = Aws::Utils::DateTime>
156 void SetVendorCreatedAt(VendorCreatedAtT&& value) {
157 m_vendorCreatedAtHasBeenSet = true;
158 m_vendorCreatedAt = std::forward<VendorCreatedAtT>(value);
159 }
160 template <typename VendorCreatedAtT = Aws::Utils::DateTime>
162 SetVendorCreatedAt(std::forward<VendorCreatedAtT>(value));
163 return *this;
164 }
166
168
171 inline const Aws::String& GetVendorSeverity() const { return m_vendorSeverity; }
172 inline bool VendorSeverityHasBeenSet() const { return m_vendorSeverityHasBeenSet; }
173 template <typename VendorSeverityT = Aws::String>
174 void SetVendorSeverity(VendorSeverityT&& value) {
175 m_vendorSeverityHasBeenSet = true;
176 m_vendorSeverity = std::forward<VendorSeverityT>(value);
177 }
178 template <typename VendorSeverityT = Aws::String>
180 SetVendorSeverity(std::forward<VendorSeverityT>(value));
181 return *this;
182 }
184
186
190 inline const Aws::Utils::DateTime& GetVendorUpdatedAt() const { return m_vendorUpdatedAt; }
191 inline bool VendorUpdatedAtHasBeenSet() const { return m_vendorUpdatedAtHasBeenSet; }
192 template <typename VendorUpdatedAtT = Aws::Utils::DateTime>
193 void SetVendorUpdatedAt(VendorUpdatedAtT&& value) {
194 m_vendorUpdatedAtHasBeenSet = true;
195 m_vendorUpdatedAt = std::forward<VendorUpdatedAtT>(value);
196 }
197 template <typename VendorUpdatedAtT = Aws::Utils::DateTime>
199 SetVendorUpdatedAt(std::forward<VendorUpdatedAtT>(value));
200 return *this;
201 }
203
205
208 inline const Aws::String& GetVulnerabilityId() const { return m_vulnerabilityId; }
209 inline bool VulnerabilityIdHasBeenSet() const { return m_vulnerabilityIdHasBeenSet; }
210 template <typename VulnerabilityIdT = Aws::String>
211 void SetVulnerabilityId(VulnerabilityIdT&& value) {
212 m_vulnerabilityIdHasBeenSet = true;
213 m_vulnerabilityId = std::forward<VulnerabilityIdT>(value);
214 }
215 template <typename VulnerabilityIdT = Aws::String>
217 SetVulnerabilityId(std::forward<VulnerabilityIdT>(value));
218 return *this;
219 }
221
223
226 inline const Aws::Vector<VulnerablePackage>& GetVulnerablePackages() const { return m_vulnerablePackages; }
227 inline bool VulnerablePackagesHasBeenSet() const { return m_vulnerablePackagesHasBeenSet; }
228 template <typename VulnerablePackagesT = Aws::Vector<VulnerablePackage>>
229 void SetVulnerablePackages(VulnerablePackagesT&& value) {
230 m_vulnerablePackagesHasBeenSet = true;
231 m_vulnerablePackages = std::forward<VulnerablePackagesT>(value);
232 }
233 template <typename VulnerablePackagesT = Aws::Vector<VulnerablePackage>>
235 SetVulnerablePackages(std::forward<VulnerablePackagesT>(value));
236 return *this;
237 }
238 template <typename VulnerablePackagesT = VulnerablePackage>
240 m_vulnerablePackagesHasBeenSet = true;
241 m_vulnerablePackages.emplace_back(std::forward<VulnerablePackagesT>(value));
242 return *this;
243 }
245 private:
247
248 Aws::Vector<Aws::String> m_referenceUrls;
249
250 Aws::Vector<Aws::String> m_relatedVulnerabilities;
251
252 Aws::String m_source;
253
254 Aws::String m_sourceUrl;
255
256 Aws::Utils::DateTime m_vendorCreatedAt{};
257
258 Aws::String m_vendorSeverity;
259
260 Aws::Utils::DateTime m_vendorUpdatedAt{};
261
262 Aws::String m_vulnerabilityId;
263
264 Aws::Vector<VulnerablePackage> m_vulnerablePackages;
265 bool m_cvssHasBeenSet = false;
266 bool m_referenceUrlsHasBeenSet = false;
267 bool m_relatedVulnerabilitiesHasBeenSet = false;
268 bool m_sourceHasBeenSet = false;
269 bool m_sourceUrlHasBeenSet = false;
270 bool m_vendorCreatedAtHasBeenSet = false;
271 bool m_vendorSeverityHasBeenSet = false;
272 bool m_vendorUpdatedAtHasBeenSet = false;
273 bool m_vulnerabilityIdHasBeenSet = false;
274 bool m_vulnerablePackagesHasBeenSet = false;
275};
276
277} // namespace Model
278} // namespace ECR
279} // namespace Aws
PackageVulnerabilityDetails & AddReferenceUrls(ReferenceUrlsT &&value)
const Aws::Vector< Aws::String > & GetRelatedVulnerabilities() const
PackageVulnerabilityDetails & WithSource(SourceT &&value)
AWS_ECR_API PackageVulnerabilityDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
PackageVulnerabilityDetails & WithCvss(CvssT &&value)
PackageVulnerabilityDetails & AddCvss(CvssT &&value)
const Aws::Vector< Aws::String > & GetReferenceUrls() const
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECR_API PackageVulnerabilityDetails(Aws::Utils::Json::JsonView jsonValue)
PackageVulnerabilityDetails & WithVulnerablePackages(VulnerablePackagesT &&value)
const Aws::Vector< VulnerablePackage > & GetVulnerablePackages() const
PackageVulnerabilityDetails & WithVendorSeverity(VendorSeverityT &&value)
PackageVulnerabilityDetails & WithSourceUrl(SourceUrlT &&value)
PackageVulnerabilityDetails & WithVulnerabilityId(VulnerabilityIdT &&value)
const Aws::Vector< CvssScore > & GetCvss() const
PackageVulnerabilityDetails & WithVendorUpdatedAt(VendorUpdatedAtT &&value)
PackageVulnerabilityDetails & WithReferenceUrls(ReferenceUrlsT &&value)
const Aws::Utils::DateTime & GetVendorUpdatedAt() const
PackageVulnerabilityDetails & AddVulnerablePackages(VulnerablePackagesT &&value)
AWS_ECR_API PackageVulnerabilityDetails()=default
const Aws::Utils::DateTime & GetVendorCreatedAt() const
void SetRelatedVulnerabilities(RelatedVulnerabilitiesT &&value)
PackageVulnerabilityDetails & WithVendorCreatedAt(VendorCreatedAtT &&value)
PackageVulnerabilityDetails & WithRelatedVulnerabilities(RelatedVulnerabilitiesT &&value)
PackageVulnerabilityDetails & AddRelatedVulnerabilities(RelatedVulnerabilitiesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue