AWS SDK for C++

AWS SDK for C++ Version 1.11.632

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& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 VulnerablePackage& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
62 template<typename VersionT = Aws::String>
63 VulnerablePackage& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
65
67
70 inline const Aws::String& GetSourceLayerHash() const { return m_sourceLayerHash; }
71 inline bool SourceLayerHashHasBeenSet() const { return m_sourceLayerHashHasBeenSet; }
72 template<typename SourceLayerHashT = Aws::String>
73 void SetSourceLayerHash(SourceLayerHashT&& value) { m_sourceLayerHashHasBeenSet = true; m_sourceLayerHash = std::forward<SourceLayerHashT>(value); }
74 template<typename SourceLayerHashT = Aws::String>
75 VulnerablePackage& WithSourceLayerHash(SourceLayerHashT&& value) { SetSourceLayerHash(std::forward<SourceLayerHashT>(value)); return *this;}
77
79
82 inline int GetEpoch() const { return m_epoch; }
83 inline bool EpochHasBeenSet() const { return m_epochHasBeenSet; }
84 inline void SetEpoch(int value) { m_epochHasBeenSet = true; m_epoch = value; }
85 inline VulnerablePackage& WithEpoch(int value) { SetEpoch(value); return *this;}
87
89
92 inline const Aws::String& GetRelease() const { return m_release; }
93 inline bool ReleaseHasBeenSet() const { return m_releaseHasBeenSet; }
94 template<typename ReleaseT = Aws::String>
95 void SetRelease(ReleaseT&& value) { m_releaseHasBeenSet = true; m_release = std::forward<ReleaseT>(value); }
96 template<typename ReleaseT = Aws::String>
97 VulnerablePackage& WithRelease(ReleaseT&& value) { SetRelease(std::forward<ReleaseT>(value)); return *this;}
99
101
104 inline const Aws::String& GetArch() const { return m_arch; }
105 inline bool ArchHasBeenSet() const { return m_archHasBeenSet; }
106 template<typename ArchT = Aws::String>
107 void SetArch(ArchT&& value) { m_archHasBeenSet = true; m_arch = std::forward<ArchT>(value); }
108 template<typename ArchT = Aws::String>
109 VulnerablePackage& WithArch(ArchT&& value) { SetArch(std::forward<ArchT>(value)); return *this;}
111
113
116 inline PackageManager GetPackageManager() const { return m_packageManager; }
117 inline bool PackageManagerHasBeenSet() const { return m_packageManagerHasBeenSet; }
118 inline void SetPackageManager(PackageManager value) { m_packageManagerHasBeenSet = true; m_packageManager = value; }
121
123
126 inline const Aws::String& GetFilePath() const { return m_filePath; }
127 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
128 template<typename FilePathT = Aws::String>
129 void SetFilePath(FilePathT&& value) { m_filePathHasBeenSet = true; m_filePath = std::forward<FilePathT>(value); }
130 template<typename FilePathT = Aws::String>
131 VulnerablePackage& WithFilePath(FilePathT&& value) { SetFilePath(std::forward<FilePathT>(value)); return *this;}
133
135
138 inline const Aws::String& GetFixedInVersion() const { return m_fixedInVersion; }
139 inline bool FixedInVersionHasBeenSet() const { return m_fixedInVersionHasBeenSet; }
140 template<typename FixedInVersionT = Aws::String>
141 void SetFixedInVersion(FixedInVersionT&& value) { m_fixedInVersionHasBeenSet = true; m_fixedInVersion = std::forward<FixedInVersionT>(value); }
142 template<typename FixedInVersionT = Aws::String>
143 VulnerablePackage& WithFixedInVersion(FixedInVersionT&& value) { SetFixedInVersion(std::forward<FixedInVersionT>(value)); return *this;}
145
147
151 inline const Aws::String& GetRemediation() const { return m_remediation; }
152 inline bool RemediationHasBeenSet() const { return m_remediationHasBeenSet; }
153 template<typename RemediationT = Aws::String>
154 void SetRemediation(RemediationT&& value) { m_remediationHasBeenSet = true; m_remediation = std::forward<RemediationT>(value); }
155 template<typename RemediationT = Aws::String>
156 VulnerablePackage& WithRemediation(RemediationT&& value) { SetRemediation(std::forward<RemediationT>(value)); return *this;}
158
160
164 inline const Aws::String& GetSourceLambdaLayerArn() const { return m_sourceLambdaLayerArn; }
165 inline bool SourceLambdaLayerArnHasBeenSet() const { return m_sourceLambdaLayerArnHasBeenSet; }
166 template<typename SourceLambdaLayerArnT = Aws::String>
167 void SetSourceLambdaLayerArn(SourceLambdaLayerArnT&& value) { m_sourceLambdaLayerArnHasBeenSet = true; m_sourceLambdaLayerArn = std::forward<SourceLambdaLayerArnT>(value); }
168 template<typename SourceLambdaLayerArnT = Aws::String>
169 VulnerablePackage& WithSourceLambdaLayerArn(SourceLambdaLayerArnT&& value) { SetSourceLambdaLayerArn(std::forward<SourceLambdaLayerArnT>(value)); return *this;}
171 private:
172
173 Aws::String m_name;
174 bool m_nameHasBeenSet = false;
175
176 Aws::String m_version;
177 bool m_versionHasBeenSet = false;
178
179 Aws::String m_sourceLayerHash;
180 bool m_sourceLayerHashHasBeenSet = false;
181
182 int m_epoch{0};
183 bool m_epochHasBeenSet = false;
184
185 Aws::String m_release;
186 bool m_releaseHasBeenSet = false;
187
188 Aws::String m_arch;
189 bool m_archHasBeenSet = false;
190
191 PackageManager m_packageManager{PackageManager::NOT_SET};
192 bool m_packageManagerHasBeenSet = false;
193
194 Aws::String m_filePath;
195 bool m_filePathHasBeenSet = false;
196
197 Aws::String m_fixedInVersion;
198 bool m_fixedInVersionHasBeenSet = false;
199
200 Aws::String m_remediation;
201 bool m_remediationHasBeenSet = false;
202
203 Aws::String m_sourceLambdaLayerArn;
204 bool m_sourceLambdaLayerArnHasBeenSet = 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