AWS SDK for C++  1.9.104
AWS SDK for C++
ListServicesResult.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<ServiceSummary>& GetServices() const{ return m_services; }
42 
47  inline void SetServices(const Aws::Vector<ServiceSummary>& value) { m_services = value; }
48 
53  inline void SetServices(Aws::Vector<ServiceSummary>&& value) { m_services = std::move(value); }
54 
59  inline ListServicesResult& WithServices(const Aws::Vector<ServiceSummary>& value) { SetServices(value); return *this;}
60 
65  inline ListServicesResult& WithServices(Aws::Vector<ServiceSummary>&& value) { SetServices(std::move(value)); return *this;}
66 
71  inline ListServicesResult& AddServices(const ServiceSummary& value) { m_services.push_back(value); return *this; }
72 
77  inline ListServicesResult& AddServices(ServiceSummary&& value) { m_services.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 ListServicesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
139 
150  inline ListServicesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
151 
162  inline ListServicesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
163 
164  private:
165 
166  Aws::Vector<ServiceSummary> m_services;
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::ListServicesResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListServicesResult.h:114
Aws::ServiceDiscovery::Model::ListServicesResult::ListServicesResult
ListServicesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::ListServicesResult::WithNextToken
ListServicesResult & WithNextToken(Aws::String &&value)
Definition: ListServicesResult.h:150
Aws::ServiceDiscovery::Model::ListServicesResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListServicesResult.h:90
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::ServiceDiscovery::Model::ListServicesResult::GetServices
const Aws::Vector< ServiceSummary > & GetServices() const
Definition: ListServicesResult.h:41
Aws::ServiceDiscovery::Model::ListServicesResult::WithServices
ListServicesResult & WithServices(const Aws::Vector< ServiceSummary > &value)
Definition: ListServicesResult.h:59
Aws::ServiceDiscovery::Model::ListServicesResult::AddServices
ListServicesResult & AddServices(const ServiceSummary &value)
Definition: ListServicesResult.h:71
Aws::ServiceDiscovery::Model::ListServicesResult::SetServices
void SetServices(const Aws::Vector< ServiceSummary > &value)
Definition: ListServicesResult.h:47
Aws::ServiceDiscovery::Model::ListServicesResult::WithServices
ListServicesResult & WithServices(Aws::Vector< ServiceSummary > &&value)
Definition: ListServicesResult.h:65
Aws::ServiceDiscovery::Model::ListServicesResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListServicesResult.h:126
Aws::ServiceDiscovery::Model::ListServicesResult::SetServices
void SetServices(Aws::Vector< ServiceSummary > &&value)
Definition: ListServicesResult.h:53
Aws::ServiceDiscovery::Model::ListServicesResult::operator=
ListServicesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ServiceDiscovery::Model::ListServicesResult::AddServices
ListServicesResult & AddServices(ServiceSummary &&value)
Definition: ListServicesResult.h:77
AWSString.h
Aws::ServiceDiscovery::Model::ListServicesResult::WithNextToken
ListServicesResult & WithNextToken(const Aws::String &value)
Definition: ListServicesResult.h:138
Aws::ServiceDiscovery::Model::ListServicesResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListServicesResult.h:102
Aws::ServiceDiscovery::Model::ListServicesResult
Definition: ListServicesResult.h:30
Aws
Definition: AccessManagementClient.h:15
ServiceSummary.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceDiscovery::Model::ListServicesResult::ListServicesResult
ListServicesResult()
Aws::ServiceDiscovery::Model::ListServicesResult::WithNextToken
ListServicesResult & WithNextToken(const char *value)
Definition: ListServicesResult.h:162
Aws::ServiceDiscovery::Model::ServiceSummary
Definition: ServiceSummary.h:38