AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PackageVersionDescription.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
8#include <aws/codeartifact/model/LicenseInfo.h>
9#include <aws/codeartifact/model/PackageFormat.h>
10#include <aws/codeartifact/model/PackageVersionOrigin.h>
11#include <aws/codeartifact/model/PackageVersionStatus.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace CodeArtifact {
26namespace Model {
27
34 public:
35 AWS_CODEARTIFACT_API PackageVersionDescription() = default;
38 AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline PackageFormat GetFormat() const { return m_format; }
45 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
46 inline void SetFormat(PackageFormat value) {
47 m_formatHasBeenSet = true;
48 m_format = value;
49 }
51 SetFormat(value);
52 return *this;
53 }
55
57
67 inline const Aws::String& GetNamespace() const { return m_namespace; }
68 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
69 template <typename NamespaceT = Aws::String>
70 void SetNamespace(NamespaceT&& value) {
71 m_namespaceHasBeenSet = true;
72 m_namespace = std::forward<NamespaceT>(value);
73 }
74 template <typename NamespaceT = Aws::String>
76 SetNamespace(std::forward<NamespaceT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetPackageName() const { return m_packageName; }
86 inline bool PackageNameHasBeenSet() const { return m_packageNameHasBeenSet; }
87 template <typename PackageNameT = Aws::String>
88 void SetPackageName(PackageNameT&& value) {
89 m_packageNameHasBeenSet = true;
90 m_packageName = std::forward<PackageNameT>(value);
91 }
92 template <typename PackageNameT = Aws::String>
94 SetPackageName(std::forward<PackageNameT>(value));
95 return *this;
96 }
98
100
107 inline const Aws::String& GetDisplayName() const { return m_displayName; }
108 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
109 template <typename DisplayNameT = Aws::String>
110 void SetDisplayName(DisplayNameT&& value) {
111 m_displayNameHasBeenSet = true;
112 m_displayName = std::forward<DisplayNameT>(value);
113 }
114 template <typename DisplayNameT = Aws::String>
116 SetDisplayName(std::forward<DisplayNameT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::String& GetVersion() const { return m_version; }
126 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
127 template <typename VersionT = Aws::String>
128 void SetVersion(VersionT&& value) {
129 m_versionHasBeenSet = true;
130 m_version = std::forward<VersionT>(value);
131 }
132 template <typename VersionT = Aws::String>
134 SetVersion(std::forward<VersionT>(value));
135 return *this;
136 }
138
140
145 inline const Aws::String& GetSummary() const { return m_summary; }
146 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
147 template <typename SummaryT = Aws::String>
148 void SetSummary(SummaryT&& value) {
149 m_summaryHasBeenSet = true;
150 m_summary = std::forward<SummaryT>(value);
151 }
152 template <typename SummaryT = Aws::String>
154 SetSummary(std::forward<SummaryT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::String& GetHomePage() const { return m_homePage; }
164 inline bool HomePageHasBeenSet() const { return m_homePageHasBeenSet; }
165 template <typename HomePageT = Aws::String>
166 void SetHomePage(HomePageT&& value) {
167 m_homePageHasBeenSet = true;
168 m_homePage = std::forward<HomePageT>(value);
169 }
170 template <typename HomePageT = Aws::String>
172 SetHomePage(std::forward<HomePageT>(value));
173 return *this;
174 }
176
178
182 inline const Aws::String& GetSourceCodeRepository() const { return m_sourceCodeRepository; }
183 inline bool SourceCodeRepositoryHasBeenSet() const { return m_sourceCodeRepositoryHasBeenSet; }
184 template <typename SourceCodeRepositoryT = Aws::String>
185 void SetSourceCodeRepository(SourceCodeRepositoryT&& value) {
186 m_sourceCodeRepositoryHasBeenSet = true;
187 m_sourceCodeRepository = std::forward<SourceCodeRepositoryT>(value);
188 }
189 template <typename SourceCodeRepositoryT = Aws::String>
190 PackageVersionDescription& WithSourceCodeRepository(SourceCodeRepositoryT&& value) {
191 SetSourceCodeRepository(std::forward<SourceCodeRepositoryT>(value));
192 return *this;
193 }
195
197
201 inline const Aws::Utils::DateTime& GetPublishedTime() const { return m_publishedTime; }
202 inline bool PublishedTimeHasBeenSet() const { return m_publishedTimeHasBeenSet; }
203 template <typename PublishedTimeT = Aws::Utils::DateTime>
204 void SetPublishedTime(PublishedTimeT&& value) {
205 m_publishedTimeHasBeenSet = true;
206 m_publishedTime = std::forward<PublishedTimeT>(value);
207 }
208 template <typename PublishedTimeT = Aws::Utils::DateTime>
210 SetPublishedTime(std::forward<PublishedTimeT>(value));
211 return *this;
212 }
214
216
219 inline const Aws::Vector<LicenseInfo>& GetLicenses() const { return m_licenses; }
220 inline bool LicensesHasBeenSet() const { return m_licensesHasBeenSet; }
221 template <typename LicensesT = Aws::Vector<LicenseInfo>>
222 void SetLicenses(LicensesT&& value) {
223 m_licensesHasBeenSet = true;
224 m_licenses = std::forward<LicensesT>(value);
225 }
226 template <typename LicensesT = Aws::Vector<LicenseInfo>>
228 SetLicenses(std::forward<LicensesT>(value));
229 return *this;
230 }
231 template <typename LicensesT = LicenseInfo>
233 m_licensesHasBeenSet = true;
234 m_licenses.emplace_back(std::forward<LicensesT>(value));
235 return *this;
236 }
238
240
243 inline const Aws::String& GetRevision() const { return m_revision; }
244 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
245 template <typename RevisionT = Aws::String>
246 void SetRevision(RevisionT&& value) {
247 m_revisionHasBeenSet = true;
248 m_revision = std::forward<RevisionT>(value);
249 }
250 template <typename RevisionT = Aws::String>
252 SetRevision(std::forward<RevisionT>(value));
253 return *this;
254 }
256
258
261 inline PackageVersionStatus GetStatus() const { return m_status; }
262 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
263 inline void SetStatus(PackageVersionStatus value) {
264 m_statusHasBeenSet = true;
265 m_status = value;
266 }
268 SetStatus(value);
269 return *this;
270 }
272
274
280 inline const PackageVersionOrigin& GetOrigin() const { return m_origin; }
281 inline bool OriginHasBeenSet() const { return m_originHasBeenSet; }
282 template <typename OriginT = PackageVersionOrigin>
283 void SetOrigin(OriginT&& value) {
284 m_originHasBeenSet = true;
285 m_origin = std::forward<OriginT>(value);
286 }
287 template <typename OriginT = PackageVersionOrigin>
289 SetOrigin(std::forward<OriginT>(value));
290 return *this;
291 }
293 private:
295
296 Aws::String m_namespace;
297
298 Aws::String m_packageName;
299
300 Aws::String m_displayName;
301
302 Aws::String m_version;
303
304 Aws::String m_summary;
305
306 Aws::String m_homePage;
307
308 Aws::String m_sourceCodeRepository;
309
310 Aws::Utils::DateTime m_publishedTime{};
311
312 Aws::Vector<LicenseInfo> m_licenses;
313
314 Aws::String m_revision;
315
317
318 PackageVersionOrigin m_origin;
319 bool m_formatHasBeenSet = false;
320 bool m_namespaceHasBeenSet = false;
321 bool m_packageNameHasBeenSet = false;
322 bool m_displayNameHasBeenSet = false;
323 bool m_versionHasBeenSet = false;
324 bool m_summaryHasBeenSet = false;
325 bool m_homePageHasBeenSet = false;
326 bool m_sourceCodeRepositoryHasBeenSet = false;
327 bool m_publishedTimeHasBeenSet = false;
328 bool m_licensesHasBeenSet = false;
329 bool m_revisionHasBeenSet = false;
330 bool m_statusHasBeenSet = false;
331 bool m_originHasBeenSet = false;
332};
333
334} // namespace Model
335} // namespace CodeArtifact
336} // namespace Aws
PackageVersionDescription & WithPackageName(PackageNameT &&value)
AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
PackageVersionDescription & WithHomePage(HomePageT &&value)
PackageVersionDescription & WithDisplayName(DisplayNameT &&value)
PackageVersionDescription & WithRevision(RevisionT &&value)
AWS_CODEARTIFACT_API PackageVersionDescription(Aws::Utils::Json::JsonView jsonValue)
PackageVersionDescription & WithLicenses(LicensesT &&value)
PackageVersionDescription & WithStatus(PackageVersionStatus value)
const Aws::Vector< LicenseInfo > & GetLicenses() const
AWS_CODEARTIFACT_API PackageVersionDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
PackageVersionDescription & WithVersion(VersionT &&value)
PackageVersionDescription & WithFormat(PackageFormat value)
PackageVersionDescription & AddLicenses(LicensesT &&value)
PackageVersionDescription & WithOrigin(OriginT &&value)
PackageVersionDescription & WithSourceCodeRepository(SourceCodeRepositoryT &&value)
PackageVersionDescription & WithNamespace(NamespaceT &&value)
PackageVersionDescription & WithPublishedTime(PublishedTimeT &&value)
AWS_CODEARTIFACT_API PackageVersionDescription()=default
PackageVersionDescription & WithSummary(SummaryT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue