AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
EnhancedImageScanFinding.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/PackageVulnerabilityDetails.h>
12#include <aws/ecr/model/Remediation.h>
13#include <aws/ecr/model/Resource.h>
14#include <aws/ecr/model/ScoreDetails.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ECR {
26namespace Model {
27
35 public:
36 AWS_ECR_API EnhancedImageScanFinding() = default;
40
42
45 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
46 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
47 template <typename AwsAccountIdT = Aws::String>
48 void SetAwsAccountId(AwsAccountIdT&& value) {
49 m_awsAccountIdHasBeenSet = true;
50 m_awsAccountId = std::forward<AwsAccountIdT>(value);
51 }
52 template <typename AwsAccountIdT = Aws::String>
54 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetDescription() const { return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 template <typename DescriptionT = Aws::String>
66 void SetDescription(DescriptionT&& value) {
67 m_descriptionHasBeenSet = true;
68 m_description = std::forward<DescriptionT>(value);
69 }
70 template <typename DescriptionT = Aws::String>
72 SetDescription(std::forward<DescriptionT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetFindingArn() const { return m_findingArn; }
82 inline bool FindingArnHasBeenSet() const { return m_findingArnHasBeenSet; }
83 template <typename FindingArnT = Aws::String>
84 void SetFindingArn(FindingArnT&& value) {
85 m_findingArnHasBeenSet = true;
86 m_findingArn = std::forward<FindingArnT>(value);
87 }
88 template <typename FindingArnT = Aws::String>
90 SetFindingArn(std::forward<FindingArnT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::Utils::DateTime& GetFirstObservedAt() const { return m_firstObservedAt; }
100 inline bool FirstObservedAtHasBeenSet() const { return m_firstObservedAtHasBeenSet; }
101 template <typename FirstObservedAtT = Aws::Utils::DateTime>
102 void SetFirstObservedAt(FirstObservedAtT&& value) {
103 m_firstObservedAtHasBeenSet = true;
104 m_firstObservedAt = std::forward<FirstObservedAtT>(value);
105 }
106 template <typename FirstObservedAtT = Aws::Utils::DateTime>
108 SetFirstObservedAt(std::forward<FirstObservedAtT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::Utils::DateTime& GetLastObservedAt() const { return m_lastObservedAt; }
118 inline bool LastObservedAtHasBeenSet() const { return m_lastObservedAtHasBeenSet; }
119 template <typename LastObservedAtT = Aws::Utils::DateTime>
120 void SetLastObservedAt(LastObservedAtT&& value) {
121 m_lastObservedAtHasBeenSet = true;
122 m_lastObservedAt = std::forward<LastObservedAtT>(value);
123 }
124 template <typename LastObservedAtT = Aws::Utils::DateTime>
126 SetLastObservedAt(std::forward<LastObservedAtT>(value));
127 return *this;
128 }
130
132
135 inline const PackageVulnerabilityDetails& GetPackageVulnerabilityDetails() const { return m_packageVulnerabilityDetails; }
136 inline bool PackageVulnerabilityDetailsHasBeenSet() const { return m_packageVulnerabilityDetailsHasBeenSet; }
137 template <typename PackageVulnerabilityDetailsT = PackageVulnerabilityDetails>
138 void SetPackageVulnerabilityDetails(PackageVulnerabilityDetailsT&& value) {
139 m_packageVulnerabilityDetailsHasBeenSet = true;
140 m_packageVulnerabilityDetails = std::forward<PackageVulnerabilityDetailsT>(value);
141 }
142 template <typename PackageVulnerabilityDetailsT = PackageVulnerabilityDetails>
143 EnhancedImageScanFinding& WithPackageVulnerabilityDetails(PackageVulnerabilityDetailsT&& value) {
144 SetPackageVulnerabilityDetails(std::forward<PackageVulnerabilityDetailsT>(value));
145 return *this;
146 }
148
150
153 inline const Remediation& GetRemediation() const { return m_remediation; }
154 inline bool RemediationHasBeenSet() const { return m_remediationHasBeenSet; }
155 template <typename RemediationT = Remediation>
156 void SetRemediation(RemediationT&& value) {
157 m_remediationHasBeenSet = true;
158 m_remediation = std::forward<RemediationT>(value);
159 }
160 template <typename RemediationT = Remediation>
162 SetRemediation(std::forward<RemediationT>(value));
163 return *this;
164 }
166
168
171 inline const Aws::Vector<Resource>& GetResources() const { return m_resources; }
172 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
173 template <typename ResourcesT = Aws::Vector<Resource>>
174 void SetResources(ResourcesT&& value) {
175 m_resourcesHasBeenSet = true;
176 m_resources = std::forward<ResourcesT>(value);
177 }
178 template <typename ResourcesT = Aws::Vector<Resource>>
180 SetResources(std::forward<ResourcesT>(value));
181 return *this;
182 }
183 template <typename ResourcesT = Resource>
185 m_resourcesHasBeenSet = true;
186 m_resources.emplace_back(std::forward<ResourcesT>(value));
187 return *this;
188 }
190
192
195 inline double GetScore() const { return m_score; }
196 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
197 inline void SetScore(double value) {
198 m_scoreHasBeenSet = true;
199 m_score = value;
200 }
201 inline EnhancedImageScanFinding& WithScore(double value) {
202 SetScore(value);
203 return *this;
204 }
206
208
211 inline const ScoreDetails& GetScoreDetails() const { return m_scoreDetails; }
212 inline bool ScoreDetailsHasBeenSet() const { return m_scoreDetailsHasBeenSet; }
213 template <typename ScoreDetailsT = ScoreDetails>
214 void SetScoreDetails(ScoreDetailsT&& value) {
215 m_scoreDetailsHasBeenSet = true;
216 m_scoreDetails = std::forward<ScoreDetailsT>(value);
217 }
218 template <typename ScoreDetailsT = ScoreDetails>
220 SetScoreDetails(std::forward<ScoreDetailsT>(value));
221 return *this;
222 }
224
226
229 inline const Aws::String& GetSeverity() const { return m_severity; }
230 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
231 template <typename SeverityT = Aws::String>
232 void SetSeverity(SeverityT&& value) {
233 m_severityHasBeenSet = true;
234 m_severity = std::forward<SeverityT>(value);
235 }
236 template <typename SeverityT = Aws::String>
238 SetSeverity(std::forward<SeverityT>(value));
239 return *this;
240 }
242
244
247 inline const Aws::String& GetStatus() const { return m_status; }
248 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
249 template <typename StatusT = Aws::String>
250 void SetStatus(StatusT&& value) {
251 m_statusHasBeenSet = true;
252 m_status = std::forward<StatusT>(value);
253 }
254 template <typename StatusT = Aws::String>
256 SetStatus(std::forward<StatusT>(value));
257 return *this;
258 }
260
262
265 inline const Aws::String& GetTitle() const { return m_title; }
266 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
267 template <typename TitleT = Aws::String>
268 void SetTitle(TitleT&& value) {
269 m_titleHasBeenSet = true;
270 m_title = std::forward<TitleT>(value);
271 }
272 template <typename TitleT = Aws::String>
274 SetTitle(std::forward<TitleT>(value));
275 return *this;
276 }
278
280
283 inline const Aws::String& GetType() const { return m_type; }
284 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
285 template <typename TypeT = Aws::String>
286 void SetType(TypeT&& value) {
287 m_typeHasBeenSet = true;
288 m_type = std::forward<TypeT>(value);
289 }
290 template <typename TypeT = Aws::String>
292 SetType(std::forward<TypeT>(value));
293 return *this;
294 }
296
298
301 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
302 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
303 template <typename UpdatedAtT = Aws::Utils::DateTime>
304 void SetUpdatedAt(UpdatedAtT&& value) {
305 m_updatedAtHasBeenSet = true;
306 m_updatedAt = std::forward<UpdatedAtT>(value);
307 }
308 template <typename UpdatedAtT = Aws::Utils::DateTime>
310 SetUpdatedAt(std::forward<UpdatedAtT>(value));
311 return *this;
312 }
314
316
322 inline const Aws::String& GetFixAvailable() const { return m_fixAvailable; }
323 inline bool FixAvailableHasBeenSet() const { return m_fixAvailableHasBeenSet; }
324 template <typename FixAvailableT = Aws::String>
325 void SetFixAvailable(FixAvailableT&& value) {
326 m_fixAvailableHasBeenSet = true;
327 m_fixAvailable = std::forward<FixAvailableT>(value);
328 }
329 template <typename FixAvailableT = Aws::String>
331 SetFixAvailable(std::forward<FixAvailableT>(value));
332 return *this;
333 }
335
337
340 inline const Aws::String& GetExploitAvailable() const { return m_exploitAvailable; }
341 inline bool ExploitAvailableHasBeenSet() const { return m_exploitAvailableHasBeenSet; }
342 template <typename ExploitAvailableT = Aws::String>
343 void SetExploitAvailable(ExploitAvailableT&& value) {
344 m_exploitAvailableHasBeenSet = true;
345 m_exploitAvailable = std::forward<ExploitAvailableT>(value);
346 }
347 template <typename ExploitAvailableT = Aws::String>
348 EnhancedImageScanFinding& WithExploitAvailable(ExploitAvailableT&& value) {
349 SetExploitAvailable(std::forward<ExploitAvailableT>(value));
350 return *this;
351 }
353 private:
354 Aws::String m_awsAccountId;
355
356 Aws::String m_description;
357
358 Aws::String m_findingArn;
359
360 Aws::Utils::DateTime m_firstObservedAt{};
361
362 Aws::Utils::DateTime m_lastObservedAt{};
363
364 PackageVulnerabilityDetails m_packageVulnerabilityDetails;
365
366 Remediation m_remediation;
367
368 Aws::Vector<Resource> m_resources;
369
370 double m_score{0.0};
371
372 ScoreDetails m_scoreDetails;
373
374 Aws::String m_severity;
375
376 Aws::String m_status;
377
378 Aws::String m_title;
379
380 Aws::String m_type;
381
382 Aws::Utils::DateTime m_updatedAt{};
383
384 Aws::String m_fixAvailable;
385
386 Aws::String m_exploitAvailable;
387 bool m_awsAccountIdHasBeenSet = false;
388 bool m_descriptionHasBeenSet = false;
389 bool m_findingArnHasBeenSet = false;
390 bool m_firstObservedAtHasBeenSet = false;
391 bool m_lastObservedAtHasBeenSet = false;
392 bool m_packageVulnerabilityDetailsHasBeenSet = false;
393 bool m_remediationHasBeenSet = false;
394 bool m_resourcesHasBeenSet = false;
395 bool m_scoreHasBeenSet = false;
396 bool m_scoreDetailsHasBeenSet = false;
397 bool m_severityHasBeenSet = false;
398 bool m_statusHasBeenSet = false;
399 bool m_titleHasBeenSet = false;
400 bool m_typeHasBeenSet = false;
401 bool m_updatedAtHasBeenSet = false;
402 bool m_fixAvailableHasBeenSet = false;
403 bool m_exploitAvailableHasBeenSet = false;
404};
405
406} // namespace Model
407} // namespace ECR
408} // namespace Aws
EnhancedImageScanFinding & WithDescription(DescriptionT &&value)
EnhancedImageScanFinding & WithResources(ResourcesT &&value)
EnhancedImageScanFinding & WithStatus(StatusT &&value)
EnhancedImageScanFinding & WithLastObservedAt(LastObservedAtT &&value)
AWS_ECR_API EnhancedImageScanFinding & operator=(Aws::Utils::Json::JsonView jsonValue)
EnhancedImageScanFinding & WithScoreDetails(ScoreDetailsT &&value)
void SetPackageVulnerabilityDetails(PackageVulnerabilityDetailsT &&value)
EnhancedImageScanFinding & WithRemediation(RemediationT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
EnhancedImageScanFinding & WithAwsAccountId(AwsAccountIdT &&value)
void SetExploitAvailable(ExploitAvailableT &&value)
EnhancedImageScanFinding & WithExploitAvailable(ExploitAvailableT &&value)
EnhancedImageScanFinding & WithFirstObservedAt(FirstObservedAtT &&value)
const Aws::Utils::DateTime & GetFirstObservedAt() const
const Aws::Vector< Resource > & GetResources() const
EnhancedImageScanFinding & WithTitle(TitleT &&value)
const PackageVulnerabilityDetails & GetPackageVulnerabilityDetails() const
EnhancedImageScanFinding & WithScore(double value)
EnhancedImageScanFinding & WithType(TypeT &&value)
EnhancedImageScanFinding & WithUpdatedAt(UpdatedAtT &&value)
EnhancedImageScanFinding & WithFindingArn(FindingArnT &&value)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECR_API EnhancedImageScanFinding()=default
EnhancedImageScanFinding & AddResources(ResourcesT &&value)
EnhancedImageScanFinding & WithFixAvailable(FixAvailableT &&value)
const Aws::Utils::DateTime & GetLastObservedAt() const
EnhancedImageScanFinding & WithPackageVulnerabilityDetails(PackageVulnerabilityDetailsT &&value)
AWS_ECR_API EnhancedImageScanFinding(Aws::Utils::Json::JsonView jsonValue)
EnhancedImageScanFinding & WithSeverity(SeverityT &&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