AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VulnerablePackage.h
1
6#pragma once
7#include <aws/ecr/ECR_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 ECR
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_ECR_API VulnerablePackage();
39
40
42
45 inline const Aws::String& GetArch() const{ return m_arch; }
46 inline bool ArchHasBeenSet() const { return m_archHasBeenSet; }
47 inline void SetArch(const Aws::String& value) { m_archHasBeenSet = true; m_arch = value; }
48 inline void SetArch(Aws::String&& value) { m_archHasBeenSet = true; m_arch = std::move(value); }
49 inline void SetArch(const char* value) { m_archHasBeenSet = true; m_arch.assign(value); }
50 inline VulnerablePackage& WithArch(const Aws::String& value) { SetArch(value); return *this;}
51 inline VulnerablePackage& WithArch(Aws::String&& value) { SetArch(std::move(value)); return *this;}
52 inline VulnerablePackage& WithArch(const char* value) { SetArch(value); return *this;}
54
56
59 inline int GetEpoch() const{ return m_epoch; }
60 inline bool EpochHasBeenSet() const { return m_epochHasBeenSet; }
61 inline void SetEpoch(int value) { m_epochHasBeenSet = true; m_epoch = value; }
62 inline VulnerablePackage& WithEpoch(int value) { SetEpoch(value); return *this;}
64
66
69 inline const Aws::String& GetFilePath() const{ return m_filePath; }
70 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
71 inline void SetFilePath(const Aws::String& value) { m_filePathHasBeenSet = true; m_filePath = value; }
72 inline void SetFilePath(Aws::String&& value) { m_filePathHasBeenSet = true; m_filePath = std::move(value); }
73 inline void SetFilePath(const char* value) { m_filePathHasBeenSet = true; m_filePath.assign(value); }
74 inline VulnerablePackage& WithFilePath(const Aws::String& value) { SetFilePath(value); return *this;}
75 inline VulnerablePackage& WithFilePath(Aws::String&& value) { SetFilePath(std::move(value)); return *this;}
76 inline VulnerablePackage& WithFilePath(const char* value) { SetFilePath(value); return *this;}
78
80
83 inline const Aws::String& GetName() const{ return m_name; }
84 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
85 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
86 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
87 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
88 inline VulnerablePackage& WithName(const Aws::String& value) { SetName(value); return *this;}
89 inline VulnerablePackage& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
90 inline VulnerablePackage& WithName(const char* value) { SetName(value); return *this;}
92
94
97 inline const Aws::String& GetPackageManager() const{ return m_packageManager; }
98 inline bool PackageManagerHasBeenSet() const { return m_packageManagerHasBeenSet; }
99 inline void SetPackageManager(const Aws::String& value) { m_packageManagerHasBeenSet = true; m_packageManager = value; }
100 inline void SetPackageManager(Aws::String&& value) { m_packageManagerHasBeenSet = true; m_packageManager = std::move(value); }
101 inline void SetPackageManager(const char* value) { m_packageManagerHasBeenSet = true; m_packageManager.assign(value); }
102 inline VulnerablePackage& WithPackageManager(const Aws::String& value) { SetPackageManager(value); return *this;}
103 inline VulnerablePackage& WithPackageManager(Aws::String&& value) { SetPackageManager(std::move(value)); return *this;}
104 inline VulnerablePackage& WithPackageManager(const char* value) { SetPackageManager(value); return *this;}
106
108
111 inline const Aws::String& GetRelease() const{ return m_release; }
112 inline bool ReleaseHasBeenSet() const { return m_releaseHasBeenSet; }
113 inline void SetRelease(const Aws::String& value) { m_releaseHasBeenSet = true; m_release = value; }
114 inline void SetRelease(Aws::String&& value) { m_releaseHasBeenSet = true; m_release = std::move(value); }
115 inline void SetRelease(const char* value) { m_releaseHasBeenSet = true; m_release.assign(value); }
116 inline VulnerablePackage& WithRelease(const Aws::String& value) { SetRelease(value); return *this;}
117 inline VulnerablePackage& WithRelease(Aws::String&& value) { SetRelease(std::move(value)); return *this;}
118 inline VulnerablePackage& WithRelease(const char* value) { SetRelease(value); return *this;}
120
122
125 inline const Aws::String& GetSourceLayerHash() const{ return m_sourceLayerHash; }
126 inline bool SourceLayerHashHasBeenSet() const { return m_sourceLayerHashHasBeenSet; }
127 inline void SetSourceLayerHash(const Aws::String& value) { m_sourceLayerHashHasBeenSet = true; m_sourceLayerHash = value; }
128 inline void SetSourceLayerHash(Aws::String&& value) { m_sourceLayerHashHasBeenSet = true; m_sourceLayerHash = std::move(value); }
129 inline void SetSourceLayerHash(const char* value) { m_sourceLayerHashHasBeenSet = true; m_sourceLayerHash.assign(value); }
130 inline VulnerablePackage& WithSourceLayerHash(const Aws::String& value) { SetSourceLayerHash(value); return *this;}
131 inline VulnerablePackage& WithSourceLayerHash(Aws::String&& value) { SetSourceLayerHash(std::move(value)); return *this;}
132 inline VulnerablePackage& WithSourceLayerHash(const char* value) { SetSourceLayerHash(value); return *this;}
134
136
139 inline const Aws::String& GetVersion() const{ return m_version; }
140 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
141 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
142 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
143 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
144 inline VulnerablePackage& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
145 inline VulnerablePackage& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
146 inline VulnerablePackage& WithVersion(const char* value) { SetVersion(value); return *this;}
148
150
153 inline const Aws::String& GetFixedInVersion() const{ return m_fixedInVersion; }
154 inline bool FixedInVersionHasBeenSet() const { return m_fixedInVersionHasBeenSet; }
155 inline void SetFixedInVersion(const Aws::String& value) { m_fixedInVersionHasBeenSet = true; m_fixedInVersion = value; }
156 inline void SetFixedInVersion(Aws::String&& value) { m_fixedInVersionHasBeenSet = true; m_fixedInVersion = std::move(value); }
157 inline void SetFixedInVersion(const char* value) { m_fixedInVersionHasBeenSet = true; m_fixedInVersion.assign(value); }
158 inline VulnerablePackage& WithFixedInVersion(const Aws::String& value) { SetFixedInVersion(value); return *this;}
159 inline VulnerablePackage& WithFixedInVersion(Aws::String&& value) { SetFixedInVersion(std::move(value)); return *this;}
160 inline VulnerablePackage& WithFixedInVersion(const char* value) { SetFixedInVersion(value); return *this;}
162 private:
163
164 Aws::String m_arch;
165 bool m_archHasBeenSet = false;
166
167 int m_epoch;
168 bool m_epochHasBeenSet = false;
169
170 Aws::String m_filePath;
171 bool m_filePathHasBeenSet = false;
172
173 Aws::String m_name;
174 bool m_nameHasBeenSet = false;
175
176 Aws::String m_packageManager;
177 bool m_packageManagerHasBeenSet = false;
178
179 Aws::String m_release;
180 bool m_releaseHasBeenSet = false;
181
182 Aws::String m_sourceLayerHash;
183 bool m_sourceLayerHashHasBeenSet = false;
184
185 Aws::String m_version;
186 bool m_versionHasBeenSet = false;
187
188 Aws::String m_fixedInVersion;
189 bool m_fixedInVersionHasBeenSet = false;
190 };
191
192} // namespace Model
193} // namespace ECR
194} // namespace Aws
VulnerablePackage & WithRelease(const char *value)
VulnerablePackage & WithRelease(Aws::String &&value)
void SetRelease(const Aws::String &value)
VulnerablePackage & WithSourceLayerHash(Aws::String &&value)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
VulnerablePackage & WithVersion(const char *value)
VulnerablePackage & WithArch(const char *value)
void SetSourceLayerHash(const Aws::String &value)
VulnerablePackage & WithName(const Aws::String &value)
void SetPackageManager(const Aws::String &value)
void SetFilePath(Aws::String &&value)
VulnerablePackage & WithFixedInVersion(const char *value)
const Aws::String & GetName() const
void SetArch(Aws::String &&value)
void SetSourceLayerHash(const char *value)
VulnerablePackage & WithName(const char *value)
VulnerablePackage & WithPackageManager(Aws::String &&value)
VulnerablePackage & WithSourceLayerHash(const Aws::String &value)
void SetRelease(Aws::String &&value)
const Aws::String & GetVersion() const
void SetFixedInVersion(const char *value)
void SetVersion(Aws::String &&value)
VulnerablePackage & WithPackageManager(const Aws::String &value)
const Aws::String & GetSourceLayerHash() const
VulnerablePackage & WithFilePath(Aws::String &&value)
void SetFilePath(const char *value)
VulnerablePackage & WithEpoch(int value)
const Aws::String & GetPackageManager() const
void SetFixedInVersion(const Aws::String &value)
AWS_ECR_API VulnerablePackage & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPackageManager(const char *value)
VulnerablePackage & WithFixedInVersion(Aws::String &&value)
VulnerablePackage & WithArch(const Aws::String &value)
VulnerablePackage & WithVersion(Aws::String &&value)
VulnerablePackage & WithVersion(const Aws::String &value)
const Aws::String & GetFilePath() const
VulnerablePackage & WithFilePath(const Aws::String &value)
const Aws::String & GetRelease() const
void SetSourceLayerHash(Aws::String &&value)
void SetArch(const Aws::String &value)
void SetVersion(const Aws::String &value)
const Aws::String & GetArch() const
const Aws::String & GetFixedInVersion() const
VulnerablePackage & WithRelease(const Aws::String &value)
VulnerablePackage & WithFixedInVersion(const Aws::String &value)
VulnerablePackage & WithArch(Aws::String &&value)
VulnerablePackage & WithFilePath(const char *value)
void SetName(const Aws::String &value)
void SetFixedInVersion(Aws::String &&value)
VulnerablePackage & WithSourceLayerHash(const char *value)
AWS_ECR_API VulnerablePackage(Aws::Utils::Json::JsonView jsonValue)
void SetName(Aws::String &&value)
VulnerablePackage & WithName(Aws::String &&value)
void SetFilePath(const Aws::String &value)
VulnerablePackage & WithPackageManager(const char *value)
void SetPackageManager(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue