AWS SDK for C++  1.9.104
AWS SDK for C++
CreatePlayerSessionResult.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 PlayerSession& GetPlayerSession() const{ return m_playerSession; }
45 
49  inline void SetPlayerSession(const PlayerSession& value) { m_playerSession = value; }
50 
54  inline void SetPlayerSession(PlayerSession&& value) { m_playerSession = std::move(value); }
55 
59  inline CreatePlayerSessionResult& WithPlayerSession(const PlayerSession& value) { SetPlayerSession(value); return *this;}
60 
64  inline CreatePlayerSessionResult& WithPlayerSession(PlayerSession&& value) { SetPlayerSession(std::move(value)); return *this;}
65 
66  private:
67 
68  PlayerSession m_playerSession;
69  };
70 
71 } // namespace Model
72 } // namespace GameLift
73 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::GameLift::Model::CreatePlayerSessionResult::GetPlayerSession
const PlayerSession & GetPlayerSession() const
Definition: CreatePlayerSessionResult.h:44
Aws::GameLift::Model::CreatePlayerSessionResult
Definition: CreatePlayerSessionResult.h:34
Aws::GameLift::Model::CreatePlayerSessionResult::WithPlayerSession
CreatePlayerSessionResult & WithPlayerSession(PlayerSession &&value)
Definition: CreatePlayerSessionResult.h:64
Aws::GameLift::Model::CreatePlayerSessionResult::SetPlayerSession
void SetPlayerSession(const PlayerSession &value)
Definition: CreatePlayerSessionResult.h:49
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::CreatePlayerSessionResult::WithPlayerSession
CreatePlayerSessionResult & WithPlayerSession(const PlayerSession &value)
Definition: CreatePlayerSessionResult.h:59
Aws::GameLift::Model::CreatePlayerSessionResult::CreatePlayerSessionResult
CreatePlayerSessionResult()
Aws::GameLift::Model::CreatePlayerSessionResult::SetPlayerSession
void SetPlayerSession(PlayerSession &&value)
Definition: CreatePlayerSessionResult.h:54
Aws::GameLift::Model::PlayerSession
Definition: PlayerSession.h:46
GameLift_EXPORTS.h
Aws::GameLift::Model::CreatePlayerSessionResult::CreatePlayerSessionResult
CreatePlayerSessionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::GameLift::Model::CreatePlayerSessionResult::operator=
CreatePlayerSessionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws
Definition: AccessManagementClient.h:15
PlayerSession.h