AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VulnerablePackage.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace imagebuilder
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_IMAGEBUILDER_API VulnerablePackage();
36 AWS_IMAGEBUILDER_API VulnerablePackage(Aws::Utils::Json::JsonView jsonValue);
37 AWS_IMAGEBUILDER_API VulnerablePackage& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetName() const{ return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
49 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
50 inline VulnerablePackage& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline VulnerablePackage& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline VulnerablePackage& WithName(const char* value) { SetName(value); return *this;}
54
56
59 inline const Aws::String& GetVersion() const{ return m_version; }
60 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
61 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
62 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
63 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
64 inline VulnerablePackage& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
65 inline VulnerablePackage& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
66 inline VulnerablePackage& WithVersion(const char* value) { SetVersion(value); return *this;}
68
70
73 inline const Aws::String& GetSourceLayerHash() const{ return m_sourceLayerHash; }
74 inline bool SourceLayerHashHasBeenSet() const { return m_sourceLayerHashHasBeenSet; }
75 inline void SetSourceLayerHash(const Aws::String& value) { m_sourceLayerHashHasBeenSet = true; m_sourceLayerHash = value; }
76 inline void SetSourceLayerHash(Aws::String&& value) { m_sourceLayerHashHasBeenSet = true; m_sourceLayerHash = std::move(value); }
77 inline void SetSourceLayerHash(const char* value) { m_sourceLayerHashHasBeenSet = true; m_sourceLayerHash.assign(value); }
78 inline VulnerablePackage& WithSourceLayerHash(const Aws::String& value) { SetSourceLayerHash(value); return *this;}
79 inline VulnerablePackage& WithSourceLayerHash(Aws::String&& value) { SetSourceLayerHash(std::move(value)); return *this;}
80 inline VulnerablePackage& WithSourceLayerHash(const char* value) { SetSourceLayerHash(value); return *this;}
82
84
87 inline int GetEpoch() const{ return m_epoch; }
88 inline bool EpochHasBeenSet() const { return m_epochHasBeenSet; }
89 inline void SetEpoch(int value) { m_epochHasBeenSet = true; m_epoch = value; }
90 inline VulnerablePackage& WithEpoch(int value) { SetEpoch(value); return *this;}
92
94
97 inline const Aws::String& GetRelease() const{ return m_release; }
98 inline bool ReleaseHasBeenSet() const { return m_releaseHasBeenSet; }
99 inline void SetRelease(const Aws::String& value) { m_releaseHasBeenSet = true; m_release = value; }
100 inline void SetRelease(Aws::String&& value) { m_releaseHasBeenSet = true; m_release = std::move(value); }
101 inline void SetRelease(const char* value) { m_releaseHasBeenSet = true; m_release.assign(value); }
102 inline VulnerablePackage& WithRelease(const Aws::String& value) { SetRelease(value); return *this;}
103 inline VulnerablePackage& WithRelease(Aws::String&& value) { SetRelease(std::move(value)); return *this;}
104 inline VulnerablePackage& WithRelease(const char* value) { SetRelease(value); return *this;}
106
108
111 inline const Aws::String& GetArch() const{ return m_arch; }
112 inline bool ArchHasBeenSet() const { return m_archHasBeenSet; }
113 inline void SetArch(const Aws::String& value) { m_archHasBeenSet = true; m_arch = value; }
114 inline void SetArch(Aws::String&& value) { m_archHasBeenSet = true; m_arch = std::move(value); }
115 inline void SetArch(const char* value) { m_archHasBeenSet = true; m_arch.assign(value); }
116 inline VulnerablePackage& WithArch(const Aws::String& value) { SetArch(value); return *this;}
117 inline VulnerablePackage& WithArch(Aws::String&& value) { SetArch(std::move(value)); return *this;}
118 inline VulnerablePackage& WithArch(const char* value) { SetArch(value); return *this;}
120
122
125 inline const Aws::String& GetPackageManager() const{ return m_packageManager; }
126 inline bool PackageManagerHasBeenSet() const { return m_packageManagerHasBeenSet; }
127 inline void SetPackageManager(const Aws::String& value) { m_packageManagerHasBeenSet = true; m_packageManager = value; }
128 inline void SetPackageManager(Aws::String&& value) { m_packageManagerHasBeenSet = true; m_packageManager = std::move(value); }
129 inline void SetPackageManager(const char* value) { m_packageManagerHasBeenSet = true; m_packageManager.assign(value); }
130 inline VulnerablePackage& WithPackageManager(const Aws::String& value) { SetPackageManager(value); return *this;}
131 inline VulnerablePackage& WithPackageManager(Aws::String&& value) { SetPackageManager(std::move(value)); return *this;}
132 inline VulnerablePackage& WithPackageManager(const char* value) { SetPackageManager(value); return *this;}
134
136
139 inline const Aws::String& GetFilePath() const{ return m_filePath; }
140 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
141 inline void SetFilePath(const Aws::String& value) { m_filePathHasBeenSet = true; m_filePath = value; }
142 inline void SetFilePath(Aws::String&& value) { m_filePathHasBeenSet = true; m_filePath = std::move(value); }
143 inline void SetFilePath(const char* value) { m_filePathHasBeenSet = true; m_filePath.assign(value); }
144 inline VulnerablePackage& WithFilePath(const Aws::String& value) { SetFilePath(value); return *this;}
145 inline VulnerablePackage& WithFilePath(Aws::String&& value) { SetFilePath(std::move(value)); return *this;}
146 inline VulnerablePackage& WithFilePath(const char* value) { SetFilePath(value); return *this;}
148
150
153 inline const Aws::String& GetFixedInVersion() const{ return m_fixedInVersion; }
154 inline bool FixedInVersionHasBeenSet() const { return m_fixedInVersionHasBeenSet; }
155 inline void SetFixedInVersion(const Aws::String& value) { m_fixedInVersionHasBeenSet = true; m_fixedInVersion = value; }
156 inline void SetFixedInVersion(Aws::String&& value) { m_fixedInVersionHasBeenSet = true; m_fixedInVersion = std::move(value); }
157 inline void SetFixedInVersion(const char* value) { m_fixedInVersionHasBeenSet = true; m_fixedInVersion.assign(value); }
158 inline VulnerablePackage& WithFixedInVersion(const Aws::String& value) { SetFixedInVersion(value); return *this;}
159 inline VulnerablePackage& WithFixedInVersion(Aws::String&& value) { SetFixedInVersion(std::move(value)); return *this;}
160 inline VulnerablePackage& WithFixedInVersion(const char* value) { SetFixedInVersion(value); return *this;}
162
164
168 inline const Aws::String& GetRemediation() const{ return m_remediation; }
169 inline bool RemediationHasBeenSet() const { return m_remediationHasBeenSet; }
170 inline void SetRemediation(const Aws::String& value) { m_remediationHasBeenSet = true; m_remediation = value; }
171 inline void SetRemediation(Aws::String&& value) { m_remediationHasBeenSet = true; m_remediation = std::move(value); }
172 inline void SetRemediation(const char* value) { m_remediationHasBeenSet = true; m_remediation.assign(value); }
173 inline VulnerablePackage& WithRemediation(const Aws::String& value) { SetRemediation(value); return *this;}
174 inline VulnerablePackage& WithRemediation(Aws::String&& value) { SetRemediation(std::move(value)); return *this;}
175 inline VulnerablePackage& WithRemediation(const char* value) { SetRemediation(value); return *this;}
177 private:
178
179 Aws::String m_name;
180 bool m_nameHasBeenSet = false;
181
182 Aws::String m_version;
183 bool m_versionHasBeenSet = false;
184
185 Aws::String m_sourceLayerHash;
186 bool m_sourceLayerHashHasBeenSet = false;
187
188 int m_epoch;
189 bool m_epochHasBeenSet = false;
190
191 Aws::String m_release;
192 bool m_releaseHasBeenSet = false;
193
194 Aws::String m_arch;
195 bool m_archHasBeenSet = false;
196
197 Aws::String m_packageManager;
198 bool m_packageManagerHasBeenSet = false;
199
200 Aws::String m_filePath;
201 bool m_filePathHasBeenSet = false;
202
203 Aws::String m_fixedInVersion;
204 bool m_fixedInVersionHasBeenSet = false;
205
206 Aws::String m_remediation;
207 bool m_remediationHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace imagebuilder
212} // namespace Aws
void SetFilePath(const Aws::String &value)
void SetRelease(const Aws::String &value)
void SetRemediation(const Aws::String &value)
void SetPackageManager(const Aws::String &value)
VulnerablePackage & WithVersion(Aws::String &&value)
VulnerablePackage & WithEpoch(int value)
VulnerablePackage & WithArch(const char *value)
VulnerablePackage & WithArch(Aws::String &&value)
VulnerablePackage & WithFixedInVersion(const Aws::String &value)
AWS_IMAGEBUILDER_API VulnerablePackage & operator=(Aws::Utils::Json::JsonView jsonValue)
VulnerablePackage & WithRelease(const Aws::String &value)
VulnerablePackage & WithFilePath(const Aws::String &value)
VulnerablePackage & WithFixedInVersion(const char *value)
VulnerablePackage & WithRemediation(const Aws::String &value)
VulnerablePackage & WithRelease(const char *value)
VulnerablePackage & WithName(const Aws::String &value)
VulnerablePackage & WithName(Aws::String &&value)
VulnerablePackage & WithPackageManager(const char *value)
VulnerablePackage & WithVersion(const Aws::String &value)
VulnerablePackage & WithName(const char *value)
VulnerablePackage & WithRelease(Aws::String &&value)
VulnerablePackage & WithRemediation(Aws::String &&value)
VulnerablePackage & WithFixedInVersion(Aws::String &&value)
void SetFixedInVersion(const Aws::String &value)
VulnerablePackage & WithFilePath(Aws::String &&value)
VulnerablePackage & WithFilePath(const char *value)
VulnerablePackage & WithVersion(const char *value)
VulnerablePackage & WithPackageManager(const Aws::String &value)
VulnerablePackage & WithSourceLayerHash(const char *value)
VulnerablePackage & WithArch(const Aws::String &value)
VulnerablePackage & WithRemediation(const char *value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetVersion(const Aws::String &value)
VulnerablePackage & WithSourceLayerHash(Aws::String &&value)
VulnerablePackage & WithPackageManager(Aws::String &&value)
AWS_IMAGEBUILDER_API VulnerablePackage(Aws::Utils::Json::JsonView jsonValue)
VulnerablePackage & WithSourceLayerHash(const Aws::String &value)
const Aws::String & GetSourceLayerHash() const
void SetSourceLayerHash(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue