AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
VulnerablePackage.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/inspector2/Inspector2_EXPORTS.h>
9#include <aws/inspector2/model/PackageManager.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Inspector2 {
21namespace Model {
22
30 public:
31 AWS_INSPECTOR2_API VulnerablePackage() = default;
32 AWS_INSPECTOR2_API VulnerablePackage(Aws::Utils::Json::JsonView jsonValue);
34 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 VulnerablePackage& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetVersion() const { return m_version; }
59 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
60 template <typename VersionT = Aws::String>
61 void SetVersion(VersionT&& value) {
62 m_versionHasBeenSet = true;
63 m_version = std::forward<VersionT>(value);
64 }
65 template <typename VersionT = Aws::String>
66 VulnerablePackage& WithVersion(VersionT&& value) {
67 SetVersion(std::forward<VersionT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetSourceLayerHash() const { return m_sourceLayerHash; }
77 inline bool SourceLayerHashHasBeenSet() const { return m_sourceLayerHashHasBeenSet; }
78 template <typename SourceLayerHashT = Aws::String>
79 void SetSourceLayerHash(SourceLayerHashT&& value) {
80 m_sourceLayerHashHasBeenSet = true;
81 m_sourceLayerHash = std::forward<SourceLayerHashT>(value);
82 }
83 template <typename SourceLayerHashT = Aws::String>
84 VulnerablePackage& WithSourceLayerHash(SourceLayerHashT&& value) {
85 SetSourceLayerHash(std::forward<SourceLayerHashT>(value));
86 return *this;
87 }
89
91
94 inline int GetEpoch() const { return m_epoch; }
95 inline bool EpochHasBeenSet() const { return m_epochHasBeenSet; }
96 inline void SetEpoch(int value) {
97 m_epochHasBeenSet = true;
98 m_epoch = value;
99 }
100 inline VulnerablePackage& WithEpoch(int value) {
101 SetEpoch(value);
102 return *this;
103 }
105
107
110 inline const Aws::String& GetRelease() const { return m_release; }
111 inline bool ReleaseHasBeenSet() const { return m_releaseHasBeenSet; }
112 template <typename ReleaseT = Aws::String>
113 void SetRelease(ReleaseT&& value) {
114 m_releaseHasBeenSet = true;
115 m_release = std::forward<ReleaseT>(value);
116 }
117 template <typename ReleaseT = Aws::String>
118 VulnerablePackage& WithRelease(ReleaseT&& value) {
119 SetRelease(std::forward<ReleaseT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::String& GetArch() const { return m_arch; }
129 inline bool ArchHasBeenSet() const { return m_archHasBeenSet; }
130 template <typename ArchT = Aws::String>
131 void SetArch(ArchT&& value) {
132 m_archHasBeenSet = true;
133 m_arch = std::forward<ArchT>(value);
134 }
135 template <typename ArchT = Aws::String>
136 VulnerablePackage& WithArch(ArchT&& value) {
137 SetArch(std::forward<ArchT>(value));
138 return *this;
139 }
141
143
146 inline PackageManager GetPackageManager() const { return m_packageManager; }
147 inline bool PackageManagerHasBeenSet() const { return m_packageManagerHasBeenSet; }
149 m_packageManagerHasBeenSet = true;
150 m_packageManager = value;
151 }
153 SetPackageManager(value);
154 return *this;
155 }
157
159
162 inline const Aws::String& GetFilePath() const { return m_filePath; }
163 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
164 template <typename FilePathT = Aws::String>
165 void SetFilePath(FilePathT&& value) {
166 m_filePathHasBeenSet = true;
167 m_filePath = std::forward<FilePathT>(value);
168 }
169 template <typename FilePathT = Aws::String>
170 VulnerablePackage& WithFilePath(FilePathT&& value) {
171 SetFilePath(std::forward<FilePathT>(value));
172 return *this;
173 }
175
177
180 inline const Aws::String& GetFixedInVersion() const { return m_fixedInVersion; }
181 inline bool FixedInVersionHasBeenSet() const { return m_fixedInVersionHasBeenSet; }
182 template <typename FixedInVersionT = Aws::String>
183 void SetFixedInVersion(FixedInVersionT&& value) {
184 m_fixedInVersionHasBeenSet = true;
185 m_fixedInVersion = std::forward<FixedInVersionT>(value);
186 }
187 template <typename FixedInVersionT = Aws::String>
188 VulnerablePackage& WithFixedInVersion(FixedInVersionT&& value) {
189 SetFixedInVersion(std::forward<FixedInVersionT>(value));
190 return *this;
191 }
193
195
199 inline const Aws::String& GetRemediation() const { return m_remediation; }
200 inline bool RemediationHasBeenSet() const { return m_remediationHasBeenSet; }
201 template <typename RemediationT = Aws::String>
202 void SetRemediation(RemediationT&& value) {
203 m_remediationHasBeenSet = true;
204 m_remediation = std::forward<RemediationT>(value);
205 }
206 template <typename RemediationT = Aws::String>
207 VulnerablePackage& WithRemediation(RemediationT&& value) {
208 SetRemediation(std::forward<RemediationT>(value));
209 return *this;
210 }
212
214
218 inline const Aws::String& GetSourceLambdaLayerArn() const { return m_sourceLambdaLayerArn; }
219 inline bool SourceLambdaLayerArnHasBeenSet() const { return m_sourceLambdaLayerArnHasBeenSet; }
220 template <typename SourceLambdaLayerArnT = Aws::String>
221 void SetSourceLambdaLayerArn(SourceLambdaLayerArnT&& value) {
222 m_sourceLambdaLayerArnHasBeenSet = true;
223 m_sourceLambdaLayerArn = std::forward<SourceLambdaLayerArnT>(value);
224 }
225 template <typename SourceLambdaLayerArnT = Aws::String>
226 VulnerablePackage& WithSourceLambdaLayerArn(SourceLambdaLayerArnT&& value) {
227 SetSourceLambdaLayerArn(std::forward<SourceLambdaLayerArnT>(value));
228 return *this;
229 }
231 private:
232 Aws::String m_name;
233
234 Aws::String m_version;
235
236 Aws::String m_sourceLayerHash;
237
238 int m_epoch{0};
239
240 Aws::String m_release;
241
242 Aws::String m_arch;
243
244 PackageManager m_packageManager{PackageManager::NOT_SET};
245
246 Aws::String m_filePath;
247
248 Aws::String m_fixedInVersion;
249
250 Aws::String m_remediation;
251
252 Aws::String m_sourceLambdaLayerArn;
253 bool m_nameHasBeenSet = false;
254 bool m_versionHasBeenSet = false;
255 bool m_sourceLayerHashHasBeenSet = false;
256 bool m_epochHasBeenSet = false;
257 bool m_releaseHasBeenSet = false;
258 bool m_archHasBeenSet = false;
259 bool m_packageManagerHasBeenSet = false;
260 bool m_filePathHasBeenSet = false;
261 bool m_fixedInVersionHasBeenSet = false;
262 bool m_remediationHasBeenSet = false;
263 bool m_sourceLambdaLayerArnHasBeenSet = false;
264};
265
266} // namespace Model
267} // namespace Inspector2
268} // namespace Aws
const Aws::String & GetSourceLayerHash() const
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
VulnerablePackage & WithSourceLambdaLayerArn(SourceLambdaLayerArnT &&value)
VulnerablePackage & WithSourceLayerHash(SourceLayerHashT &&value)
AWS_INSPECTOR2_API VulnerablePackage & operator=(Aws::Utils::Json::JsonView jsonValue)
VulnerablePackage & WithArch(ArchT &&value)
VulnerablePackage & WithRelease(ReleaseT &&value)
void SetFixedInVersion(FixedInVersionT &&value)
const Aws::String & GetSourceLambdaLayerArn() const
const Aws::String & GetFixedInVersion() const
AWS_INSPECTOR2_API VulnerablePackage()=default
VulnerablePackage & WithFixedInVersion(FixedInVersionT &&value)
VulnerablePackage & WithVersion(VersionT &&value)
VulnerablePackage & WithEpoch(int value)
AWS_INSPECTOR2_API VulnerablePackage(Aws::Utils::Json::JsonView jsonValue)
VulnerablePackage & WithPackageManager(PackageManager value)
void SetSourceLayerHash(SourceLayerHashT &&value)
VulnerablePackage & WithRemediation(RemediationT &&value)
VulnerablePackage & WithName(NameT &&value)
VulnerablePackage & WithFilePath(FilePathT &&value)
void SetSourceLambdaLayerArn(SourceLambdaLayerArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue