AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ImageScanFinding.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/imagebuilder/model/Remediation.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/imagebuilder/model/InspectorScoreDetails.h>
12#include <aws/imagebuilder/model/PackageVulnerabilityDetails.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace imagebuilder
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_IMAGEBUILDER_API ImageScanFinding();
40 AWS_IMAGEBUILDER_API ImageScanFinding(Aws::Utils::Json::JsonView jsonValue);
41 AWS_IMAGEBUILDER_API ImageScanFinding& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
50 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
51 inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
52 inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
53 inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
54 inline ImageScanFinding& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
55 inline ImageScanFinding& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
56 inline ImageScanFinding& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
58
60
64 inline const Aws::String& GetImageBuildVersionArn() const{ return m_imageBuildVersionArn; }
65 inline bool ImageBuildVersionArnHasBeenSet() const { return m_imageBuildVersionArnHasBeenSet; }
66 inline void SetImageBuildVersionArn(const Aws::String& value) { m_imageBuildVersionArnHasBeenSet = true; m_imageBuildVersionArn = value; }
67 inline void SetImageBuildVersionArn(Aws::String&& value) { m_imageBuildVersionArnHasBeenSet = true; m_imageBuildVersionArn = std::move(value); }
68 inline void SetImageBuildVersionArn(const char* value) { m_imageBuildVersionArnHasBeenSet = true; m_imageBuildVersionArn.assign(value); }
70 inline ImageScanFinding& WithImageBuildVersionArn(Aws::String&& value) { SetImageBuildVersionArn(std::move(value)); return *this;}
71 inline ImageScanFinding& WithImageBuildVersionArn(const char* value) { SetImageBuildVersionArn(value); return *this;}
73
75
79 inline const Aws::String& GetImagePipelineArn() const{ return m_imagePipelineArn; }
80 inline bool ImagePipelineArnHasBeenSet() const { return m_imagePipelineArnHasBeenSet; }
81 inline void SetImagePipelineArn(const Aws::String& value) { m_imagePipelineArnHasBeenSet = true; m_imagePipelineArn = value; }
82 inline void SetImagePipelineArn(Aws::String&& value) { m_imagePipelineArnHasBeenSet = true; m_imagePipelineArn = std::move(value); }
83 inline void SetImagePipelineArn(const char* value) { m_imagePipelineArnHasBeenSet = true; m_imagePipelineArn.assign(value); }
84 inline ImageScanFinding& WithImagePipelineArn(const Aws::String& value) { SetImagePipelineArn(value); return *this;}
85 inline ImageScanFinding& WithImagePipelineArn(Aws::String&& value) { SetImagePipelineArn(std::move(value)); return *this;}
86 inline ImageScanFinding& WithImagePipelineArn(const char* value) { SetImagePipelineArn(value); return *this;}
88
90
95 inline const Aws::String& GetType() const{ return m_type; }
96 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
97 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
98 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
99 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
100 inline ImageScanFinding& WithType(const Aws::String& value) { SetType(value); return *this;}
101 inline ImageScanFinding& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
102 inline ImageScanFinding& WithType(const char* value) { SetType(value); return *this;}
104
106
109 inline const Aws::String& GetDescription() const{ return m_description; }
110 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
111 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
112 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
113 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
114 inline ImageScanFinding& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
115 inline ImageScanFinding& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
116 inline ImageScanFinding& WithDescription(const char* value) { SetDescription(value); return *this;}
118
120
123 inline const Aws::String& GetTitle() const{ return m_title; }
124 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
125 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
126 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
127 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
128 inline ImageScanFinding& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
129 inline ImageScanFinding& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
130 inline ImageScanFinding& WithTitle(const char* value) { SetTitle(value); return *this;}
132
134
137 inline const Remediation& GetRemediation() const{ return m_remediation; }
138 inline bool RemediationHasBeenSet() const { return m_remediationHasBeenSet; }
139 inline void SetRemediation(const Remediation& value) { m_remediationHasBeenSet = true; m_remediation = value; }
140 inline void SetRemediation(Remediation&& value) { m_remediationHasBeenSet = true; m_remediation = std::move(value); }
141 inline ImageScanFinding& WithRemediation(const Remediation& value) { SetRemediation(value); return *this;}
142 inline ImageScanFinding& WithRemediation(Remediation&& value) { SetRemediation(std::move(value)); return *this;}
144
146
149 inline const Aws::String& GetSeverity() const{ return m_severity; }
150 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
151 inline void SetSeverity(const Aws::String& value) { m_severityHasBeenSet = true; m_severity = value; }
152 inline void SetSeverity(Aws::String&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
153 inline void SetSeverity(const char* value) { m_severityHasBeenSet = true; m_severity.assign(value); }
154 inline ImageScanFinding& WithSeverity(const Aws::String& value) { SetSeverity(value); return *this;}
155 inline ImageScanFinding& WithSeverity(Aws::String&& value) { SetSeverity(std::move(value)); return *this;}
156 inline ImageScanFinding& WithSeverity(const char* value) { SetSeverity(value); return *this;}
158
160
163 inline const Aws::Utils::DateTime& GetFirstObservedAt() const{ return m_firstObservedAt; }
164 inline bool FirstObservedAtHasBeenSet() const { return m_firstObservedAtHasBeenSet; }
165 inline void SetFirstObservedAt(const Aws::Utils::DateTime& value) { m_firstObservedAtHasBeenSet = true; m_firstObservedAt = value; }
166 inline void SetFirstObservedAt(Aws::Utils::DateTime&& value) { m_firstObservedAtHasBeenSet = true; m_firstObservedAt = std::move(value); }
168 inline ImageScanFinding& WithFirstObservedAt(Aws::Utils::DateTime&& value) { SetFirstObservedAt(std::move(value)); return *this;}
170
172
175 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
176 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
177 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
178 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
179 inline ImageScanFinding& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
180 inline ImageScanFinding& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
182
184
187 inline double GetInspectorScore() const{ return m_inspectorScore; }
188 inline bool InspectorScoreHasBeenSet() const { return m_inspectorScoreHasBeenSet; }
189 inline void SetInspectorScore(double value) { m_inspectorScoreHasBeenSet = true; m_inspectorScore = value; }
190 inline ImageScanFinding& WithInspectorScore(double value) { SetInspectorScore(value); return *this;}
192
194
197 inline const InspectorScoreDetails& GetInspectorScoreDetails() const{ return m_inspectorScoreDetails; }
198 inline bool InspectorScoreDetailsHasBeenSet() const { return m_inspectorScoreDetailsHasBeenSet; }
199 inline void SetInspectorScoreDetails(const InspectorScoreDetails& value) { m_inspectorScoreDetailsHasBeenSet = true; m_inspectorScoreDetails = value; }
200 inline void SetInspectorScoreDetails(InspectorScoreDetails&& value) { m_inspectorScoreDetailsHasBeenSet = true; m_inspectorScoreDetails = std::move(value); }
204
206
209 inline const PackageVulnerabilityDetails& GetPackageVulnerabilityDetails() const{ return m_packageVulnerabilityDetails; }
210 inline bool PackageVulnerabilityDetailsHasBeenSet() const { return m_packageVulnerabilityDetailsHasBeenSet; }
211 inline void SetPackageVulnerabilityDetails(const PackageVulnerabilityDetails& value) { m_packageVulnerabilityDetailsHasBeenSet = true; m_packageVulnerabilityDetails = value; }
212 inline void SetPackageVulnerabilityDetails(PackageVulnerabilityDetails&& value) { m_packageVulnerabilityDetailsHasBeenSet = true; m_packageVulnerabilityDetails = std::move(value); }
216
218
222 inline const Aws::String& GetFixAvailable() const{ return m_fixAvailable; }
223 inline bool FixAvailableHasBeenSet() const { return m_fixAvailableHasBeenSet; }
224 inline void SetFixAvailable(const Aws::String& value) { m_fixAvailableHasBeenSet = true; m_fixAvailable = value; }
225 inline void SetFixAvailable(Aws::String&& value) { m_fixAvailableHasBeenSet = true; m_fixAvailable = std::move(value); }
226 inline void SetFixAvailable(const char* value) { m_fixAvailableHasBeenSet = true; m_fixAvailable.assign(value); }
227 inline ImageScanFinding& WithFixAvailable(const Aws::String& value) { SetFixAvailable(value); return *this;}
228 inline ImageScanFinding& WithFixAvailable(Aws::String&& value) { SetFixAvailable(std::move(value)); return *this;}
229 inline ImageScanFinding& WithFixAvailable(const char* value) { SetFixAvailable(value); return *this;}
231 private:
232
233 Aws::String m_awsAccountId;
234 bool m_awsAccountIdHasBeenSet = false;
235
236 Aws::String m_imageBuildVersionArn;
237 bool m_imageBuildVersionArnHasBeenSet = false;
238
239 Aws::String m_imagePipelineArn;
240 bool m_imagePipelineArnHasBeenSet = false;
241
242 Aws::String m_type;
243 bool m_typeHasBeenSet = false;
244
245 Aws::String m_description;
246 bool m_descriptionHasBeenSet = false;
247
248 Aws::String m_title;
249 bool m_titleHasBeenSet = false;
250
251 Remediation m_remediation;
252 bool m_remediationHasBeenSet = false;
253
254 Aws::String m_severity;
255 bool m_severityHasBeenSet = false;
256
257 Aws::Utils::DateTime m_firstObservedAt;
258 bool m_firstObservedAtHasBeenSet = false;
259
260 Aws::Utils::DateTime m_updatedAt;
261 bool m_updatedAtHasBeenSet = false;
262
263 double m_inspectorScore;
264 bool m_inspectorScoreHasBeenSet = false;
265
266 InspectorScoreDetails m_inspectorScoreDetails;
267 bool m_inspectorScoreDetailsHasBeenSet = false;
268
269 PackageVulnerabilityDetails m_packageVulnerabilityDetails;
270 bool m_packageVulnerabilityDetailsHasBeenSet = false;
271
272 Aws::String m_fixAvailable;
273 bool m_fixAvailableHasBeenSet = false;
274 };
275
276} // namespace Model
277} // namespace imagebuilder
278} // namespace Aws
void SetInspectorScoreDetails(const InspectorScoreDetails &value)
void SetFirstObservedAt(const Aws::Utils::DateTime &value)
void SetFixAvailable(const Aws::String &value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
ImageScanFinding & WithAwsAccountId(Aws::String &&value)
const Aws::String & GetImageBuildVersionArn() const
const PackageVulnerabilityDetails & GetPackageVulnerabilityDetails() const
const Aws::String & GetFixAvailable() const
ImageScanFinding & WithTitle(Aws::String &&value)
ImageScanFinding & WithImageBuildVersionArn(Aws::String &&value)
ImageScanFinding & WithImagePipelineArn(const Aws::String &value)
ImageScanFinding & WithType(Aws::String &&value)
ImageScanFinding & WithInspectorScoreDetails(const InspectorScoreDetails &value)
ImageScanFinding & WithImageBuildVersionArn(const Aws::String &value)
void SetPackageVulnerabilityDetails(const PackageVulnerabilityDetails &value)
void SetFirstObservedAt(Aws::Utils::DateTime &&value)
ImageScanFinding & WithImagePipelineArn(Aws::String &&value)
void SetImageBuildVersionArn(Aws::String &&value)
ImageScanFinding & WithFirstObservedAt(Aws::Utils::DateTime &&value)
AWS_IMAGEBUILDER_API ImageScanFinding(Aws::Utils::Json::JsonView jsonValue)
void SetTitle(const Aws::String &value)
ImageScanFinding & WithType(const char *value)
ImageScanFinding & WithImageBuildVersionArn(const char *value)
ImageScanFinding & WithUpdatedAt(Aws::Utils::DateTime &&value)
ImageScanFinding & WithTitle(const char *value)
ImageScanFinding & WithInspectorScoreDetails(InspectorScoreDetails &&value)
void SetInspectorScoreDetails(InspectorScoreDetails &&value)
void SetImageBuildVersionArn(const Aws::String &value)
ImageScanFinding & WithFixAvailable(Aws::String &&value)
void SetImagePipelineArn(Aws::String &&value)
void SetSeverity(const Aws::String &value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
ImageScanFinding & WithPackageVulnerabilityDetails(PackageVulnerabilityDetails &&value)
ImageScanFinding & WithSeverity(const char *value)
const InspectorScoreDetails & GetInspectorScoreDetails() const
ImageScanFinding & WithDescription(Aws::String &&value)
ImageScanFinding & WithInspectorScore(double value)
const Aws::String & GetImagePipelineArn() const
ImageScanFinding & WithSeverity(Aws::String &&value)
void SetUpdatedAt(Aws::Utils::DateTime &&value)
void SetRemediation(const Remediation &value)
ImageScanFinding & WithAwsAccountId(const char *value)
const Aws::Utils::DateTime & GetUpdatedAt() const
ImageScanFinding & WithDescription(const Aws::String &value)
AWS_IMAGEBUILDER_API ImageScanFinding & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetFirstObservedAt() const
ImageScanFinding & WithFixAvailable(const Aws::String &value)
ImageScanFinding & WithUpdatedAt(const Aws::Utils::DateTime &value)
ImageScanFinding & WithSeverity(const Aws::String &value)
ImageScanFinding & WithFixAvailable(const char *value)
ImageScanFinding & WithType(const Aws::String &value)
ImageScanFinding & WithDescription(const char *value)
ImageScanFinding & WithPackageVulnerabilityDetails(const PackageVulnerabilityDetails &value)
void SetImagePipelineArn(const Aws::String &value)
ImageScanFinding & WithTitle(const Aws::String &value)
void SetType(const Aws::String &value)
void SetPackageVulnerabilityDetails(PackageVulnerabilityDetails &&value)
const Aws::String & GetAwsAccountId() const
ImageScanFinding & WithRemediation(const Remediation &value)
ImageScanFinding & WithImagePipelineArn(const char *value)
void SetDescription(const Aws::String &value)
void SetAwsAccountId(const Aws::String &value)
ImageScanFinding & WithFirstObservedAt(const Aws::Utils::DateTime &value)
ImageScanFinding & WithAwsAccountId(const Aws::String &value)
ImageScanFinding & WithRemediation(Remediation &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue