AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename GameSessionIdT = Aws::String>
46 void SetGameSessionId(GameSessionIdT&& value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId = std::forward<GameSessionIdT>(value); }
47 template<typename GameSessionIdT = Aws::String>
48 CreatePlayerSessionsRequest& WithGameSessionId(GameSessionIdT&& value) { SetGameSessionId(std::forward<GameSessionIdT>(value)); return *this;}
50
52
55 inline const Aws::Vector<Aws::String>& GetPlayerIds() const { return m_playerIds; }
56 inline bool PlayerIdsHasBeenSet() const { return m_playerIdsHasBeenSet; }
57 template<typename PlayerIdsT = Aws::Vector<Aws::String>>
58 void SetPlayerIds(PlayerIdsT&& value) { m_playerIdsHasBeenSet = true; m_playerIds = std::forward<PlayerIdsT>(value); }
59 template<typename PlayerIdsT = Aws::Vector<Aws::String>>
60 CreatePlayerSessionsRequest& WithPlayerIds(PlayerIdsT&& value) { SetPlayerIds(std::forward<PlayerIdsT>(value)); return *this;}
61 template<typename PlayerIdsT = Aws::String>
62 CreatePlayerSessionsRequest& AddPlayerIds(PlayerIdsT&& value) { m_playerIdsHasBeenSet = true; m_playerIds.emplace_back(std::forward<PlayerIdsT>(value)); return *this; }
64
66
73 inline const Aws::Map<Aws::String, Aws::String>& GetPlayerDataMap() const { return m_playerDataMap; }
74 inline bool PlayerDataMapHasBeenSet() const { return m_playerDataMapHasBeenSet; }
75 template<typename PlayerDataMapT = Aws::Map<Aws::String, Aws::String>>
76 void SetPlayerDataMap(PlayerDataMapT&& value) { m_playerDataMapHasBeenSet = true; m_playerDataMap = std::forward<PlayerDataMapT>(value); }
77 template<typename PlayerDataMapT = Aws::Map<Aws::String, Aws::String>>
78 CreatePlayerSessionsRequest& WithPlayerDataMap(PlayerDataMapT&& value) { SetPlayerDataMap(std::forward<PlayerDataMapT>(value)); return *this;}
79 template<typename PlayerDataMapKeyT = Aws::String, typename PlayerDataMapValueT = Aws::String>
80 CreatePlayerSessionsRequest& AddPlayerDataMap(PlayerDataMapKeyT&& key, PlayerDataMapValueT&& value) {
81 m_playerDataMapHasBeenSet = true; m_playerDataMap.emplace(std::forward<PlayerDataMapKeyT>(key), std::forward<PlayerDataMapValueT>(value)); return *this;
82 }
84 private:
85
86 Aws::String m_gameSessionId;
87 bool m_gameSessionIdHasBeenSet = false;
88
89 Aws::Vector<Aws::String> m_playerIds;
90 bool m_playerIdsHasBeenSet = false;
91
93 bool m_playerDataMapHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace GameLift
98} // 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