AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EnhancedImageScanFinding.h
1
6#pragma once
7#include <aws/ecr/ECR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/ecr/model/PackageVulnerabilityDetails.h>
11#include <aws/ecr/model/Remediation.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/ecr/model/ScoreDetails.h>
14#include <aws/ecr/model/Resource.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace ECR
28{
29namespace Model
30{
31
39 {
40 public:
45
46
48
51 inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
52 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
53 inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
54 inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
55 inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
56 inline EnhancedImageScanFinding& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
57 inline EnhancedImageScanFinding& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
58 inline EnhancedImageScanFinding& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
60
62
65 inline const Aws::String& GetDescription() const{ return m_description; }
66 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
67 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
68 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
69 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
70 inline EnhancedImageScanFinding& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
71 inline EnhancedImageScanFinding& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
72 inline EnhancedImageScanFinding& WithDescription(const char* value) { SetDescription(value); return *this;}
74
76
79 inline const Aws::String& GetFindingArn() const{ return m_findingArn; }
80 inline bool FindingArnHasBeenSet() const { return m_findingArnHasBeenSet; }
81 inline void SetFindingArn(const Aws::String& value) { m_findingArnHasBeenSet = true; m_findingArn = value; }
82 inline void SetFindingArn(Aws::String&& value) { m_findingArnHasBeenSet = true; m_findingArn = std::move(value); }
83 inline void SetFindingArn(const char* value) { m_findingArnHasBeenSet = true; m_findingArn.assign(value); }
84 inline EnhancedImageScanFinding& WithFindingArn(const Aws::String& value) { SetFindingArn(value); return *this;}
85 inline EnhancedImageScanFinding& WithFindingArn(Aws::String&& value) { SetFindingArn(std::move(value)); return *this;}
86 inline EnhancedImageScanFinding& WithFindingArn(const char* value) { SetFindingArn(value); return *this;}
88
90
93 inline const Aws::Utils::DateTime& GetFirstObservedAt() const{ return m_firstObservedAt; }
94 inline bool FirstObservedAtHasBeenSet() const { return m_firstObservedAtHasBeenSet; }
95 inline void SetFirstObservedAt(const Aws::Utils::DateTime& value) { m_firstObservedAtHasBeenSet = true; m_firstObservedAt = value; }
96 inline void SetFirstObservedAt(Aws::Utils::DateTime&& value) { m_firstObservedAtHasBeenSet = true; m_firstObservedAt = std::move(value); }
98 inline EnhancedImageScanFinding& WithFirstObservedAt(Aws::Utils::DateTime&& value) { SetFirstObservedAt(std::move(value)); return *this;}
100
102
105 inline const Aws::Utils::DateTime& GetLastObservedAt() const{ return m_lastObservedAt; }
106 inline bool LastObservedAtHasBeenSet() const { return m_lastObservedAtHasBeenSet; }
107 inline void SetLastObservedAt(const Aws::Utils::DateTime& value) { m_lastObservedAtHasBeenSet = true; m_lastObservedAt = value; }
108 inline void SetLastObservedAt(Aws::Utils::DateTime&& value) { m_lastObservedAtHasBeenSet = true; m_lastObservedAt = std::move(value); }
110 inline EnhancedImageScanFinding& WithLastObservedAt(Aws::Utils::DateTime&& value) { SetLastObservedAt(std::move(value)); return *this;}
112
114
117 inline const PackageVulnerabilityDetails& GetPackageVulnerabilityDetails() const{ return m_packageVulnerabilityDetails; }
118 inline bool PackageVulnerabilityDetailsHasBeenSet() const { return m_packageVulnerabilityDetailsHasBeenSet; }
119 inline void SetPackageVulnerabilityDetails(const PackageVulnerabilityDetails& value) { m_packageVulnerabilityDetailsHasBeenSet = true; m_packageVulnerabilityDetails = value; }
120 inline void SetPackageVulnerabilityDetails(PackageVulnerabilityDetails&& value) { m_packageVulnerabilityDetailsHasBeenSet = true; m_packageVulnerabilityDetails = std::move(value); }
124
126
129 inline const Remediation& GetRemediation() const{ return m_remediation; }
130 inline bool RemediationHasBeenSet() const { return m_remediationHasBeenSet; }
131 inline void SetRemediation(const Remediation& value) { m_remediationHasBeenSet = true; m_remediation = value; }
132 inline void SetRemediation(Remediation&& value) { m_remediationHasBeenSet = true; m_remediation = std::move(value); }
133 inline EnhancedImageScanFinding& WithRemediation(const Remediation& value) { SetRemediation(value); return *this;}
134 inline EnhancedImageScanFinding& WithRemediation(Remediation&& value) { SetRemediation(std::move(value)); return *this;}
136
138
141 inline const Aws::Vector<Resource>& GetResources() const{ return m_resources; }
142 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
143 inline void SetResources(const Aws::Vector<Resource>& value) { m_resourcesHasBeenSet = true; m_resources = value; }
144 inline void SetResources(Aws::Vector<Resource>&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
145 inline EnhancedImageScanFinding& WithResources(const Aws::Vector<Resource>& value) { SetResources(value); return *this;}
146 inline EnhancedImageScanFinding& WithResources(Aws::Vector<Resource>&& value) { SetResources(std::move(value)); return *this;}
147 inline EnhancedImageScanFinding& AddResources(const Resource& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
148 inline EnhancedImageScanFinding& AddResources(Resource&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; }
150
152
155 inline double GetScore() const{ return m_score; }
156 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
157 inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
158 inline EnhancedImageScanFinding& WithScore(double value) { SetScore(value); return *this;}
160
162
165 inline const ScoreDetails& GetScoreDetails() const{ return m_scoreDetails; }
166 inline bool ScoreDetailsHasBeenSet() const { return m_scoreDetailsHasBeenSet; }
167 inline void SetScoreDetails(const ScoreDetails& value) { m_scoreDetailsHasBeenSet = true; m_scoreDetails = value; }
168 inline void SetScoreDetails(ScoreDetails&& value) { m_scoreDetailsHasBeenSet = true; m_scoreDetails = std::move(value); }
169 inline EnhancedImageScanFinding& WithScoreDetails(const ScoreDetails& value) { SetScoreDetails(value); return *this;}
170 inline EnhancedImageScanFinding& WithScoreDetails(ScoreDetails&& value) { SetScoreDetails(std::move(value)); return *this;}
172
174
177 inline const Aws::String& GetSeverity() const{ return m_severity; }
178 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
179 inline void SetSeverity(const Aws::String& value) { m_severityHasBeenSet = true; m_severity = value; }
180 inline void SetSeverity(Aws::String&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
181 inline void SetSeverity(const char* value) { m_severityHasBeenSet = true; m_severity.assign(value); }
182 inline EnhancedImageScanFinding& WithSeverity(const Aws::String& value) { SetSeverity(value); return *this;}
183 inline EnhancedImageScanFinding& WithSeverity(Aws::String&& value) { SetSeverity(std::move(value)); return *this;}
184 inline EnhancedImageScanFinding& WithSeverity(const char* value) { SetSeverity(value); return *this;}
186
188
191 inline const Aws::String& GetStatus() const{ return m_status; }
192 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
193 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
194 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
195 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
196 inline EnhancedImageScanFinding& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
197 inline EnhancedImageScanFinding& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
198 inline EnhancedImageScanFinding& WithStatus(const char* value) { SetStatus(value); return *this;}
200
202
205 inline const Aws::String& GetTitle() const{ return m_title; }
206 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
207 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
208 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
209 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
210 inline EnhancedImageScanFinding& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
211 inline EnhancedImageScanFinding& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
212 inline EnhancedImageScanFinding& WithTitle(const char* value) { SetTitle(value); return *this;}
214
216
219 inline const Aws::String& GetType() const{ return m_type; }
220 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
221 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
222 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
223 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
224 inline EnhancedImageScanFinding& WithType(const Aws::String& value) { SetType(value); return *this;}
225 inline EnhancedImageScanFinding& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
226 inline EnhancedImageScanFinding& WithType(const char* value) { SetType(value); return *this;}
228
230
233 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
234 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
235 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
236 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
237 inline EnhancedImageScanFinding& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
238 inline EnhancedImageScanFinding& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
240
242
248 inline const Aws::String& GetFixAvailable() const{ return m_fixAvailable; }
249 inline bool FixAvailableHasBeenSet() const { return m_fixAvailableHasBeenSet; }
250 inline void SetFixAvailable(const Aws::String& value) { m_fixAvailableHasBeenSet = true; m_fixAvailable = value; }
251 inline void SetFixAvailable(Aws::String&& value) { m_fixAvailableHasBeenSet = true; m_fixAvailable = std::move(value); }
252 inline void SetFixAvailable(const char* value) { m_fixAvailableHasBeenSet = true; m_fixAvailable.assign(value); }
253 inline EnhancedImageScanFinding& WithFixAvailable(const Aws::String& value) { SetFixAvailable(value); return *this;}
254 inline EnhancedImageScanFinding& WithFixAvailable(Aws::String&& value) { SetFixAvailable(std::move(value)); return *this;}
255 inline EnhancedImageScanFinding& WithFixAvailable(const char* value) { SetFixAvailable(value); return *this;}
257
259
262 inline const Aws::String& GetExploitAvailable() const{ return m_exploitAvailable; }
263 inline bool ExploitAvailableHasBeenSet() const { return m_exploitAvailableHasBeenSet; }
264 inline void SetExploitAvailable(const Aws::String& value) { m_exploitAvailableHasBeenSet = true; m_exploitAvailable = value; }
265 inline void SetExploitAvailable(Aws::String&& value) { m_exploitAvailableHasBeenSet = true; m_exploitAvailable = std::move(value); }
266 inline void SetExploitAvailable(const char* value) { m_exploitAvailableHasBeenSet = true; m_exploitAvailable.assign(value); }
268 inline EnhancedImageScanFinding& WithExploitAvailable(Aws::String&& value) { SetExploitAvailable(std::move(value)); return *this;}
269 inline EnhancedImageScanFinding& WithExploitAvailable(const char* value) { SetExploitAvailable(value); return *this;}
271 private:
272
273 Aws::String m_awsAccountId;
274 bool m_awsAccountIdHasBeenSet = false;
275
276 Aws::String m_description;
277 bool m_descriptionHasBeenSet = false;
278
279 Aws::String m_findingArn;
280 bool m_findingArnHasBeenSet = false;
281
282 Aws::Utils::DateTime m_firstObservedAt;
283 bool m_firstObservedAtHasBeenSet = false;
284
285 Aws::Utils::DateTime m_lastObservedAt;
286 bool m_lastObservedAtHasBeenSet = false;
287
288 PackageVulnerabilityDetails m_packageVulnerabilityDetails;
289 bool m_packageVulnerabilityDetailsHasBeenSet = false;
290
291 Remediation m_remediation;
292 bool m_remediationHasBeenSet = false;
293
294 Aws::Vector<Resource> m_resources;
295 bool m_resourcesHasBeenSet = false;
296
297 double m_score;
298 bool m_scoreHasBeenSet = false;
299
300 ScoreDetails m_scoreDetails;
301 bool m_scoreDetailsHasBeenSet = false;
302
303 Aws::String m_severity;
304 bool m_severityHasBeenSet = false;
305
306 Aws::String m_status;
307 bool m_statusHasBeenSet = false;
308
309 Aws::String m_title;
310 bool m_titleHasBeenSet = false;
311
312 Aws::String m_type;
313 bool m_typeHasBeenSet = false;
314
315 Aws::Utils::DateTime m_updatedAt;
316 bool m_updatedAtHasBeenSet = false;
317
318 Aws::String m_fixAvailable;
319 bool m_fixAvailableHasBeenSet = false;
320
321 Aws::String m_exploitAvailable;
322 bool m_exploitAvailableHasBeenSet = false;
323 };
324
325} // namespace Model
326} // namespace ECR
327} // namespace Aws
EnhancedImageScanFinding & WithTitle(const Aws::String &value)
EnhancedImageScanFinding & WithSeverity(Aws::String &&value)
EnhancedImageScanFinding & WithType(const char *value)
EnhancedImageScanFinding & WithFindingArn(Aws::String &&value)
EnhancedImageScanFinding & WithPackageVulnerabilityDetails(PackageVulnerabilityDetails &&value)
void SetLastObservedAt(const Aws::Utils::DateTime &value)
EnhancedImageScanFinding & WithScoreDetails(ScoreDetails &&value)
EnhancedImageScanFinding & WithSeverity(const char *value)
EnhancedImageScanFinding & AddResources(const Resource &value)
void SetFirstObservedAt(Aws::Utils::DateTime &&value)
EnhancedImageScanFinding & WithAwsAccountId(const char *value)
AWS_ECR_API EnhancedImageScanFinding & operator=(Aws::Utils::Json::JsonView jsonValue)
EnhancedImageScanFinding & WithDescription(Aws::String &&value)
EnhancedImageScanFinding & WithLastObservedAt(Aws::Utils::DateTime &&value)
EnhancedImageScanFinding & WithTitle(const char *value)
void SetResources(const Aws::Vector< Resource > &value)
EnhancedImageScanFinding & WithStatus(Aws::String &&value)
void SetFirstObservedAt(const Aws::Utils::DateTime &value)
EnhancedImageScanFinding & WithFixAvailable(const Aws::String &value)
const Aws::Utils::DateTime & GetUpdatedAt() const
EnhancedImageScanFinding & WithUpdatedAt(Aws::Utils::DateTime &&value)
EnhancedImageScanFinding & WithAwsAccountId(const Aws::String &value)
EnhancedImageScanFinding & WithResources(const Aws::Vector< Resource > &value)
EnhancedImageScanFinding & WithTitle(Aws::String &&value)
EnhancedImageScanFinding & WithRemediation(Remediation &&value)
EnhancedImageScanFinding & WithFindingArn(const Aws::String &value)
const Aws::Utils::DateTime & GetFirstObservedAt() const
EnhancedImageScanFinding & WithFindingArn(const char *value)
EnhancedImageScanFinding & WithFirstObservedAt(Aws::Utils::DateTime &&value)
void SetPackageVulnerabilityDetails(PackageVulnerabilityDetails &&value)
EnhancedImageScanFinding & WithLastObservedAt(const Aws::Utils::DateTime &value)
const Aws::Vector< Resource > & GetResources() const
const PackageVulnerabilityDetails & GetPackageVulnerabilityDetails() const
EnhancedImageScanFinding & WithScore(double value)
EnhancedImageScanFinding & WithStatus(const Aws::String &value)
EnhancedImageScanFinding & WithType(const Aws::String &value)
EnhancedImageScanFinding & WithExploitAvailable(const Aws::String &value)
EnhancedImageScanFinding & WithSeverity(const Aws::String &value)
EnhancedImageScanFinding & WithDescription(const char *value)
EnhancedImageScanFinding & WithType(Aws::String &&value)
EnhancedImageScanFinding & WithScoreDetails(const ScoreDetails &value)
EnhancedImageScanFinding & WithExploitAvailable(Aws::String &&value)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
EnhancedImageScanFinding & WithPackageVulnerabilityDetails(const PackageVulnerabilityDetails &value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
EnhancedImageScanFinding & WithUpdatedAt(const Aws::Utils::DateTime &value)
EnhancedImageScanFinding & WithFixAvailable(const char *value)
void SetPackageVulnerabilityDetails(const PackageVulnerabilityDetails &value)
const Aws::Utils::DateTime & GetLastObservedAt() const
EnhancedImageScanFinding & WithAwsAccountId(Aws::String &&value)
EnhancedImageScanFinding & WithExploitAvailable(const char *value)
EnhancedImageScanFinding & WithResources(Aws::Vector< Resource > &&value)
EnhancedImageScanFinding & AddResources(Resource &&value)
EnhancedImageScanFinding & WithStatus(const char *value)
EnhancedImageScanFinding & WithDescription(const Aws::String &value)
void SetLastObservedAt(Aws::Utils::DateTime &&value)
void SetResources(Aws::Vector< Resource > &&value)
EnhancedImageScanFinding & WithFixAvailable(Aws::String &&value)
AWS_ECR_API EnhancedImageScanFinding(Aws::Utils::Json::JsonView jsonValue)
EnhancedImageScanFinding & WithFirstObservedAt(const Aws::Utils::DateTime &value)
EnhancedImageScanFinding & WithRemediation(const Remediation &value)
void SetUpdatedAt(Aws::Utils::DateTime &&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