AWS SDK for C++  1.9.159
AWS SDK for C++
DescribeGameSessionsResult.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 {
36  {
37  public:
41 
42 
47  inline const Aws::Vector<GameSession>& GetGameSessions() const{ return m_gameSessions; }
48 
53  inline void SetGameSessions(const Aws::Vector<GameSession>& value) { m_gameSessions = value; }
54 
59  inline void SetGameSessions(Aws::Vector<GameSession>&& value) { m_gameSessions = std::move(value); }
60 
65  inline DescribeGameSessionsResult& WithGameSessions(const Aws::Vector<GameSession>& value) { SetGameSessions(value); return *this;}
66 
71  inline DescribeGameSessionsResult& WithGameSessions(Aws::Vector<GameSession>&& value) { SetGameSessions(std::move(value)); return *this;}
72 
77  inline DescribeGameSessionsResult& AddGameSessions(const GameSession& value) { m_gameSessions.push_back(value); return *this; }
78 
83  inline DescribeGameSessionsResult& AddGameSessions(GameSession&& value) { m_gameSessions.push_back(std::move(value)); return *this; }
84 
85 
91  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
92 
98  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
99 
105  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
106 
112  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
113 
119  inline DescribeGameSessionsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
120 
126  inline DescribeGameSessionsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
127 
133  inline DescribeGameSessionsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
134 
135  private:
136 
137  Aws::Vector<GameSession> m_gameSessions;
138 
139  Aws::String m_nextToken;
140  };
141 
142 } // namespace Model
143 } // namespace GameLift
144 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::GameLift::Model::DescribeGameSessionsResult::WithNextToken
DescribeGameSessionsResult & WithNextToken(const Aws::String &value)
Definition: DescribeGameSessionsResult.h:119
Aws::GameLift::Model::GameSession
Definition: GameSession.h:49
Aws::GameLift::Model::DescribeGameSessionsResult::DescribeGameSessionsResult
DescribeGameSessionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GameSession.h
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::DescribeGameSessionsResult::SetGameSessions
void SetGameSessions(const Aws::Vector< GameSession > &value)
Definition: DescribeGameSessionsResult.h:53
Aws::GameLift::Model::DescribeGameSessionsResult::WithNextToken
DescribeGameSessionsResult & WithNextToken(const char *value)
Definition: DescribeGameSessionsResult.h:133
Aws::GameLift::Model::DescribeGameSessionsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeGameSessionsResult.h:91
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GameLift::Model::DescribeGameSessionsResult::AddGameSessions
DescribeGameSessionsResult & AddGameSessions(const GameSession &value)
Definition: DescribeGameSessionsResult.h:77
Aws::GameLift::Model::DescribeGameSessionsResult::operator=
DescribeGameSessionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWSVector.h
Aws::GameLift::Model::DescribeGameSessionsResult::DescribeGameSessionsResult
DescribeGameSessionsResult()
Aws::GameLift::Model::DescribeGameSessionsResult
Definition: DescribeGameSessionsResult.h:36
GameLift_EXPORTS.h
Aws::GameLift::Model::DescribeGameSessionsResult::WithGameSessions
DescribeGameSessionsResult & WithGameSessions(const Aws::Vector< GameSession > &value)
Definition: DescribeGameSessionsResult.h:65
Aws::GameLift::Model::DescribeGameSessionsResult::SetGameSessions
void SetGameSessions(Aws::Vector< GameSession > &&value)
Definition: DescribeGameSessionsResult.h:59
Aws::GameLift::Model::DescribeGameSessionsResult::WithNextToken
DescribeGameSessionsResult & WithNextToken(Aws::String &&value)
Definition: DescribeGameSessionsResult.h:126
Aws::GameLift::Model::DescribeGameSessionsResult::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeGameSessionsResult.h:112
AWSString.h
Aws::GameLift::Model::DescribeGameSessionsResult::AddGameSessions
DescribeGameSessionsResult & AddGameSessions(GameSession &&value)
Definition: DescribeGameSessionsResult.h:83
Aws::GameLift::Model::DescribeGameSessionsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeGameSessionsResult.h:98
Aws::GameLift::Model::DescribeGameSessionsResult::WithGameSessions
DescribeGameSessionsResult & WithGameSessions(Aws::Vector< GameSession > &&value)
Definition: DescribeGameSessionsResult.h:71
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
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::DescribeGameSessionsResult::GetGameSessions
const Aws::Vector< GameSession > & GetGameSessions() const
Definition: DescribeGameSessionsResult.h:47
Aws::GameLift::Model::DescribeGameSessionsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeGameSessionsResult.h:105