7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/gamelift/model/AttributeValue.h>
50 template<
typename PlayerIdT = Aws::String>
51 void SetPlayerId(PlayerIdT&& value) { m_playerIdHasBeenSet =
true; m_playerId = std::forward<PlayerIdT>(value); }
52 template<
typename PlayerIdT = Aws::String>
66 template<
typename PlayerAttributesT = Aws::Map<Aws::String, AttributeValue>>
67 void SetPlayerAttributes(PlayerAttributesT&& value) { m_playerAttributesHasBeenSet =
true; m_playerAttributes = std::forward<PlayerAttributesT>(value); }
68 template<
typename PlayerAttributesT = Aws::Map<Aws::String, AttributeValue>>
70 template<
typename PlayerAttributesKeyT = Aws::String,
typename PlayerAttributesValueT = AttributeValue>
72 m_playerAttributesHasBeenSet =
true; m_playerAttributes.emplace(std::forward<PlayerAttributesKeyT>(key), std::forward<PlayerAttributesValueT>(value));
return *
this;
83 template<
typename TeamT = Aws::String>
84 void SetTeam(TeamT&& value) { m_teamHasBeenSet =
true; m_team = std::forward<TeamT>(value); }
85 template<
typename TeamT = Aws::String>
101 template<
typename LatencyInMsT = Aws::Map<Aws::String,
int>>
102 void SetLatencyInMs(LatencyInMsT&& value) { m_latencyInMsHasBeenSet =
true; m_latencyInMs = std::forward<LatencyInMsT>(value); }
103 template<
typename LatencyInMsT = Aws::Map<Aws::String,
int>>
106 m_latencyInMsHasBeenSet =
true; m_latencyInMs.emplace(key, value);
return *
this;
112 bool m_playerIdHasBeenSet =
false;
115 bool m_playerAttributesHasBeenSet =
false;
118 bool m_teamHasBeenSet =
false;
121 bool m_latencyInMsHasBeenSet =
false;
AWS_GAMELIFT_API Player()=default
AWS_GAMELIFT_API Player & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLatencyInMs(LatencyInMsT &&value)
const Aws::String & GetTeam() const
void SetPlayerId(PlayerIdT &&value)
bool LatencyInMsHasBeenSet() const
void SetPlayerAttributes(PlayerAttributesT &&value)
Player & WithPlayerId(PlayerIdT &&value)
const Aws::String & GetPlayerId() const
bool TeamHasBeenSet() const
bool PlayerIdHasBeenSet() const
Player & WithPlayerAttributes(PlayerAttributesT &&value)
void SetTeam(TeamT &&value)
Player & WithTeam(TeamT &&value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, AttributeValue > & GetPlayerAttributes() const
AWS_GAMELIFT_API Player(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, int > & GetLatencyInMs() const
bool PlayerAttributesHasBeenSet() const
Player & WithLatencyInMs(LatencyInMsT &&value)
Player & AddLatencyInMs(Aws::String key, int value)
Player & AddPlayerAttributes(PlayerAttributesKeyT &&key, PlayerAttributesValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue