AWS SDK for C++  1.9.47
AWS SDK for C++
ListGameServersResult.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 GameLift
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<GameServer>& GetGameServers() const{ return m_gameServers; }
41 
45  inline void SetGameServers(const Aws::Vector<GameServer>& value) { m_gameServers = value; }
46 
50  inline void SetGameServers(Aws::Vector<GameServer>&& value) { m_gameServers = std::move(value); }
51 
55  inline ListGameServersResult& WithGameServers(const Aws::Vector<GameServer>& value) { SetGameServers(value); return *this;}
56 
60  inline ListGameServersResult& WithGameServers(Aws::Vector<GameServer>&& value) { SetGameServers(std::move(value)); return *this;}
61 
65  inline ListGameServersResult& AddGameServers(const GameServer& value) { m_gameServers.push_back(value); return *this; }
66 
70  inline ListGameServersResult& AddGameServers(GameServer&& value) { m_gameServers.push_back(std::move(value)); return *this; }
71 
72 
78  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
79 
85  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
86 
92  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
93 
99  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
100 
106  inline ListGameServersResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
107 
113  inline ListGameServersResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
114 
120  inline ListGameServersResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
121 
122  private:
123 
124  Aws::Vector<GameServer> m_gameServers;
125 
126  Aws::String m_nextToken;
127  };
128 
129 } // namespace Model
130 } // namespace GameLift
131 } // namespace Aws
GameServer.h
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::GameLift::Model::ListGameServersResult::ListGameServersResult
ListGameServersResult()
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::ListGameServersResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListGameServersResult.h:92
Aws::GameLift::Model::ListGameServersResult::SetGameServers
void SetGameServers(Aws::Vector< GameServer > &&value)
Definition: ListGameServersResult.h:50
Aws::GameLift::Model::GameServer
Definition: GameServer.h:45
Aws::GameLift::Model::ListGameServersResult::GetGameServers
const Aws::Vector< GameServer > & GetGameServers() const
Definition: ListGameServersResult.h:40
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GameLift::Model::ListGameServersResult::SetGameServers
void SetGameServers(const Aws::Vector< GameServer > &value)
Definition: ListGameServersResult.h:45
AWSVector.h
Aws::GameLift::Model::ListGameServersResult::AddGameServers
ListGameServersResult & AddGameServers(const GameServer &value)
Definition: ListGameServersResult.h:65
Aws::GameLift::Model::ListGameServersResult::AddGameServers
ListGameServersResult & AddGameServers(GameServer &&value)
Definition: ListGameServersResult.h:70
Aws::GameLift::Model::ListGameServersResult::WithGameServers
ListGameServersResult & WithGameServers(const Aws::Vector< GameServer > &value)
Definition: ListGameServersResult.h:55
GameLift_EXPORTS.h
Aws::GameLift::Model::ListGameServersResult::WithNextToken
ListGameServersResult & WithNextToken(Aws::String &&value)
Definition: ListGameServersResult.h:113
Aws::GameLift::Model::ListGameServersResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListGameServersResult.h:99
Aws::GameLift::Model::ListGameServersResult::operator=
ListGameServersResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::GameLift::Model::ListGameServersResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListGameServersResult.h:78
AWSString.h
Aws::GameLift::Model::ListGameServersResult::WithNextToken
ListGameServersResult & WithNextToken(const char *value)
Definition: ListGameServersResult.h:120
Aws::GameLift::Model::ListGameServersResult::WithNextToken
ListGameServersResult & WithNextToken(const Aws::String &value)
Definition: ListGameServersResult.h:106
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::ListGameServersResult::ListGameServersResult
ListGameServersResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::ListGameServersResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListGameServersResult.h:85
Aws::GameLift::Model::ListGameServersResult::WithGameServers
ListGameServersResult & WithGameServers(Aws::Vector< GameServer > &&value)
Definition: ListGameServersResult.h:60
Aws::GameLift::Model::ListGameServersResult
Definition: ListGameServersResult.h:30