AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SoftwarePackage.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_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 SecurityHub
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_SECURITYHUB_API SoftwarePackage();
35 AWS_SECURITYHUB_API SoftwarePackage(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SECURITYHUB_API SoftwarePackage& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetName() const{ return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
47 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
48 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
49 inline SoftwarePackage& WithName(const Aws::String& value) { SetName(value); return *this;}
50 inline SoftwarePackage& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
51 inline SoftwarePackage& WithName(const char* value) { SetName(value); return *this;}
53
55
58 inline const Aws::String& GetVersion() const{ return m_version; }
59 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
60 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
61 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
62 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
63 inline SoftwarePackage& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
64 inline SoftwarePackage& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
65 inline SoftwarePackage& WithVersion(const char* value) { SetVersion(value); return *this;}
67
69
72 inline const Aws::String& GetEpoch() const{ return m_epoch; }
73 inline bool EpochHasBeenSet() const { return m_epochHasBeenSet; }
74 inline void SetEpoch(const Aws::String& value) { m_epochHasBeenSet = true; m_epoch = value; }
75 inline void SetEpoch(Aws::String&& value) { m_epochHasBeenSet = true; m_epoch = std::move(value); }
76 inline void SetEpoch(const char* value) { m_epochHasBeenSet = true; m_epoch.assign(value); }
77 inline SoftwarePackage& WithEpoch(const Aws::String& value) { SetEpoch(value); return *this;}
78 inline SoftwarePackage& WithEpoch(Aws::String&& value) { SetEpoch(std::move(value)); return *this;}
79 inline SoftwarePackage& WithEpoch(const char* value) { SetEpoch(value); return *this;}
81
83
86 inline const Aws::String& GetRelease() const{ return m_release; }
87 inline bool ReleaseHasBeenSet() const { return m_releaseHasBeenSet; }
88 inline void SetRelease(const Aws::String& value) { m_releaseHasBeenSet = true; m_release = value; }
89 inline void SetRelease(Aws::String&& value) { m_releaseHasBeenSet = true; m_release = std::move(value); }
90 inline void SetRelease(const char* value) { m_releaseHasBeenSet = true; m_release.assign(value); }
91 inline SoftwarePackage& WithRelease(const Aws::String& value) { SetRelease(value); return *this;}
92 inline SoftwarePackage& WithRelease(Aws::String&& value) { SetRelease(std::move(value)); return *this;}
93 inline SoftwarePackage& WithRelease(const char* value) { SetRelease(value); return *this;}
95
97
100 inline const Aws::String& GetArchitecture() const{ return m_architecture; }
101 inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; }
102 inline void SetArchitecture(const Aws::String& value) { m_architectureHasBeenSet = true; m_architecture = value; }
103 inline void SetArchitecture(Aws::String&& value) { m_architectureHasBeenSet = true; m_architecture = std::move(value); }
104 inline void SetArchitecture(const char* value) { m_architectureHasBeenSet = true; m_architecture.assign(value); }
105 inline SoftwarePackage& WithArchitecture(const Aws::String& value) { SetArchitecture(value); return *this;}
106 inline SoftwarePackage& WithArchitecture(Aws::String&& value) { SetArchitecture(std::move(value)); return *this;}
107 inline SoftwarePackage& WithArchitecture(const char* value) { SetArchitecture(value); return *this;}
109
111
114 inline const Aws::String& GetPackageManager() const{ return m_packageManager; }
115 inline bool PackageManagerHasBeenSet() const { return m_packageManagerHasBeenSet; }
116 inline void SetPackageManager(const Aws::String& value) { m_packageManagerHasBeenSet = true; m_packageManager = value; }
117 inline void SetPackageManager(Aws::String&& value) { m_packageManagerHasBeenSet = true; m_packageManager = std::move(value); }
118 inline void SetPackageManager(const char* value) { m_packageManagerHasBeenSet = true; m_packageManager.assign(value); }
119 inline SoftwarePackage& WithPackageManager(const Aws::String& value) { SetPackageManager(value); return *this;}
120 inline SoftwarePackage& WithPackageManager(Aws::String&& value) { SetPackageManager(std::move(value)); return *this;}
121 inline SoftwarePackage& WithPackageManager(const char* value) { SetPackageManager(value); return *this;}
123
125
128 inline const Aws::String& GetFilePath() const{ return m_filePath; }
129 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
130 inline void SetFilePath(const Aws::String& value) { m_filePathHasBeenSet = true; m_filePath = value; }
131 inline void SetFilePath(Aws::String&& value) { m_filePathHasBeenSet = true; m_filePath = std::move(value); }
132 inline void SetFilePath(const char* value) { m_filePathHasBeenSet = true; m_filePath.assign(value); }
133 inline SoftwarePackage& WithFilePath(const Aws::String& value) { SetFilePath(value); return *this;}
134 inline SoftwarePackage& WithFilePath(Aws::String&& value) { SetFilePath(std::move(value)); return *this;}
135 inline SoftwarePackage& WithFilePath(const char* value) { SetFilePath(value); return *this;}
137
139
143 inline const Aws::String& GetFixedInVersion() const{ return m_fixedInVersion; }
144 inline bool FixedInVersionHasBeenSet() const { return m_fixedInVersionHasBeenSet; }
145 inline void SetFixedInVersion(const Aws::String& value) { m_fixedInVersionHasBeenSet = true; m_fixedInVersion = value; }
146 inline void SetFixedInVersion(Aws::String&& value) { m_fixedInVersionHasBeenSet = true; m_fixedInVersion = std::move(value); }
147 inline void SetFixedInVersion(const char* value) { m_fixedInVersionHasBeenSet = true; m_fixedInVersion.assign(value); }
148 inline SoftwarePackage& WithFixedInVersion(const Aws::String& value) { SetFixedInVersion(value); return *this;}
149 inline SoftwarePackage& WithFixedInVersion(Aws::String&& value) { SetFixedInVersion(std::move(value)); return *this;}
150 inline SoftwarePackage& WithFixedInVersion(const char* value) { SetFixedInVersion(value); return *this;}
152
154
158 inline const Aws::String& GetRemediation() const{ return m_remediation; }
159 inline bool RemediationHasBeenSet() const { return m_remediationHasBeenSet; }
160 inline void SetRemediation(const Aws::String& value) { m_remediationHasBeenSet = true; m_remediation = value; }
161 inline void SetRemediation(Aws::String&& value) { m_remediationHasBeenSet = true; m_remediation = std::move(value); }
162 inline void SetRemediation(const char* value) { m_remediationHasBeenSet = true; m_remediation.assign(value); }
163 inline SoftwarePackage& WithRemediation(const Aws::String& value) { SetRemediation(value); return *this;}
164 inline SoftwarePackage& WithRemediation(Aws::String&& value) { SetRemediation(std::move(value)); return *this;}
165 inline SoftwarePackage& WithRemediation(const char* value) { SetRemediation(value); return *this;}
167
169
172 inline const Aws::String& GetSourceLayerHash() const{ return m_sourceLayerHash; }
173 inline bool SourceLayerHashHasBeenSet() const { return m_sourceLayerHashHasBeenSet; }
174 inline void SetSourceLayerHash(const Aws::String& value) { m_sourceLayerHashHasBeenSet = true; m_sourceLayerHash = value; }
175 inline void SetSourceLayerHash(Aws::String&& value) { m_sourceLayerHashHasBeenSet = true; m_sourceLayerHash = std::move(value); }
176 inline void SetSourceLayerHash(const char* value) { m_sourceLayerHashHasBeenSet = true; m_sourceLayerHash.assign(value); }
177 inline SoftwarePackage& WithSourceLayerHash(const Aws::String& value) { SetSourceLayerHash(value); return *this;}
178 inline SoftwarePackage& WithSourceLayerHash(Aws::String&& value) { SetSourceLayerHash(std::move(value)); return *this;}
179 inline SoftwarePackage& WithSourceLayerHash(const char* value) { SetSourceLayerHash(value); return *this;}
181
183
186 inline const Aws::String& GetSourceLayerArn() const{ return m_sourceLayerArn; }
187 inline bool SourceLayerArnHasBeenSet() const { return m_sourceLayerArnHasBeenSet; }
188 inline void SetSourceLayerArn(const Aws::String& value) { m_sourceLayerArnHasBeenSet = true; m_sourceLayerArn = value; }
189 inline void SetSourceLayerArn(Aws::String&& value) { m_sourceLayerArnHasBeenSet = true; m_sourceLayerArn = std::move(value); }
190 inline void SetSourceLayerArn(const char* value) { m_sourceLayerArnHasBeenSet = true; m_sourceLayerArn.assign(value); }
191 inline SoftwarePackage& WithSourceLayerArn(const Aws::String& value) { SetSourceLayerArn(value); return *this;}
192 inline SoftwarePackage& WithSourceLayerArn(Aws::String&& value) { SetSourceLayerArn(std::move(value)); return *this;}
193 inline SoftwarePackage& WithSourceLayerArn(const char* value) { SetSourceLayerArn(value); return *this;}
195 private:
196
197 Aws::String m_name;
198 bool m_nameHasBeenSet = false;
199
200 Aws::String m_version;
201 bool m_versionHasBeenSet = false;
202
203 Aws::String m_epoch;
204 bool m_epochHasBeenSet = false;
205
206 Aws::String m_release;
207 bool m_releaseHasBeenSet = false;
208
209 Aws::String m_architecture;
210 bool m_architectureHasBeenSet = false;
211
212 Aws::String m_packageManager;
213 bool m_packageManagerHasBeenSet = false;
214
215 Aws::String m_filePath;
216 bool m_filePathHasBeenSet = false;
217
218 Aws::String m_fixedInVersion;
219 bool m_fixedInVersionHasBeenSet = false;
220
221 Aws::String m_remediation;
222 bool m_remediationHasBeenSet = false;
223
224 Aws::String m_sourceLayerHash;
225 bool m_sourceLayerHashHasBeenSet = false;
226
227 Aws::String m_sourceLayerArn;
228 bool m_sourceLayerArnHasBeenSet = false;
229 };
230
231} // namespace Model
232} // namespace SecurityHub
233} // namespace Aws
SoftwarePackage & WithRelease(const Aws::String &value)
const Aws::String & GetPackageManager() const
SoftwarePackage & WithArchitecture(Aws::String &&value)
SoftwarePackage & WithSourceLayerHash(Aws::String &&value)
const Aws::String & GetEpoch() const
const Aws::String & GetRelease() const
void SetFixedInVersion(const Aws::String &value)
const Aws::String & GetFilePath() const
void SetPackageManager(const Aws::String &value)
void SetVersion(const Aws::String &value)
SoftwarePackage & WithName(Aws::String &&value)
void SetSourceLayerArn(Aws::String &&value)
AWS_SECURITYHUB_API SoftwarePackage & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetArchitecture(const Aws::String &value)
SoftwarePackage & WithSourceLayerArn(Aws::String &&value)
SoftwarePackage & WithPackageManager(Aws::String &&value)
SoftwarePackage & WithRelease(const char *value)
SoftwarePackage & WithVersion(Aws::String &&value)
SoftwarePackage & WithFilePath(const char *value)
SoftwarePackage & WithName(const char *value)
const Aws::String & GetSourceLayerArn() const
const Aws::String & GetVersion() const
void SetFixedInVersion(Aws::String &&value)
SoftwarePackage & WithArchitecture(const char *value)
void SetName(const Aws::String &value)
SoftwarePackage & WithVersion(const Aws::String &value)
void SetArchitecture(Aws::String &&value)
const Aws::String & GetName() const
SoftwarePackage & WithFilePath(const Aws::String &value)
SoftwarePackage & WithEpoch(const char *value)
const Aws::String & GetSourceLayerHash() const
SoftwarePackage & WithRemediation(Aws::String &&value)
SoftwarePackage & WithRemediation(const Aws::String &value)
void SetSourceLayerHash(const Aws::String &value)
void SetRelease(const Aws::String &value)
SoftwarePackage & WithPackageManager(const Aws::String &value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRemediation() const
void SetEpoch(const Aws::String &value)
SoftwarePackage & WithVersion(const char *value)
void SetSourceLayerHash(Aws::String &&value)
SoftwarePackage & WithName(const Aws::String &value)
SoftwarePackage & WithSourceLayerArn(const Aws::String &value)
AWS_SECURITYHUB_API SoftwarePackage(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetArchitecture() const
SoftwarePackage & WithEpoch(const Aws::String &value)
const Aws::String & GetFixedInVersion() const
SoftwarePackage & WithEpoch(Aws::String &&value)
SoftwarePackage & WithFixedInVersion(Aws::String &&value)
SoftwarePackage & WithRemediation(const char *value)
SoftwarePackage & WithSourceLayerHash(const char *value)
SoftwarePackage & WithSourceLayerArn(const char *value)
void SetPackageManager(Aws::String &&value)
SoftwarePackage & WithFixedInVersion(const char *value)
SoftwarePackage & WithSourceLayerHash(const Aws::String &value)
SoftwarePackage & WithFixedInVersion(const Aws::String &value)
void SetFilePath(const Aws::String &value)
void SetRemediation(const Aws::String &value)
SoftwarePackage & WithArchitecture(const Aws::String &value)
SoftwarePackage & WithFilePath(Aws::String &&value)
SoftwarePackage & WithRelease(Aws::String &&value)
SoftwarePackage & WithPackageManager(const char *value)
void SetSourceLayerArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue