AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PackageVersionDescription.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
8#include <aws/codeartifact/model/PackageFormat.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/codeartifact/model/PackageVersionStatus.h>
13#include <aws/codeartifact/model/PackageVersionOrigin.h>
14#include <aws/codeartifact/model/LicenseInfo.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace CodeArtifact
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_CODEARTIFACT_API PackageVersionDescription();
43 AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const PackageFormat& GetFormat() const{ return m_format; }
51 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
52 inline void SetFormat(const PackageFormat& value) { m_formatHasBeenSet = true; m_format = value; }
53 inline void SetFormat(PackageFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
54 inline PackageVersionDescription& WithFormat(const PackageFormat& value) { SetFormat(value); return *this;}
55 inline PackageVersionDescription& WithFormat(PackageFormat&& value) { SetFormat(std::move(value)); return *this;}
57
59
69 inline const Aws::String& GetNamespace() const{ return m_namespace; }
70 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
71 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
72 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
73 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
74 inline PackageVersionDescription& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
75 inline PackageVersionDescription& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
76 inline PackageVersionDescription& WithNamespace(const char* value) { SetNamespace(value); return *this;}
78
80
83 inline const Aws::String& GetPackageName() const{ return m_packageName; }
84 inline bool PackageNameHasBeenSet() const { return m_packageNameHasBeenSet; }
85 inline void SetPackageName(const Aws::String& value) { m_packageNameHasBeenSet = true; m_packageName = value; }
86 inline void SetPackageName(Aws::String&& value) { m_packageNameHasBeenSet = true; m_packageName = std::move(value); }
87 inline void SetPackageName(const char* value) { m_packageNameHasBeenSet = true; m_packageName.assign(value); }
88 inline PackageVersionDescription& WithPackageName(const Aws::String& value) { SetPackageName(value); return *this;}
89 inline PackageVersionDescription& WithPackageName(Aws::String&& value) { SetPackageName(std::move(value)); return *this;}
90 inline PackageVersionDescription& WithPackageName(const char* value) { SetPackageName(value); return *this;}
92
94
101 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
102 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
103 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
104 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
105 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
106 inline PackageVersionDescription& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
107 inline PackageVersionDescription& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
108 inline PackageVersionDescription& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
110
112
115 inline const Aws::String& GetVersion() const{ return m_version; }
116 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
117 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
118 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
119 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
120 inline PackageVersionDescription& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
121 inline PackageVersionDescription& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
122 inline PackageVersionDescription& WithVersion(const char* value) { SetVersion(value); return *this;}
124
126
131 inline const Aws::String& GetSummary() const{ return m_summary; }
132 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
133 inline void SetSummary(const Aws::String& value) { m_summaryHasBeenSet = true; m_summary = value; }
134 inline void SetSummary(Aws::String&& value) { m_summaryHasBeenSet = true; m_summary = std::move(value); }
135 inline void SetSummary(const char* value) { m_summaryHasBeenSet = true; m_summary.assign(value); }
136 inline PackageVersionDescription& WithSummary(const Aws::String& value) { SetSummary(value); return *this;}
137 inline PackageVersionDescription& WithSummary(Aws::String&& value) { SetSummary(std::move(value)); return *this;}
138 inline PackageVersionDescription& WithSummary(const char* value) { SetSummary(value); return *this;}
140
142
145 inline const Aws::String& GetHomePage() const{ return m_homePage; }
146 inline bool HomePageHasBeenSet() const { return m_homePageHasBeenSet; }
147 inline void SetHomePage(const Aws::String& value) { m_homePageHasBeenSet = true; m_homePage = value; }
148 inline void SetHomePage(Aws::String&& value) { m_homePageHasBeenSet = true; m_homePage = std::move(value); }
149 inline void SetHomePage(const char* value) { m_homePageHasBeenSet = true; m_homePage.assign(value); }
150 inline PackageVersionDescription& WithHomePage(const Aws::String& value) { SetHomePage(value); return *this;}
151 inline PackageVersionDescription& WithHomePage(Aws::String&& value) { SetHomePage(std::move(value)); return *this;}
152 inline PackageVersionDescription& WithHomePage(const char* value) { SetHomePage(value); return *this;}
154
156
160 inline const Aws::String& GetSourceCodeRepository() const{ return m_sourceCodeRepository; }
161 inline bool SourceCodeRepositoryHasBeenSet() const { return m_sourceCodeRepositoryHasBeenSet; }
162 inline void SetSourceCodeRepository(const Aws::String& value) { m_sourceCodeRepositoryHasBeenSet = true; m_sourceCodeRepository = value; }
163 inline void SetSourceCodeRepository(Aws::String&& value) { m_sourceCodeRepositoryHasBeenSet = true; m_sourceCodeRepository = std::move(value); }
164 inline void SetSourceCodeRepository(const char* value) { m_sourceCodeRepositoryHasBeenSet = true; m_sourceCodeRepository.assign(value); }
167 inline PackageVersionDescription& WithSourceCodeRepository(const char* value) { SetSourceCodeRepository(value); return *this;}
169
171
175 inline const Aws::Utils::DateTime& GetPublishedTime() const{ return m_publishedTime; }
176 inline bool PublishedTimeHasBeenSet() const { return m_publishedTimeHasBeenSet; }
177 inline void SetPublishedTime(const Aws::Utils::DateTime& value) { m_publishedTimeHasBeenSet = true; m_publishedTime = value; }
178 inline void SetPublishedTime(Aws::Utils::DateTime&& value) { m_publishedTimeHasBeenSet = true; m_publishedTime = std::move(value); }
180 inline PackageVersionDescription& WithPublishedTime(Aws::Utils::DateTime&& value) { SetPublishedTime(std::move(value)); return *this;}
182
184
187 inline const Aws::Vector<LicenseInfo>& GetLicenses() const{ return m_licenses; }
188 inline bool LicensesHasBeenSet() const { return m_licensesHasBeenSet; }
189 inline void SetLicenses(const Aws::Vector<LicenseInfo>& value) { m_licensesHasBeenSet = true; m_licenses = value; }
190 inline void SetLicenses(Aws::Vector<LicenseInfo>&& value) { m_licensesHasBeenSet = true; m_licenses = std::move(value); }
191 inline PackageVersionDescription& WithLicenses(const Aws::Vector<LicenseInfo>& value) { SetLicenses(value); return *this;}
192 inline PackageVersionDescription& WithLicenses(Aws::Vector<LicenseInfo>&& value) { SetLicenses(std::move(value)); return *this;}
193 inline PackageVersionDescription& AddLicenses(const LicenseInfo& value) { m_licensesHasBeenSet = true; m_licenses.push_back(value); return *this; }
194 inline PackageVersionDescription& AddLicenses(LicenseInfo&& value) { m_licensesHasBeenSet = true; m_licenses.push_back(std::move(value)); return *this; }
196
198
201 inline const Aws::String& GetRevision() const{ return m_revision; }
202 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
203 inline void SetRevision(const Aws::String& value) { m_revisionHasBeenSet = true; m_revision = value; }
204 inline void SetRevision(Aws::String&& value) { m_revisionHasBeenSet = true; m_revision = std::move(value); }
205 inline void SetRevision(const char* value) { m_revisionHasBeenSet = true; m_revision.assign(value); }
206 inline PackageVersionDescription& WithRevision(const Aws::String& value) { SetRevision(value); return *this;}
207 inline PackageVersionDescription& WithRevision(Aws::String&& value) { SetRevision(std::move(value)); return *this;}
208 inline PackageVersionDescription& WithRevision(const char* value) { SetRevision(value); return *this;}
210
212
215 inline const PackageVersionStatus& GetStatus() const{ return m_status; }
216 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
217 inline void SetStatus(const PackageVersionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
218 inline void SetStatus(PackageVersionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
219 inline PackageVersionDescription& WithStatus(const PackageVersionStatus& value) { SetStatus(value); return *this;}
220 inline PackageVersionDescription& WithStatus(PackageVersionStatus&& value) { SetStatus(std::move(value)); return *this;}
222
224
230 inline const PackageVersionOrigin& GetOrigin() const{ return m_origin; }
231 inline bool OriginHasBeenSet() const { return m_originHasBeenSet; }
232 inline void SetOrigin(const PackageVersionOrigin& value) { m_originHasBeenSet = true; m_origin = value; }
233 inline void SetOrigin(PackageVersionOrigin&& value) { m_originHasBeenSet = true; m_origin = std::move(value); }
234 inline PackageVersionDescription& WithOrigin(const PackageVersionOrigin& value) { SetOrigin(value); return *this;}
235 inline PackageVersionDescription& WithOrigin(PackageVersionOrigin&& value) { SetOrigin(std::move(value)); return *this;}
237 private:
238
239 PackageFormat m_format;
240 bool m_formatHasBeenSet = false;
241
242 Aws::String m_namespace;
243 bool m_namespaceHasBeenSet = false;
244
245 Aws::String m_packageName;
246 bool m_packageNameHasBeenSet = false;
247
248 Aws::String m_displayName;
249 bool m_displayNameHasBeenSet = false;
250
251 Aws::String m_version;
252 bool m_versionHasBeenSet = false;
253
254 Aws::String m_summary;
255 bool m_summaryHasBeenSet = false;
256
257 Aws::String m_homePage;
258 bool m_homePageHasBeenSet = false;
259
260 Aws::String m_sourceCodeRepository;
261 bool m_sourceCodeRepositoryHasBeenSet = false;
262
263 Aws::Utils::DateTime m_publishedTime;
264 bool m_publishedTimeHasBeenSet = false;
265
266 Aws::Vector<LicenseInfo> m_licenses;
267 bool m_licensesHasBeenSet = false;
268
269 Aws::String m_revision;
270 bool m_revisionHasBeenSet = false;
271
272 PackageVersionStatus m_status;
273 bool m_statusHasBeenSet = false;
274
275 PackageVersionOrigin m_origin;
276 bool m_originHasBeenSet = false;
277 };
278
279} // namespace Model
280} // namespace CodeArtifact
281} // namespace Aws
PackageVersionDescription & WithFormat(PackageFormat &&value)
PackageVersionDescription & WithStatus(PackageVersionStatus &&value)
AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
PackageVersionDescription & WithHomePage(const Aws::String &value)
PackageVersionDescription & AddLicenses(LicenseInfo &&value)
PackageVersionDescription & WithNamespace(Aws::String &&value)
PackageVersionDescription & WithVersion(const char *value)
PackageVersionDescription & WithDisplayName(const char *value)
PackageVersionDescription & WithSummary(Aws::String &&value)
PackageVersionDescription & WithPackageName(const Aws::String &value)
PackageVersionDescription & WithStatus(const PackageVersionStatus &value)
PackageVersionDescription & WithPackageName(Aws::String &&value)
AWS_CODEARTIFACT_API PackageVersionDescription(Aws::Utils::Json::JsonView jsonValue)
PackageVersionDescription & WithNamespace(const Aws::String &value)
PackageVersionDescription & WithRevision(Aws::String &&value)
PackageVersionDescription & WithOrigin(PackageVersionOrigin &&value)
PackageVersionDescription & WithFormat(const PackageFormat &value)
PackageVersionDescription & WithSourceCodeRepository(const char *value)
PackageVersionDescription & WithDisplayName(Aws::String &&value)
PackageVersionDescription & WithOrigin(const PackageVersionOrigin &value)
PackageVersionDescription & AddLicenses(const LicenseInfo &value)
const Aws::Vector< LicenseInfo > & GetLicenses() const
PackageVersionDescription & WithHomePage(Aws::String &&value)
AWS_CODEARTIFACT_API PackageVersionDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
PackageVersionDescription & WithPublishedTime(Aws::Utils::DateTime &&value)
PackageVersionDescription & WithLicenses(const Aws::Vector< LicenseInfo > &value)
PackageVersionDescription & WithNamespace(const char *value)
PackageVersionDescription & WithSourceCodeRepository(const Aws::String &value)
PackageVersionDescription & WithLicenses(Aws::Vector< LicenseInfo > &&value)
PackageVersionDescription & WithVersion(Aws::String &&value)
PackageVersionDescription & WithSummary(const char *value)
PackageVersionDescription & WithPackageName(const char *value)
PackageVersionDescription & WithVersion(const Aws::String &value)
PackageVersionDescription & WithRevision(const Aws::String &value)
PackageVersionDescription & WithDisplayName(const Aws::String &value)
void SetPublishedTime(const Aws::Utils::DateTime &value)
PackageVersionDescription & WithSourceCodeRepository(Aws::String &&value)
PackageVersionDescription & WithPublishedTime(const Aws::Utils::DateTime &value)
void SetLicenses(const Aws::Vector< LicenseInfo > &value)
PackageVersionDescription & WithHomePage(const char *value)
PackageVersionDescription & WithSummary(const Aws::String &value)
PackageVersionDescription & WithRevision(const char *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