AWS SDK for C++  1.9.153
AWS SDK for C++
ListPackageVersionsResult.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Json
22 {
23  class JsonValue;
24 } // namespace Json
25 } // namespace Utils
26 namespace CodeArtifact
27 {
28 namespace Model
29 {
31  {
32  public:
36 
37 
45  inline const Aws::String& GetDefaultDisplayVersion() const{ return m_defaultDisplayVersion; }
46 
54  inline void SetDefaultDisplayVersion(const Aws::String& value) { m_defaultDisplayVersion = value; }
55 
63  inline void SetDefaultDisplayVersion(Aws::String&& value) { m_defaultDisplayVersion = std::move(value); }
64 
72  inline void SetDefaultDisplayVersion(const char* value) { m_defaultDisplayVersion.assign(value); }
73 
81  inline ListPackageVersionsResult& WithDefaultDisplayVersion(const Aws::String& value) { SetDefaultDisplayVersion(value); return *this;}
82 
90  inline ListPackageVersionsResult& WithDefaultDisplayVersion(Aws::String&& value) { SetDefaultDisplayVersion(std::move(value)); return *this;}
91 
99  inline ListPackageVersionsResult& WithDefaultDisplayVersion(const char* value) { SetDefaultDisplayVersion(value); return *this;}
100 
101 
107  inline const PackageFormat& GetFormat() const{ return m_format; }
108 
114  inline void SetFormat(const PackageFormat& value) { m_format = value; }
115 
121  inline void SetFormat(PackageFormat&& value) { m_format = std::move(value); }
122 
128  inline ListPackageVersionsResult& WithFormat(const PackageFormat& value) { SetFormat(value); return *this;}
129 
135  inline ListPackageVersionsResult& WithFormat(PackageFormat&& value) { SetFormat(std::move(value)); return *this;}
136 
137 
146  inline const Aws::String& GetNamespace() const{ return m_namespace; }
147 
156  inline void SetNamespace(const Aws::String& value) { m_namespace = value; }
157 
166  inline void SetNamespace(Aws::String&& value) { m_namespace = std::move(value); }
167 
176  inline void SetNamespace(const char* value) { m_namespace.assign(value); }
177 
186  inline ListPackageVersionsResult& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
187 
196  inline ListPackageVersionsResult& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
197 
206  inline ListPackageVersionsResult& WithNamespace(const char* value) { SetNamespace(value); return *this;}
207 
208 
212  inline const Aws::String& GetPackage() const{ return m_package; }
213 
217  inline void SetPackage(const Aws::String& value) { m_package = value; }
218 
222  inline void SetPackage(Aws::String&& value) { m_package = std::move(value); }
223 
227  inline void SetPackage(const char* value) { m_package.assign(value); }
228 
232  inline ListPackageVersionsResult& WithPackage(const Aws::String& value) { SetPackage(value); return *this;}
233 
237  inline ListPackageVersionsResult& WithPackage(Aws::String&& value) { SetPackage(std::move(value)); return *this;}
238 
242  inline ListPackageVersionsResult& WithPackage(const char* value) { SetPackage(value); return *this;}
243 
244 
250  inline const Aws::Vector<PackageVersionSummary>& GetVersions() const{ return m_versions; }
251 
257  inline void SetVersions(const Aws::Vector<PackageVersionSummary>& value) { m_versions = value; }
258 
264  inline void SetVersions(Aws::Vector<PackageVersionSummary>&& value) { m_versions = std::move(value); }
265 
271  inline ListPackageVersionsResult& WithVersions(const Aws::Vector<PackageVersionSummary>& value) { SetVersions(value); return *this;}
272 
278  inline ListPackageVersionsResult& WithVersions(Aws::Vector<PackageVersionSummary>&& value) { SetVersions(std::move(value)); return *this;}
279 
285  inline ListPackageVersionsResult& AddVersions(const PackageVersionSummary& value) { m_versions.push_back(value); return *this; }
286 
292  inline ListPackageVersionsResult& AddVersions(PackageVersionSummary&& value) { m_versions.push_back(std::move(value)); return *this; }
293 
294 
299  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
300 
305  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
306 
311  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
312 
317  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
318 
323  inline ListPackageVersionsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
324 
329  inline ListPackageVersionsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
330 
335  inline ListPackageVersionsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
336 
337  private:
338 
339  Aws::String m_defaultDisplayVersion;
340 
341  PackageFormat m_format;
342 
343  Aws::String m_namespace;
344 
345  Aws::String m_package;
346 
348 
349  Aws::String m_nextToken;
350  };
351 
352 } // namespace Model
353 } // namespace CodeArtifact
354 } // namespace Aws
Aws::CodeArtifact::Model::ListPackageVersionsResult::GetNamespace
const Aws::String & GetNamespace() const
Definition: ListPackageVersionsResult.h:146
Aws::CodeArtifact::Model::ListPackageVersionsResult
Definition: ListPackageVersionsResult.h:31
Aws::CodeArtifact::Model::ListPackageVersionsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListPackageVersionsResult.h:305
Aws::CodeArtifact::Model::ListPackageVersionsResult::SetVersions
void SetVersions(const Aws::Vector< PackageVersionSummary > &value)
Definition: ListPackageVersionsResult.h:257
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
CodeArtifact_EXPORTS.h
Aws::CodeArtifact::Model::ListPackageVersionsResult::AddVersions
ListPackageVersionsResult & AddVersions(PackageVersionSummary &&value)
Definition: ListPackageVersionsResult.h:292
Aws::CodeArtifact::Model::ListPackageVersionsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListPackageVersionsResult.h:299
Aws::CodeArtifact::Model::ListPackageVersionsResult::WithVersions
ListPackageVersionsResult & WithVersions(Aws::Vector< PackageVersionSummary > &&value)
Definition: ListPackageVersionsResult.h:278
Aws::CodeArtifact::Model::ListPackageVersionsResult::GetVersions
const Aws::Vector< PackageVersionSummary > & GetVersions() const
Definition: ListPackageVersionsResult.h:250
Aws::CodeArtifact::Model::ListPackageVersionsResult::operator=
ListPackageVersionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodeArtifact::Model::ListPackageVersionsResult::WithNamespace
ListPackageVersionsResult & WithNamespace(Aws::String &&value)
Definition: ListPackageVersionsResult.h:196
Aws::CodeArtifact::Model::ListPackageVersionsResult::SetVersions
void SetVersions(Aws::Vector< PackageVersionSummary > &&value)
Definition: ListPackageVersionsResult.h:264
Aws::CodeArtifact::Model::ListPackageVersionsResult::SetNamespace
void SetNamespace(Aws::String &&value)
Definition: ListPackageVersionsResult.h:166
Aws::CodeArtifact::Model::ListPackageVersionsResult::SetNamespace
void SetNamespace(const char *value)
Definition: ListPackageVersionsResult.h:176
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CodeArtifact::Model::PackageVersionSummary
Definition: PackageVersionSummary.h:37
PackageVersionSummary.h
Aws::CodeArtifact::Model::ListPackageVersionsResult::WithNextToken
ListPackageVersionsResult & WithNextToken(const char *value)
Definition: ListPackageVersionsResult.h:335
AWSVector.h
Aws::CodeArtifact::Model::ListPackageVersionsResult::SetFormat
void SetFormat(const PackageFormat &value)
Definition: ListPackageVersionsResult.h:114
Aws::CodeArtifact::Model::ListPackageVersionsResult::WithNextToken
ListPackageVersionsResult & WithNextToken(const Aws::String &value)
Definition: ListPackageVersionsResult.h:323
Aws::CodeArtifact::Model::ListPackageVersionsResult::WithNamespace
ListPackageVersionsResult & WithNamespace(const char *value)
Definition: ListPackageVersionsResult.h:206
Aws::CodeArtifact::Model::ListPackageVersionsResult::WithPackage
ListPackageVersionsResult & WithPackage(const char *value)
Definition: ListPackageVersionsResult.h:242
Aws::CodeArtifact::Model::ListPackageVersionsResult::GetFormat
const PackageFormat & GetFormat() const
Definition: ListPackageVersionsResult.h:107
Aws::CodeArtifact::Model::ListPackageVersionsResult::WithDefaultDisplayVersion
ListPackageVersionsResult & WithDefaultDisplayVersion(Aws::String &&value)
Definition: ListPackageVersionsResult.h:90
Aws::CodeArtifact::Model::ListPackageVersionsResult::SetFormat
void SetFormat(PackageFormat &&value)
Definition: ListPackageVersionsResult.h:121
Aws::CodeArtifact::Model::ListPackageVersionsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListPackageVersionsResult.h:317
Aws::CodeArtifact::Model::ListPackageVersionsResult::GetDefaultDisplayVersion
const Aws::String & GetDefaultDisplayVersion() const
Definition: ListPackageVersionsResult.h:45
Aws::CodeArtifact::Model::ListPackageVersionsResult::WithVersions
ListPackageVersionsResult & WithVersions(const Aws::Vector< PackageVersionSummary > &value)
Definition: ListPackageVersionsResult.h:271
Aws::CodeArtifact::Model::ListPackageVersionsResult::WithFormat
ListPackageVersionsResult & WithFormat(const PackageFormat &value)
Definition: ListPackageVersionsResult.h:128
Aws::CodeArtifact::Model::ListPackageVersionsResult::SetDefaultDisplayVersion
void SetDefaultDisplayVersion(const Aws::String &value)
Definition: ListPackageVersionsResult.h:54
Aws::CodeArtifact::Model::ListPackageVersionsResult::WithPackage
ListPackageVersionsResult & WithPackage(Aws::String &&value)
Definition: ListPackageVersionsResult.h:237
PackageFormat.h
Aws::CodeArtifact::Model::ListPackageVersionsResult::SetDefaultDisplayVersion
void SetDefaultDisplayVersion(const char *value)
Definition: ListPackageVersionsResult.h:72
Aws::CodeArtifact::Model::ListPackageVersionsResult::WithFormat
ListPackageVersionsResult & WithFormat(PackageFormat &&value)
Definition: ListPackageVersionsResult.h:135
AWSString.h
Aws::CodeArtifact::Model::ListPackageVersionsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListPackageVersionsResult.h:311
Aws::CodeArtifact::Model::ListPackageVersionsResult::WithDefaultDisplayVersion
ListPackageVersionsResult & WithDefaultDisplayVersion(const char *value)
Definition: ListPackageVersionsResult.h:99
Aws::CodeArtifact::Model::ListPackageVersionsResult::GetPackage
const Aws::String & GetPackage() const
Definition: ListPackageVersionsResult.h:212
Aws::CodeArtifact::Model::ListPackageVersionsResult::SetNamespace
void SetNamespace(const Aws::String &value)
Definition: ListPackageVersionsResult.h:156
Aws::CodeArtifact::Model::ListPackageVersionsResult::ListPackageVersionsResult
ListPackageVersionsResult()
Aws::CodeArtifact::Model::ListPackageVersionsResult::WithPackage
ListPackageVersionsResult & WithPackage(const Aws::String &value)
Definition: ListPackageVersionsResult.h:232
Aws::CodeArtifact::Model::ListPackageVersionsResult::AddVersions
ListPackageVersionsResult & AddVersions(const PackageVersionSummary &value)
Definition: ListPackageVersionsResult.h:285
AWS_CODEARTIFACT_API
#define AWS_CODEARTIFACT_API
Definition: CodeArtifact_EXPORTS.h:28
Aws::CodeArtifact::Model::ListPackageVersionsResult::WithNextToken
ListPackageVersionsResult & WithNextToken(Aws::String &&value)
Definition: ListPackageVersionsResult.h:329
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::CodeArtifact::Model::PackageFormat
PackageFormat
Definition: PackageFormat.h:17
Aws::CodeArtifact::Model::ListPackageVersionsResult::SetPackage
void SetPackage(const Aws::String &value)
Definition: ListPackageVersionsResult.h:217
Aws::CodeArtifact::Model::ListPackageVersionsResult::ListPackageVersionsResult
ListPackageVersionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodeArtifact::Model::ListPackageVersionsResult::WithNamespace
ListPackageVersionsResult & WithNamespace(const Aws::String &value)
Definition: ListPackageVersionsResult.h:186
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeArtifact::Model::ListPackageVersionsResult::SetDefaultDisplayVersion
void SetDefaultDisplayVersion(Aws::String &&value)
Definition: ListPackageVersionsResult.h:63
Aws::CodeArtifact::Model::ListPackageVersionsResult::SetPackage
void SetPackage(Aws::String &&value)
Definition: ListPackageVersionsResult.h:222
Aws::CodeArtifact::Model::ListPackageVersionsResult::SetPackage
void SetPackage(const char *value)
Definition: ListPackageVersionsResult.h:227
Aws::CodeArtifact::Model::ListPackageVersionsResult::WithDefaultDisplayVersion
ListPackageVersionsResult & WithDefaultDisplayVersion(const Aws::String &value)
Definition: ListPackageVersionsResult.h:81