AWS SDK for C++

AWS SDK for C++ Version 1.11.812

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
42 inline const Aws::String& GetGameSessionId() const { return m_gameSessionId; }
43 inline bool GameSessionIdHasBeenSet() const { return m_gameSessionIdHasBeenSet; }
44 template <typename GameSessionIdT = Aws::String>
45 void SetGameSessionId(GameSessionIdT&& value) {
46 m_gameSessionIdHasBeenSet = true;
47 m_gameSessionId = std::forward<GameSessionIdT>(value);
48 }
49 template <typename GameSessionIdT = Aws::String>
51 SetGameSessionId(std::forward<GameSessionIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<Aws::String>& GetPlayerIds() const { return m_playerIds; }
61 inline bool PlayerIdsHasBeenSet() const { return m_playerIdsHasBeenSet; }
62 template <typename PlayerIdsT = Aws::Vector<Aws::String>>
63 void SetPlayerIds(PlayerIdsT&& value) {
64 m_playerIdsHasBeenSet = true;
65 m_playerIds = std::forward<PlayerIdsT>(value);
66 }
67 template <typename PlayerIdsT = Aws::Vector<Aws::String>>
69 SetPlayerIds(std::forward<PlayerIdsT>(value));
70 return *this;
71 }
72 template <typename PlayerIdsT = Aws::String>
74 m_playerIdsHasBeenSet = true;
75 m_playerIds.emplace_back(std::forward<PlayerIdsT>(value));
76 return *this;
77 }
79
81
88 inline const Aws::Map<Aws::String, Aws::String>& GetPlayerDataMap() const { return m_playerDataMap; }
89 inline bool PlayerDataMapHasBeenSet() const { return m_playerDataMapHasBeenSet; }
90 template <typename PlayerDataMapT = Aws::Map<Aws::String, Aws::String>>
91 void SetPlayerDataMap(PlayerDataMapT&& value) {
92 m_playerDataMapHasBeenSet = true;
93 m_playerDataMap = std::forward<PlayerDataMapT>(value);
94 }
95 template <typename PlayerDataMapT = Aws::Map<Aws::String, Aws::String>>
97 SetPlayerDataMap(std::forward<PlayerDataMapT>(value));
98 return *this;
99 }
100 template <typename PlayerDataMapKeyT = Aws::String, typename PlayerDataMapValueT = Aws::String>
101 CreatePlayerSessionsRequest& AddPlayerDataMap(PlayerDataMapKeyT&& key, PlayerDataMapValueT&& value) {
102 m_playerDataMapHasBeenSet = true;
103 m_playerDataMap.emplace(std::forward<PlayerDataMapKeyT>(key), std::forward<PlayerDataMapValueT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_gameSessionId;
109
110 Aws::Vector<Aws::String> m_playerIds;
111
113 bool m_gameSessionIdHasBeenSet = false;
114 bool m_playerIdsHasBeenSet = false;
115 bool m_playerDataMapHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace GameLift
120} // 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