AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Player.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/memory/stl/AWSMap.h>
10#include <aws/gamelift/model/AttributeValue.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GameLift
24{
25namespace Model
26{
27
35 class Player
36 {
37 public:
38 AWS_GAMELIFT_API Player();
39 AWS_GAMELIFT_API Player(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GAMELIFT_API Player& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetPlayerId() const{ return m_playerId; }
49 inline bool PlayerIdHasBeenSet() const { return m_playerIdHasBeenSet; }
50 inline void SetPlayerId(const Aws::String& value) { m_playerIdHasBeenSet = true; m_playerId = value; }
51 inline void SetPlayerId(Aws::String&& value) { m_playerIdHasBeenSet = true; m_playerId = std::move(value); }
52 inline void SetPlayerId(const char* value) { m_playerIdHasBeenSet = true; m_playerId.assign(value); }
53 inline Player& WithPlayerId(const Aws::String& value) { SetPlayerId(value); return *this;}
54 inline Player& WithPlayerId(Aws::String&& value) { SetPlayerId(std::move(value)); return *this;}
55 inline Player& WithPlayerId(const char* value) { SetPlayerId(value); return *this;}
57
59
66 inline const Aws::Map<Aws::String, AttributeValue>& GetPlayerAttributes() const{ return m_playerAttributes; }
67 inline bool PlayerAttributesHasBeenSet() const { return m_playerAttributesHasBeenSet; }
68 inline void SetPlayerAttributes(const Aws::Map<Aws::String, AttributeValue>& value) { m_playerAttributesHasBeenSet = true; m_playerAttributes = value; }
69 inline void SetPlayerAttributes(Aws::Map<Aws::String, AttributeValue>&& value) { m_playerAttributesHasBeenSet = true; m_playerAttributes = std::move(value); }
71 inline Player& WithPlayerAttributes(Aws::Map<Aws::String, AttributeValue>&& value) { SetPlayerAttributes(std::move(value)); return *this;}
72 inline Player& AddPlayerAttributes(const Aws::String& key, const AttributeValue& value) { m_playerAttributesHasBeenSet = true; m_playerAttributes.emplace(key, value); return *this; }
73 inline Player& AddPlayerAttributes(Aws::String&& key, const AttributeValue& value) { m_playerAttributesHasBeenSet = true; m_playerAttributes.emplace(std::move(key), value); return *this; }
74 inline Player& AddPlayerAttributes(const Aws::String& key, AttributeValue&& value) { m_playerAttributesHasBeenSet = true; m_playerAttributes.emplace(key, std::move(value)); return *this; }
75 inline Player& AddPlayerAttributes(Aws::String&& key, AttributeValue&& value) { m_playerAttributesHasBeenSet = true; m_playerAttributes.emplace(std::move(key), std::move(value)); return *this; }
76 inline Player& AddPlayerAttributes(const char* key, AttributeValue&& value) { m_playerAttributesHasBeenSet = true; m_playerAttributes.emplace(key, std::move(value)); return *this; }
77 inline Player& AddPlayerAttributes(const char* key, const AttributeValue& value) { m_playerAttributesHasBeenSet = true; m_playerAttributes.emplace(key, value); return *this; }
79
81
85 inline const Aws::String& GetTeam() const{ return m_team; }
86 inline bool TeamHasBeenSet() const { return m_teamHasBeenSet; }
87 inline void SetTeam(const Aws::String& value) { m_teamHasBeenSet = true; m_team = value; }
88 inline void SetTeam(Aws::String&& value) { m_teamHasBeenSet = true; m_team = std::move(value); }
89 inline void SetTeam(const char* value) { m_teamHasBeenSet = true; m_team.assign(value); }
90 inline Player& WithTeam(const Aws::String& value) { SetTeam(value); return *this;}
91 inline Player& WithTeam(Aws::String&& value) { SetTeam(std::move(value)); return *this;}
92 inline Player& WithTeam(const char* value) { SetTeam(value); return *this;}
94
96
105 inline const Aws::Map<Aws::String, int>& GetLatencyInMs() const{ return m_latencyInMs; }
106 inline bool LatencyInMsHasBeenSet() const { return m_latencyInMsHasBeenSet; }
107 inline void SetLatencyInMs(const Aws::Map<Aws::String, int>& value) { m_latencyInMsHasBeenSet = true; m_latencyInMs = value; }
108 inline void SetLatencyInMs(Aws::Map<Aws::String, int>&& value) { m_latencyInMsHasBeenSet = true; m_latencyInMs = std::move(value); }
109 inline Player& WithLatencyInMs(const Aws::Map<Aws::String, int>& value) { SetLatencyInMs(value); return *this;}
110 inline Player& WithLatencyInMs(Aws::Map<Aws::String, int>&& value) { SetLatencyInMs(std::move(value)); return *this;}
111 inline Player& AddLatencyInMs(const Aws::String& key, int value) { m_latencyInMsHasBeenSet = true; m_latencyInMs.emplace(key, value); return *this; }
112 inline Player& AddLatencyInMs(Aws::String&& key, int value) { m_latencyInMsHasBeenSet = true; m_latencyInMs.emplace(std::move(key), value); return *this; }
113 inline Player& AddLatencyInMs(const char* key, int value) { m_latencyInMsHasBeenSet = true; m_latencyInMs.emplace(key, value); return *this; }
115 private:
116
117 Aws::String m_playerId;
118 bool m_playerIdHasBeenSet = false;
119
120 Aws::Map<Aws::String, AttributeValue> m_playerAttributes;
121 bool m_playerAttributesHasBeenSet = false;
122
123 Aws::String m_team;
124 bool m_teamHasBeenSet = false;
125
126 Aws::Map<Aws::String, int> m_latencyInMs;
127 bool m_latencyInMsHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace GameLift
132} // namespace Aws
Player & AddPlayerAttributes(const Aws::String &key, AttributeValue &&value)
Definition Player.h:74
void SetTeam(const char *value)
Definition Player.h:89
void SetTeam(Aws::String &&value)
Definition Player.h:88
void SetPlayerId(const char *value)
Definition Player.h:52
AWS_GAMELIFT_API Player & operator=(Aws::Utils::Json::JsonView jsonValue)
Player & WithLatencyInMs(const Aws::Map< Aws::String, int > &value)
Definition Player.h:109
Player & WithTeam(const Aws::String &value)
Definition Player.h:90
const Aws::String & GetTeam() const
Definition Player.h:85
Player & WithPlayerAttributes(const Aws::Map< Aws::String, AttributeValue > &value)
Definition Player.h:70
Player & AddPlayerAttributes(const char *key, AttributeValue &&value)
Definition Player.h:76
bool LatencyInMsHasBeenSet() const
Definition Player.h:106
Player & WithTeam(Aws::String &&value)
Definition Player.h:91
AWS_GAMELIFT_API Player()
Player & AddLatencyInMs(const Aws::String &key, int value)
Definition Player.h:111
const Aws::String & GetPlayerId() const
Definition Player.h:48
bool TeamHasBeenSet() const
Definition Player.h:86
bool PlayerIdHasBeenSet() const
Definition Player.h:49
Player & WithPlayerAttributes(Aws::Map< Aws::String, AttributeValue > &&value)
Definition Player.h:71
void SetLatencyInMs(Aws::Map< Aws::String, int > &&value)
Definition Player.h:108
void SetTeam(const Aws::String &value)
Definition Player.h:87
Player & WithLatencyInMs(Aws::Map< Aws::String, int > &&value)
Definition Player.h:110
Player & WithTeam(const char *value)
Definition Player.h:92
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
Player & WithPlayerId(const char *value)
Definition Player.h:55
const Aws::Map< Aws::String, AttributeValue > & GetPlayerAttributes() const
Definition Player.h:66
Player & AddPlayerAttributes(const Aws::String &key, const AttributeValue &value)
Definition Player.h:72
void SetPlayerId(const Aws::String &value)
Definition Player.h:50
AWS_GAMELIFT_API Player(Aws::Utils::Json::JsonView jsonValue)
Player & AddLatencyInMs(const char *key, int value)
Definition Player.h:113
void SetPlayerAttributes(const Aws::Map< Aws::String, AttributeValue > &value)
Definition Player.h:68
Player & AddLatencyInMs(Aws::String &&key, int value)
Definition Player.h:112
const Aws::Map< Aws::String, int > & GetLatencyInMs() const
Definition Player.h:105
Player & AddPlayerAttributes(Aws::String &&key, const AttributeValue &value)
Definition Player.h:73
Player & WithPlayerId(Aws::String &&value)
Definition Player.h:54
Player & WithPlayerId(const Aws::String &value)
Definition Player.h:53
bool PlayerAttributesHasBeenSet() const
Definition Player.h:67
void SetLatencyInMs(const Aws::Map< Aws::String, int > &value)
Definition Player.h:107
Player & AddPlayerAttributes(Aws::String &&key, AttributeValue &&value)
Definition Player.h:75
void SetPlayerId(Aws::String &&value)
Definition Player.h:51
Player & AddPlayerAttributes(const char *key, const AttributeValue &value)
Definition Player.h:77
void SetPlayerAttributes(Aws::Map< Aws::String, AttributeValue > &&value)
Definition Player.h:69
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