AWS SDK for C++  1.9.1
AWS SDK for C++
Player.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace GameLift
24 {
25 namespace Model
26 {
27 
36  {
37  public:
38  Player();
42 
43 
47  inline const Aws::String& GetPlayerId() const{ return m_playerId; }
48 
52  inline bool PlayerIdHasBeenSet() const { return m_playerIdHasBeenSet; }
53 
57  inline void SetPlayerId(const Aws::String& value) { m_playerIdHasBeenSet = true; m_playerId = value; }
58 
62  inline void SetPlayerId(Aws::String&& value) { m_playerIdHasBeenSet = true; m_playerId = std::move(value); }
63 
67  inline void SetPlayerId(const char* value) { m_playerIdHasBeenSet = true; m_playerId.assign(value); }
68 
72  inline Player& WithPlayerId(const Aws::String& value) { SetPlayerId(value); return *this;}
73 
77  inline Player& WithPlayerId(Aws::String&& value) { SetPlayerId(std::move(value)); return *this;}
78 
82  inline Player& WithPlayerId(const char* value) { SetPlayerId(value); return *this;}
83 
84 
91  inline const Aws::Map<Aws::String, AttributeValue>& GetPlayerAttributes() const{ return m_playerAttributes; }
92 
99  inline bool PlayerAttributesHasBeenSet() const { return m_playerAttributesHasBeenSet; }
100 
107  inline void SetPlayerAttributes(const Aws::Map<Aws::String, AttributeValue>& value) { m_playerAttributesHasBeenSet = true; m_playerAttributes = value; }
108 
115  inline void SetPlayerAttributes(Aws::Map<Aws::String, AttributeValue>&& value) { m_playerAttributesHasBeenSet = true; m_playerAttributes = std::move(value); }
116 
123  inline Player& WithPlayerAttributes(const Aws::Map<Aws::String, AttributeValue>& value) { SetPlayerAttributes(value); return *this;}
124 
131  inline Player& WithPlayerAttributes(Aws::Map<Aws::String, AttributeValue>&& value) { SetPlayerAttributes(std::move(value)); return *this;}
132 
139  inline Player& AddPlayerAttributes(const Aws::String& key, const AttributeValue& value) { m_playerAttributesHasBeenSet = true; m_playerAttributes.emplace(key, value); return *this; }
140 
147  inline Player& AddPlayerAttributes(Aws::String&& key, const AttributeValue& value) { m_playerAttributesHasBeenSet = true; m_playerAttributes.emplace(std::move(key), value); return *this; }
148 
155  inline Player& AddPlayerAttributes(const Aws::String& key, AttributeValue&& value) { m_playerAttributesHasBeenSet = true; m_playerAttributes.emplace(key, std::move(value)); return *this; }
156 
163  inline Player& AddPlayerAttributes(Aws::String&& key, AttributeValue&& value) { m_playerAttributesHasBeenSet = true; m_playerAttributes.emplace(std::move(key), std::move(value)); return *this; }
164 
171  inline Player& AddPlayerAttributes(const char* key, AttributeValue&& value) { m_playerAttributesHasBeenSet = true; m_playerAttributes.emplace(key, std::move(value)); return *this; }
172 
179  inline Player& AddPlayerAttributes(const char* key, const AttributeValue& value) { m_playerAttributesHasBeenSet = true; m_playerAttributes.emplace(key, value); return *this; }
180 
181 
186  inline const Aws::String& GetTeam() const{ return m_team; }
187 
192  inline bool TeamHasBeenSet() const { return m_teamHasBeenSet; }
193 
198  inline void SetTeam(const Aws::String& value) { m_teamHasBeenSet = true; m_team = value; }
199 
204  inline void SetTeam(Aws::String&& value) { m_teamHasBeenSet = true; m_team = std::move(value); }
205 
210  inline void SetTeam(const char* value) { m_teamHasBeenSet = true; m_team.assign(value); }
211 
216  inline Player& WithTeam(const Aws::String& value) { SetTeam(value); return *this;}
217 
222  inline Player& WithTeam(Aws::String&& value) { SetTeam(std::move(value)); return *this;}
223 
228  inline Player& WithTeam(const char* value) { SetTeam(value); return *this;}
229 
230 
240  inline const Aws::Map<Aws::String, int>& GetLatencyInMs() const{ return m_latencyInMs; }
241 
251  inline bool LatencyInMsHasBeenSet() const { return m_latencyInMsHasBeenSet; }
252 
262  inline void SetLatencyInMs(const Aws::Map<Aws::String, int>& value) { m_latencyInMsHasBeenSet = true; m_latencyInMs = value; }
263 
273  inline void SetLatencyInMs(Aws::Map<Aws::String, int>&& value) { m_latencyInMsHasBeenSet = true; m_latencyInMs = std::move(value); }
274 
284  inline Player& WithLatencyInMs(const Aws::Map<Aws::String, int>& value) { SetLatencyInMs(value); return *this;}
285 
295  inline Player& WithLatencyInMs(Aws::Map<Aws::String, int>&& value) { SetLatencyInMs(std::move(value)); return *this;}
296 
306  inline Player& AddLatencyInMs(const Aws::String& key, int value) { m_latencyInMsHasBeenSet = true; m_latencyInMs.emplace(key, value); return *this; }
307 
317  inline Player& AddLatencyInMs(Aws::String&& key, int value) { m_latencyInMsHasBeenSet = true; m_latencyInMs.emplace(std::move(key), value); return *this; }
318 
328  inline Player& AddLatencyInMs(const char* key, int value) { m_latencyInMsHasBeenSet = true; m_latencyInMs.emplace(key, value); return *this; }
329 
330  private:
331 
332  Aws::String m_playerId;
333  bool m_playerIdHasBeenSet;
334 
335  Aws::Map<Aws::String, AttributeValue> m_playerAttributes;
336  bool m_playerAttributesHasBeenSet;
337 
338  Aws::String m_team;
339  bool m_teamHasBeenSet;
340 
341  Aws::Map<Aws::String, int> m_latencyInMs;
342  bool m_latencyInMsHasBeenSet;
343  };
344 
345 } // namespace Model
346 } // namespace GameLift
347 } // namespace Aws
Aws::GameLift::Model::Player::TeamHasBeenSet
bool TeamHasBeenSet() const
Definition: Player.h:192
Aws::GameLift::Model::Player::SetTeam
void SetTeam(Aws::String &&value)
Definition: Player.h:204
Aws::GameLift::Model::Player::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GameLift::Model::Player::operator=
Player & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::Player::WithPlayerAttributes
Player & WithPlayerAttributes(Aws::Map< Aws::String, AttributeValue > &&value)
Definition: Player.h:131
Aws::GameLift::Model::Player::WithTeam
Player & WithTeam(const char *value)
Definition: Player.h:228
Aws::GameLift::Model::Player::AddLatencyInMs
Player & AddLatencyInMs(const Aws::String &key, int value)
Definition: Player.h:306
Aws::GameLift::Model::Player::PlayerAttributesHasBeenSet
bool PlayerAttributesHasBeenSet() const
Definition: Player.h:99
Aws::GameLift::Model::Player::WithPlayerId
Player & WithPlayerId(Aws::String &&value)
Definition: Player.h:77
Aws::GameLift::Model::Player::WithTeam
Player & WithTeam(Aws::String &&value)
Definition: Player.h:222
Aws::GameLift::Model::Player::SetLatencyInMs
void SetLatencyInMs(const Aws::Map< Aws::String, int > &value)
Definition: Player.h:262
Aws::GameLift::Model::Player::AddPlayerAttributes
Player & AddPlayerAttributes(const char *key, const AttributeValue &value)
Definition: Player.h:179
GameLift_EXPORTS.h
Aws::GameLift::Model::Player::WithPlayerId
Player & WithPlayerId(const char *value)
Definition: Player.h:82
Aws::GameLift::Model::Player
Definition: Player.h:36
Aws::GameLift::Model::AttributeValue
Definition: AttributeValue.h:37
Aws::GameLift::Model::Player::GetTeam
const Aws::String & GetTeam() const
Definition: Player.h:186
Aws::GameLift::Model::Player::AddPlayerAttributes
Player & AddPlayerAttributes(Aws::String &&key, const AttributeValue &value)
Definition: Player.h:147
Aws::GameLift::Model::Player::AddPlayerAttributes
Player & AddPlayerAttributes(const Aws::String &key, const AttributeValue &value)
Definition: Player.h:139
Aws::GameLift::Model::Player::SetTeam
void SetTeam(const char *value)
Definition: Player.h:210
Aws::GameLift::Model::Player::AddPlayerAttributes
Player & AddPlayerAttributes(Aws::String &&key, AttributeValue &&value)
Definition: Player.h:163
Aws::GameLift::Model::Player::LatencyInMsHasBeenSet
bool LatencyInMsHasBeenSet() const
Definition: Player.h:251
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::GameLift::Model::Player::AddLatencyInMs
Player & AddLatencyInMs(const char *key, int value)
Definition: Player.h:328
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::GameLift::Model::Player::SetPlayerId
void SetPlayerId(Aws::String &&value)
Definition: Player.h:62
Aws::GameLift::Model::Player::PlayerIdHasBeenSet
bool PlayerIdHasBeenSet() const
Definition: Player.h:52
Aws::GameLift::Model::Player::SetPlayerId
void SetPlayerId(const char *value)
Definition: Player.h:67
Aws::GameLift::Model::Player::Player
Player(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::Player::SetPlayerId
void SetPlayerId(const Aws::String &value)
Definition: Player.h:57
Aws::GameLift::Model::Player::SetLatencyInMs
void SetLatencyInMs(Aws::Map< Aws::String, int > &&value)
Definition: Player.h:273
Aws::GameLift::Model::Player::WithPlayerId
Player & WithPlayerId(const Aws::String &value)
Definition: Player.h:72
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::Player::WithPlayerAttributes
Player & WithPlayerAttributes(const Aws::Map< Aws::String, AttributeValue > &value)
Definition: Player.h:123
Aws::GameLift::Model::Player::SetPlayerAttributes
void SetPlayerAttributes(Aws::Map< Aws::String, AttributeValue > &&value)
Definition: Player.h:115
Aws::GameLift::Model::Player::WithLatencyInMs
Player & WithLatencyInMs(const Aws::Map< Aws::String, int > &value)
Definition: Player.h:284
Aws::GameLift::Model::Player::AddPlayerAttributes
Player & AddPlayerAttributes(const Aws::String &key, AttributeValue &&value)
Definition: Player.h:155
Aws::GameLift::Model::Player::GetPlayerId
const Aws::String & GetPlayerId() const
Definition: Player.h:47
AttributeValue.h
Aws::GameLift::Model::Player::AddPlayerAttributes
Player & AddPlayerAttributes(const char *key, AttributeValue &&value)
Definition: Player.h:171
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::Player::SetPlayerAttributes
void SetPlayerAttributes(const Aws::Map< Aws::String, AttributeValue > &value)
Definition: Player.h:107
Aws::GameLift::Model::Player::AddLatencyInMs
Player & AddLatencyInMs(Aws::String &&key, int value)
Definition: Player.h:317
Aws::GameLift::Model::Player::Player
Player()
Aws::GameLift::Model::Player::WithLatencyInMs
Player & WithLatencyInMs(Aws::Map< Aws::String, int > &&value)
Definition: Player.h:295
AWSMap.h
Aws::GameLift::Model::Player::GetPlayerAttributes
const Aws::Map< Aws::String, AttributeValue > & GetPlayerAttributes() const
Definition: Player.h:91
Aws::GameLift::Model::Player::WithTeam
Player & WithTeam(const Aws::String &value)
Definition: Player.h:216
Aws::GameLift::Model::Player::SetTeam
void SetTeam(const Aws::String &value)
Definition: Player.h:198
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::GameLift::Model::Player::GetLatencyInMs
const Aws::Map< Aws::String, int > & GetLatencyInMs() const
Definition: Player.h:240