AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ArchT = Aws::String>
49 void SetArch(ArchT&& value) { m_archHasBeenSet = true; m_arch = std::forward<ArchT>(value); }
50 template<typename ArchT = Aws::String>
51 VulnerablePackage& WithArch(ArchT&& value) { SetArch(std::forward<ArchT>(value)); return *this;}
53
55
58 inline int GetEpoch() const { return m_epoch; }
59 inline bool EpochHasBeenSet() const { return m_epochHasBeenSet; }
60 inline void SetEpoch(int value) { m_epochHasBeenSet = true; m_epoch = value; }
61 inline VulnerablePackage& WithEpoch(int value) { SetEpoch(value); return *this;}
63
65
68 inline const Aws::String& GetFilePath() const { return m_filePath; }
69 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
70 template<typename FilePathT = Aws::String>
71 void SetFilePath(FilePathT&& value) { m_filePathHasBeenSet = true; m_filePath = std::forward<FilePathT>(value); }
72 template<typename FilePathT = Aws::String>
73 VulnerablePackage& WithFilePath(FilePathT&& value) { SetFilePath(std::forward<FilePathT>(value)); return *this;}
75
77
80 inline const Aws::String& GetFixedInVersion() const { return m_fixedInVersion; }
81 inline bool FixedInVersionHasBeenSet() const { return m_fixedInVersionHasBeenSet; }
82 template<typename FixedInVersionT = Aws::String>
83 void SetFixedInVersion(FixedInVersionT&& value) { m_fixedInVersionHasBeenSet = true; m_fixedInVersion = std::forward<FixedInVersionT>(value); }
84 template<typename FixedInVersionT = Aws::String>
85 VulnerablePackage& WithFixedInVersion(FixedInVersionT&& value) { SetFixedInVersion(std::forward<FixedInVersionT>(value)); return *this;}
87
89
92 inline const Aws::String& GetName() const { return m_name; }
93 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
94 template<typename NameT = Aws::String>
95 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
96 template<typename NameT = Aws::String>
97 VulnerablePackage& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
99
101
104 inline PackageManager GetPackageManager() const { return m_packageManager; }
105 inline bool PackageManagerHasBeenSet() const { return m_packageManagerHasBeenSet; }
106 inline void SetPackageManager(PackageManager value) { m_packageManagerHasBeenSet = true; m_packageManager = value; }
109
111
114 inline const Aws::String& GetRelease() const { return m_release; }
115 inline bool ReleaseHasBeenSet() const { return m_releaseHasBeenSet; }
116 template<typename ReleaseT = Aws::String>
117 void SetRelease(ReleaseT&& value) { m_releaseHasBeenSet = true; m_release = std::forward<ReleaseT>(value); }
118 template<typename ReleaseT = Aws::String>
119 VulnerablePackage& WithRelease(ReleaseT&& value) { SetRelease(std::forward<ReleaseT>(value)); return *this;}
121
123
127 inline const Aws::String& GetRemediation() const { return m_remediation; }
128 inline bool RemediationHasBeenSet() const { return m_remediationHasBeenSet; }
129 template<typename RemediationT = Aws::String>
130 void SetRemediation(RemediationT&& value) { m_remediationHasBeenSet = true; m_remediation = std::forward<RemediationT>(value); }
131 template<typename RemediationT = Aws::String>
132 VulnerablePackage& WithRemediation(RemediationT&& value) { SetRemediation(std::forward<RemediationT>(value)); return *this;}
134
136
140 inline const Aws::String& GetSourceLambdaLayerArn() const { return m_sourceLambdaLayerArn; }
141 inline bool SourceLambdaLayerArnHasBeenSet() const { return m_sourceLambdaLayerArnHasBeenSet; }
142 template<typename SourceLambdaLayerArnT = Aws::String>
143 void SetSourceLambdaLayerArn(SourceLambdaLayerArnT&& value) { m_sourceLambdaLayerArnHasBeenSet = true; m_sourceLambdaLayerArn = std::forward<SourceLambdaLayerArnT>(value); }
144 template<typename SourceLambdaLayerArnT = Aws::String>
145 VulnerablePackage& WithSourceLambdaLayerArn(SourceLambdaLayerArnT&& value) { SetSourceLambdaLayerArn(std::forward<SourceLambdaLayerArnT>(value)); return *this;}
147
149
152 inline const Aws::String& GetSourceLayerHash() const { return m_sourceLayerHash; }
153 inline bool SourceLayerHashHasBeenSet() const { return m_sourceLayerHashHasBeenSet; }
154 template<typename SourceLayerHashT = Aws::String>
155 void SetSourceLayerHash(SourceLayerHashT&& value) { m_sourceLayerHashHasBeenSet = true; m_sourceLayerHash = std::forward<SourceLayerHashT>(value); }
156 template<typename SourceLayerHashT = Aws::String>
157 VulnerablePackage& WithSourceLayerHash(SourceLayerHashT&& value) { SetSourceLayerHash(std::forward<SourceLayerHashT>(value)); return *this;}
159
161
164 inline const Aws::String& GetVersion() const { return m_version; }
165 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
166 template<typename VersionT = Aws::String>
167 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
168 template<typename VersionT = Aws::String>
169 VulnerablePackage& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
171 private:
172
173 Aws::String m_arch;
174 bool m_archHasBeenSet = false;
175
176 int m_epoch{0};
177 bool m_epochHasBeenSet = false;
178
179 Aws::String m_filePath;
180 bool m_filePathHasBeenSet = false;
181
182 Aws::String m_fixedInVersion;
183 bool m_fixedInVersionHasBeenSet = false;
184
185 Aws::String m_name;
186 bool m_nameHasBeenSet = false;
187
188 PackageManager m_packageManager{PackageManager::NOT_SET};
189 bool m_packageManagerHasBeenSet = false;
190
191 Aws::String m_release;
192 bool m_releaseHasBeenSet = false;
193
194 Aws::String m_remediation;
195 bool m_remediationHasBeenSet = false;
196
197 Aws::String m_sourceLambdaLayerArn;
198 bool m_sourceLambdaLayerArnHasBeenSet = false;
199
200 Aws::String m_sourceLayerHash;
201 bool m_sourceLayerHashHasBeenSet = false;
202
203 Aws::String m_version;
204 bool m_versionHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace Inspector2
209} // 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