AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
VulnerablePackage.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace imagebuilder {
20namespace Model {
21
29 public:
30 AWS_IMAGEBUILDER_API VulnerablePackage() = default;
31 AWS_IMAGEBUILDER_API VulnerablePackage(Aws::Utils::Json::JsonView jsonValue);
32 AWS_IMAGEBUILDER_API VulnerablePackage& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
47 VulnerablePackage& WithName(NameT&& value) {
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetVersion() const { return m_version; }
58 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
59 template <typename VersionT = Aws::String>
60 void SetVersion(VersionT&& value) {
61 m_versionHasBeenSet = true;
62 m_version = std::forward<VersionT>(value);
63 }
64 template <typename VersionT = Aws::String>
65 VulnerablePackage& WithVersion(VersionT&& value) {
66 SetVersion(std::forward<VersionT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetSourceLayerHash() const { return m_sourceLayerHash; }
76 inline bool SourceLayerHashHasBeenSet() const { return m_sourceLayerHashHasBeenSet; }
77 template <typename SourceLayerHashT = Aws::String>
78 void SetSourceLayerHash(SourceLayerHashT&& value) {
79 m_sourceLayerHashHasBeenSet = true;
80 m_sourceLayerHash = std::forward<SourceLayerHashT>(value);
81 }
82 template <typename SourceLayerHashT = Aws::String>
83 VulnerablePackage& WithSourceLayerHash(SourceLayerHashT&& value) {
84 SetSourceLayerHash(std::forward<SourceLayerHashT>(value));
85 return *this;
86 }
88
90
93 inline int GetEpoch() const { return m_epoch; }
94 inline bool EpochHasBeenSet() const { return m_epochHasBeenSet; }
95 inline void SetEpoch(int value) {
96 m_epochHasBeenSet = true;
97 m_epoch = value;
98 }
99 inline VulnerablePackage& WithEpoch(int value) {
100 SetEpoch(value);
101 return *this;
102 }
104
106
109 inline const Aws::String& GetRelease() const { return m_release; }
110 inline bool ReleaseHasBeenSet() const { return m_releaseHasBeenSet; }
111 template <typename ReleaseT = Aws::String>
112 void SetRelease(ReleaseT&& value) {
113 m_releaseHasBeenSet = true;
114 m_release = std::forward<ReleaseT>(value);
115 }
116 template <typename ReleaseT = Aws::String>
117 VulnerablePackage& WithRelease(ReleaseT&& value) {
118 SetRelease(std::forward<ReleaseT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::String& GetArch() const { return m_arch; }
128 inline bool ArchHasBeenSet() const { return m_archHasBeenSet; }
129 template <typename ArchT = Aws::String>
130 void SetArch(ArchT&& value) {
131 m_archHasBeenSet = true;
132 m_arch = std::forward<ArchT>(value);
133 }
134 template <typename ArchT = Aws::String>
135 VulnerablePackage& WithArch(ArchT&& value) {
136 SetArch(std::forward<ArchT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::String& GetPackageManager() const { return m_packageManager; }
146 inline bool PackageManagerHasBeenSet() const { return m_packageManagerHasBeenSet; }
147 template <typename PackageManagerT = Aws::String>
148 void SetPackageManager(PackageManagerT&& value) {
149 m_packageManagerHasBeenSet = true;
150 m_packageManager = std::forward<PackageManagerT>(value);
151 }
152 template <typename PackageManagerT = Aws::String>
153 VulnerablePackage& WithPackageManager(PackageManagerT&& value) {
154 SetPackageManager(std::forward<PackageManagerT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::String& GetFilePath() const { return m_filePath; }
164 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
165 template <typename FilePathT = Aws::String>
166 void SetFilePath(FilePathT&& value) {
167 m_filePathHasBeenSet = true;
168 m_filePath = std::forward<FilePathT>(value);
169 }
170 template <typename FilePathT = Aws::String>
171 VulnerablePackage& WithFilePath(FilePathT&& value) {
172 SetFilePath(std::forward<FilePathT>(value));
173 return *this;
174 }
176
178
181 inline const Aws::String& GetFixedInVersion() const { return m_fixedInVersion; }
182 inline bool FixedInVersionHasBeenSet() const { return m_fixedInVersionHasBeenSet; }
183 template <typename FixedInVersionT = Aws::String>
184 void SetFixedInVersion(FixedInVersionT&& value) {
185 m_fixedInVersionHasBeenSet = true;
186 m_fixedInVersion = std::forward<FixedInVersionT>(value);
187 }
188 template <typename FixedInVersionT = Aws::String>
189 VulnerablePackage& WithFixedInVersion(FixedInVersionT&& value) {
190 SetFixedInVersion(std::forward<FixedInVersionT>(value));
191 return *this;
192 }
194
196
200 inline const Aws::String& GetRemediation() const { return m_remediation; }
201 inline bool RemediationHasBeenSet() const { return m_remediationHasBeenSet; }
202 template <typename RemediationT = Aws::String>
203 void SetRemediation(RemediationT&& value) {
204 m_remediationHasBeenSet = true;
205 m_remediation = std::forward<RemediationT>(value);
206 }
207 template <typename RemediationT = Aws::String>
208 VulnerablePackage& WithRemediation(RemediationT&& value) {
209 SetRemediation(std::forward<RemediationT>(value));
210 return *this;
211 }
213 private:
214 Aws::String m_name;
215
216 Aws::String m_version;
217
218 Aws::String m_sourceLayerHash;
219
220 int m_epoch{0};
221
222 Aws::String m_release;
223
224 Aws::String m_arch;
225
226 Aws::String m_packageManager;
227
228 Aws::String m_filePath;
229
230 Aws::String m_fixedInVersion;
231
232 Aws::String m_remediation;
233 bool m_nameHasBeenSet = false;
234 bool m_versionHasBeenSet = false;
235 bool m_sourceLayerHashHasBeenSet = false;
236 bool m_epochHasBeenSet = false;
237 bool m_releaseHasBeenSet = false;
238 bool m_archHasBeenSet = false;
239 bool m_packageManagerHasBeenSet = false;
240 bool m_filePathHasBeenSet = false;
241 bool m_fixedInVersionHasBeenSet = false;
242 bool m_remediationHasBeenSet = false;
243};
244
245} // namespace Model
246} // namespace imagebuilder
247} // namespace Aws
VulnerablePackage & WithFixedInVersion(FixedInVersionT &&value)
VulnerablePackage & WithEpoch(int value)
void SetPackageManager(PackageManagerT &&value)
AWS_IMAGEBUILDER_API VulnerablePackage & operator=(Aws::Utils::Json::JsonView jsonValue)
VulnerablePackage & WithVersion(VersionT &&value)
VulnerablePackage & WithArch(ArchT &&value)
void SetSourceLayerHash(SourceLayerHashT &&value)
VulnerablePackage & WithSourceLayerHash(SourceLayerHashT &&value)
VulnerablePackage & WithRemediation(RemediationT &&value)
VulnerablePackage & WithName(NameT &&value)
VulnerablePackage & WithPackageManager(PackageManagerT &&value)
VulnerablePackage & WithRelease(ReleaseT &&value)
AWS_IMAGEBUILDER_API VulnerablePackage()=default
VulnerablePackage & WithFilePath(FilePathT &&value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFixedInVersion(FixedInVersionT &&value)
AWS_IMAGEBUILDER_API VulnerablePackage(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSourceLayerHash() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue