AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GameSession.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/GameSessionStatus.h>
11#include <aws/gamelift/model/GameSessionStatusReason.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/gamelift/model/PlayerSessionCreationPolicy.h>
14#include <aws/gamelift/model/GameProperty.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace GameLift
28{
29namespace Model
30{
31
44 {
45 public:
46 AWS_GAMELIFT_API GameSession();
47 AWS_GAMELIFT_API GameSession(Aws::Utils::Json::JsonView jsonValue);
48 AWS_GAMELIFT_API GameSession& operator=(Aws::Utils::Json::JsonView jsonValue);
49 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
50
51
53
58 inline const Aws::String& GetGameSessionId() const{ return m_gameSessionId; }
59 inline bool GameSessionIdHasBeenSet() const { return m_gameSessionIdHasBeenSet; }
60 inline void SetGameSessionId(const Aws::String& value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId = value; }
61 inline void SetGameSessionId(Aws::String&& value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId = std::move(value); }
62 inline void SetGameSessionId(const char* value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId.assign(value); }
63 inline GameSession& WithGameSessionId(const Aws::String& value) { SetGameSessionId(value); return *this;}
64 inline GameSession& WithGameSessionId(Aws::String&& value) { SetGameSessionId(std::move(value)); return *this;}
65 inline GameSession& WithGameSessionId(const char* value) { SetGameSessionId(value); return *this;}
67
69
73 inline const Aws::String& GetName() const{ return m_name; }
74 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
75 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
76 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
77 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
78 inline GameSession& WithName(const Aws::String& value) { SetName(value); return *this;}
79 inline GameSession& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
80 inline GameSession& WithName(const char* value) { SetName(value); return *this;}
82
84
87 inline const Aws::String& GetFleetId() const{ return m_fleetId; }
88 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
89 inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
90 inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
91 inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
92 inline GameSession& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
93 inline GameSession& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
94 inline GameSession& WithFleetId(const char* value) { SetFleetId(value); return *this;}
96
98
103 inline const Aws::String& GetFleetArn() const{ return m_fleetArn; }
104 inline bool FleetArnHasBeenSet() const { return m_fleetArnHasBeenSet; }
105 inline void SetFleetArn(const Aws::String& value) { m_fleetArnHasBeenSet = true; m_fleetArn = value; }
106 inline void SetFleetArn(Aws::String&& value) { m_fleetArnHasBeenSet = true; m_fleetArn = std::move(value); }
107 inline void SetFleetArn(const char* value) { m_fleetArnHasBeenSet = true; m_fleetArn.assign(value); }
108 inline GameSession& WithFleetArn(const Aws::String& value) { SetFleetArn(value); return *this;}
109 inline GameSession& WithFleetArn(Aws::String&& value) { SetFleetArn(std::move(value)); return *this;}
110 inline GameSession& WithFleetArn(const char* value) { SetFleetArn(value); return *this;}
112
114
119 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
120 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
121 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
122 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
123 inline GameSession& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
124 inline GameSession& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
126
128
133 inline const Aws::Utils::DateTime& GetTerminationTime() const{ return m_terminationTime; }
134 inline bool TerminationTimeHasBeenSet() const { return m_terminationTimeHasBeenSet; }
135 inline void SetTerminationTime(const Aws::Utils::DateTime& value) { m_terminationTimeHasBeenSet = true; m_terminationTime = value; }
136 inline void SetTerminationTime(Aws::Utils::DateTime&& value) { m_terminationTimeHasBeenSet = true; m_terminationTime = std::move(value); }
137 inline GameSession& WithTerminationTime(const Aws::Utils::DateTime& value) { SetTerminationTime(value); return *this;}
138 inline GameSession& WithTerminationTime(Aws::Utils::DateTime&& value) { SetTerminationTime(std::move(value)); return *this;}
140
142
145 inline int GetCurrentPlayerSessionCount() const{ return m_currentPlayerSessionCount; }
146 inline bool CurrentPlayerSessionCountHasBeenSet() const { return m_currentPlayerSessionCountHasBeenSet; }
147 inline void SetCurrentPlayerSessionCount(int value) { m_currentPlayerSessionCountHasBeenSet = true; m_currentPlayerSessionCount = value; }
150
152
156 inline int GetMaximumPlayerSessionCount() const{ return m_maximumPlayerSessionCount; }
157 inline bool MaximumPlayerSessionCountHasBeenSet() const { return m_maximumPlayerSessionCountHasBeenSet; }
158 inline void SetMaximumPlayerSessionCount(int value) { m_maximumPlayerSessionCountHasBeenSet = true; m_maximumPlayerSessionCount = value; }
161
163
167 inline const GameSessionStatus& GetStatus() const{ return m_status; }
168 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
169 inline void SetStatus(const GameSessionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
170 inline void SetStatus(GameSessionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
171 inline GameSession& WithStatus(const GameSessionStatus& value) { SetStatus(value); return *this;}
172 inline GameSession& WithStatus(GameSessionStatus&& value) { SetStatus(std::move(value)); return *this;}
174
176
182 inline const GameSessionStatusReason& GetStatusReason() const{ return m_statusReason; }
183 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
184 inline void SetStatusReason(const GameSessionStatusReason& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
185 inline void SetStatusReason(GameSessionStatusReason&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); }
186 inline GameSession& WithStatusReason(const GameSessionStatusReason& value) { SetStatusReason(value); return *this;}
187 inline GameSession& WithStatusReason(GameSessionStatusReason&& value) { SetStatusReason(std::move(value)); return *this;}
189
191
195 inline const Aws::Vector<GameProperty>& GetGameProperties() const{ return m_gameProperties; }
196 inline bool GamePropertiesHasBeenSet() const { return m_gamePropertiesHasBeenSet; }
197 inline void SetGameProperties(const Aws::Vector<GameProperty>& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties = value; }
198 inline void SetGameProperties(Aws::Vector<GameProperty>&& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties = std::move(value); }
199 inline GameSession& WithGameProperties(const Aws::Vector<GameProperty>& value) { SetGameProperties(value); return *this;}
200 inline GameSession& WithGameProperties(Aws::Vector<GameProperty>&& value) { SetGameProperties(std::move(value)); return *this;}
201 inline GameSession& AddGameProperties(const GameProperty& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties.push_back(value); return *this; }
202 inline GameSession& AddGameProperties(GameProperty&& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties.push_back(std::move(value)); return *this; }
204
206
210 inline const Aws::String& GetIpAddress() const{ return m_ipAddress; }
211 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
212 inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
213 inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::move(value); }
214 inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); }
215 inline GameSession& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;}
216 inline GameSession& WithIpAddress(Aws::String&& value) { SetIpAddress(std::move(value)); return *this;}
217 inline GameSession& WithIpAddress(const char* value) { SetIpAddress(value); return *this;}
219
221
233 inline const Aws::String& GetDnsName() const{ return m_dnsName; }
234 inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
235 inline void SetDnsName(const Aws::String& value) { m_dnsNameHasBeenSet = true; m_dnsName = value; }
236 inline void SetDnsName(Aws::String&& value) { m_dnsNameHasBeenSet = true; m_dnsName = std::move(value); }
237 inline void SetDnsName(const char* value) { m_dnsNameHasBeenSet = true; m_dnsName.assign(value); }
238 inline GameSession& WithDnsName(const Aws::String& value) { SetDnsName(value); return *this;}
239 inline GameSession& WithDnsName(Aws::String&& value) { SetDnsName(std::move(value)); return *this;}
240 inline GameSession& WithDnsName(const char* value) { SetDnsName(value); return *this;}
242
244
248 inline int GetPort() const{ return m_port; }
249 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
250 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
251 inline GameSession& WithPort(int value) { SetPort(value); return *this;}
253
255
258 inline const PlayerSessionCreationPolicy& GetPlayerSessionCreationPolicy() const{ return m_playerSessionCreationPolicy; }
259 inline bool PlayerSessionCreationPolicyHasBeenSet() const { return m_playerSessionCreationPolicyHasBeenSet; }
260 inline void SetPlayerSessionCreationPolicy(const PlayerSessionCreationPolicy& value) { m_playerSessionCreationPolicyHasBeenSet = true; m_playerSessionCreationPolicy = value; }
261 inline void SetPlayerSessionCreationPolicy(PlayerSessionCreationPolicy&& value) { m_playerSessionCreationPolicyHasBeenSet = true; m_playerSessionCreationPolicy = std::move(value); }
265
267
272 inline const Aws::String& GetCreatorId() const{ return m_creatorId; }
273 inline bool CreatorIdHasBeenSet() const { return m_creatorIdHasBeenSet; }
274 inline void SetCreatorId(const Aws::String& value) { m_creatorIdHasBeenSet = true; m_creatorId = value; }
275 inline void SetCreatorId(Aws::String&& value) { m_creatorIdHasBeenSet = true; m_creatorId = std::move(value); }
276 inline void SetCreatorId(const char* value) { m_creatorIdHasBeenSet = true; m_creatorId.assign(value); }
277 inline GameSession& WithCreatorId(const Aws::String& value) { SetCreatorId(value); return *this;}
278 inline GameSession& WithCreatorId(Aws::String&& value) { SetCreatorId(std::move(value)); return *this;}
279 inline GameSession& WithCreatorId(const char* value) { SetCreatorId(value); return *this;}
281
283
290 inline const Aws::String& GetGameSessionData() const{ return m_gameSessionData; }
291 inline bool GameSessionDataHasBeenSet() const { return m_gameSessionDataHasBeenSet; }
292 inline void SetGameSessionData(const Aws::String& value) { m_gameSessionDataHasBeenSet = true; m_gameSessionData = value; }
293 inline void SetGameSessionData(Aws::String&& value) { m_gameSessionDataHasBeenSet = true; m_gameSessionData = std::move(value); }
294 inline void SetGameSessionData(const char* value) { m_gameSessionDataHasBeenSet = true; m_gameSessionData.assign(value); }
295 inline GameSession& WithGameSessionData(const Aws::String& value) { SetGameSessionData(value); return *this;}
296 inline GameSession& WithGameSessionData(Aws::String&& value) { SetGameSessionData(std::move(value)); return *this;}
297 inline GameSession& WithGameSessionData(const char* value) { SetGameSessionData(value); return *this;}
299
301
312 inline const Aws::String& GetMatchmakerData() const{ return m_matchmakerData; }
313 inline bool MatchmakerDataHasBeenSet() const { return m_matchmakerDataHasBeenSet; }
314 inline void SetMatchmakerData(const Aws::String& value) { m_matchmakerDataHasBeenSet = true; m_matchmakerData = value; }
315 inline void SetMatchmakerData(Aws::String&& value) { m_matchmakerDataHasBeenSet = true; m_matchmakerData = std::move(value); }
316 inline void SetMatchmakerData(const char* value) { m_matchmakerDataHasBeenSet = true; m_matchmakerData.assign(value); }
317 inline GameSession& WithMatchmakerData(const Aws::String& value) { SetMatchmakerData(value); return *this;}
318 inline GameSession& WithMatchmakerData(Aws::String&& value) { SetMatchmakerData(std::move(value)); return *this;}
319 inline GameSession& WithMatchmakerData(const char* value) { SetMatchmakerData(value); return *this;}
321
323
328 inline const Aws::String& GetLocation() const{ return m_location; }
329 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
330 inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
331 inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
332 inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
333 inline GameSession& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
334 inline GameSession& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
335 inline GameSession& WithLocation(const char* value) { SetLocation(value); return *this;}
337 private:
338
339 Aws::String m_gameSessionId;
340 bool m_gameSessionIdHasBeenSet = false;
341
342 Aws::String m_name;
343 bool m_nameHasBeenSet = false;
344
345 Aws::String m_fleetId;
346 bool m_fleetIdHasBeenSet = false;
347
348 Aws::String m_fleetArn;
349 bool m_fleetArnHasBeenSet = false;
350
351 Aws::Utils::DateTime m_creationTime;
352 bool m_creationTimeHasBeenSet = false;
353
354 Aws::Utils::DateTime m_terminationTime;
355 bool m_terminationTimeHasBeenSet = false;
356
357 int m_currentPlayerSessionCount;
358 bool m_currentPlayerSessionCountHasBeenSet = false;
359
360 int m_maximumPlayerSessionCount;
361 bool m_maximumPlayerSessionCountHasBeenSet = false;
362
363 GameSessionStatus m_status;
364 bool m_statusHasBeenSet = false;
365
366 GameSessionStatusReason m_statusReason;
367 bool m_statusReasonHasBeenSet = false;
368
369 Aws::Vector<GameProperty> m_gameProperties;
370 bool m_gamePropertiesHasBeenSet = false;
371
372 Aws::String m_ipAddress;
373 bool m_ipAddressHasBeenSet = false;
374
375 Aws::String m_dnsName;
376 bool m_dnsNameHasBeenSet = false;
377
378 int m_port;
379 bool m_portHasBeenSet = false;
380
381 PlayerSessionCreationPolicy m_playerSessionCreationPolicy;
382 bool m_playerSessionCreationPolicyHasBeenSet = false;
383
384 Aws::String m_creatorId;
385 bool m_creatorIdHasBeenSet = false;
386
387 Aws::String m_gameSessionData;
388 bool m_gameSessionDataHasBeenSet = false;
389
390 Aws::String m_matchmakerData;
391 bool m_matchmakerDataHasBeenSet = false;
392
393 Aws::String m_location;
394 bool m_locationHasBeenSet = false;
395 };
396
397} // namespace Model
398} // namespace GameLift
399} // namespace Aws
void SetMatchmakerData(Aws::String &&value)
void SetGameSessionData(const Aws::String &value)
GameSession & WithGameProperties(Aws::Vector< GameProperty > &&value)
const GameSessionStatus & GetStatus() const
const Aws::Utils::DateTime & GetTerminationTime() const
void SetPlayerSessionCreationPolicy(PlayerSessionCreationPolicy &&value)
void SetGameSessionId(const char *value)
Definition GameSession.h:62
const Aws::String & GetFleetId() const
Definition GameSession.h:87
GameSession & WithFleetArn(const Aws::String &value)
void SetGameSessionData(const char *value)
void SetFleetId(const char *value)
Definition GameSession.h:91
void SetMatchmakerData(const Aws::String &value)
GameSession & WithGameSessionId(const Aws::String &value)
Definition GameSession.h:63
void SetMatchmakerData(const char *value)
void SetMaximumPlayerSessionCount(int value)
GameSession & WithName(const Aws::String &value)
Definition GameSession.h:78
GameSession & WithFleetArn(const char *value)
GameSession & WithCreationTime(const Aws::Utils::DateTime &value)
GameSession & WithFleetArn(Aws::String &&value)
void SetDnsName(const char *value)
const Aws::String & GetGameSessionData() const
void SetName(const Aws::String &value)
Definition GameSession.h:75
bool PlayerSessionCreationPolicyHasBeenSet() const
void SetDnsName(Aws::String &&value)
GameSession & WithLocation(const Aws::String &value)
GameSession & WithGameProperties(const Aws::Vector< GameProperty > &value)
void SetLocation(const Aws::String &value)
void SetFleetId(Aws::String &&value)
Definition GameSession.h:90
GameSession & WithStatusReason(GameSessionStatusReason &&value)
GameSession & WithCurrentPlayerSessionCount(int value)
GameSession & WithFleetId(const char *value)
Definition GameSession.h:94
GameSession & WithMaximumPlayerSessionCount(int value)
void SetIpAddress(const Aws::String &value)
GameSession & WithDnsName(Aws::String &&value)
void SetGameSessionData(Aws::String &&value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetIpAddress(const char *value)
GameSession & WithFleetId(Aws::String &&value)
Definition GameSession.h:93
GameSession & WithDnsName(const Aws::String &value)
const GameSessionStatusReason & GetStatusReason() const
GameSession & WithMatchmakerData(const char *value)
GameSession & WithIpAddress(const char *value)
AWS_GAMELIFT_API GameSession(Aws::Utils::Json::JsonView jsonValue)
GameSession & WithIpAddress(Aws::String &&value)
GameSession & WithMatchmakerData(const Aws::String &value)
GameSession & WithName(const char *value)
Definition GameSession.h:80
GameSession & WithGameSessionId(Aws::String &&value)
Definition GameSession.h:64
GameSession & AddGameProperties(const GameProperty &value)
GameSession & WithTerminationTime(Aws::Utils::DateTime &&value)
GameSession & WithName(Aws::String &&value)
Definition GameSession.h:79
GameSession & WithGameSessionData(const Aws::String &value)
void SetIpAddress(Aws::String &&value)
GameSession & WithFleetId(const Aws::String &value)
Definition GameSession.h:92
void SetFleetId(const Aws::String &value)
Definition GameSession.h:89
const Aws::String & GetDnsName() const
void SetCreationTime(const Aws::Utils::DateTime &value)
void SetFleetArn(const Aws::String &value)
GameSession & WithPort(int value)
GameSession & AddGameProperties(GameProperty &&value)
GameSession & WithMatchmakerData(Aws::String &&value)
void SetStatusReason(const GameSessionStatusReason &value)
const Aws::String & GetFleetArn() const
void SetTerminationTime(const Aws::Utils::DateTime &value)
const Aws::String & GetLocation() const
GameSession & WithCreatorId(const Aws::String &value)
GameSession & WithDnsName(const char *value)
GameSession & WithPlayerSessionCreationPolicy(PlayerSessionCreationPolicy &&value)
GameSession & WithLocation(Aws::String &&value)
void SetStatus(const GameSessionStatus &value)
GameSession & WithTerminationTime(const Aws::Utils::DateTime &value)
void SetCreatorId(const char *value)
bool MaximumPlayerSessionCountHasBeenSet() const
void SetDnsName(const Aws::String &value)
void SetFleetArn(const char *value)
void SetLocation(Aws::String &&value)
GameSession & WithStatus(GameSessionStatus &&value)
void SetName(const char *value)
Definition GameSession.h:77
void SetName(Aws::String &&value)
Definition GameSession.h:76
void SetGameProperties(Aws::Vector< GameProperty > &&value)
void SetFleetArn(Aws::String &&value)
void SetStatusReason(GameSessionStatusReason &&value)
void SetTerminationTime(Aws::Utils::DateTime &&value)
const Aws::String & GetCreatorId() const
bool CurrentPlayerSessionCountHasBeenSet() const
GameSession & WithGameSessionId(const char *value)
Definition GameSession.h:65
GameSession & WithGameSessionData(Aws::String &&value)
GameSession & WithCreatorId(Aws::String &&value)
void SetGameSessionId(Aws::String &&value)
Definition GameSession.h:61
const Aws::String & GetName() const
Definition GameSession.h:73
void SetCreatorId(Aws::String &&value)
void SetLocation(const char *value)
GameSession & WithStatus(const GameSessionStatus &value)
const PlayerSessionCreationPolicy & GetPlayerSessionCreationPolicy() const
GameSession & WithGameSessionData(const char *value)
GameSession & WithIpAddress(const Aws::String &value)
GameSession & WithCreationTime(Aws::Utils::DateTime &&value)
void SetCreatorId(const Aws::String &value)
GameSession & WithLocation(const char *value)
void SetStatus(GameSessionStatus &&value)
const Aws::Vector< GameProperty > & GetGameProperties() const
const Aws::Utils::DateTime & GetCreationTime() const
void SetCurrentPlayerSessionCount(int value)
void SetGameProperties(const Aws::Vector< GameProperty > &value)
void SetCreationTime(Aws::Utils::DateTime &&value)
GameSession & WithStatusReason(const GameSessionStatusReason &value)
const Aws::String & GetGameSessionId() const
Definition GameSession.h:58
GameSession & WithCreatorId(const char *value)
AWS_GAMELIFT_API GameSession & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPlayerSessionCreationPolicy(const PlayerSessionCreationPolicy &value)
GameSession & WithPlayerSessionCreationPolicy(const PlayerSessionCreationPolicy &value)
const Aws::String & GetMatchmakerData() const
const Aws::String & GetIpAddress() const
void SetGameSessionId(const Aws::String &value)
Definition GameSession.h:60
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue