AWS SDK for C++  1.9.108
AWS SDK for C++
ListGameServerGroupsResult.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<GameServerGroup>& GetGameServerGroups() const{ return m_gameServerGroups; }
41 
45  inline void SetGameServerGroups(const Aws::Vector<GameServerGroup>& value) { m_gameServerGroups = value; }
46 
50  inline void SetGameServerGroups(Aws::Vector<GameServerGroup>&& value) { m_gameServerGroups = std::move(value); }
51 
55  inline ListGameServerGroupsResult& WithGameServerGroups(const Aws::Vector<GameServerGroup>& value) { SetGameServerGroups(value); return *this;}
56 
60  inline ListGameServerGroupsResult& WithGameServerGroups(Aws::Vector<GameServerGroup>&& value) { SetGameServerGroups(std::move(value)); return *this;}
61 
65  inline ListGameServerGroupsResult& AddGameServerGroups(const GameServerGroup& value) { m_gameServerGroups.push_back(value); return *this; }
66 
70  inline ListGameServerGroupsResult& AddGameServerGroups(GameServerGroup&& value) { m_gameServerGroups.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 ListGameServerGroupsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
107 
113  inline ListGameServerGroupsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
114 
120  inline ListGameServerGroupsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
121 
122  private:
123 
124  Aws::Vector<GameServerGroup> m_gameServerGroups;
125 
126  Aws::String m_nextToken;
127  };
128 
129 } // namespace Model
130 } // namespace GameLift
131 } // namespace Aws
Aws::GameLift::Model::GameServerGroup
Definition: GameServerGroup.h:52
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::GameLift::Model::ListGameServerGroupsResult::WithGameServerGroups
ListGameServerGroupsResult & WithGameServerGroups(Aws::Vector< GameServerGroup > &&value)
Definition: ListGameServerGroupsResult.h:60
Aws::GameLift::Model::ListGameServerGroupsResult::WithNextToken
ListGameServerGroupsResult & WithNextToken(const Aws::String &value)
Definition: ListGameServerGroupsResult.h:106
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::ListGameServerGroupsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListGameServerGroupsResult.h:99
Aws::GameLift::Model::ListGameServerGroupsResult::AddGameServerGroups
ListGameServerGroupsResult & AddGameServerGroups(GameServerGroup &&value)
Definition: ListGameServerGroupsResult.h:70
Aws::GameLift::Model::ListGameServerGroupsResult::WithNextToken
ListGameServerGroupsResult & WithNextToken(const char *value)
Definition: ListGameServerGroupsResult.h:120
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GameLift::Model::ListGameServerGroupsResult::AddGameServerGroups
ListGameServerGroupsResult & AddGameServerGroups(const GameServerGroup &value)
Definition: ListGameServerGroupsResult.h:65
Aws::GameLift::Model::ListGameServerGroupsResult::operator=
ListGameServerGroupsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWSVector.h
Aws::GameLift::Model::ListGameServerGroupsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListGameServerGroupsResult.h:92
Aws::GameLift::Model::ListGameServerGroupsResult::SetGameServerGroups
void SetGameServerGroups(Aws::Vector< GameServerGroup > &&value)
Definition: ListGameServerGroupsResult.h:50
Aws::GameLift::Model::ListGameServerGroupsResult::WithNextToken
ListGameServerGroupsResult & WithNextToken(Aws::String &&value)
Definition: ListGameServerGroupsResult.h:113
GameLift_EXPORTS.h
Aws::GameLift::Model::ListGameServerGroupsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListGameServerGroupsResult.h:78
GameServerGroup.h
Aws::GameLift::Model::ListGameServerGroupsResult::ListGameServerGroupsResult
ListGameServerGroupsResult()
AWSString.h
Aws::GameLift::Model::ListGameServerGroupsResult::SetGameServerGroups
void SetGameServerGroups(const Aws::Vector< GameServerGroup > &value)
Definition: ListGameServerGroupsResult.h:45
Aws::GameLift::Model::ListGameServerGroupsResult::ListGameServerGroupsResult
ListGameServerGroupsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::GameLift::Model::ListGameServerGroupsResult
Definition: ListGameServerGroupsResult.h:30
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::ListGameServerGroupsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListGameServerGroupsResult.h:85
Aws::GameLift::Model::ListGameServerGroupsResult::WithGameServerGroups
ListGameServerGroupsResult & WithGameServerGroups(const Aws::Vector< GameServerGroup > &value)
Definition: ListGameServerGroupsResult.h:55
Aws::GameLift::Model::ListGameServerGroupsResult::GetGameServerGroups
const Aws::Vector< GameServerGroup > & GetGameServerGroups() const
Definition: ListGameServerGroupsResult.h:40