AWS SDK for C++  1.9.125
AWS SDK for C++
ListPackagesResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace CodeArtifact
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
42  inline const Aws::Vector<PackageSummary>& GetPackages() const{ return m_packages; }
43 
49  inline void SetPackages(const Aws::Vector<PackageSummary>& value) { m_packages = value; }
50 
56  inline void SetPackages(Aws::Vector<PackageSummary>&& value) { m_packages = std::move(value); }
57 
63  inline ListPackagesResult& WithPackages(const Aws::Vector<PackageSummary>& value) { SetPackages(value); return *this;}
64 
70  inline ListPackagesResult& WithPackages(Aws::Vector<PackageSummary>&& value) { SetPackages(std::move(value)); return *this;}
71 
77  inline ListPackagesResult& AddPackages(const PackageSummary& value) { m_packages.push_back(value); return *this; }
78 
84  inline ListPackagesResult& AddPackages(PackageSummary&& value) { m_packages.push_back(std::move(value)); return *this; }
85 
86 
91  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
92 
97  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
98 
103  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
104 
109  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
110 
115  inline ListPackagesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
116 
121  inline ListPackagesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
122 
127  inline ListPackagesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
128 
129  private:
130 
131  Aws::Vector<PackageSummary> m_packages;
132 
133  Aws::String m_nextToken;
134  };
135 
136 } // namespace Model
137 } // namespace CodeArtifact
138 } // namespace Aws
Aws::CodeArtifact::Model::ListPackagesResult::SetPackages
void SetPackages(const Aws::Vector< PackageSummary > &value)
Definition: ListPackagesResult.h:49
Aws::CodeArtifact::Model::ListPackagesResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListPackagesResult.h:97
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
CodeArtifact_EXPORTS.h
Aws::CodeArtifact::Model::ListPackagesResult::WithNextToken
ListPackagesResult & WithNextToken(Aws::String &&value)
Definition: ListPackagesResult.h:121
Aws::CodeArtifact::Model::ListPackagesResult::WithPackages
ListPackagesResult & WithPackages(Aws::Vector< PackageSummary > &&value)
Definition: ListPackagesResult.h:70
Aws::CodeArtifact::Model::ListPackagesResult::AddPackages
ListPackagesResult & AddPackages(const PackageSummary &value)
Definition: ListPackagesResult.h:77
Aws::CodeArtifact::Model::ListPackagesResult::operator=
ListPackagesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
PackageSummary.h
Aws::CodeArtifact::Model::ListPackagesResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListPackagesResult.h:91
Aws::CodeArtifact::Model::ListPackagesResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListPackagesResult.h:103
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::CodeArtifact::Model::ListPackagesResult::AddPackages
ListPackagesResult & AddPackages(PackageSummary &&value)
Definition: ListPackagesResult.h:84
Aws::CodeArtifact::Model::ListPackagesResult::SetPackages
void SetPackages(Aws::Vector< PackageSummary > &&value)
Definition: ListPackagesResult.h:56
AWSString.h
Aws::CodeArtifact::Model::ListPackagesResult::WithPackages
ListPackagesResult & WithPackages(const Aws::Vector< PackageSummary > &value)
Definition: ListPackagesResult.h:63
AWS_CODEARTIFACT_API
#define AWS_CODEARTIFACT_API
Definition: CodeArtifact_EXPORTS.h:28
Aws::CodeArtifact::Model::PackageSummary
Definition: PackageSummary.h:36
Aws::CodeArtifact::Model::ListPackagesResult
Definition: ListPackagesResult.h:30
Aws
Definition: AccessManagementClient.h:15
Aws::CodeArtifact::Model::ListPackagesResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListPackagesResult.h:109
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeArtifact::Model::ListPackagesResult::GetPackages
const Aws::Vector< PackageSummary > & GetPackages() const
Definition: ListPackagesResult.h:42
Aws::CodeArtifact::Model::ListPackagesResult::ListPackagesResult
ListPackagesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodeArtifact::Model::ListPackagesResult::ListPackagesResult
ListPackagesResult()
Aws::CodeArtifact::Model::ListPackagesResult::WithNextToken
ListPackagesResult & WithNextToken(const Aws::String &value)
Definition: ListPackagesResult.h:115
Aws::CodeArtifact::Model::ListPackagesResult::WithNextToken
ListPackagesResult & WithNextToken(const char *value)
Definition: ListPackagesResult.h:127