AWS SDK for C++  1.9.104
AWS SDK for C++
ListNamespacesResult.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 ServiceDiscovery
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
41  inline const Aws::Vector<NamespaceSummary>& GetNamespaces() const{ return m_namespaces; }
42 
47  inline void SetNamespaces(const Aws::Vector<NamespaceSummary>& value) { m_namespaces = value; }
48 
53  inline void SetNamespaces(Aws::Vector<NamespaceSummary>&& value) { m_namespaces = std::move(value); }
54 
59  inline ListNamespacesResult& WithNamespaces(const Aws::Vector<NamespaceSummary>& value) { SetNamespaces(value); return *this;}
60 
65  inline ListNamespacesResult& WithNamespaces(Aws::Vector<NamespaceSummary>&& value) { SetNamespaces(std::move(value)); return *this;}
66 
71  inline ListNamespacesResult& AddNamespaces(const NamespaceSummary& value) { m_namespaces.push_back(value); return *this; }
72 
77  inline ListNamespacesResult& AddNamespaces(NamespaceSummary&& value) { m_namespaces.push_back(std::move(value)); return *this; }
78 
79 
90  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
91 
102  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
103 
114  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
115 
126  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
127 
138  inline ListNamespacesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
139 
150  inline ListNamespacesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
151 
162  inline ListNamespacesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
163 
164  private:
165 
166  Aws::Vector<NamespaceSummary> m_namespaces;
167 
168  Aws::String m_nextToken;
169  };
170 
171 } // namespace Model
172 } // namespace ServiceDiscovery
173 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
Aws::ServiceDiscovery::Model::ListNamespacesResult
Definition: ListNamespacesResult.h:30
Aws::ServiceDiscovery::Model::ListNamespacesResult::AddNamespaces
ListNamespacesResult & AddNamespaces(NamespaceSummary &&value)
Definition: ListNamespacesResult.h:77
Aws::ServiceDiscovery::Model::ListNamespacesResult::WithNamespaces
ListNamespacesResult & WithNamespaces(const Aws::Vector< NamespaceSummary > &value)
Definition: ListNamespacesResult.h:59
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::ListNamespacesResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListNamespacesResult.h:102
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ServiceDiscovery::Model::ListNamespacesResult::ListNamespacesResult
ListNamespacesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ServiceDiscovery::Model::NamespaceSummary
Definition: NamespaceSummary.h:36
AWSVector.h
Aws::ServiceDiscovery::Model::ListNamespacesResult::WithNextToken
ListNamespacesResult & WithNextToken(Aws::String &&value)
Definition: ListNamespacesResult.h:150
Aws::ServiceDiscovery::Model::ListNamespacesResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListNamespacesResult.h:90
Aws::ServiceDiscovery::Model::ListNamespacesResult::operator=
ListNamespacesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ServiceDiscovery::Model::ListNamespacesResult::WithNamespaces
ListNamespacesResult & WithNamespaces(Aws::Vector< NamespaceSummary > &&value)
Definition: ListNamespacesResult.h:65
Aws::ServiceDiscovery::Model::ListNamespacesResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListNamespacesResult.h:114
AWSString.h
Aws::ServiceDiscovery::Model::ListNamespacesResult::ListNamespacesResult
ListNamespacesResult()
Aws::ServiceDiscovery::Model::ListNamespacesResult::WithNextToken
ListNamespacesResult & WithNextToken(const Aws::String &value)
Definition: ListNamespacesResult.h:138
Aws::ServiceDiscovery::Model::ListNamespacesResult::GetNamespaces
const Aws::Vector< NamespaceSummary > & GetNamespaces() const
Definition: ListNamespacesResult.h:41
Aws::ServiceDiscovery::Model::ListNamespacesResult::SetNamespaces
void SetNamespaces(const Aws::Vector< NamespaceSummary > &value)
Definition: ListNamespacesResult.h:47
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceDiscovery::Model::ListNamespacesResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListNamespacesResult.h:126
Aws::ServiceDiscovery::Model::ListNamespacesResult::WithNextToken
ListNamespacesResult & WithNextToken(const char *value)
Definition: ListNamespacesResult.h:162
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceDiscovery::Model::ListNamespacesResult::SetNamespaces
void SetNamespaces(Aws::Vector< NamespaceSummary > &&value)
Definition: ListNamespacesResult.h:53
NamespaceSummary.h
Aws::ServiceDiscovery::Model::ListNamespacesResult::AddNamespaces
ListNamespacesResult & AddNamespaces(const NamespaceSummary &value)
Definition: ListNamespacesResult.h:71