AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
GetPlayerConnectionDetailsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/gamelift/GameLiftRequest.h>
10#include <aws/gamelift/GameLift_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace GameLift {
16namespace Model {
17
21 public:
22 AWS_GAMELIFT_API GetPlayerConnectionDetailsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "GetPlayerConnectionDetails"; }
29
30 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
31
33
35
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
61 inline const Aws::Vector<Aws::String>& GetPlayerIds() const { return m_playerIds; }
62 inline bool PlayerIdsHasBeenSet() const { return m_playerIdsHasBeenSet; }
63 template <typename PlayerIdsT = Aws::Vector<Aws::String>>
64 void SetPlayerIds(PlayerIdsT&& value) {
65 m_playerIdsHasBeenSet = true;
66 m_playerIds = std::forward<PlayerIdsT>(value);
67 }
68 template <typename PlayerIdsT = Aws::Vector<Aws::String>>
70 SetPlayerIds(std::forward<PlayerIdsT>(value));
71 return *this;
72 }
73 template <typename PlayerIdsT = Aws::String>
75 m_playerIdsHasBeenSet = true;
76 m_playerIds.emplace_back(std::forward<PlayerIdsT>(value));
77 return *this;
78 }
80 private:
81 Aws::String m_gameSessionId;
82
83 Aws::Vector<Aws::String> m_playerIds;
84 bool m_gameSessionIdHasBeenSet = false;
85 bool m_playerIdsHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace GameLift
90} // namespace Aws
GetPlayerConnectionDetailsRequest & WithPlayerIds(PlayerIdsT &&value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
GetPlayerConnectionDetailsRequest & AddPlayerIds(PlayerIdsT &&value)
AWS_GAMELIFT_API GetPlayerConnectionDetailsRequest()=default
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetPlayerConnectionDetailsRequest & WithGameSessionId(GameSessionIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector