AWS SDK for C++  1.9.44
AWS SDK for C++
CreateGameSessionResult.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 template<typename RESULT_TYPE>
14 class AmazonWebServiceResult;
15 
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21 } // namespace Json
22 } // namespace Utils
23 namespace GameLift
24 {
25 namespace Model
26 {
34  {
35  public:
39 
40 
44  inline const GameSession& GetGameSession() const{ return m_gameSession; }
45 
49  inline void SetGameSession(const GameSession& value) { m_gameSession = value; }
50 
54  inline void SetGameSession(GameSession&& value) { m_gameSession = std::move(value); }
55 
59  inline CreateGameSessionResult& WithGameSession(const GameSession& value) { SetGameSession(value); return *this;}
60 
64  inline CreateGameSessionResult& WithGameSession(GameSession&& value) { SetGameSession(std::move(value)); return *this;}
65 
66  private:
67 
68  GameSession m_gameSession;
69  };
70 
71 } // namespace Model
72 } // namespace GameLift
73 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::GameLift::Model::CreateGameSessionResult::WithGameSession
CreateGameSessionResult & WithGameSession(const GameSession &value)
Definition: CreateGameSessionResult.h:59
Aws::GameLift::Model::GameSession
Definition: GameSession.h:49
Aws::GameLift::Model::CreateGameSessionResult
Definition: CreateGameSessionResult.h:34
GameSession.h
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::CreateGameSessionResult::CreateGameSessionResult
CreateGameSessionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::GameLift::Model::CreateGameSessionResult::WithGameSession
CreateGameSessionResult & WithGameSession(GameSession &&value)
Definition: CreateGameSessionResult.h:64
Aws::GameLift::Model::CreateGameSessionResult::operator=
CreateGameSessionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GameLift_EXPORTS.h
Aws::GameLift::Model::CreateGameSessionResult::SetGameSession
void SetGameSession(GameSession &&value)
Definition: CreateGameSessionResult.h:54
Aws::GameLift::Model::CreateGameSessionResult::SetGameSession
void SetGameSession(const GameSession &value)
Definition: CreateGameSessionResult.h:49
Aws::GameLift::Model::CreateGameSessionResult::CreateGameSessionResult
CreateGameSessionResult()
Aws::GameLift::Model::CreateGameSessionResult::GetGameSession
const GameSession & GetGameSession() const
Definition: CreateGameSessionResult.h:44
Aws
Definition: AccessManagementClient.h:15