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/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/inspector2/model/PackageManager.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Inspector2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_INSPECTOR2_API VulnerablePackage();
37 AWS_INSPECTOR2_API VulnerablePackage(Aws::Utils::Json::JsonView jsonValue);
39 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetArch() const{ return m_arch; }
47 inline bool ArchHasBeenSet() const { return m_archHasBeenSet; }
48 inline void SetArch(const Aws::String& value) { m_archHasBeenSet = true; m_arch = value; }
49 inline void SetArch(Aws::String&& value) { m_archHasBeenSet = true; m_arch = std::move(value); }
50 inline void SetArch(const char* value) { m_archHasBeenSet = true; m_arch.assign(value); }
51 inline VulnerablePackage& WithArch(const Aws::String& value) { SetArch(value); return *this;}
52 inline VulnerablePackage& WithArch(Aws::String&& value) { SetArch(std::move(value)); return *this;}
53 inline VulnerablePackage& WithArch(const char* value) { SetArch(value); return *this;}
55
57
60 inline int GetEpoch() const{ return m_epoch; }
61 inline bool EpochHasBeenSet() const { return m_epochHasBeenSet; }
62 inline void SetEpoch(int value) { m_epochHasBeenSet = true; m_epoch = value; }
63 inline VulnerablePackage& WithEpoch(int value) { SetEpoch(value); return *this;}
65
67
70 inline const Aws::String& GetFilePath() const{ return m_filePath; }
71 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
72 inline void SetFilePath(const Aws::String& value) { m_filePathHasBeenSet = true; m_filePath = value; }
73 inline void SetFilePath(Aws::String&& value) { m_filePathHasBeenSet = true; m_filePath = std::move(value); }
74 inline void SetFilePath(const char* value) { m_filePathHasBeenSet = true; m_filePath.assign(value); }
75 inline VulnerablePackage& WithFilePath(const Aws::String& value) { SetFilePath(value); return *this;}
76 inline VulnerablePackage& WithFilePath(Aws::String&& value) { SetFilePath(std::move(value)); return *this;}
77 inline VulnerablePackage& WithFilePath(const char* value) { SetFilePath(value); return *this;}
79
81
84 inline const Aws::String& GetFixedInVersion() const{ return m_fixedInVersion; }
85 inline bool FixedInVersionHasBeenSet() const { return m_fixedInVersionHasBeenSet; }
86 inline void SetFixedInVersion(const Aws::String& value) { m_fixedInVersionHasBeenSet = true; m_fixedInVersion = value; }
87 inline void SetFixedInVersion(Aws::String&& value) { m_fixedInVersionHasBeenSet = true; m_fixedInVersion = std::move(value); }
88 inline void SetFixedInVersion(const char* value) { m_fixedInVersionHasBeenSet = true; m_fixedInVersion.assign(value); }
89 inline VulnerablePackage& WithFixedInVersion(const Aws::String& value) { SetFixedInVersion(value); return *this;}
90 inline VulnerablePackage& WithFixedInVersion(Aws::String&& value) { SetFixedInVersion(std::move(value)); return *this;}
91 inline VulnerablePackage& WithFixedInVersion(const char* value) { SetFixedInVersion(value); return *this;}
93
95
98 inline const Aws::String& GetName() const{ return m_name; }
99 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
100 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
101 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
102 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
103 inline VulnerablePackage& WithName(const Aws::String& value) { SetName(value); return *this;}
104 inline VulnerablePackage& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
105 inline VulnerablePackage& WithName(const char* value) { SetName(value); return *this;}
107
109
112 inline const PackageManager& GetPackageManager() const{ return m_packageManager; }
113 inline bool PackageManagerHasBeenSet() const { return m_packageManagerHasBeenSet; }
114 inline void SetPackageManager(const PackageManager& value) { m_packageManagerHasBeenSet = true; m_packageManager = value; }
115 inline void SetPackageManager(PackageManager&& value) { m_packageManagerHasBeenSet = true; m_packageManager = std::move(value); }
116 inline VulnerablePackage& WithPackageManager(const PackageManager& value) { SetPackageManager(value); return *this;}
117 inline VulnerablePackage& WithPackageManager(PackageManager&& value) { SetPackageManager(std::move(value)); return *this;}
119
121
124 inline const Aws::String& GetRelease() const{ return m_release; }
125 inline bool ReleaseHasBeenSet() const { return m_releaseHasBeenSet; }
126 inline void SetRelease(const Aws::String& value) { m_releaseHasBeenSet = true; m_release = value; }
127 inline void SetRelease(Aws::String&& value) { m_releaseHasBeenSet = true; m_release = std::move(value); }
128 inline void SetRelease(const char* value) { m_releaseHasBeenSet = true; m_release.assign(value); }
129 inline VulnerablePackage& WithRelease(const Aws::String& value) { SetRelease(value); return *this;}
130 inline VulnerablePackage& WithRelease(Aws::String&& value) { SetRelease(std::move(value)); return *this;}
131 inline VulnerablePackage& WithRelease(const char* value) { SetRelease(value); return *this;}
133
135
139 inline const Aws::String& GetRemediation() const{ return m_remediation; }
140 inline bool RemediationHasBeenSet() const { return m_remediationHasBeenSet; }
141 inline void SetRemediation(const Aws::String& value) { m_remediationHasBeenSet = true; m_remediation = value; }
142 inline void SetRemediation(Aws::String&& value) { m_remediationHasBeenSet = true; m_remediation = std::move(value); }
143 inline void SetRemediation(const char* value) { m_remediationHasBeenSet = true; m_remediation.assign(value); }
144 inline VulnerablePackage& WithRemediation(const Aws::String& value) { SetRemediation(value); return *this;}
145 inline VulnerablePackage& WithRemediation(Aws::String&& value) { SetRemediation(std::move(value)); return *this;}
146 inline VulnerablePackage& WithRemediation(const char* value) { SetRemediation(value); return *this;}
148
150
154 inline const Aws::String& GetSourceLambdaLayerArn() const{ return m_sourceLambdaLayerArn; }
155 inline bool SourceLambdaLayerArnHasBeenSet() const { return m_sourceLambdaLayerArnHasBeenSet; }
156 inline void SetSourceLambdaLayerArn(const Aws::String& value) { m_sourceLambdaLayerArnHasBeenSet = true; m_sourceLambdaLayerArn = value; }
157 inline void SetSourceLambdaLayerArn(Aws::String&& value) { m_sourceLambdaLayerArnHasBeenSet = true; m_sourceLambdaLayerArn = std::move(value); }
158 inline void SetSourceLambdaLayerArn(const char* value) { m_sourceLambdaLayerArnHasBeenSet = true; m_sourceLambdaLayerArn.assign(value); }
160 inline VulnerablePackage& WithSourceLambdaLayerArn(Aws::String&& value) { SetSourceLambdaLayerArn(std::move(value)); return *this;}
161 inline VulnerablePackage& WithSourceLambdaLayerArn(const char* value) { SetSourceLambdaLayerArn(value); return *this;}
163
165
168 inline const Aws::String& GetSourceLayerHash() const{ return m_sourceLayerHash; }
169 inline bool SourceLayerHashHasBeenSet() const { return m_sourceLayerHashHasBeenSet; }
170 inline void SetSourceLayerHash(const Aws::String& value) { m_sourceLayerHashHasBeenSet = true; m_sourceLayerHash = value; }
171 inline void SetSourceLayerHash(Aws::String&& value) { m_sourceLayerHashHasBeenSet = true; m_sourceLayerHash = std::move(value); }
172 inline void SetSourceLayerHash(const char* value) { m_sourceLayerHashHasBeenSet = true; m_sourceLayerHash.assign(value); }
173 inline VulnerablePackage& WithSourceLayerHash(const Aws::String& value) { SetSourceLayerHash(value); return *this;}
174 inline VulnerablePackage& WithSourceLayerHash(Aws::String&& value) { SetSourceLayerHash(std::move(value)); return *this;}
175 inline VulnerablePackage& WithSourceLayerHash(const char* value) { SetSourceLayerHash(value); return *this;}
177
179
182 inline const Aws::String& GetVersion() const{ return m_version; }
183 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
184 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
185 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
186 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
187 inline VulnerablePackage& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
188 inline VulnerablePackage& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
189 inline VulnerablePackage& WithVersion(const char* value) { SetVersion(value); return *this;}
191 private:
192
193 Aws::String m_arch;
194 bool m_archHasBeenSet = false;
195
196 int m_epoch;
197 bool m_epochHasBeenSet = false;
198
199 Aws::String m_filePath;
200 bool m_filePathHasBeenSet = false;
201
202 Aws::String m_fixedInVersion;
203 bool m_fixedInVersionHasBeenSet = false;
204
205 Aws::String m_name;
206 bool m_nameHasBeenSet = false;
207
208 PackageManager m_packageManager;
209 bool m_packageManagerHasBeenSet = false;
210
211 Aws::String m_release;
212 bool m_releaseHasBeenSet = false;
213
214 Aws::String m_remediation;
215 bool m_remediationHasBeenSet = false;
216
217 Aws::String m_sourceLambdaLayerArn;
218 bool m_sourceLambdaLayerArnHasBeenSet = false;
219
220 Aws::String m_sourceLayerHash;
221 bool m_sourceLayerHashHasBeenSet = false;
222
223 Aws::String m_version;
224 bool m_versionHasBeenSet = false;
225 };
226
227} // namespace Model
228} // namespace Inspector2
229} // namespace Aws
VulnerablePackage & WithRelease(Aws::String &&value)
const Aws::String & GetSourceLayerHash() const
void SetSourceLayerHash(const Aws::String &value)
VulnerablePackage & WithName(const Aws::String &value)
VulnerablePackage & WithSourceLambdaLayerArn(Aws::String &&value)
VulnerablePackage & WithName(Aws::String &&value)
void SetArch(const Aws::String &value)
VulnerablePackage & WithFixedInVersion(const char *value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRelease(const Aws::String &value)
VulnerablePackage & WithRelease(const char *value)
void SetSourceLambdaLayerArn(const Aws::String &value)
VulnerablePackage & WithRemediation(Aws::String &&value)
VulnerablePackage & WithRemediation(const char *value)
VulnerablePackage & WithFilePath(const Aws::String &value)
AWS_INSPECTOR2_API VulnerablePackage & operator=(Aws::Utils::Json::JsonView jsonValue)
VulnerablePackage & WithFilePath(const char *value)
const Aws::String & GetSourceLambdaLayerArn() const
const Aws::String & GetFixedInVersion() const
VulnerablePackage & WithPackageManager(PackageManager &&value)
VulnerablePackage & WithFilePath(Aws::String &&value)
void SetRemediation(const Aws::String &value)
VulnerablePackage & WithEpoch(int value)
VulnerablePackage & WithRelease(const Aws::String &value)
VulnerablePackage & WithRemediation(const Aws::String &value)
VulnerablePackage & WithVersion(const Aws::String &value)
void SetSourceLambdaLayerArn(Aws::String &&value)
void SetPackageManager(const PackageManager &value)
void SetFilePath(const Aws::String &value)
AWS_INSPECTOR2_API VulnerablePackage(Aws::Utils::Json::JsonView jsonValue)
VulnerablePackage & WithSourceLayerHash(const char *value)
VulnerablePackage & WithName(const char *value)
VulnerablePackage & WithArch(Aws::String &&value)
VulnerablePackage & WithPackageManager(const PackageManager &value)
VulnerablePackage & WithVersion(Aws::String &&value)
VulnerablePackage & WithSourceLayerHash(const Aws::String &value)
void SetName(const Aws::String &value)
void SetVersion(const Aws::String &value)
VulnerablePackage & WithArch(const Aws::String &value)
void SetPackageManager(PackageManager &&value)
VulnerablePackage & WithFixedInVersion(Aws::String &&value)
VulnerablePackage & WithSourceLambdaLayerArn(const char *value)
VulnerablePackage & WithFixedInVersion(const Aws::String &value)
VulnerablePackage & WithArch(const char *value)
void SetFixedInVersion(const Aws::String &value)
const PackageManager & GetPackageManager() const
VulnerablePackage & WithSourceLayerHash(Aws::String &&value)
VulnerablePackage & WithSourceLambdaLayerArn(const Aws::String &value)
VulnerablePackage & WithVersion(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue