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