AWS SDK for C++  1.9.129
AWS SDK for C++
ListRoutesResult.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 ListRoutesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
86 
94  inline ListRoutesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
95 
103  inline ListRoutesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
104 
105 
110  inline const Aws::Vector<RouteRef>& GetRoutes() const{ return m_routes; }
111 
116  inline void SetRoutes(const Aws::Vector<RouteRef>& value) { m_routes = value; }
117 
122  inline void SetRoutes(Aws::Vector<RouteRef>&& value) { m_routes = std::move(value); }
123 
128  inline ListRoutesResult& WithRoutes(const Aws::Vector<RouteRef>& value) { SetRoutes(value); return *this;}
129 
134  inline ListRoutesResult& WithRoutes(Aws::Vector<RouteRef>&& value) { SetRoutes(std::move(value)); return *this;}
135 
140  inline ListRoutesResult& AddRoutes(const RouteRef& value) { m_routes.push_back(value); return *this; }
141 
146  inline ListRoutesResult& AddRoutes(RouteRef&& value) { m_routes.push_back(std::move(value)); return *this; }
147 
148  private:
149 
150  Aws::String m_nextToken;
151 
152  Aws::Vector<RouteRef> m_routes;
153  };
154 
155 } // namespace Model
156 } // namespace AppMesh
157 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::AppMesh::Model::ListRoutesResult::AddRoutes
ListRoutesResult & AddRoutes(const RouteRef &value)
Definition: ListRoutesResult.h:140
RouteRef.h
Aws::AppMesh::Model::ListRoutesResult::ListRoutesResult
ListRoutesResult()
Aws::AppMesh::Model::ListRoutesResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListRoutesResult.h:67
Aws::AppMesh::Model::ListRoutesResult::ListRoutesResult
ListRoutesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::AppMesh::Model::ListRoutesResult::WithRoutes
ListRoutesResult & WithRoutes(const Aws::Vector< RouteRef > &value)
Definition: ListRoutesResult.h:128
Aws::AppMesh::Model::RouteRef
Definition: RouteRef.h:34
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AppMesh_EXPORTS.h
AWSVector.h
Aws::AppMesh::Model::ListRoutesResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListRoutesResult.h:49
Aws::AppMesh::Model::ListRoutesResult::SetRoutes
void SetRoutes(const Aws::Vector< RouteRef > &value)
Definition: ListRoutesResult.h:116
Aws::AppMesh::Model::ListRoutesResult::WithNextToken
ListRoutesResult & WithNextToken(const Aws::String &value)
Definition: ListRoutesResult.h:85
Aws::AppMesh::Model::ListRoutesResult::operator=
ListRoutesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::AppMesh::Model::ListRoutesResult::GetRoutes
const Aws::Vector< RouteRef > & GetRoutes() const
Definition: ListRoutesResult.h:110
Aws::AppMesh::Model::ListRoutesResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListRoutesResult.h:76
Aws::AppMesh::Model::ListRoutesResult::SetRoutes
void SetRoutes(Aws::Vector< RouteRef > &&value)
Definition: ListRoutesResult.h:122
Aws::AppMesh::Model::ListRoutesResult
Definition: ListRoutesResult.h:35
Aws::AppMesh::Model::ListRoutesResult::WithNextToken
ListRoutesResult & WithNextToken(Aws::String &&value)
Definition: ListRoutesResult.h:94
AWSString.h
Aws::AppMesh::Model::ListRoutesResult::WithRoutes
ListRoutesResult & WithRoutes(Aws::Vector< RouteRef > &&value)
Definition: ListRoutesResult.h:134
Aws::AppMesh::Model::ListRoutesResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListRoutesResult.h:58
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppMesh::Model::ListRoutesResult::AddRoutes
ListRoutesResult & AddRoutes(RouteRef &&value)
Definition: ListRoutesResult.h:146
Aws::AppMesh::Model::ListRoutesResult::WithNextToken
ListRoutesResult & WithNextToken(const char *value)
Definition: ListRoutesResult.h:103
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28