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