AWS SDK for C++  1.9.14
AWS SDK for C++
ListVirtualServicesResult.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 AppMesh
26 {
27 namespace Model
28 {
35  {
36  public:
40 
41 
49  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
50 
58  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
59 
67  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
68 
76  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
77 
85  inline ListVirtualServicesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
86 
94  inline ListVirtualServicesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
95 
103  inline ListVirtualServicesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
104 
105 
109  inline const Aws::Vector<VirtualServiceRef>& GetVirtualServices() const{ return m_virtualServices; }
110 
114  inline void SetVirtualServices(const Aws::Vector<VirtualServiceRef>& value) { m_virtualServices = value; }
115 
119  inline void SetVirtualServices(Aws::Vector<VirtualServiceRef>&& value) { m_virtualServices = std::move(value); }
120 
124  inline ListVirtualServicesResult& WithVirtualServices(const Aws::Vector<VirtualServiceRef>& value) { SetVirtualServices(value); return *this;}
125 
129  inline ListVirtualServicesResult& WithVirtualServices(Aws::Vector<VirtualServiceRef>&& value) { SetVirtualServices(std::move(value)); return *this;}
130 
134  inline ListVirtualServicesResult& AddVirtualServices(const VirtualServiceRef& value) { m_virtualServices.push_back(value); return *this; }
135 
139  inline ListVirtualServicesResult& AddVirtualServices(VirtualServiceRef&& value) { m_virtualServices.push_back(std::move(value)); return *this; }
140 
141  private:
142 
143  Aws::String m_nextToken;
144 
145  Aws::Vector<VirtualServiceRef> m_virtualServices;
146  };
147 
148 } // namespace Model
149 } // namespace AppMesh
150 } // namespace Aws
Aws::AppMesh::Model::ListVirtualServicesResult::ListVirtualServicesResult
ListVirtualServicesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::AppMesh::Model::ListVirtualServicesResult::SetVirtualServices
void SetVirtualServices(Aws::Vector< VirtualServiceRef > &&value)
Definition: ListVirtualServicesResult.h:119
Aws::AppMesh::Model::ListVirtualServicesResult
Definition: ListVirtualServicesResult.h:35
Aws::AppMesh::Model::ListVirtualServicesResult::WithNextToken
ListVirtualServicesResult & WithNextToken(const Aws::String &value)
Definition: ListVirtualServicesResult.h:85
Aws::AppMesh::Model::ListVirtualServicesResult::GetVirtualServices
const Aws::Vector< VirtualServiceRef > & GetVirtualServices() const
Definition: ListVirtualServicesResult.h:109
Aws::AppMesh::Model::ListVirtualServicesResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListVirtualServicesResult.h:67
Aws::AppMesh::Model::ListVirtualServicesResult::WithNextToken
ListVirtualServicesResult & WithNextToken(const char *value)
Definition: ListVirtualServicesResult.h:103
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AppMesh::Model::ListVirtualServicesResult::AddVirtualServices
ListVirtualServicesResult & AddVirtualServices(const VirtualServiceRef &value)
Definition: ListVirtualServicesResult.h:134
AppMesh_EXPORTS.h
AWSVector.h
Aws::AppMesh::Model::ListVirtualServicesResult::WithVirtualServices
ListVirtualServicesResult & WithVirtualServices(Aws::Vector< VirtualServiceRef > &&value)
Definition: ListVirtualServicesResult.h:129
Aws::AppMesh::Model::VirtualServiceRef
Definition: VirtualServiceRef.h:34
AWSString.h
Aws::AppMesh::Model::ListVirtualServicesResult::AddVirtualServices
ListVirtualServicesResult & AddVirtualServices(VirtualServiceRef &&value)
Definition: ListVirtualServicesResult.h:139
Aws::AppMesh::Model::ListVirtualServicesResult::SetVirtualServices
void SetVirtualServices(const Aws::Vector< VirtualServiceRef > &value)
Definition: ListVirtualServicesResult.h:114
Aws::AppMesh::Model::ListVirtualServicesResult::operator=
ListVirtualServicesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::ListVirtualServicesResult::WithNextToken
ListVirtualServicesResult & WithNextToken(Aws::String &&value)
Definition: ListVirtualServicesResult.h:94
Aws::AppMesh::Model::ListVirtualServicesResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListVirtualServicesResult.h:49
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppMesh::Model::ListVirtualServicesResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListVirtualServicesResult.h:76
Aws::AppMesh::Model::ListVirtualServicesResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListVirtualServicesResult.h:58
VirtualServiceRef.h
Aws::AppMesh::Model::ListVirtualServicesResult::WithVirtualServices
ListVirtualServicesResult & WithVirtualServices(const Aws::Vector< VirtualServiceRef > &value)
Definition: ListVirtualServicesResult.h:124
Aws::AppMesh::Model::ListVirtualServicesResult::ListVirtualServicesResult
ListVirtualServicesResult()
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28