AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPlayerSessionId(const Aws::String& value) { m_playerSessionIdHasBeenSet = true; m_playerSessionId = value; }
59 inline void SetPlayerSessionId(Aws::String&& value) { m_playerSessionIdHasBeenSet = true; m_playerSessionId = std::move(value); }
60 inline void SetPlayerSessionId(const char* value) { m_playerSessionIdHasBeenSet = true; m_playerSessionId.assign(value); }
61 inline PlayerSession& WithPlayerSessionId(const Aws::String& value) { SetPlayerSessionId(value); return *this;}
62 inline PlayerSession& WithPlayerSessionId(Aws::String&& value) { SetPlayerSessionId(std::move(value)); return *this;}
63 inline PlayerSession& WithPlayerSessionId(const char* value) { SetPlayerSessionId(value); return *this;}
65
67
71 inline const Aws::String& GetPlayerId() const{ return m_playerId; }
72 inline bool PlayerIdHasBeenSet() const { return m_playerIdHasBeenSet; }
73 inline void SetPlayerId(const Aws::String& value) { m_playerIdHasBeenSet = true; m_playerId = value; }
74 inline void SetPlayerId(Aws::String&& value) { m_playerIdHasBeenSet = true; m_playerId = std::move(value); }
75 inline void SetPlayerId(const char* value) { m_playerIdHasBeenSet = true; m_playerId.assign(value); }
76 inline PlayerSession& WithPlayerId(const Aws::String& value) { SetPlayerId(value); return *this;}
77 inline PlayerSession& WithPlayerId(Aws::String&& value) { SetPlayerId(std::move(value)); return *this;}
78 inline PlayerSession& WithPlayerId(const char* value) { SetPlayerId(value); return *this;}
80
82
86 inline const Aws::String& GetGameSessionId() const{ return m_gameSessionId; }
87 inline bool GameSessionIdHasBeenSet() const { return m_gameSessionIdHasBeenSet; }
88 inline void SetGameSessionId(const Aws::String& value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId = value; }
89 inline void SetGameSessionId(Aws::String&& value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId = std::move(value); }
90 inline void SetGameSessionId(const char* value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId.assign(value); }
91 inline PlayerSession& WithGameSessionId(const Aws::String& value) { SetGameSessionId(value); return *this;}
92 inline PlayerSession& WithGameSessionId(Aws::String&& value) { SetGameSessionId(std::move(value)); return *this;}
93 inline PlayerSession& WithGameSessionId(const char* value) { SetGameSessionId(value); return *this;}
95
97
101 inline const Aws::String& GetFleetId() const{ return m_fleetId; }
102 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
103 inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
104 inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
105 inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
106 inline PlayerSession& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
107 inline PlayerSession& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
108 inline PlayerSession& WithFleetId(const char* value) { SetFleetId(value); return *this;}
110
112
118 inline const Aws::String& GetFleetArn() const{ return m_fleetArn; }
119 inline bool FleetArnHasBeenSet() const { return m_fleetArnHasBeenSet; }
120 inline void SetFleetArn(const Aws::String& value) { m_fleetArnHasBeenSet = true; m_fleetArn = value; }
121 inline void SetFleetArn(Aws::String&& value) { m_fleetArnHasBeenSet = true; m_fleetArn = std::move(value); }
122 inline void SetFleetArn(const char* value) { m_fleetArnHasBeenSet = true; m_fleetArn.assign(value); }
123 inline PlayerSession& WithFleetArn(const Aws::String& value) { SetFleetArn(value); return *this;}
124 inline PlayerSession& WithFleetArn(Aws::String&& value) { SetFleetArn(std::move(value)); return *this;}
125 inline PlayerSession& WithFleetArn(const char* value) { SetFleetArn(value); return *this;}
127
129
134 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
135 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
136 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
137 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
138 inline PlayerSession& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
139 inline PlayerSession& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
141
143
148 inline const Aws::Utils::DateTime& GetTerminationTime() const{ return m_terminationTime; }
149 inline bool TerminationTimeHasBeenSet() const { return m_terminationTimeHasBeenSet; }
150 inline void SetTerminationTime(const Aws::Utils::DateTime& value) { m_terminationTimeHasBeenSet = true; m_terminationTime = value; }
151 inline void SetTerminationTime(Aws::Utils::DateTime&& value) { m_terminationTimeHasBeenSet = true; m_terminationTime = std::move(value); }
152 inline PlayerSession& WithTerminationTime(const Aws::Utils::DateTime& value) { SetTerminationTime(value); return *this;}
153 inline PlayerSession& WithTerminationTime(Aws::Utils::DateTime&& value) { SetTerminationTime(std::move(value)); return *this;}
155
157
168 inline const PlayerSessionStatus& GetStatus() const{ return m_status; }
169 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
170 inline void SetStatus(const PlayerSessionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
171 inline void SetStatus(PlayerSessionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
172 inline PlayerSession& WithStatus(const PlayerSessionStatus& value) { SetStatus(value); return *this;}
173 inline PlayerSession& WithStatus(PlayerSessionStatus&& value) { SetStatus(std::move(value)); return *this;}
175
177
181 inline const Aws::String& GetIpAddress() const{ return m_ipAddress; }
182 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
183 inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
184 inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::move(value); }
185 inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); }
186 inline PlayerSession& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;}
187 inline PlayerSession& WithIpAddress(Aws::String&& value) { SetIpAddress(std::move(value)); return *this;}
188 inline PlayerSession& WithIpAddress(const char* value) { SetIpAddress(value); return *this;}
190
192
204 inline const Aws::String& GetDnsName() const{ return m_dnsName; }
205 inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
206 inline void SetDnsName(const Aws::String& value) { m_dnsNameHasBeenSet = true; m_dnsName = value; }
207 inline void SetDnsName(Aws::String&& value) { m_dnsNameHasBeenSet = true; m_dnsName = std::move(value); }
208 inline void SetDnsName(const char* value) { m_dnsNameHasBeenSet = true; m_dnsName.assign(value); }
209 inline PlayerSession& WithDnsName(const Aws::String& value) { SetDnsName(value); return *this;}
210 inline PlayerSession& WithDnsName(Aws::String&& value) { SetDnsName(std::move(value)); return *this;}
211 inline PlayerSession& WithDnsName(const char* value) { SetDnsName(value); return *this;}
213
215
219 inline int GetPort() const{ return m_port; }
220 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
221 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
222 inline PlayerSession& WithPort(int value) { SetPort(value); return *this;}
224
226
230 inline const Aws::String& GetPlayerData() const{ return m_playerData; }
231 inline bool PlayerDataHasBeenSet() const { return m_playerDataHasBeenSet; }
232 inline void SetPlayerData(const Aws::String& value) { m_playerDataHasBeenSet = true; m_playerData = value; }
233 inline void SetPlayerData(Aws::String&& value) { m_playerDataHasBeenSet = true; m_playerData = std::move(value); }
234 inline void SetPlayerData(const char* value) { m_playerDataHasBeenSet = true; m_playerData.assign(value); }
235 inline PlayerSession& WithPlayerData(const Aws::String& value) { SetPlayerData(value); return *this;}
236 inline PlayerSession& WithPlayerData(Aws::String&& value) { SetPlayerData(std::move(value)); return *this;}
237 inline PlayerSession& WithPlayerData(const char* value) { SetPlayerData(value); return *this;}
239 private:
240
241 Aws::String m_playerSessionId;
242 bool m_playerSessionIdHasBeenSet = false;
243
244 Aws::String m_playerId;
245 bool m_playerIdHasBeenSet = false;
246
247 Aws::String m_gameSessionId;
248 bool m_gameSessionIdHasBeenSet = false;
249
250 Aws::String m_fleetId;
251 bool m_fleetIdHasBeenSet = false;
252
253 Aws::String m_fleetArn;
254 bool m_fleetArnHasBeenSet = false;
255
256 Aws::Utils::DateTime m_creationTime;
257 bool m_creationTimeHasBeenSet = false;
258
259 Aws::Utils::DateTime m_terminationTime;
260 bool m_terminationTimeHasBeenSet = false;
261
262 PlayerSessionStatus m_status;
263 bool m_statusHasBeenSet = false;
264
265 Aws::String m_ipAddress;
266 bool m_ipAddressHasBeenSet = false;
267
268 Aws::String m_dnsName;
269 bool m_dnsNameHasBeenSet = false;
270
271 int m_port;
272 bool m_portHasBeenSet = false;
273
274 Aws::String m_playerData;
275 bool m_playerDataHasBeenSet = false;
276 };
277
278} // namespace Model
279} // namespace GameLift
280} // namespace Aws
PlayerSession & WithIpAddress(const char *value)
AWS_GAMELIFT_API PlayerSession & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPlayerSessionId(const char *value)
PlayerSession & WithFleetArn(Aws::String &&value)
void SetIpAddress(const char *value)
void SetStatus(const PlayerSessionStatus &value)
PlayerSession & WithGameSessionId(const char *value)
void SetFleetId(const Aws::String &value)
PlayerSession & WithPlayerSessionId(Aws::String &&value)
AWS_GAMELIFT_API PlayerSession(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetTerminationTime() const
PlayerSession & WithFleetId(Aws::String &&value)
void SetFleetId(const char *value)
PlayerSession & WithIpAddress(Aws::String &&value)
void SetGameSessionId(const char *value)
void SetGameSessionId(const Aws::String &value)
PlayerSession & WithPlayerData(Aws::String &&value)
PlayerSession & WithCreationTime(const Aws::Utils::DateTime &value)
PlayerSession & WithPlayerId(Aws::String &&value)
void SetPlayerId(const Aws::String &value)
void SetPlayerData(Aws::String &&value)
PlayerSession & WithGameSessionId(const Aws::String &value)
PlayerSession & WithDnsName(const char *value)
PlayerSession & WithPlayerSessionId(const Aws::String &value)
void SetPlayerId(Aws::String &&value)
void SetPlayerSessionId(const Aws::String &value)
void SetCreationTime(const Aws::Utils::DateTime &value)
void SetFleetArn(const char *value)
const Aws::String & GetIpAddress() const
void SetFleetArn(const Aws::String &value)
PlayerSession & WithStatus(const PlayerSessionStatus &value)
PlayerSession & WithTerminationTime(Aws::Utils::DateTime &&value)
const Aws::String & GetGameSessionId() const
const Aws::String & GetPlayerData() const
void SetPlayerId(const char *value)
const Aws::String & GetPlayerId() const
void SetStatus(PlayerSessionStatus &&value)
const Aws::Utils::DateTime & GetCreationTime() const
PlayerSession & WithPort(int value)
void SetDnsName(const Aws::String &value)
PlayerSession & WithGameSessionId(Aws::String &&value)
const Aws::String & GetFleetId() const
void SetTerminationTime(const Aws::Utils::DateTime &value)
PlayerSession & WithFleetArn(const char *value)
void SetFleetId(Aws::String &&value)
void SetPlayerSessionId(Aws::String &&value)
void SetFleetArn(Aws::String &&value)
PlayerSession & WithPlayerSessionId(const char *value)
PlayerSession & WithFleetId(const Aws::String &value)
void SetPlayerData(const char *value)
const PlayerSessionStatus & GetStatus() const
void SetCreationTime(Aws::Utils::DateTime &&value)
PlayerSession & WithStatus(PlayerSessionStatus &&value)
PlayerSession & WithFleetArn(const Aws::String &value)
PlayerSession & WithPlayerData(const Aws::String &value)
PlayerSession & WithTerminationTime(const Aws::Utils::DateTime &value)
PlayerSession & WithPlayerId(const Aws::String &value)
PlayerSession & WithCreationTime(Aws::Utils::DateTime &&value)
void SetDnsName(const char *value)
PlayerSession & WithPlayerId(const char *value)
void SetPlayerData(const Aws::String &value)
void SetGameSessionId(Aws::String &&value)
const Aws::String & GetDnsName() const
PlayerSession & WithIpAddress(const Aws::String &value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
PlayerSession & WithDnsName(Aws::String &&value)
PlayerSession & WithFleetId(const char *value)
const Aws::String & GetFleetArn() const
const Aws::String & GetPlayerSessionId() const
void SetIpAddress(Aws::String &&value)
void SetTerminationTime(Aws::Utils::DateTime &&value)
void SetDnsName(Aws::String &&value)
PlayerSession & WithDnsName(const Aws::String &value)
void SetIpAddress(const Aws::String &value)
PlayerSession & WithPlayerData(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue