AWS SDK for C++  1.9.20
AWS SDK for C++
CreatePlayerSessionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace GameLift
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreatePlayerSession"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
43  inline const Aws::String& GetGameSessionId() const{ return m_gameSessionId; }
44 
48  inline bool GameSessionIdHasBeenSet() const { return m_gameSessionIdHasBeenSet; }
49 
53  inline void SetGameSessionId(const Aws::String& value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId = value; }
54 
58  inline void SetGameSessionId(Aws::String&& value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId = std::move(value); }
59 
63  inline void SetGameSessionId(const char* value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId.assign(value); }
64 
68  inline CreatePlayerSessionRequest& WithGameSessionId(const Aws::String& value) { SetGameSessionId(value); return *this;}
69 
73  inline CreatePlayerSessionRequest& WithGameSessionId(Aws::String&& value) { SetGameSessionId(std::move(value)); return *this;}
74 
78  inline CreatePlayerSessionRequest& WithGameSessionId(const char* value) { SetGameSessionId(value); return *this;}
79 
80 
84  inline const Aws::String& GetPlayerId() const{ return m_playerId; }
85 
89  inline bool PlayerIdHasBeenSet() const { return m_playerIdHasBeenSet; }
90 
94  inline void SetPlayerId(const Aws::String& value) { m_playerIdHasBeenSet = true; m_playerId = value; }
95 
99  inline void SetPlayerId(Aws::String&& value) { m_playerIdHasBeenSet = true; m_playerId = std::move(value); }
100 
104  inline void SetPlayerId(const char* value) { m_playerIdHasBeenSet = true; m_playerId.assign(value); }
105 
109  inline CreatePlayerSessionRequest& WithPlayerId(const Aws::String& value) { SetPlayerId(value); return *this;}
110 
114  inline CreatePlayerSessionRequest& WithPlayerId(Aws::String&& value) { SetPlayerId(std::move(value)); return *this;}
115 
119  inline CreatePlayerSessionRequest& WithPlayerId(const char* value) { SetPlayerId(value); return *this;}
120 
121 
126  inline const Aws::String& GetPlayerData() const{ return m_playerData; }
127 
132  inline bool PlayerDataHasBeenSet() const { return m_playerDataHasBeenSet; }
133 
138  inline void SetPlayerData(const Aws::String& value) { m_playerDataHasBeenSet = true; m_playerData = value; }
139 
144  inline void SetPlayerData(Aws::String&& value) { m_playerDataHasBeenSet = true; m_playerData = std::move(value); }
145 
150  inline void SetPlayerData(const char* value) { m_playerDataHasBeenSet = true; m_playerData.assign(value); }
151 
156  inline CreatePlayerSessionRequest& WithPlayerData(const Aws::String& value) { SetPlayerData(value); return *this;}
157 
162  inline CreatePlayerSessionRequest& WithPlayerData(Aws::String&& value) { SetPlayerData(std::move(value)); return *this;}
163 
168  inline CreatePlayerSessionRequest& WithPlayerData(const char* value) { SetPlayerData(value); return *this;}
169 
170  private:
171 
172  Aws::String m_gameSessionId;
173  bool m_gameSessionIdHasBeenSet;
174 
175  Aws::String m_playerId;
176  bool m_playerIdHasBeenSet;
177 
178  Aws::String m_playerData;
179  bool m_playerDataHasBeenSet;
180  };
181 
182 } // namespace Model
183 } // namespace GameLift
184 } // namespace Aws
Aws::GameLift::Model::CreatePlayerSessionRequest::WithPlayerId
CreatePlayerSessionRequest & WithPlayerId(const char *value)
Definition: CreatePlayerSessionRequest.h:119
Aws::GameLift::Model::CreatePlayerSessionRequest::GetPlayerId
const Aws::String & GetPlayerId() const
Definition: CreatePlayerSessionRequest.h:84
Aws::GameLift::Model::CreatePlayerSessionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::GameLift::Model::CreatePlayerSessionRequest::GetGameSessionId
const Aws::String & GetGameSessionId() const
Definition: CreatePlayerSessionRequest.h:43
Aws::GameLift::Model::CreatePlayerSessionRequest::SetGameSessionId
void SetGameSessionId(Aws::String &&value)
Definition: CreatePlayerSessionRequest.h:58
Aws::GameLift::Model::CreatePlayerSessionRequest::GetPlayerData
const Aws::String & GetPlayerData() const
Definition: CreatePlayerSessionRequest.h:126
Aws::GameLift::Model::CreatePlayerSessionRequest::WithPlayerData
CreatePlayerSessionRequest & WithPlayerData(const char *value)
Definition: CreatePlayerSessionRequest.h:168
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::CreatePlayerSessionRequest::WithPlayerData
CreatePlayerSessionRequest & WithPlayerData(Aws::String &&value)
Definition: CreatePlayerSessionRequest.h:162
Aws::GameLift::Model::CreatePlayerSessionRequest::WithPlayerId
CreatePlayerSessionRequest & WithPlayerId(Aws::String &&value)
Definition: CreatePlayerSessionRequest.h:114
Aws::GameLift::Model::CreatePlayerSessionRequest
Definition: CreatePlayerSessionRequest.h:25
Aws::GameLift::Model::CreatePlayerSessionRequest::WithGameSessionId
CreatePlayerSessionRequest & WithGameSessionId(const Aws::String &value)
Definition: CreatePlayerSessionRequest.h:68
Aws::GameLift::Model::CreatePlayerSessionRequest::WithGameSessionId
CreatePlayerSessionRequest & WithGameSessionId(const char *value)
Definition: CreatePlayerSessionRequest.h:78
Aws::GameLift::Model::CreatePlayerSessionRequest::SetPlayerId
void SetPlayerId(const char *value)
Definition: CreatePlayerSessionRequest.h:104
GameLift_EXPORTS.h
GameLiftRequest.h
Aws::GameLift::Model::CreatePlayerSessionRequest::SetPlayerData
void SetPlayerData(Aws::String &&value)
Definition: CreatePlayerSessionRequest.h:144
Aws::GameLift::Model::CreatePlayerSessionRequest::SetPlayerId
void SetPlayerId(const Aws::String &value)
Definition: CreatePlayerSessionRequest.h:94
Aws::GameLift::Model::CreatePlayerSessionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::GameLift::Model::CreatePlayerSessionRequest::WithGameSessionId
CreatePlayerSessionRequest & WithGameSessionId(Aws::String &&value)
Definition: CreatePlayerSessionRequest.h:73
Aws::GameLift::GameLiftRequest
Definition: GameLiftRequest.h:17
AWSString.h
Aws::GameLift::Model::CreatePlayerSessionRequest::CreatePlayerSessionRequest
CreatePlayerSessionRequest()
Aws::GameLift::Model::CreatePlayerSessionRequest::WithPlayerId
CreatePlayerSessionRequest & WithPlayerId(const Aws::String &value)
Definition: CreatePlayerSessionRequest.h:109
Aws::GameLift::Model::CreatePlayerSessionRequest::SetPlayerData
void SetPlayerData(const Aws::String &value)
Definition: CreatePlayerSessionRequest.h:138
Aws::GameLift::Model::CreatePlayerSessionRequest::PlayerDataHasBeenSet
bool PlayerDataHasBeenSet() const
Definition: CreatePlayerSessionRequest.h:132
Aws::GameLift::Model::CreatePlayerSessionRequest::SetGameSessionId
void SetGameSessionId(const char *value)
Definition: CreatePlayerSessionRequest.h:63
Aws::GameLift::Model::CreatePlayerSessionRequest::SetGameSessionId
void SetGameSessionId(const Aws::String &value)
Definition: CreatePlayerSessionRequest.h:53
Aws::GameLift::Model::CreatePlayerSessionRequest::SetPlayerData
void SetPlayerData(const char *value)
Definition: CreatePlayerSessionRequest.h:150
Aws::GameLift::Model::CreatePlayerSessionRequest::SetPlayerId
void SetPlayerId(Aws::String &&value)
Definition: CreatePlayerSessionRequest.h:99
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::CreatePlayerSessionRequest::PlayerIdHasBeenSet
bool PlayerIdHasBeenSet() const
Definition: CreatePlayerSessionRequest.h:89
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::CreatePlayerSessionRequest::GameSessionIdHasBeenSet
bool GameSessionIdHasBeenSet() const
Definition: CreatePlayerSessionRequest.h:48
Aws::GameLift::Model::CreatePlayerSessionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreatePlayerSessionRequest.h:33
Aws::GameLift::Model::CreatePlayerSessionRequest::WithPlayerData
CreatePlayerSessionRequest & WithPlayerData(const Aws::String &value)
Definition: CreatePlayerSessionRequest.h:156