AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
VulnerablePackage.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecr/ECR_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ECR {
20namespace Model {
21
29 public:
30 AWS_ECR_API VulnerablePackage() = default;
34
36
39 inline const Aws::String& GetArch() const { return m_arch; }
40 inline bool ArchHasBeenSet() const { return m_archHasBeenSet; }
41 template <typename ArchT = Aws::String>
42 void SetArch(ArchT&& value) {
43 m_archHasBeenSet = true;
44 m_arch = std::forward<ArchT>(value);
45 }
46 template <typename ArchT = Aws::String>
47 VulnerablePackage& WithArch(ArchT&& value) {
48 SetArch(std::forward<ArchT>(value));
49 return *this;
50 }
52
54
57 inline int GetEpoch() const { return m_epoch; }
58 inline bool EpochHasBeenSet() const { return m_epochHasBeenSet; }
59 inline void SetEpoch(int value) {
60 m_epochHasBeenSet = true;
61 m_epoch = value;
62 }
63 inline VulnerablePackage& WithEpoch(int value) {
64 SetEpoch(value);
65 return *this;
66 }
68
70
73 inline const Aws::String& GetFilePath() const { return m_filePath; }
74 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
75 template <typename FilePathT = Aws::String>
76 void SetFilePath(FilePathT&& value) {
77 m_filePathHasBeenSet = true;
78 m_filePath = std::forward<FilePathT>(value);
79 }
80 template <typename FilePathT = Aws::String>
81 VulnerablePackage& WithFilePath(FilePathT&& value) {
82 SetFilePath(std::forward<FilePathT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetName() const { return m_name; }
92 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
93 template <typename NameT = Aws::String>
94 void SetName(NameT&& value) {
95 m_nameHasBeenSet = true;
96 m_name = std::forward<NameT>(value);
97 }
98 template <typename NameT = Aws::String>
99 VulnerablePackage& WithName(NameT&& value) {
100 SetName(std::forward<NameT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetPackageManager() const { return m_packageManager; }
110 inline bool PackageManagerHasBeenSet() const { return m_packageManagerHasBeenSet; }
111 template <typename PackageManagerT = Aws::String>
112 void SetPackageManager(PackageManagerT&& value) {
113 m_packageManagerHasBeenSet = true;
114 m_packageManager = std::forward<PackageManagerT>(value);
115 }
116 template <typename PackageManagerT = Aws::String>
117 VulnerablePackage& WithPackageManager(PackageManagerT&& value) {
118 SetPackageManager(std::forward<PackageManagerT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::String& GetRelease() const { return m_release; }
128 inline bool ReleaseHasBeenSet() const { return m_releaseHasBeenSet; }
129 template <typename ReleaseT = Aws::String>
130 void SetRelease(ReleaseT&& value) {
131 m_releaseHasBeenSet = true;
132 m_release = std::forward<ReleaseT>(value);
133 }
134 template <typename ReleaseT = Aws::String>
135 VulnerablePackage& WithRelease(ReleaseT&& value) {
136 SetRelease(std::forward<ReleaseT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::String& GetSourceLayerHash() const { return m_sourceLayerHash; }
146 inline bool SourceLayerHashHasBeenSet() const { return m_sourceLayerHashHasBeenSet; }
147 template <typename SourceLayerHashT = Aws::String>
148 void SetSourceLayerHash(SourceLayerHashT&& value) {
149 m_sourceLayerHashHasBeenSet = true;
150 m_sourceLayerHash = std::forward<SourceLayerHashT>(value);
151 }
152 template <typename SourceLayerHashT = Aws::String>
153 VulnerablePackage& WithSourceLayerHash(SourceLayerHashT&& value) {
154 SetSourceLayerHash(std::forward<SourceLayerHashT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::String& GetVersion() const { return m_version; }
164 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
165 template <typename VersionT = Aws::String>
166 void SetVersion(VersionT&& value) {
167 m_versionHasBeenSet = true;
168 m_version = std::forward<VersionT>(value);
169 }
170 template <typename VersionT = Aws::String>
171 VulnerablePackage& WithVersion(VersionT&& value) {
172 SetVersion(std::forward<VersionT>(value));
173 return *this;
174 }
176
178
181 inline const Aws::String& GetFixedInVersion() const { return m_fixedInVersion; }
182 inline bool FixedInVersionHasBeenSet() const { return m_fixedInVersionHasBeenSet; }
183 template <typename FixedInVersionT = Aws::String>
184 void SetFixedInVersion(FixedInVersionT&& value) {
185 m_fixedInVersionHasBeenSet = true;
186 m_fixedInVersion = std::forward<FixedInVersionT>(value);
187 }
188 template <typename FixedInVersionT = Aws::String>
189 VulnerablePackage& WithFixedInVersion(FixedInVersionT&& value) {
190 SetFixedInVersion(std::forward<FixedInVersionT>(value));
191 return *this;
192 }
194 private:
195 Aws::String m_arch;
196
197 int m_epoch{0};
198
199 Aws::String m_filePath;
200
201 Aws::String m_name;
202
203 Aws::String m_packageManager;
204
205 Aws::String m_release;
206
207 Aws::String m_sourceLayerHash;
208
209 Aws::String m_version;
210
211 Aws::String m_fixedInVersion;
212 bool m_archHasBeenSet = false;
213 bool m_epochHasBeenSet = false;
214 bool m_filePathHasBeenSet = false;
215 bool m_nameHasBeenSet = false;
216 bool m_packageManagerHasBeenSet = false;
217 bool m_releaseHasBeenSet = false;
218 bool m_sourceLayerHashHasBeenSet = false;
219 bool m_versionHasBeenSet = false;
220 bool m_fixedInVersionHasBeenSet = false;
221};
222
223} // namespace Model
224} // namespace ECR
225} // namespace Aws
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
VulnerablePackage & WithArch(ArchT &&value)
void SetFilePath(FilePathT &&value)
VulnerablePackage & WithFixedInVersion(FixedInVersionT &&value)
void SetSourceLayerHash(SourceLayerHashT &&value)
AWS_ECR_API VulnerablePackage()=default
const Aws::String & GetName() const
VulnerablePackage & WithRelease(ReleaseT &&value)
VulnerablePackage & WithPackageManager(PackageManagerT &&value)
const Aws::String & GetVersion() const
VulnerablePackage & WithName(NameT &&value)
const Aws::String & GetSourceLayerHash() const
VulnerablePackage & WithEpoch(int value)
const Aws::String & GetPackageManager() const
void SetPackageManager(PackageManagerT &&value)
AWS_ECR_API VulnerablePackage & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetFilePath() const
const Aws::String & GetRelease() const
VulnerablePackage & WithFilePath(FilePathT &&value)
VulnerablePackage & WithSourceLayerHash(SourceLayerHashT &&value)
const Aws::String & GetArch() const
const Aws::String & GetFixedInVersion() const
VulnerablePackage & WithVersion(VersionT &&value)
void SetFixedInVersion(FixedInVersionT &&value)
AWS_ECR_API VulnerablePackage(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue