AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
SoftwarePackage.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SecurityHub {
20namespace Model {
21
28 public:
29 AWS_SECURITYHUB_API SoftwarePackage() = default;
30 AWS_SECURITYHUB_API SoftwarePackage(Aws::Utils::Json::JsonView jsonValue);
31 AWS_SECURITYHUB_API SoftwarePackage& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
46 SoftwarePackage& WithName(NameT&& value) {
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetVersion() const { return m_version; }
57 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
58 template <typename VersionT = Aws::String>
59 void SetVersion(VersionT&& value) {
60 m_versionHasBeenSet = true;
61 m_version = std::forward<VersionT>(value);
62 }
63 template <typename VersionT = Aws::String>
64 SoftwarePackage& WithVersion(VersionT&& value) {
65 SetVersion(std::forward<VersionT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetEpoch() const { return m_epoch; }
75 inline bool EpochHasBeenSet() const { return m_epochHasBeenSet; }
76 template <typename EpochT = Aws::String>
77 void SetEpoch(EpochT&& value) {
78 m_epochHasBeenSet = true;
79 m_epoch = std::forward<EpochT>(value);
80 }
81 template <typename EpochT = Aws::String>
82 SoftwarePackage& WithEpoch(EpochT&& value) {
83 SetEpoch(std::forward<EpochT>(value));
84 return *this;
85 }
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) {
96 m_releaseHasBeenSet = true;
97 m_release = std::forward<ReleaseT>(value);
98 }
99 template <typename ReleaseT = Aws::String>
100 SoftwarePackage& WithRelease(ReleaseT&& value) {
101 SetRelease(std::forward<ReleaseT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetArchitecture() const { return m_architecture; }
111 inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; }
112 template <typename ArchitectureT = Aws::String>
113 void SetArchitecture(ArchitectureT&& value) {
114 m_architectureHasBeenSet = true;
115 m_architecture = std::forward<ArchitectureT>(value);
116 }
117 template <typename ArchitectureT = Aws::String>
118 SoftwarePackage& WithArchitecture(ArchitectureT&& value) {
119 SetArchitecture(std::forward<ArchitectureT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::String& GetPackageManager() const { return m_packageManager; }
129 inline bool PackageManagerHasBeenSet() const { return m_packageManagerHasBeenSet; }
130 template <typename PackageManagerT = Aws::String>
131 void SetPackageManager(PackageManagerT&& value) {
132 m_packageManagerHasBeenSet = true;
133 m_packageManager = std::forward<PackageManagerT>(value);
134 }
135 template <typename PackageManagerT = Aws::String>
136 SoftwarePackage& WithPackageManager(PackageManagerT&& value) {
137 SetPackageManager(std::forward<PackageManagerT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::String& GetFilePath() const { return m_filePath; }
147 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
148 template <typename FilePathT = Aws::String>
149 void SetFilePath(FilePathT&& value) {
150 m_filePathHasBeenSet = true;
151 m_filePath = std::forward<FilePathT>(value);
152 }
153 template <typename FilePathT = Aws::String>
154 SoftwarePackage& WithFilePath(FilePathT&& value) {
155 SetFilePath(std::forward<FilePathT>(value));
156 return *this;
157 }
159
161
165 inline const Aws::String& GetFixedInVersion() const { return m_fixedInVersion; }
166 inline bool FixedInVersionHasBeenSet() const { return m_fixedInVersionHasBeenSet; }
167 template <typename FixedInVersionT = Aws::String>
168 void SetFixedInVersion(FixedInVersionT&& value) {
169 m_fixedInVersionHasBeenSet = true;
170 m_fixedInVersion = std::forward<FixedInVersionT>(value);
171 }
172 template <typename FixedInVersionT = Aws::String>
173 SoftwarePackage& WithFixedInVersion(FixedInVersionT&& value) {
174 SetFixedInVersion(std::forward<FixedInVersionT>(value));
175 return *this;
176 }
178
180
184 inline const Aws::String& GetRemediation() const { return m_remediation; }
185 inline bool RemediationHasBeenSet() const { return m_remediationHasBeenSet; }
186 template <typename RemediationT = Aws::String>
187 void SetRemediation(RemediationT&& value) {
188 m_remediationHasBeenSet = true;
189 m_remediation = std::forward<RemediationT>(value);
190 }
191 template <typename RemediationT = Aws::String>
192 SoftwarePackage& WithRemediation(RemediationT&& value) {
193 SetRemediation(std::forward<RemediationT>(value));
194 return *this;
195 }
197
199
202 inline const Aws::String& GetSourceLayerHash() const { return m_sourceLayerHash; }
203 inline bool SourceLayerHashHasBeenSet() const { return m_sourceLayerHashHasBeenSet; }
204 template <typename SourceLayerHashT = Aws::String>
205 void SetSourceLayerHash(SourceLayerHashT&& value) {
206 m_sourceLayerHashHasBeenSet = true;
207 m_sourceLayerHash = std::forward<SourceLayerHashT>(value);
208 }
209 template <typename SourceLayerHashT = Aws::String>
210 SoftwarePackage& WithSourceLayerHash(SourceLayerHashT&& value) {
211 SetSourceLayerHash(std::forward<SourceLayerHashT>(value));
212 return *this;
213 }
215
217
220 inline const Aws::String& GetSourceLayerArn() const { return m_sourceLayerArn; }
221 inline bool SourceLayerArnHasBeenSet() const { return m_sourceLayerArnHasBeenSet; }
222 template <typename SourceLayerArnT = Aws::String>
223 void SetSourceLayerArn(SourceLayerArnT&& value) {
224 m_sourceLayerArnHasBeenSet = true;
225 m_sourceLayerArn = std::forward<SourceLayerArnT>(value);
226 }
227 template <typename SourceLayerArnT = Aws::String>
228 SoftwarePackage& WithSourceLayerArn(SourceLayerArnT&& value) {
229 SetSourceLayerArn(std::forward<SourceLayerArnT>(value));
230 return *this;
231 }
233 private:
234 Aws::String m_name;
235
236 Aws::String m_version;
237
238 Aws::String m_epoch;
239
240 Aws::String m_release;
241
242 Aws::String m_architecture;
243
244 Aws::String m_packageManager;
245
246 Aws::String m_filePath;
247
248 Aws::String m_fixedInVersion;
249
250 Aws::String m_remediation;
251
252 Aws::String m_sourceLayerHash;
253
254 Aws::String m_sourceLayerArn;
255 bool m_nameHasBeenSet = false;
256 bool m_versionHasBeenSet = false;
257 bool m_epochHasBeenSet = false;
258 bool m_releaseHasBeenSet = false;
259 bool m_architectureHasBeenSet = false;
260 bool m_packageManagerHasBeenSet = false;
261 bool m_filePathHasBeenSet = false;
262 bool m_fixedInVersionHasBeenSet = false;
263 bool m_remediationHasBeenSet = false;
264 bool m_sourceLayerHashHasBeenSet = false;
265 bool m_sourceLayerArnHasBeenSet = false;
266};
267
268} // namespace Model
269} // namespace SecurityHub
270} // namespace Aws
const Aws::String & GetPackageManager() const
AWS_SECURITYHUB_API SoftwarePackage()=default
SoftwarePackage & WithRelease(ReleaseT &&value)
const Aws::String & GetEpoch() const
const Aws::String & GetRelease() const
void SetFixedInVersion(FixedInVersionT &&value)
const Aws::String & GetFilePath() const
SoftwarePackage & WithPackageManager(PackageManagerT &&value)
void SetRemediation(RemediationT &&value)
AWS_SECURITYHUB_API SoftwarePackage & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSourceLayerArn() const
const Aws::String & GetVersion() const
void SetPackageManager(PackageManagerT &&value)
SoftwarePackage & WithEpoch(EpochT &&value)
void SetArchitecture(ArchitectureT &&value)
const Aws::String & GetName() const
const Aws::String & GetSourceLayerHash() const
SoftwarePackage & WithSourceLayerArn(SourceLayerArnT &&value)
void SetSourceLayerHash(SourceLayerHashT &&value)
SoftwarePackage & WithFilePath(FilePathT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRemediation() const
AWS_SECURITYHUB_API SoftwarePackage(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetArchitecture() const
SoftwarePackage & WithRemediation(RemediationT &&value)
SoftwarePackage & WithSourceLayerHash(SourceLayerHashT &&value)
const Aws::String & GetFixedInVersion() const
SoftwarePackage & WithName(NameT &&value)
void SetSourceLayerArn(SourceLayerArnT &&value)
SoftwarePackage & WithVersion(VersionT &&value)
SoftwarePackage & WithFixedInVersion(FixedInVersionT &&value)
SoftwarePackage & WithArchitecture(ArchitectureT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue