AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
49 template<typename NameT = Aws::String>
50 VulnerablePackage& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
52
54
57 inline const Aws::String& GetVersion() const { return m_version; }
58 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
59 template<typename VersionT = Aws::String>
60 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
61 template<typename VersionT = Aws::String>
62 VulnerablePackage& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
64
66
69 inline const Aws::String& GetSourceLayerHash() const { return m_sourceLayerHash; }
70 inline bool SourceLayerHashHasBeenSet() const { return m_sourceLayerHashHasBeenSet; }
71 template<typename SourceLayerHashT = Aws::String>
72 void SetSourceLayerHash(SourceLayerHashT&& value) { m_sourceLayerHashHasBeenSet = true; m_sourceLayerHash = std::forward<SourceLayerHashT>(value); }
73 template<typename SourceLayerHashT = Aws::String>
74 VulnerablePackage& WithSourceLayerHash(SourceLayerHashT&& value) { SetSourceLayerHash(std::forward<SourceLayerHashT>(value)); return *this;}
76
78
81 inline int GetEpoch() const { return m_epoch; }
82 inline bool EpochHasBeenSet() const { return m_epochHasBeenSet; }
83 inline void SetEpoch(int value) { m_epochHasBeenSet = true; m_epoch = value; }
84 inline VulnerablePackage& WithEpoch(int value) { SetEpoch(value); return *this;}
86
88
91 inline const Aws::String& GetRelease() const { return m_release; }
92 inline bool ReleaseHasBeenSet() const { return m_releaseHasBeenSet; }
93 template<typename ReleaseT = Aws::String>
94 void SetRelease(ReleaseT&& value) { m_releaseHasBeenSet = true; m_release = std::forward<ReleaseT>(value); }
95 template<typename ReleaseT = Aws::String>
96 VulnerablePackage& WithRelease(ReleaseT&& value) { SetRelease(std::forward<ReleaseT>(value)); return *this;}
98
100
103 inline const Aws::String& GetArch() const { return m_arch; }
104 inline bool ArchHasBeenSet() const { return m_archHasBeenSet; }
105 template<typename ArchT = Aws::String>
106 void SetArch(ArchT&& value) { m_archHasBeenSet = true; m_arch = std::forward<ArchT>(value); }
107 template<typename ArchT = Aws::String>
108 VulnerablePackage& WithArch(ArchT&& value) { SetArch(std::forward<ArchT>(value)); return *this;}
110
112
115 inline const Aws::String& GetPackageManager() const { return m_packageManager; }
116 inline bool PackageManagerHasBeenSet() const { return m_packageManagerHasBeenSet; }
117 template<typename PackageManagerT = Aws::String>
118 void SetPackageManager(PackageManagerT&& value) { m_packageManagerHasBeenSet = true; m_packageManager = std::forward<PackageManagerT>(value); }
119 template<typename PackageManagerT = Aws::String>
120 VulnerablePackage& WithPackageManager(PackageManagerT&& value) { SetPackageManager(std::forward<PackageManagerT>(value)); return *this;}
122
124
127 inline const Aws::String& GetFilePath() const { return m_filePath; }
128 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
129 template<typename FilePathT = Aws::String>
130 void SetFilePath(FilePathT&& value) { m_filePathHasBeenSet = true; m_filePath = std::forward<FilePathT>(value); }
131 template<typename FilePathT = Aws::String>
132 VulnerablePackage& WithFilePath(FilePathT&& value) { SetFilePath(std::forward<FilePathT>(value)); return *this;}
134
136
139 inline const Aws::String& GetFixedInVersion() const { return m_fixedInVersion; }
140 inline bool FixedInVersionHasBeenSet() const { return m_fixedInVersionHasBeenSet; }
141 template<typename FixedInVersionT = Aws::String>
142 void SetFixedInVersion(FixedInVersionT&& value) { m_fixedInVersionHasBeenSet = true; m_fixedInVersion = std::forward<FixedInVersionT>(value); }
143 template<typename FixedInVersionT = Aws::String>
144 VulnerablePackage& WithFixedInVersion(FixedInVersionT&& value) { SetFixedInVersion(std::forward<FixedInVersionT>(value)); return *this;}
146
148
152 inline const Aws::String& GetRemediation() const { return m_remediation; }
153 inline bool RemediationHasBeenSet() const { return m_remediationHasBeenSet; }
154 template<typename RemediationT = Aws::String>
155 void SetRemediation(RemediationT&& value) { m_remediationHasBeenSet = true; m_remediation = std::forward<RemediationT>(value); }
156 template<typename RemediationT = Aws::String>
157 VulnerablePackage& WithRemediation(RemediationT&& value) { SetRemediation(std::forward<RemediationT>(value)); return *this;}
159 private:
160
161 Aws::String m_name;
162 bool m_nameHasBeenSet = false;
163
164 Aws::String m_version;
165 bool m_versionHasBeenSet = false;
166
167 Aws::String m_sourceLayerHash;
168 bool m_sourceLayerHashHasBeenSet = false;
169
170 int m_epoch{0};
171 bool m_epochHasBeenSet = false;
172
173 Aws::String m_release;
174 bool m_releaseHasBeenSet = false;
175
176 Aws::String m_arch;
177 bool m_archHasBeenSet = false;
178
179 Aws::String m_packageManager;
180 bool m_packageManagerHasBeenSet = false;
181
182 Aws::String m_filePath;
183 bool m_filePathHasBeenSet = false;
184
185 Aws::String m_fixedInVersion;
186 bool m_fixedInVersionHasBeenSet = false;
187
188 Aws::String m_remediation;
189 bool m_remediationHasBeenSet = false;
190 };
191
192} // namespace Model
193} // namespace imagebuilder
194} // namespace Aws
VulnerablePackage & WithFixedInVersion(FixedInVersionT &&value)
VulnerablePackage & WithEpoch(int value)
void SetPackageManager(PackageManagerT &&value)
AWS_IMAGEBUILDER_API VulnerablePackage & operator=(Aws::Utils::Json::JsonView jsonValue)
VulnerablePackage & WithVersion(VersionT &&value)
VulnerablePackage & WithArch(ArchT &&value)
void SetSourceLayerHash(SourceLayerHashT &&value)
VulnerablePackage & WithSourceLayerHash(SourceLayerHashT &&value)
VulnerablePackage & WithRemediation(RemediationT &&value)
VulnerablePackage & WithName(NameT &&value)
VulnerablePackage & WithPackageManager(PackageManagerT &&value)
VulnerablePackage & WithRelease(ReleaseT &&value)
AWS_IMAGEBUILDER_API VulnerablePackage()=default
VulnerablePackage & WithFilePath(FilePathT &&value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFixedInVersion(FixedInVersionT &&value)
AWS_IMAGEBUILDER_API VulnerablePackage(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSourceLayerHash() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue