AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
CreatePlayerSessionsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/gamelift/GameLiftRequest.h>
11#include <aws/gamelift/GameLift_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16namespace GameLift {
17namespace Model {
18
22 public:
23 AWS_GAMELIFT_API CreatePlayerSessionsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreatePlayerSessions"; }
30
31 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetGameSessionId() const { return m_gameSessionId; }
40 inline bool GameSessionIdHasBeenSet() const { return m_gameSessionIdHasBeenSet; }
41 template <typename GameSessionIdT = Aws::String>
42 void SetGameSessionId(GameSessionIdT&& value) {
43 m_gameSessionIdHasBeenSet = true;
44 m_gameSessionId = std::forward<GameSessionIdT>(value);
45 }
46 template <typename GameSessionIdT = Aws::String>
48 SetGameSessionId(std::forward<GameSessionIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Vector<Aws::String>& GetPlayerIds() const { return m_playerIds; }
58 inline bool PlayerIdsHasBeenSet() const { return m_playerIdsHasBeenSet; }
59 template <typename PlayerIdsT = Aws::Vector<Aws::String>>
60 void SetPlayerIds(PlayerIdsT&& value) {
61 m_playerIdsHasBeenSet = true;
62 m_playerIds = std::forward<PlayerIdsT>(value);
63 }
64 template <typename PlayerIdsT = Aws::Vector<Aws::String>>
66 SetPlayerIds(std::forward<PlayerIdsT>(value));
67 return *this;
68 }
69 template <typename PlayerIdsT = Aws::String>
71 m_playerIdsHasBeenSet = true;
72 m_playerIds.emplace_back(std::forward<PlayerIdsT>(value));
73 return *this;
74 }
76
78
85 inline const Aws::Map<Aws::String, Aws::String>& GetPlayerDataMap() const { return m_playerDataMap; }
86 inline bool PlayerDataMapHasBeenSet() const { return m_playerDataMapHasBeenSet; }
87 template <typename PlayerDataMapT = Aws::Map<Aws::String, Aws::String>>
88 void SetPlayerDataMap(PlayerDataMapT&& value) {
89 m_playerDataMapHasBeenSet = true;
90 m_playerDataMap = std::forward<PlayerDataMapT>(value);
91 }
92 template <typename PlayerDataMapT = Aws::Map<Aws::String, Aws::String>>
94 SetPlayerDataMap(std::forward<PlayerDataMapT>(value));
95 return *this;
96 }
97 template <typename PlayerDataMapKeyT = Aws::String, typename PlayerDataMapValueT = Aws::String>
98 CreatePlayerSessionsRequest& AddPlayerDataMap(PlayerDataMapKeyT&& key, PlayerDataMapValueT&& value) {
99 m_playerDataMapHasBeenSet = true;
100 m_playerDataMap.emplace(std::forward<PlayerDataMapKeyT>(key), std::forward<PlayerDataMapValueT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_gameSessionId;
106
107 Aws::Vector<Aws::String> m_playerIds;
108
110 bool m_gameSessionIdHasBeenSet = false;
111 bool m_playerIdsHasBeenSet = false;
112 bool m_playerDataMapHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace GameLift
117} // namespace Aws
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreatePlayerSessionsRequest & WithPlayerIds(PlayerIdsT &&value)
CreatePlayerSessionsRequest & WithPlayerDataMap(PlayerDataMapT &&value)
AWS_GAMELIFT_API CreatePlayerSessionsRequest()=default
const Aws::Vector< Aws::String > & GetPlayerIds() const
virtual const char * GetServiceRequestName() const override
CreatePlayerSessionsRequest & AddPlayerIds(PlayerIdsT &&value)
CreatePlayerSessionsRequest & AddPlayerDataMap(PlayerDataMapKeyT &&key, PlayerDataMapValueT &&value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetPlayerDataMap() const
CreatePlayerSessionsRequest & WithGameSessionId(GameSessionIdT &&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