AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreatePlayerSessionsRequest.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/gamelift/GameLiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace GameLift
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_GAMELIFT_API CreatePlayerSessionsRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreatePlayerSessions"; }
33
34 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetGameSessionId() const{ return m_gameSessionId; }
44 inline bool GameSessionIdHasBeenSet() const { return m_gameSessionIdHasBeenSet; }
45 inline void SetGameSessionId(const Aws::String& value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId = value; }
46 inline void SetGameSessionId(Aws::String&& value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId = std::move(value); }
47 inline void SetGameSessionId(const char* value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId.assign(value); }
48 inline CreatePlayerSessionsRequest& WithGameSessionId(const Aws::String& value) { SetGameSessionId(value); return *this;}
49 inline CreatePlayerSessionsRequest& WithGameSessionId(Aws::String&& value) { SetGameSessionId(std::move(value)); return *this;}
50 inline CreatePlayerSessionsRequest& WithGameSessionId(const char* value) { SetGameSessionId(value); return *this;}
52
54
57 inline const Aws::Vector<Aws::String>& GetPlayerIds() const{ return m_playerIds; }
58 inline bool PlayerIdsHasBeenSet() const { return m_playerIdsHasBeenSet; }
59 inline void SetPlayerIds(const Aws::Vector<Aws::String>& value) { m_playerIdsHasBeenSet = true; m_playerIds = value; }
60 inline void SetPlayerIds(Aws::Vector<Aws::String>&& value) { m_playerIdsHasBeenSet = true; m_playerIds = std::move(value); }
62 inline CreatePlayerSessionsRequest& WithPlayerIds(Aws::Vector<Aws::String>&& value) { SetPlayerIds(std::move(value)); return *this;}
63 inline CreatePlayerSessionsRequest& AddPlayerIds(const Aws::String& value) { m_playerIdsHasBeenSet = true; m_playerIds.push_back(value); return *this; }
64 inline CreatePlayerSessionsRequest& AddPlayerIds(Aws::String&& value) { m_playerIdsHasBeenSet = true; m_playerIds.push_back(std::move(value)); return *this; }
65 inline CreatePlayerSessionsRequest& AddPlayerIds(const char* value) { m_playerIdsHasBeenSet = true; m_playerIds.push_back(value); return *this; }
67
69
76 inline const Aws::Map<Aws::String, Aws::String>& GetPlayerDataMap() const{ return m_playerDataMap; }
77 inline bool PlayerDataMapHasBeenSet() const { return m_playerDataMapHasBeenSet; }
78 inline void SetPlayerDataMap(const Aws::Map<Aws::String, Aws::String>& value) { m_playerDataMapHasBeenSet = true; m_playerDataMap = value; }
79 inline void SetPlayerDataMap(Aws::Map<Aws::String, Aws::String>&& value) { m_playerDataMapHasBeenSet = true; m_playerDataMap = std::move(value); }
82 inline CreatePlayerSessionsRequest& AddPlayerDataMap(const Aws::String& key, const Aws::String& value) { m_playerDataMapHasBeenSet = true; m_playerDataMap.emplace(key, value); return *this; }
83 inline CreatePlayerSessionsRequest& AddPlayerDataMap(Aws::String&& key, const Aws::String& value) { m_playerDataMapHasBeenSet = true; m_playerDataMap.emplace(std::move(key), value); return *this; }
84 inline CreatePlayerSessionsRequest& AddPlayerDataMap(const Aws::String& key, Aws::String&& value) { m_playerDataMapHasBeenSet = true; m_playerDataMap.emplace(key, std::move(value)); return *this; }
85 inline CreatePlayerSessionsRequest& AddPlayerDataMap(Aws::String&& key, Aws::String&& value) { m_playerDataMapHasBeenSet = true; m_playerDataMap.emplace(std::move(key), std::move(value)); return *this; }
86 inline CreatePlayerSessionsRequest& AddPlayerDataMap(const char* key, Aws::String&& value) { m_playerDataMapHasBeenSet = true; m_playerDataMap.emplace(key, std::move(value)); return *this; }
87 inline CreatePlayerSessionsRequest& AddPlayerDataMap(Aws::String&& key, const char* value) { m_playerDataMapHasBeenSet = true; m_playerDataMap.emplace(std::move(key), value); return *this; }
88 inline CreatePlayerSessionsRequest& AddPlayerDataMap(const char* key, const char* value) { m_playerDataMapHasBeenSet = true; m_playerDataMap.emplace(key, value); return *this; }
90 private:
91
92 Aws::String m_gameSessionId;
93 bool m_gameSessionIdHasBeenSet = false;
94
95 Aws::Vector<Aws::String> m_playerIds;
96 bool m_playerIdsHasBeenSet = false;
97
99 bool m_playerDataMapHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace GameLift
104} // namespace Aws
CreatePlayerSessionsRequest & WithPlayerIds(Aws::Vector< Aws::String > &&value)
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreatePlayerSessionsRequest & WithGameSessionId(Aws::String &&value)
CreatePlayerSessionsRequest & WithPlayerIds(const Aws::Vector< Aws::String > &value)
CreatePlayerSessionsRequest & WithPlayerDataMap(Aws::Map< Aws::String, Aws::String > &&value)
CreatePlayerSessionsRequest & AddPlayerIds(Aws::String &&value)
CreatePlayerSessionsRequest & AddPlayerDataMap(Aws::String &&key, const char *value)
CreatePlayerSessionsRequest & AddPlayerDataMap(const Aws::String &key, Aws::String &&value)
const Aws::Vector< Aws::String > & GetPlayerIds() const
CreatePlayerSessionsRequest & WithPlayerDataMap(const Aws::Map< Aws::String, Aws::String > &value)
void SetPlayerDataMap(const Aws::Map< Aws::String, Aws::String > &value)
CreatePlayerSessionsRequest & AddPlayerDataMap(const char *key, const char *value)
virtual const char * GetServiceRequestName() const override
CreatePlayerSessionsRequest & AddPlayerIds(const char *value)
CreatePlayerSessionsRequest & AddPlayerDataMap(Aws::String &&key, const Aws::String &value)
CreatePlayerSessionsRequest & AddPlayerDataMap(const Aws::String &key, const Aws::String &value)
void SetPlayerIds(const Aws::Vector< Aws::String > &value)
CreatePlayerSessionsRequest & WithGameSessionId(const Aws::String &value)
CreatePlayerSessionsRequest & AddPlayerDataMap(Aws::String &&key, Aws::String &&value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetPlayerDataMap() const
void SetPlayerIds(Aws::Vector< Aws::String > &&value)
CreatePlayerSessionsRequest & WithGameSessionId(const char *value)
void SetPlayerDataMap(Aws::Map< Aws::String, Aws::String > &&value)
CreatePlayerSessionsRequest & AddPlayerDataMap(const char *key, Aws::String &&value)
CreatePlayerSessionsRequest & AddPlayerIds(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector