7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/crt/cbor/Cbor.h>
11#include <aws/gamelift/GameLift_EXPORTS.h>
12#include <aws/gamelift/model/GameProperty.h>
13#include <aws/gamelift/model/GameSessionStatus.h>
14#include <aws/gamelift/model/GameSessionStatusReason.h>
15#include <aws/gamelift/model/PlayerGatewayStatus.h>
16#include <aws/gamelift/model/PlayerSessionCreationPolicy.h>
44 AWS_GAMELIFT_API
GameSession(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
46 AWS_GAMELIFT_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
57 template <
typename GameSessionIdT = Aws::String>
59 m_gameSessionIdHasBeenSet =
true;
60 m_gameSessionId = std::forward<GameSessionIdT>(value);
62 template <
typename GameSessionIdT = Aws::String>
76 template <
typename NameT = Aws::String>
78 m_nameHasBeenSet =
true;
79 m_name = std::forward<NameT>(value);
81 template <
typename NameT = Aws::String>
83 SetName(std::forward<NameT>(value));
94 template <
typename FleetIdT = Aws::String>
96 m_fleetIdHasBeenSet =
true;
97 m_fleetId = std::forward<FleetIdT>(value);
99 template <
typename FleetIdT = Aws::String>
114 template <
typename FleetArnT = Aws::String>
116 m_fleetArnHasBeenSet =
true;
117 m_fleetArn = std::forward<FleetArnT>(value);
119 template <
typename FleetArnT = Aws::String>
134 template <
typename CreationTimeT = Aws::Utils::DateTime>
136 m_creationTimeHasBeenSet =
true;
137 m_creationTime = std::forward<CreationTimeT>(value);
139 template <
typename CreationTimeT = Aws::Utils::DateTime>
154 template <
typename TerminationTimeT = Aws::Utils::DateTime>
156 m_terminationTimeHasBeenSet =
true;
157 m_terminationTime = std::forward<TerminationTimeT>(value);
159 template <
typename TerminationTimeT = Aws::Utils::DateTime>
173 m_currentPlayerSessionCountHasBeenSet =
true;
174 m_currentPlayerSessionCount = value;
190 m_maximumPlayerSessionCountHasBeenSet =
true;
191 m_maximumPlayerSessionCount = value;
207 m_statusHasBeenSet =
true;
231 m_statusReasonHasBeenSet =
true;
232 m_statusReason = value;
254 template <
typename GamePropertiesT = Aws::Vector<GameProperty>>
256 m_gamePropertiesHasBeenSet =
true;
257 m_gameProperties = std::forward<GamePropertiesT>(value);
259 template <
typename GamePropertiesT = Aws::Vector<GameProperty>>
264 template <
typename GamePropertiesT = GameProperty>
266 m_gamePropertiesHasBeenSet =
true;
267 m_gameProperties.emplace_back(std::forward<GamePropertiesT>(value));
279 template <
typename IpAddressT = Aws::String>
281 m_ipAddressHasBeenSet =
true;
282 m_ipAddress = std::forward<IpAddressT>(value);
284 template <
typename IpAddressT = Aws::String>
306 template <
typename DnsNameT = Aws::String>
308 m_dnsNameHasBeenSet =
true;
309 m_dnsName = std::forward<DnsNameT>(value);
311 template <
typename DnsNameT = Aws::String>
323 inline int64_t
GetPort()
const {
return m_port; }
326 m_portHasBeenSet =
true;
342 m_playerSessionCreationPolicyHasBeenSet =
true;
343 m_playerSessionCreationPolicy = value;
359 template <
typename CreatorIdT = Aws::String>
361 m_creatorIdHasBeenSet =
true;
362 m_creatorId = std::forward<CreatorIdT>(value);
364 template <
typename CreatorIdT = Aws::String>
381 template <
typename GameSessionDataT = Aws::String>
383 m_gameSessionDataHasBeenSet =
true;
384 m_gameSessionData = std::forward<GameSessionDataT>(value);
386 template <
typename GameSessionDataT = Aws::String>
407 template <
typename MatchmakerDataT = Aws::String>
409 m_matchmakerDataHasBeenSet =
true;
410 m_matchmakerData = std::forward<MatchmakerDataT>(value);
412 template <
typename MatchmakerDataT = Aws::String>
427 template <
typename LocationT = Aws::String>
429 m_locationHasBeenSet =
true;
430 m_location = std::forward<LocationT>(value);
432 template <
typename LocationT = Aws::String>
449 template <
typename ComputeNameT = Aws::String>
451 m_computeNameHasBeenSet =
true;
452 m_computeName = std::forward<ComputeNameT>(value);
454 template <
typename ComputeNameT = Aws::String>
476 m_playerGatewayStatusHasBeenSet =
true;
477 m_playerGatewayStatus = value;
497 int64_t m_currentPlayerSessionCount{0};
499 int64_t m_maximumPlayerSessionCount{0};
526 bool m_gameSessionIdHasBeenSet =
false;
527 bool m_nameHasBeenSet =
false;
528 bool m_fleetIdHasBeenSet =
false;
529 bool m_fleetArnHasBeenSet =
false;
530 bool m_creationTimeHasBeenSet =
false;
531 bool m_terminationTimeHasBeenSet =
false;
532 bool m_currentPlayerSessionCountHasBeenSet =
false;
533 bool m_maximumPlayerSessionCountHasBeenSet =
false;
534 bool m_statusHasBeenSet =
false;
535 bool m_statusReasonHasBeenSet =
false;
536 bool m_gamePropertiesHasBeenSet =
false;
537 bool m_ipAddressHasBeenSet =
false;
538 bool m_dnsNameHasBeenSet =
false;
539 bool m_portHasBeenSet =
false;
540 bool m_playerSessionCreationPolicyHasBeenSet =
false;
541 bool m_creatorIdHasBeenSet =
false;
542 bool m_gameSessionDataHasBeenSet =
false;
543 bool m_matchmakerDataHasBeenSet =
false;
544 bool m_locationHasBeenSet =
false;
545 bool m_computeNameHasBeenSet =
false;
546 bool m_playerGatewayStatusHasBeenSet =
false;
PlayerSessionCreationPolicy GetPlayerSessionCreationPolicy() const
int64_t GetMaximumPlayerSessionCount() const
const Aws::Utils::DateTime & GetTerminationTime() const
void SetGameProperties(GamePropertiesT &&value)
bool CreationTimeHasBeenSet() const
const Aws::String & GetFleetId() const
void SetPort(int64_t value)
GameSession & WithStatusReason(GameSessionStatusReason value)
GameSession & WithPlayerGatewayStatus(PlayerGatewayStatus value)
GameSession & WithName(NameT &&value)
const Aws::String & GetGameSessionData() const
AWS_GAMELIFT_API GameSession(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool PlayerSessionCreationPolicyHasBeenSet() const
GameSession & WithGameSessionId(GameSessionIdT &&value)
GameSession & WithPort(int64_t value)
GameSessionStatusReason GetStatusReason() const
GameSession & WithLocation(LocationT &&value)
void SetComputeName(ComputeNameT &&value)
GameSession & WithComputeName(ComputeNameT &&value)
GameSession & WithIpAddress(IpAddressT &&value)
void SetFleetArn(FleetArnT &&value)
void SetCurrentPlayerSessionCount(int64_t value)
GameSession & WithCurrentPlayerSessionCount(int64_t value)
void SetIpAddress(IpAddressT &&value)
AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
PlayerGatewayStatus GetPlayerGatewayStatus() const
bool GamePropertiesHasBeenSet() const
void SetPlayerSessionCreationPolicy(PlayerSessionCreationPolicy value)
bool DnsNameHasBeenSet() const
bool GameSessionDataHasBeenSet() const
const Aws::String & GetComputeName() const
const Aws::String & GetDnsName() const
void SetName(NameT &&value)
GameSession & WithMaximumPlayerSessionCount(int64_t value)
GameSession & WithGameProperties(GamePropertiesT &&value)
bool NameHasBeenSet() const
const Aws::String & GetFleetArn() const
const Aws::String & GetLocation() const
GameSession & WithCreationTime(CreationTimeT &&value)
bool FleetIdHasBeenSet() const
void SetMatchmakerData(MatchmakerDataT &&value)
void SetPlayerGatewayStatus(PlayerGatewayStatus value)
void SetGameSessionId(GameSessionIdT &&value)
bool ComputeNameHasBeenSet() const
bool MaximumPlayerSessionCountHasBeenSet() const
GameSession & WithCreatorId(CreatorIdT &&value)
bool PlayerGatewayStatusHasBeenSet() const
AWS_GAMELIFT_API GameSession()=default
AWS_GAMELIFT_API GameSession & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool CreatorIdHasBeenSet() const
GameSession & WithTerminationTime(TerminationTimeT &&value)
void SetCreatorId(CreatorIdT &&value)
bool IpAddressHasBeenSet() const
GameSession & AddGameProperties(GamePropertiesT &&value)
void SetTerminationTime(TerminationTimeT &&value)
bool FleetArnHasBeenSet() const
const Aws::String & GetCreatorId() const
bool CurrentPlayerSessionCountHasBeenSet() const
int64_t GetCurrentPlayerSessionCount() const
bool TerminationTimeHasBeenSet() const
const Aws::String & GetName() const
void SetGameSessionData(GameSessionDataT &&value)
void SetCreationTime(CreationTimeT &&value)
GameSessionStatus GetStatus() const
bool StatusHasBeenSet() const
GameSession & WithFleetArn(FleetArnT &&value)
void SetFleetId(FleetIdT &&value)
void SetMaximumPlayerSessionCount(int64_t value)
GameSession & WithMatchmakerData(MatchmakerDataT &&value)
GameSession & WithFleetId(FleetIdT &&value)
GameSession & WithGameSessionData(GameSessionDataT &&value)
const Aws::Vector< GameProperty > & GetGameProperties() const
void SetStatusReason(GameSessionStatusReason value)
const Aws::Utils::DateTime & GetCreationTime() const
GameSession & WithPlayerSessionCreationPolicy(PlayerSessionCreationPolicy value)
bool LocationHasBeenSet() const
void SetDnsName(DnsNameT &&value)
bool GameSessionIdHasBeenSet() const
void SetLocation(LocationT &&value)
bool PortHasBeenSet() const
const Aws::String & GetGameSessionId() const
bool MatchmakerDataHasBeenSet() const
void SetStatus(GameSessionStatus value)
bool StatusReasonHasBeenSet() const
GameSession & WithStatus(GameSessionStatus value)
const Aws::String & GetMatchmakerData() const
const Aws::String & GetIpAddress() const
GameSession & WithDnsName(DnsNameT &&value)
PlayerSessionCreationPolicy
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector