AWS SDK for C++  1.9.47
AWS SDK for C++
CreatePlayerSessionsResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace GameLift
25 {
26 namespace Model
27 {
35  {
36  public:
40 
41 
45  inline const Aws::Vector<PlayerSession>& GetPlayerSessions() const{ return m_playerSessions; }
46 
50  inline void SetPlayerSessions(const Aws::Vector<PlayerSession>& value) { m_playerSessions = value; }
51 
55  inline void SetPlayerSessions(Aws::Vector<PlayerSession>&& value) { m_playerSessions = std::move(value); }
56 
60  inline CreatePlayerSessionsResult& WithPlayerSessions(const Aws::Vector<PlayerSession>& value) { SetPlayerSessions(value); return *this;}
61 
65  inline CreatePlayerSessionsResult& WithPlayerSessions(Aws::Vector<PlayerSession>&& value) { SetPlayerSessions(std::move(value)); return *this;}
66 
70  inline CreatePlayerSessionsResult& AddPlayerSessions(const PlayerSession& value) { m_playerSessions.push_back(value); return *this; }
71 
75  inline CreatePlayerSessionsResult& AddPlayerSessions(PlayerSession&& value) { m_playerSessions.push_back(std::move(value)); return *this; }
76 
77  private:
78 
79  Aws::Vector<PlayerSession> m_playerSessions;
80  };
81 
82 } // namespace Model
83 } // namespace GameLift
84 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::GameLift::Model::CreatePlayerSessionsResult::AddPlayerSessions
CreatePlayerSessionsResult & AddPlayerSessions(const PlayerSession &value)
Definition: CreatePlayerSessionsResult.h:70
Aws::GameLift::Model::CreatePlayerSessionsResult::WithPlayerSessions
CreatePlayerSessionsResult & WithPlayerSessions(Aws::Vector< PlayerSession > &&value)
Definition: CreatePlayerSessionsResult.h:65
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GameLift::Model::PlayerSession
Definition: PlayerSession.h:46
AWSVector.h
Aws::GameLift::Model::CreatePlayerSessionsResult::CreatePlayerSessionsResult
CreatePlayerSessionsResult()
Aws::GameLift::Model::CreatePlayerSessionsResult::CreatePlayerSessionsResult
CreatePlayerSessionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GameLift_EXPORTS.h
Aws::GameLift::Model::CreatePlayerSessionsResult::AddPlayerSessions
CreatePlayerSessionsResult & AddPlayerSessions(PlayerSession &&value)
Definition: CreatePlayerSessionsResult.h:75
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::CreatePlayerSessionsResult::GetPlayerSessions
const Aws::Vector< PlayerSession > & GetPlayerSessions() const
Definition: CreatePlayerSessionsResult.h:45
Aws::GameLift::Model::CreatePlayerSessionsResult
Definition: CreatePlayerSessionsResult.h:35
Aws::GameLift::Model::CreatePlayerSessionsResult::SetPlayerSessions
void SetPlayerSessions(const Aws::Vector< PlayerSession > &value)
Definition: CreatePlayerSessionsResult.h:50
PlayerSession.h
Aws::GameLift::Model::CreatePlayerSessionsResult::SetPlayerSessions
void SetPlayerSessions(Aws::Vector< PlayerSession > &&value)
Definition: CreatePlayerSessionsResult.h:55
Aws::GameLift::Model::CreatePlayerSessionsResult::operator=
CreatePlayerSessionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::GameLift::Model::CreatePlayerSessionsResult::WithPlayerSessions
CreatePlayerSessionsResult & WithPlayerSessions(const Aws::Vector< PlayerSession > &value)
Definition: CreatePlayerSessionsResult.h:60