AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreatePlayerSessionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/gamelift/GameLiftRequest.h>
9#include <aws/gamelift/GameLift_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace GameLift {
15namespace Model {
16
20 public:
21 AWS_GAMELIFT_API CreatePlayerSessionRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "CreatePlayerSession"; }
28
29 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
30
32
34
37 inline const Aws::String& GetGameSessionId() const { return m_gameSessionId; }
38 inline bool GameSessionIdHasBeenSet() const { return m_gameSessionIdHasBeenSet; }
39 template <typename GameSessionIdT = Aws::String>
40 void SetGameSessionId(GameSessionIdT&& value) {
41 m_gameSessionIdHasBeenSet = true;
42 m_gameSessionId = std::forward<GameSessionIdT>(value);
43 }
44 template <typename GameSessionIdT = Aws::String>
46 SetGameSessionId(std::forward<GameSessionIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetPlayerId() const { return m_playerId; }
56 inline bool PlayerIdHasBeenSet() const { return m_playerIdHasBeenSet; }
57 template <typename PlayerIdT = Aws::String>
58 void SetPlayerId(PlayerIdT&& value) {
59 m_playerIdHasBeenSet = true;
60 m_playerId = std::forward<PlayerIdT>(value);
61 }
62 template <typename PlayerIdT = Aws::String>
64 SetPlayerId(std::forward<PlayerIdT>(value));
65 return *this;
66 }
68
70
75 inline const Aws::String& GetPlayerData() const { return m_playerData; }
76 inline bool PlayerDataHasBeenSet() const { return m_playerDataHasBeenSet; }
77 template <typename PlayerDataT = Aws::String>
78 void SetPlayerData(PlayerDataT&& value) {
79 m_playerDataHasBeenSet = true;
80 m_playerData = std::forward<PlayerDataT>(value);
81 }
82 template <typename PlayerDataT = Aws::String>
84 SetPlayerData(std::forward<PlayerDataT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_gameSessionId;
90
91 Aws::String m_playerId;
92
93 Aws::String m_playerData;
94 bool m_gameSessionIdHasBeenSet = false;
95 bool m_playerIdHasBeenSet = false;
96 bool m_playerDataHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace GameLift
101} // namespace Aws
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_GAMELIFT_API Aws::String SerializePayload() const override
CreatePlayerSessionRequest & WithPlayerId(PlayerIdT &&value)
CreatePlayerSessionRequest & WithGameSessionId(GameSessionIdT &&value)
CreatePlayerSessionRequest & WithPlayerData(PlayerDataT &&value)
virtual const char * GetServiceRequestName() const override
AWS_GAMELIFT_API CreatePlayerSessionRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String