AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
FindingVulnerability.h
1
6#pragma once
7#include <aws/continuum/Continuum_EXPORTS.h>
8#include <aws/continuum/model/AffectedPackage.h>
9#include <aws/continuum/model/FindingLocation.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Continuum {
23namespace Model {
24
33 public:
34 AWS_CONTINUUM_API FindingVulnerability() = default;
37 AWS_CONTINUUM_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
41 inline const Aws::String& GetTitle() const { return m_title; }
42 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
43 template <typename TitleT = Aws::String>
44 void SetTitle(TitleT&& value) {
45 m_titleHasBeenSet = true;
46 m_title = std::forward<TitleT>(value);
47 }
48 template <typename TitleT = Aws::String>
50 SetTitle(std::forward<TitleT>(value));
51 return *this;
52 }
54
56
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template <typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
65 FindingVulnerability& WithDescription(DescriptionT&& value) {
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetCweId() const { return m_cweId; }
76 inline bool CweIdHasBeenSet() const { return m_cweIdHasBeenSet; }
77 template <typename CweIdT = Aws::String>
78 void SetCweId(CweIdT&& value) {
79 m_cweIdHasBeenSet = true;
80 m_cweId = std::forward<CweIdT>(value);
81 }
82 template <typename CweIdT = Aws::String>
84 SetCweId(std::forward<CweIdT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetCweCaption() const { return m_cweCaption; }
94 inline bool CweCaptionHasBeenSet() const { return m_cweCaptionHasBeenSet; }
95 template <typename CweCaptionT = Aws::String>
96 void SetCweCaption(CweCaptionT&& value) {
97 m_cweCaptionHasBeenSet = true;
98 m_cweCaption = std::forward<CweCaptionT>(value);
99 }
100 template <typename CweCaptionT = Aws::String>
101 FindingVulnerability& WithCweCaption(CweCaptionT&& value) {
102 SetCweCaption(std::forward<CweCaptionT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::Vector<Aws::String>& GetAdditionalCweIds() const { return m_additionalCweIds; }
112 inline bool AdditionalCweIdsHasBeenSet() const { return m_additionalCweIdsHasBeenSet; }
113 template <typename AdditionalCweIdsT = Aws::Vector<Aws::String>>
114 void SetAdditionalCweIds(AdditionalCweIdsT&& value) {
115 m_additionalCweIdsHasBeenSet = true;
116 m_additionalCweIds = std::forward<AdditionalCweIdsT>(value);
117 }
118 template <typename AdditionalCweIdsT = Aws::Vector<Aws::String>>
119 FindingVulnerability& WithAdditionalCweIds(AdditionalCweIdsT&& value) {
120 SetAdditionalCweIds(std::forward<AdditionalCweIdsT>(value));
121 return *this;
122 }
123 template <typename AdditionalCweIdsT = Aws::String>
124 FindingVulnerability& AddAdditionalCweIds(AdditionalCweIdsT&& value) {
125 m_additionalCweIdsHasBeenSet = true;
126 m_additionalCweIds.emplace_back(std::forward<AdditionalCweIdsT>(value));
127 return *this;
128 }
130
132
133 inline const Aws::String& GetCveId() const { return m_cveId; }
134 inline bool CveIdHasBeenSet() const { return m_cveIdHasBeenSet; }
135 template <typename CveIdT = Aws::String>
136 void SetCveId(CveIdT&& value) {
137 m_cveIdHasBeenSet = true;
138 m_cveId = std::forward<CveIdT>(value);
139 }
140 template <typename CveIdT = Aws::String>
142 SetCveId(std::forward<CveIdT>(value));
143 return *this;
144 }
146
148
152 inline double GetCvssBaseScore() const { return m_cvssBaseScore; }
153 inline bool CvssBaseScoreHasBeenSet() const { return m_cvssBaseScoreHasBeenSet; }
154 inline void SetCvssBaseScore(double value) {
155 m_cvssBaseScoreHasBeenSet = true;
156 m_cvssBaseScore = value;
157 }
159 SetCvssBaseScore(value);
160 return *this;
161 }
163
165
168 inline const Aws::String& GetFixCoverage() const { return m_fixCoverage; }
169 inline bool FixCoverageHasBeenSet() const { return m_fixCoverageHasBeenSet; }
170 template <typename FixCoverageT = Aws::String>
171 void SetFixCoverage(FixCoverageT&& value) {
172 m_fixCoverageHasBeenSet = true;
173 m_fixCoverage = std::forward<FixCoverageT>(value);
174 }
175 template <typename FixCoverageT = Aws::String>
176 FindingVulnerability& WithFixCoverage(FixCoverageT&& value) {
177 SetFixCoverage(std::forward<FixCoverageT>(value));
178 return *this;
179 }
181
183
186 inline int GetFixCoverageId() const { return m_fixCoverageId; }
187 inline bool FixCoverageIdHasBeenSet() const { return m_fixCoverageIdHasBeenSet; }
188 inline void SetFixCoverageId(int value) {
189 m_fixCoverageIdHasBeenSet = true;
190 m_fixCoverageId = value;
191 }
193 SetFixCoverageId(value);
194 return *this;
195 }
197
199
202 inline const Aws::Vector<FindingLocation>& GetLocations() const { return m_locations; }
203 inline bool LocationsHasBeenSet() const { return m_locationsHasBeenSet; }
204 template <typename LocationsT = Aws::Vector<FindingLocation>>
205 void SetLocations(LocationsT&& value) {
206 m_locationsHasBeenSet = true;
207 m_locations = std::forward<LocationsT>(value);
208 }
209 template <typename LocationsT = Aws::Vector<FindingLocation>>
210 FindingVulnerability& WithLocations(LocationsT&& value) {
211 SetLocations(std::forward<LocationsT>(value));
212 return *this;
213 }
214 template <typename LocationsT = FindingLocation>
215 FindingVulnerability& AddLocations(LocationsT&& value) {
216 m_locationsHasBeenSet = true;
217 m_locations.emplace_back(std::forward<LocationsT>(value));
218 return *this;
219 }
221
223
224 inline const Aws::String& GetRemediation() const { return m_remediation; }
225 inline bool RemediationHasBeenSet() const { return m_remediationHasBeenSet; }
226 template <typename RemediationT = Aws::String>
227 void SetRemediation(RemediationT&& value) {
228 m_remediationHasBeenSet = true;
229 m_remediation = std::forward<RemediationT>(value);
230 }
231 template <typename RemediationT = Aws::String>
232 FindingVulnerability& WithRemediation(RemediationT&& value) {
233 SetRemediation(std::forward<RemediationT>(value));
234 return *this;
235 }
237
239
240 inline const Aws::Vector<Aws::String>& GetRemediationReferences() const { return m_remediationReferences; }
241 inline bool RemediationReferencesHasBeenSet() const { return m_remediationReferencesHasBeenSet; }
242 template <typename RemediationReferencesT = Aws::Vector<Aws::String>>
243 void SetRemediationReferences(RemediationReferencesT&& value) {
244 m_remediationReferencesHasBeenSet = true;
245 m_remediationReferences = std::forward<RemediationReferencesT>(value);
246 }
247 template <typename RemediationReferencesT = Aws::Vector<Aws::String>>
248 FindingVulnerability& WithRemediationReferences(RemediationReferencesT&& value) {
249 SetRemediationReferences(std::forward<RemediationReferencesT>(value));
250 return *this;
251 }
252 template <typename RemediationReferencesT = Aws::String>
253 FindingVulnerability& AddRemediationReferences(RemediationReferencesT&& value) {
254 m_remediationReferencesHasBeenSet = true;
255 m_remediationReferences.emplace_back(std::forward<RemediationReferencesT>(value));
256 return *this;
257 }
259
261
264 inline const Aws::String& GetCode() const { return m_code; }
265 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
266 template <typename CodeT = Aws::String>
267 void SetCode(CodeT&& value) {
268 m_codeHasBeenSet = true;
269 m_code = std::forward<CodeT>(value);
270 }
271 template <typename CodeT = Aws::String>
273 SetCode(std::forward<CodeT>(value));
274 return *this;
275 }
277
279
282 inline const Aws::String& GetDetails() const { return m_details; }
283 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
284 template <typename DetailsT = Aws::String>
285 void SetDetails(DetailsT&& value) {
286 m_detailsHasBeenSet = true;
287 m_details = std::forward<DetailsT>(value);
288 }
289 template <typename DetailsT = Aws::String>
291 SetDetails(std::forward<DetailsT>(value));
292 return *this;
293 }
295
297
298 inline const Aws::Vector<AffectedPackage>& GetAffectedPackages() const { return m_affectedPackages; }
299 inline bool AffectedPackagesHasBeenSet() const { return m_affectedPackagesHasBeenSet; }
300 template <typename AffectedPackagesT = Aws::Vector<AffectedPackage>>
301 void SetAffectedPackages(AffectedPackagesT&& value) {
302 m_affectedPackagesHasBeenSet = true;
303 m_affectedPackages = std::forward<AffectedPackagesT>(value);
304 }
305 template <typename AffectedPackagesT = Aws::Vector<AffectedPackage>>
306 FindingVulnerability& WithAffectedPackages(AffectedPackagesT&& value) {
307 SetAffectedPackages(std::forward<AffectedPackagesT>(value));
308 return *this;
309 }
310 template <typename AffectedPackagesT = AffectedPackage>
311 FindingVulnerability& AddAffectedPackages(AffectedPackagesT&& value) {
312 m_affectedPackagesHasBeenSet = true;
313 m_affectedPackages.emplace_back(std::forward<AffectedPackagesT>(value));
314 return *this;
315 }
317 private:
318 Aws::String m_title;
319
320 Aws::String m_description;
321
322 Aws::String m_cweId;
323
324 Aws::String m_cweCaption;
325
326 Aws::Vector<Aws::String> m_additionalCweIds;
327
328 Aws::String m_cveId;
329
330 double m_cvssBaseScore{0.0};
331
332 Aws::String m_fixCoverage;
333
334 int m_fixCoverageId{0};
335
337
338 Aws::String m_remediation;
339
340 Aws::Vector<Aws::String> m_remediationReferences;
341
342 Aws::String m_code;
343
344 Aws::String m_details;
345
346 Aws::Vector<AffectedPackage> m_affectedPackages;
347 bool m_titleHasBeenSet = false;
348 bool m_descriptionHasBeenSet = false;
349 bool m_cweIdHasBeenSet = false;
350 bool m_cweCaptionHasBeenSet = false;
351 bool m_additionalCweIdsHasBeenSet = false;
352 bool m_cveIdHasBeenSet = false;
353 bool m_cvssBaseScoreHasBeenSet = false;
354 bool m_fixCoverageHasBeenSet = false;
355 bool m_fixCoverageIdHasBeenSet = false;
356 bool m_locationsHasBeenSet = false;
357 bool m_remediationHasBeenSet = false;
358 bool m_remediationReferencesHasBeenSet = false;
359 bool m_codeHasBeenSet = false;
360 bool m_detailsHasBeenSet = false;
361 bool m_affectedPackagesHasBeenSet = false;
362};
363
364} // namespace Model
365} // namespace Continuum
366} // namespace Aws
FindingVulnerability & WithCvssBaseScore(double value)
FindingVulnerability & AddAdditionalCweIds(AdditionalCweIdsT &&value)
void SetAffectedPackages(AffectedPackagesT &&value)
FindingVulnerability & WithLocations(LocationsT &&value)
const Aws::Vector< AffectedPackage > & GetAffectedPackages() const
FindingVulnerability & WithDescription(DescriptionT &&value)
void SetAdditionalCweIds(AdditionalCweIdsT &&value)
const Aws::Vector< FindingLocation > & GetLocations() const
const Aws::Vector< Aws::String > & GetRemediationReferences() const
FindingVulnerability & WithCweCaption(CweCaptionT &&value)
const Aws::Vector< Aws::String > & GetAdditionalCweIds() const
FindingVulnerability & WithAdditionalCweIds(AdditionalCweIdsT &&value)
FindingVulnerability & AddRemediationReferences(RemediationReferencesT &&value)
FindingVulnerability & WithTitle(TitleT &&value)
AWS_CONTINUUM_API Aws::Utils::Json::JsonValue Jsonize() const
FindingVulnerability & WithFixCoverageId(int value)
AWS_CONTINUUM_API FindingVulnerability()=default
void SetRemediationReferences(RemediationReferencesT &&value)
FindingVulnerability & AddLocations(LocationsT &&value)
FindingVulnerability & WithRemediationReferences(RemediationReferencesT &&value)
FindingVulnerability & WithDetails(DetailsT &&value)
FindingVulnerability & WithRemediation(RemediationT &&value)
AWS_CONTINUUM_API FindingVulnerability(Aws::Utils::Json::JsonView jsonValue)
AWS_CONTINUUM_API FindingVulnerability & operator=(Aws::Utils::Json::JsonView jsonValue)
FindingVulnerability & WithCveId(CveIdT &&value)
FindingVulnerability & WithFixCoverage(FixCoverageT &&value)
FindingVulnerability & WithCode(CodeT &&value)
FindingVulnerability & WithCweId(CweIdT &&value)
FindingVulnerability & WithAffectedPackages(AffectedPackagesT &&value)
FindingVulnerability & AddAffectedPackages(AffectedPackagesT &&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