AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename NameT = Aws::String>
47 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
48 template<typename NameT = Aws::String>
49 SoftwarePackage& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
60 template<typename VersionT = Aws::String>
61 SoftwarePackage& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
63
65
68 inline const Aws::String& GetEpoch() const { return m_epoch; }
69 inline bool EpochHasBeenSet() const { return m_epochHasBeenSet; }
70 template<typename EpochT = Aws::String>
71 void SetEpoch(EpochT&& value) { m_epochHasBeenSet = true; m_epoch = std::forward<EpochT>(value); }
72 template<typename EpochT = Aws::String>
73 SoftwarePackage& WithEpoch(EpochT&& value) { SetEpoch(std::forward<EpochT>(value)); return *this;}
75
77
80 inline const Aws::String& GetRelease() const { return m_release; }
81 inline bool ReleaseHasBeenSet() const { return m_releaseHasBeenSet; }
82 template<typename ReleaseT = Aws::String>
83 void SetRelease(ReleaseT&& value) { m_releaseHasBeenSet = true; m_release = std::forward<ReleaseT>(value); }
84 template<typename ReleaseT = Aws::String>
85 SoftwarePackage& WithRelease(ReleaseT&& value) { SetRelease(std::forward<ReleaseT>(value)); return *this;}
87
89
92 inline const Aws::String& GetArchitecture() const { return m_architecture; }
93 inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; }
94 template<typename ArchitectureT = Aws::String>
95 void SetArchitecture(ArchitectureT&& value) { m_architectureHasBeenSet = true; m_architecture = std::forward<ArchitectureT>(value); }
96 template<typename ArchitectureT = Aws::String>
97 SoftwarePackage& WithArchitecture(ArchitectureT&& value) { SetArchitecture(std::forward<ArchitectureT>(value)); return *this;}
99
101
104 inline const Aws::String& GetPackageManager() const { return m_packageManager; }
105 inline bool PackageManagerHasBeenSet() const { return m_packageManagerHasBeenSet; }
106 template<typename PackageManagerT = Aws::String>
107 void SetPackageManager(PackageManagerT&& value) { m_packageManagerHasBeenSet = true; m_packageManager = std::forward<PackageManagerT>(value); }
108 template<typename PackageManagerT = Aws::String>
109 SoftwarePackage& WithPackageManager(PackageManagerT&& value) { SetPackageManager(std::forward<PackageManagerT>(value)); return *this;}
111
113
116 inline const Aws::String& GetFilePath() const { return m_filePath; }
117 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
118 template<typename FilePathT = Aws::String>
119 void SetFilePath(FilePathT&& value) { m_filePathHasBeenSet = true; m_filePath = std::forward<FilePathT>(value); }
120 template<typename FilePathT = Aws::String>
121 SoftwarePackage& WithFilePath(FilePathT&& value) { SetFilePath(std::forward<FilePathT>(value)); return *this;}
123
125
129 inline const Aws::String& GetFixedInVersion() const { return m_fixedInVersion; }
130 inline bool FixedInVersionHasBeenSet() const { return m_fixedInVersionHasBeenSet; }
131 template<typename FixedInVersionT = Aws::String>
132 void SetFixedInVersion(FixedInVersionT&& value) { m_fixedInVersionHasBeenSet = true; m_fixedInVersion = std::forward<FixedInVersionT>(value); }
133 template<typename FixedInVersionT = Aws::String>
134 SoftwarePackage& WithFixedInVersion(FixedInVersionT&& value) { SetFixedInVersion(std::forward<FixedInVersionT>(value)); return *this;}
136
138
142 inline const Aws::String& GetRemediation() const { return m_remediation; }
143 inline bool RemediationHasBeenSet() const { return m_remediationHasBeenSet; }
144 template<typename RemediationT = Aws::String>
145 void SetRemediation(RemediationT&& value) { m_remediationHasBeenSet = true; m_remediation = std::forward<RemediationT>(value); }
146 template<typename RemediationT = Aws::String>
147 SoftwarePackage& WithRemediation(RemediationT&& value) { SetRemediation(std::forward<RemediationT>(value)); return *this;}
149
151
154 inline const Aws::String& GetSourceLayerHash() const { return m_sourceLayerHash; }
155 inline bool SourceLayerHashHasBeenSet() const { return m_sourceLayerHashHasBeenSet; }
156 template<typename SourceLayerHashT = Aws::String>
157 void SetSourceLayerHash(SourceLayerHashT&& value) { m_sourceLayerHashHasBeenSet = true; m_sourceLayerHash = std::forward<SourceLayerHashT>(value); }
158 template<typename SourceLayerHashT = Aws::String>
159 SoftwarePackage& WithSourceLayerHash(SourceLayerHashT&& value) { SetSourceLayerHash(std::forward<SourceLayerHashT>(value)); return *this;}
161
163
166 inline const Aws::String& GetSourceLayerArn() const { return m_sourceLayerArn; }
167 inline bool SourceLayerArnHasBeenSet() const { return m_sourceLayerArnHasBeenSet; }
168 template<typename SourceLayerArnT = Aws::String>
169 void SetSourceLayerArn(SourceLayerArnT&& value) { m_sourceLayerArnHasBeenSet = true; m_sourceLayerArn = std::forward<SourceLayerArnT>(value); }
170 template<typename SourceLayerArnT = Aws::String>
171 SoftwarePackage& WithSourceLayerArn(SourceLayerArnT&& value) { SetSourceLayerArn(std::forward<SourceLayerArnT>(value)); return *this;}
173 private:
174
175 Aws::String m_name;
176 bool m_nameHasBeenSet = false;
177
178 Aws::String m_version;
179 bool m_versionHasBeenSet = false;
180
181 Aws::String m_epoch;
182 bool m_epochHasBeenSet = false;
183
184 Aws::String m_release;
185 bool m_releaseHasBeenSet = false;
186
187 Aws::String m_architecture;
188 bool m_architectureHasBeenSet = false;
189
190 Aws::String m_packageManager;
191 bool m_packageManagerHasBeenSet = false;
192
193 Aws::String m_filePath;
194 bool m_filePathHasBeenSet = false;
195
196 Aws::String m_fixedInVersion;
197 bool m_fixedInVersionHasBeenSet = false;
198
199 Aws::String m_remediation;
200 bool m_remediationHasBeenSet = false;
201
202 Aws::String m_sourceLayerHash;
203 bool m_sourceLayerHashHasBeenSet = false;
204
205 Aws::String m_sourceLayerArn;
206 bool m_sourceLayerArnHasBeenSet = false;
207 };
208
209} // namespace Model
210} // namespace SecurityHub
211} // 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