AWS SDK for C++  1.9.15
AWS SDK for C++
CreatePlayerSessionsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace GameLift
17 {
18 namespace Model
19 {
20 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CreatePlayerSessions"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
45  inline const Aws::String& GetGameSessionId() const{ return m_gameSessionId; }
46 
50  inline bool GameSessionIdHasBeenSet() const { return m_gameSessionIdHasBeenSet; }
51 
55  inline void SetGameSessionId(const Aws::String& value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId = value; }
56 
60  inline void SetGameSessionId(Aws::String&& value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId = std::move(value); }
61 
65  inline void SetGameSessionId(const char* value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId.assign(value); }
66 
70  inline CreatePlayerSessionsRequest& WithGameSessionId(const Aws::String& value) { SetGameSessionId(value); return *this;}
71 
75  inline CreatePlayerSessionsRequest& WithGameSessionId(Aws::String&& value) { SetGameSessionId(std::move(value)); return *this;}
76 
80  inline CreatePlayerSessionsRequest& WithGameSessionId(const char* value) { SetGameSessionId(value); return *this;}
81 
82 
86  inline const Aws::Vector<Aws::String>& GetPlayerIds() const{ return m_playerIds; }
87 
91  inline bool PlayerIdsHasBeenSet() const { return m_playerIdsHasBeenSet; }
92 
96  inline void SetPlayerIds(const Aws::Vector<Aws::String>& value) { m_playerIdsHasBeenSet = true; m_playerIds = value; }
97 
101  inline void SetPlayerIds(Aws::Vector<Aws::String>&& value) { m_playerIdsHasBeenSet = true; m_playerIds = std::move(value); }
102 
106  inline CreatePlayerSessionsRequest& WithPlayerIds(const Aws::Vector<Aws::String>& value) { SetPlayerIds(value); return *this;}
107 
111  inline CreatePlayerSessionsRequest& WithPlayerIds(Aws::Vector<Aws::String>&& value) { SetPlayerIds(std::move(value)); return *this;}
112 
116  inline CreatePlayerSessionsRequest& AddPlayerIds(const Aws::String& value) { m_playerIdsHasBeenSet = true; m_playerIds.push_back(value); return *this; }
117 
121  inline CreatePlayerSessionsRequest& AddPlayerIds(Aws::String&& value) { m_playerIdsHasBeenSet = true; m_playerIds.push_back(std::move(value)); return *this; }
122 
126  inline CreatePlayerSessionsRequest& AddPlayerIds(const char* value) { m_playerIdsHasBeenSet = true; m_playerIds.push_back(value); return *this; }
127 
128 
136  inline const Aws::Map<Aws::String, Aws::String>& GetPlayerDataMap() const{ return m_playerDataMap; }
137 
145  inline bool PlayerDataMapHasBeenSet() const { return m_playerDataMapHasBeenSet; }
146 
154  inline void SetPlayerDataMap(const Aws::Map<Aws::String, Aws::String>& value) { m_playerDataMapHasBeenSet = true; m_playerDataMap = value; }
155 
163  inline void SetPlayerDataMap(Aws::Map<Aws::String, Aws::String>&& value) { m_playerDataMapHasBeenSet = true; m_playerDataMap = std::move(value); }
164 
172  inline CreatePlayerSessionsRequest& WithPlayerDataMap(const Aws::Map<Aws::String, Aws::String>& value) { SetPlayerDataMap(value); return *this;}
173 
181  inline CreatePlayerSessionsRequest& WithPlayerDataMap(Aws::Map<Aws::String, Aws::String>&& value) { SetPlayerDataMap(std::move(value)); return *this;}
182 
190  inline CreatePlayerSessionsRequest& AddPlayerDataMap(const Aws::String& key, const Aws::String& value) { m_playerDataMapHasBeenSet = true; m_playerDataMap.emplace(key, value); return *this; }
191 
199  inline CreatePlayerSessionsRequest& AddPlayerDataMap(Aws::String&& key, const Aws::String& value) { m_playerDataMapHasBeenSet = true; m_playerDataMap.emplace(std::move(key), value); return *this; }
200 
208  inline CreatePlayerSessionsRequest& AddPlayerDataMap(const Aws::String& key, Aws::String&& value) { m_playerDataMapHasBeenSet = true; m_playerDataMap.emplace(key, std::move(value)); return *this; }
209 
217  inline CreatePlayerSessionsRequest& AddPlayerDataMap(Aws::String&& key, Aws::String&& value) { m_playerDataMapHasBeenSet = true; m_playerDataMap.emplace(std::move(key), std::move(value)); return *this; }
218 
226  inline CreatePlayerSessionsRequest& AddPlayerDataMap(const char* key, Aws::String&& value) { m_playerDataMapHasBeenSet = true; m_playerDataMap.emplace(key, std::move(value)); return *this; }
227 
235  inline CreatePlayerSessionsRequest& AddPlayerDataMap(Aws::String&& key, const char* value) { m_playerDataMapHasBeenSet = true; m_playerDataMap.emplace(std::move(key), value); return *this; }
236 
244  inline CreatePlayerSessionsRequest& AddPlayerDataMap(const char* key, const char* value) { m_playerDataMapHasBeenSet = true; m_playerDataMap.emplace(key, value); return *this; }
245 
246  private:
247 
248  Aws::String m_gameSessionId;
249  bool m_gameSessionIdHasBeenSet;
250 
251  Aws::Vector<Aws::String> m_playerIds;
252  bool m_playerIdsHasBeenSet;
253 
254  Aws::Map<Aws::String, Aws::String> m_playerDataMap;
255  bool m_playerDataMapHasBeenSet;
256  };
257 
258 } // namespace Model
259 } // namespace GameLift
260 } // namespace Aws
Aws::GameLift::Model::CreatePlayerSessionsRequest
Definition: CreatePlayerSessionsRequest.h:27
Aws::GameLift::Model::CreatePlayerSessionsRequest::WithPlayerIds
CreatePlayerSessionsRequest & WithPlayerIds(const Aws::Vector< Aws::String > &value)
Definition: CreatePlayerSessionsRequest.h:106
Aws::GameLift::Model::CreatePlayerSessionsRequest::GameSessionIdHasBeenSet
bool GameSessionIdHasBeenSet() const
Definition: CreatePlayerSessionsRequest.h:50
Aws::GameLift::Model::CreatePlayerSessionsRequest::AddPlayerDataMap
CreatePlayerSessionsRequest & AddPlayerDataMap(const char *key, Aws::String &&value)
Definition: CreatePlayerSessionsRequest.h:226
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::GameLift::Model::CreatePlayerSessionsRequest::AddPlayerIds
CreatePlayerSessionsRequest & AddPlayerIds(const Aws::String &value)
Definition: CreatePlayerSessionsRequest.h:116
Aws::GameLift::Model::CreatePlayerSessionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreatePlayerSessionsRequest.h:35
Aws::GameLift::Model::CreatePlayerSessionsRequest::SetGameSessionId
void SetGameSessionId(const char *value)
Definition: CreatePlayerSessionsRequest.h:65
Aws::GameLift::Model::CreatePlayerSessionsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::CreatePlayerSessionsRequest::AddPlayerDataMap
CreatePlayerSessionsRequest & AddPlayerDataMap(const Aws::String &key, Aws::String &&value)
Definition: CreatePlayerSessionsRequest.h:208
Aws::GameLift::Model::CreatePlayerSessionsRequest::WithGameSessionId
CreatePlayerSessionsRequest & WithGameSessionId(const Aws::String &value)
Definition: CreatePlayerSessionsRequest.h:70
Aws::GameLift::Model::CreatePlayerSessionsRequest::WithPlayerDataMap
CreatePlayerSessionsRequest & WithPlayerDataMap(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreatePlayerSessionsRequest.h:181
Aws::GameLift::Model::CreatePlayerSessionsRequest::AddPlayerIds
CreatePlayerSessionsRequest & AddPlayerIds(const char *value)
Definition: CreatePlayerSessionsRequest.h:126
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GameLift::Model::CreatePlayerSessionsRequest::WithPlayerIds
CreatePlayerSessionsRequest & WithPlayerIds(Aws::Vector< Aws::String > &&value)
Definition: CreatePlayerSessionsRequest.h:111
Aws::GameLift::Model::CreatePlayerSessionsRequest::CreatePlayerSessionsRequest
CreatePlayerSessionsRequest()
AWSVector.h
Aws::GameLift::Model::CreatePlayerSessionsRequest::SetGameSessionId
void SetGameSessionId(const Aws::String &value)
Definition: CreatePlayerSessionsRequest.h:55
GameLift_EXPORTS.h
GameLiftRequest.h
Aws::GameLift::Model::CreatePlayerSessionsRequest::AddPlayerDataMap
CreatePlayerSessionsRequest & AddPlayerDataMap(const Aws::String &key, const Aws::String &value)
Definition: CreatePlayerSessionsRequest.h:190
Aws::GameLift::Model::CreatePlayerSessionsRequest::AddPlayerDataMap
CreatePlayerSessionsRequest & AddPlayerDataMap(Aws::String &&key, const Aws::String &value)
Definition: CreatePlayerSessionsRequest.h:199
Aws::GameLift::Model::CreatePlayerSessionsRequest::PlayerDataMapHasBeenSet
bool PlayerDataMapHasBeenSet() const
Definition: CreatePlayerSessionsRequest.h:145
Aws::GameLift::Model::CreatePlayerSessionsRequest::AddPlayerDataMap
CreatePlayerSessionsRequest & AddPlayerDataMap(Aws::String &&key, Aws::String &&value)
Definition: CreatePlayerSessionsRequest.h:217
Aws::GameLift::Model::CreatePlayerSessionsRequest::SetPlayerDataMap
void SetPlayerDataMap(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreatePlayerSessionsRequest.h:163
Aws::GameLift::GameLiftRequest
Definition: GameLiftRequest.h:17
AWSString.h
Aws::GameLift::Model::CreatePlayerSessionsRequest::SetGameSessionId
void SetGameSessionId(Aws::String &&value)
Definition: CreatePlayerSessionsRequest.h:60
Aws::GameLift::Model::CreatePlayerSessionsRequest::SetPlayerIds
void SetPlayerIds(const Aws::Vector< Aws::String > &value)
Definition: CreatePlayerSessionsRequest.h:96
Aws::GameLift::Model::CreatePlayerSessionsRequest::GetPlayerDataMap
const Aws::Map< Aws::String, Aws::String > & GetPlayerDataMap() const
Definition: CreatePlayerSessionsRequest.h:136
Aws::GameLift::Model::CreatePlayerSessionsRequest::SetPlayerDataMap
void SetPlayerDataMap(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreatePlayerSessionsRequest.h:154
Aws::GameLift::Model::CreatePlayerSessionsRequest::WithPlayerDataMap
CreatePlayerSessionsRequest & WithPlayerDataMap(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreatePlayerSessionsRequest.h:172
Aws::GameLift::Model::CreatePlayerSessionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GameLift::Model::CreatePlayerSessionsRequest::GetPlayerIds
const Aws::Vector< Aws::String > & GetPlayerIds() const
Definition: CreatePlayerSessionsRequest.h:86
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::CreatePlayerSessionsRequest::AddPlayerDataMap
CreatePlayerSessionsRequest & AddPlayerDataMap(const char *key, const char *value)
Definition: CreatePlayerSessionsRequest.h:244
Aws::GameLift::Model::CreatePlayerSessionsRequest::WithGameSessionId
CreatePlayerSessionsRequest & WithGameSessionId(Aws::String &&value)
Definition: CreatePlayerSessionsRequest.h:75
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::CreatePlayerSessionsRequest::PlayerIdsHasBeenSet
bool PlayerIdsHasBeenSet() const
Definition: CreatePlayerSessionsRequest.h:91
Aws::GameLift::Model::CreatePlayerSessionsRequest::WithGameSessionId
CreatePlayerSessionsRequest & WithGameSessionId(const char *value)
Definition: CreatePlayerSessionsRequest.h:80
AWSMap.h
Aws::GameLift::Model::CreatePlayerSessionsRequest::AddPlayerDataMap
CreatePlayerSessionsRequest & AddPlayerDataMap(Aws::String &&key, const char *value)
Definition: CreatePlayerSessionsRequest.h:235
Aws::GameLift::Model::CreatePlayerSessionsRequest::SetPlayerIds
void SetPlayerIds(Aws::Vector< Aws::String > &&value)
Definition: CreatePlayerSessionsRequest.h:101
Aws::GameLift::Model::CreatePlayerSessionsRequest::GetGameSessionId
const Aws::String & GetGameSessionId() const
Definition: CreatePlayerSessionsRequest.h:45
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::GameLift::Model::CreatePlayerSessionsRequest::AddPlayerIds
CreatePlayerSessionsRequest & AddPlayerIds(Aws::String &&value)
Definition: CreatePlayerSessionsRequest.h:121