AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PlayerSession.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/gamelift/model/PlayerSessionStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GameLift
24{
25namespace Model
26{
27
44 {
45 public:
46 AWS_GAMELIFT_API PlayerSession() = default;
47 AWS_GAMELIFT_API PlayerSession(Aws::Utils::Json::JsonView jsonValue);
49 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
50
51
53
56 inline const Aws::String& GetPlayerSessionId() const { return m_playerSessionId; }
57 inline bool PlayerSessionIdHasBeenSet() const { return m_playerSessionIdHasBeenSet; }
58 template<typename PlayerSessionIdT = Aws::String>
59 void SetPlayerSessionId(PlayerSessionIdT&& value) { m_playerSessionIdHasBeenSet = true; m_playerSessionId = std::forward<PlayerSessionIdT>(value); }
60 template<typename PlayerSessionIdT = Aws::String>
61 PlayerSession& WithPlayerSessionId(PlayerSessionIdT&& value) { SetPlayerSessionId(std::forward<PlayerSessionIdT>(value)); return *this;}
63
65
69 inline const Aws::String& GetPlayerId() const { return m_playerId; }
70 inline bool PlayerIdHasBeenSet() const { return m_playerIdHasBeenSet; }
71 template<typename PlayerIdT = Aws::String>
72 void SetPlayerId(PlayerIdT&& value) { m_playerIdHasBeenSet = true; m_playerId = std::forward<PlayerIdT>(value); }
73 template<typename PlayerIdT = Aws::String>
74 PlayerSession& WithPlayerId(PlayerIdT&& value) { SetPlayerId(std::forward<PlayerIdT>(value)); return *this;}
76
78
82 inline const Aws::String& GetGameSessionId() const { return m_gameSessionId; }
83 inline bool GameSessionIdHasBeenSet() const { return m_gameSessionIdHasBeenSet; }
84 template<typename GameSessionIdT = Aws::String>
85 void SetGameSessionId(GameSessionIdT&& value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId = std::forward<GameSessionIdT>(value); }
86 template<typename GameSessionIdT = Aws::String>
87 PlayerSession& WithGameSessionId(GameSessionIdT&& value) { SetGameSessionId(std::forward<GameSessionIdT>(value)); return *this;}
89
91
95 inline const Aws::String& GetFleetId() const { return m_fleetId; }
96 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
97 template<typename FleetIdT = Aws::String>
98 void SetFleetId(FleetIdT&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::forward<FleetIdT>(value); }
99 template<typename FleetIdT = Aws::String>
100 PlayerSession& WithFleetId(FleetIdT&& value) { SetFleetId(std::forward<FleetIdT>(value)); return *this;}
102
104
110 inline const Aws::String& GetFleetArn() const { return m_fleetArn; }
111 inline bool FleetArnHasBeenSet() const { return m_fleetArnHasBeenSet; }
112 template<typename FleetArnT = Aws::String>
113 void SetFleetArn(FleetArnT&& value) { m_fleetArnHasBeenSet = true; m_fleetArn = std::forward<FleetArnT>(value); }
114 template<typename FleetArnT = Aws::String>
115 PlayerSession& WithFleetArn(FleetArnT&& value) { SetFleetArn(std::forward<FleetArnT>(value)); return *this;}
117
119
124 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
125 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
126 template<typename CreationTimeT = Aws::Utils::DateTime>
127 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
128 template<typename CreationTimeT = Aws::Utils::DateTime>
129 PlayerSession& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
131
133
138 inline const Aws::Utils::DateTime& GetTerminationTime() const { return m_terminationTime; }
139 inline bool TerminationTimeHasBeenSet() const { return m_terminationTimeHasBeenSet; }
140 template<typename TerminationTimeT = Aws::Utils::DateTime>
141 void SetTerminationTime(TerminationTimeT&& value) { m_terminationTimeHasBeenSet = true; m_terminationTime = std::forward<TerminationTimeT>(value); }
142 template<typename TerminationTimeT = Aws::Utils::DateTime>
143 PlayerSession& WithTerminationTime(TerminationTimeT&& value) { SetTerminationTime(std::forward<TerminationTimeT>(value)); return *this;}
145
147
158 inline PlayerSessionStatus GetStatus() const { return m_status; }
159 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
160 inline void SetStatus(PlayerSessionStatus value) { m_statusHasBeenSet = true; m_status = value; }
161 inline PlayerSession& WithStatus(PlayerSessionStatus value) { SetStatus(value); return *this;}
163
165
169 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
170 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
171 template<typename IpAddressT = Aws::String>
172 void SetIpAddress(IpAddressT&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::forward<IpAddressT>(value); }
173 template<typename IpAddressT = Aws::String>
174 PlayerSession& WithIpAddress(IpAddressT&& value) { SetIpAddress(std::forward<IpAddressT>(value)); return *this;}
176
178
190 inline const Aws::String& GetDnsName() const { return m_dnsName; }
191 inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
192 template<typename DnsNameT = Aws::String>
193 void SetDnsName(DnsNameT&& value) { m_dnsNameHasBeenSet = true; m_dnsName = std::forward<DnsNameT>(value); }
194 template<typename DnsNameT = Aws::String>
195 PlayerSession& WithDnsName(DnsNameT&& value) { SetDnsName(std::forward<DnsNameT>(value)); return *this;}
197
199
203 inline int GetPort() const { return m_port; }
204 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
205 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
206 inline PlayerSession& WithPort(int value) { SetPort(value); return *this;}
208
210
215 inline const Aws::String& GetPlayerData() const { return m_playerData; }
216 inline bool PlayerDataHasBeenSet() const { return m_playerDataHasBeenSet; }
217 template<typename PlayerDataT = Aws::String>
218 void SetPlayerData(PlayerDataT&& value) { m_playerDataHasBeenSet = true; m_playerData = std::forward<PlayerDataT>(value); }
219 template<typename PlayerDataT = Aws::String>
220 PlayerSession& WithPlayerData(PlayerDataT&& value) { SetPlayerData(std::forward<PlayerDataT>(value)); return *this;}
222 private:
223
224 Aws::String m_playerSessionId;
225 bool m_playerSessionIdHasBeenSet = false;
226
227 Aws::String m_playerId;
228 bool m_playerIdHasBeenSet = false;
229
230 Aws::String m_gameSessionId;
231 bool m_gameSessionIdHasBeenSet = false;
232
233 Aws::String m_fleetId;
234 bool m_fleetIdHasBeenSet = false;
235
236 Aws::String m_fleetArn;
237 bool m_fleetArnHasBeenSet = false;
238
239 Aws::Utils::DateTime m_creationTime{};
240 bool m_creationTimeHasBeenSet = false;
241
242 Aws::Utils::DateTime m_terminationTime{};
243 bool m_terminationTimeHasBeenSet = false;
244
246 bool m_statusHasBeenSet = false;
247
248 Aws::String m_ipAddress;
249 bool m_ipAddressHasBeenSet = false;
250
251 Aws::String m_dnsName;
252 bool m_dnsNameHasBeenSet = false;
253
254 int m_port{0};
255 bool m_portHasBeenSet = false;
256
257 Aws::String m_playerData;
258 bool m_playerDataHasBeenSet = false;
259 };
260
261} // namespace Model
262} // namespace GameLift
263} // namespace Aws
AWS_GAMELIFT_API PlayerSession & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GAMELIFT_API PlayerSession(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetTerminationTime() const
void SetFleetArn(FleetArnT &&value)
AWS_GAMELIFT_API PlayerSession()=default
void SetPlayerSessionId(PlayerSessionIdT &&value)
void SetPlayerId(PlayerIdT &&value)
PlayerSession & WithPlayerId(PlayerIdT &&value)
void SetCreationTime(CreationTimeT &&value)
void SetGameSessionId(GameSessionIdT &&value)
const Aws::String & GetIpAddress() const
const Aws::String & GetGameSessionId() const
const Aws::String & GetPlayerData() const
void SetIpAddress(IpAddressT &&value)
void SetPlayerData(PlayerDataT &&value)
const Aws::String & GetPlayerId() const
const Aws::Utils::DateTime & GetCreationTime() const
PlayerSession & WithPort(int value)
const Aws::String & GetFleetId() const
PlayerSession & WithFleetArn(FleetArnT &&value)
PlayerSession & WithDnsName(DnsNameT &&value)
void SetStatus(PlayerSessionStatus value)
PlayerSession & WithGameSessionId(GameSessionIdT &&value)
const Aws::String & GetDnsName() const
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTerminationTime(TerminationTimeT &&value)
PlayerSessionStatus GetStatus() const
PlayerSession & WithFleetId(FleetIdT &&value)
PlayerSession & WithIpAddress(IpAddressT &&value)
void SetDnsName(DnsNameT &&value)
const Aws::String & GetFleetArn() const
const Aws::String & GetPlayerSessionId() const
PlayerSession & WithPlayerSessionId(PlayerSessionIdT &&value)
PlayerSession & WithCreationTime(CreationTimeT &&value)
PlayerSession & WithPlayerData(PlayerDataT &&value)
PlayerSession & WithStatus(PlayerSessionStatus value)
void SetFleetId(FleetIdT &&value)
PlayerSession & WithTerminationTime(TerminationTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue