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;
59 template <
typename GameSessionIdT = Aws::String>
61 m_gameSessionIdHasBeenSet =
true;
62 m_gameSessionId = std::forward<GameSessionIdT>(value);
64 template <
typename GameSessionIdT = Aws::String>
78 template <
typename NameT = Aws::String>
80 m_nameHasBeenSet =
true;
81 m_name = std::forward<NameT>(value);
83 template <
typename NameT = Aws::String>
85 SetName(std::forward<NameT>(value));
96 template <
typename FleetIdT = Aws::String>
98 m_fleetIdHasBeenSet =
true;
99 m_fleetId = std::forward<FleetIdT>(value);
101 template <
typename FleetIdT = Aws::String>
116 template <
typename FleetArnT = Aws::String>
118 m_fleetArnHasBeenSet =
true;
119 m_fleetArn = std::forward<FleetArnT>(value);
121 template <
typename FleetArnT = Aws::String>
136 template <
typename CreationTimeT = Aws::Utils::DateTime>
138 m_creationTimeHasBeenSet =
true;
139 m_creationTime = std::forward<CreationTimeT>(value);
141 template <
typename CreationTimeT = Aws::Utils::DateTime>
156 template <
typename TerminationTimeT = Aws::Utils::DateTime>
158 m_terminationTimeHasBeenSet =
true;
159 m_terminationTime = std::forward<TerminationTimeT>(value);
161 template <
typename TerminationTimeT = Aws::Utils::DateTime>
175 m_currentPlayerSessionCountHasBeenSet =
true;
176 m_currentPlayerSessionCount = value;
192 m_maximumPlayerSessionCountHasBeenSet =
true;
193 m_maximumPlayerSessionCount = value;
209 m_statusHasBeenSet =
true;
233 m_statusReasonHasBeenSet =
true;
234 m_statusReason = value;
256 template <
typename GamePropertiesT = Aws::Vector<GameProperty>>
258 m_gamePropertiesHasBeenSet =
true;
259 m_gameProperties = std::forward<GamePropertiesT>(value);
261 template <
typename GamePropertiesT = Aws::Vector<GameProperty>>
266 template <
typename GamePropertiesT = GameProperty>
268 m_gamePropertiesHasBeenSet =
true;
269 m_gameProperties.emplace_back(std::forward<GamePropertiesT>(value));
281 template <
typename IpAddressT = Aws::String>
283 m_ipAddressHasBeenSet =
true;
284 m_ipAddress = std::forward<IpAddressT>(value);
286 template <
typename IpAddressT = Aws::String>
308 template <
typename DnsNameT = Aws::String>
310 m_dnsNameHasBeenSet =
true;
311 m_dnsName = std::forward<DnsNameT>(value);
313 template <
typename DnsNameT = Aws::String>
325 inline int64_t
GetPort()
const {
return m_port; }
328 m_portHasBeenSet =
true;
344 m_playerSessionCreationPolicyHasBeenSet =
true;
345 m_playerSessionCreationPolicy = value;
361 template <
typename CreatorIdT = Aws::String>
363 m_creatorIdHasBeenSet =
true;
364 m_creatorId = std::forward<CreatorIdT>(value);
366 template <
typename CreatorIdT = Aws::String>
383 template <
typename GameSessionDataT = Aws::String>
385 m_gameSessionDataHasBeenSet =
true;
386 m_gameSessionData = std::forward<GameSessionDataT>(value);
388 template <
typename GameSessionDataT = Aws::String>
409 template <
typename MatchmakerDataT = Aws::String>
411 m_matchmakerDataHasBeenSet =
true;
412 m_matchmakerData = std::forward<MatchmakerDataT>(value);
414 template <
typename MatchmakerDataT = Aws::String>
429 template <
typename LocationT = Aws::String>
431 m_locationHasBeenSet =
true;
432 m_location = std::forward<LocationT>(value);
434 template <
typename LocationT = Aws::String>
451 template <
typename ComputeNameT = Aws::String>
453 m_computeNameHasBeenSet =
true;
454 m_computeName = std::forward<ComputeNameT>(value);
456 template <
typename ComputeNameT = Aws::String>
478 m_playerGatewayStatusHasBeenSet =
true;
479 m_playerGatewayStatus = value;
499 int64_t m_currentPlayerSessionCount{0};
501 int64_t m_maximumPlayerSessionCount{0};
528 bool m_gameSessionIdHasBeenSet =
false;
529 bool m_nameHasBeenSet =
false;
530 bool m_fleetIdHasBeenSet =
false;
531 bool m_fleetArnHasBeenSet =
false;
532 bool m_creationTimeHasBeenSet =
false;
533 bool m_terminationTimeHasBeenSet =
false;
534 bool m_currentPlayerSessionCountHasBeenSet =
false;
535 bool m_maximumPlayerSessionCountHasBeenSet =
false;
536 bool m_statusHasBeenSet =
false;
537 bool m_statusReasonHasBeenSet =
false;
538 bool m_gamePropertiesHasBeenSet =
false;
539 bool m_ipAddressHasBeenSet =
false;
540 bool m_dnsNameHasBeenSet =
false;
541 bool m_portHasBeenSet =
false;
542 bool m_playerSessionCreationPolicyHasBeenSet =
false;
543 bool m_creatorIdHasBeenSet =
false;
544 bool m_gameSessionDataHasBeenSet =
false;
545 bool m_matchmakerDataHasBeenSet =
false;
546 bool m_locationHasBeenSet =
false;
547 bool m_computeNameHasBeenSet =
false;
548 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