AWS SDK for C++  1.9.46
AWS SDK for C++
MatchedPlayerSession.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace GameLift
22 {
23 namespace Model
24 {
25 
37  {
38  public:
43 
44 
48  inline const Aws::String& GetPlayerId() const{ return m_playerId; }
49 
53  inline bool PlayerIdHasBeenSet() const { return m_playerIdHasBeenSet; }
54 
58  inline void SetPlayerId(const Aws::String& value) { m_playerIdHasBeenSet = true; m_playerId = value; }
59 
63  inline void SetPlayerId(Aws::String&& value) { m_playerIdHasBeenSet = true; m_playerId = std::move(value); }
64 
68  inline void SetPlayerId(const char* value) { m_playerIdHasBeenSet = true; m_playerId.assign(value); }
69 
73  inline MatchedPlayerSession& WithPlayerId(const Aws::String& value) { SetPlayerId(value); return *this;}
74 
78  inline MatchedPlayerSession& WithPlayerId(Aws::String&& value) { SetPlayerId(std::move(value)); return *this;}
79 
83  inline MatchedPlayerSession& WithPlayerId(const char* value) { SetPlayerId(value); return *this;}
84 
85 
89  inline const Aws::String& GetPlayerSessionId() const{ return m_playerSessionId; }
90 
94  inline bool PlayerSessionIdHasBeenSet() const { return m_playerSessionIdHasBeenSet; }
95 
99  inline void SetPlayerSessionId(const Aws::String& value) { m_playerSessionIdHasBeenSet = true; m_playerSessionId = value; }
100 
104  inline void SetPlayerSessionId(Aws::String&& value) { m_playerSessionIdHasBeenSet = true; m_playerSessionId = std::move(value); }
105 
109  inline void SetPlayerSessionId(const char* value) { m_playerSessionIdHasBeenSet = true; m_playerSessionId.assign(value); }
110 
114  inline MatchedPlayerSession& WithPlayerSessionId(const Aws::String& value) { SetPlayerSessionId(value); return *this;}
115 
119  inline MatchedPlayerSession& WithPlayerSessionId(Aws::String&& value) { SetPlayerSessionId(std::move(value)); return *this;}
120 
124  inline MatchedPlayerSession& WithPlayerSessionId(const char* value) { SetPlayerSessionId(value); return *this;}
125 
126  private:
127 
128  Aws::String m_playerId;
129  bool m_playerIdHasBeenSet;
130 
131  Aws::String m_playerSessionId;
132  bool m_playerSessionIdHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace GameLift
137 } // namespace Aws
Aws::GameLift::Model::MatchedPlayerSession::operator=
MatchedPlayerSession & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::MatchedPlayerSession::SetPlayerSessionId
void SetPlayerSessionId(const char *value)
Definition: MatchedPlayerSession.h:109
Aws::GameLift::Model::MatchedPlayerSession::SetPlayerSessionId
void SetPlayerSessionId(Aws::String &&value)
Definition: MatchedPlayerSession.h:104
Aws::GameLift::Model::MatchedPlayerSession::SetPlayerSessionId
void SetPlayerSessionId(const Aws::String &value)
Definition: MatchedPlayerSession.h:99
Aws::GameLift::Model::MatchedPlayerSession::MatchedPlayerSession
MatchedPlayerSession()
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::MatchedPlayerSession
Definition: MatchedPlayerSession.h:37
Aws::GameLift::Model::MatchedPlayerSession::WithPlayerId
MatchedPlayerSession & WithPlayerId(const Aws::String &value)
Definition: MatchedPlayerSession.h:73
Aws::GameLift::Model::MatchedPlayerSession::MatchedPlayerSession
MatchedPlayerSession(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::MatchedPlayerSession::GetPlayerSessionId
const Aws::String & GetPlayerSessionId() const
Definition: MatchedPlayerSession.h:89
Aws::GameLift::Model::MatchedPlayerSession::WithPlayerSessionId
MatchedPlayerSession & WithPlayerSessionId(Aws::String &&value)
Definition: MatchedPlayerSession.h:119
GameLift_EXPORTS.h
Aws::GameLift::Model::MatchedPlayerSession::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GameLift::Model::MatchedPlayerSession::WithPlayerSessionId
MatchedPlayerSession & WithPlayerSessionId(const char *value)
Definition: MatchedPlayerSession.h:124
Aws::GameLift::Model::MatchedPlayerSession::WithPlayerId
MatchedPlayerSession & WithPlayerId(Aws::String &&value)
Definition: MatchedPlayerSession.h:78
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::GameLift::Model::MatchedPlayerSession::PlayerSessionIdHasBeenSet
bool PlayerSessionIdHasBeenSet() const
Definition: MatchedPlayerSession.h:94
Aws::GameLift::Model::MatchedPlayerSession::WithPlayerId
MatchedPlayerSession & WithPlayerId(const char *value)
Definition: MatchedPlayerSession.h:83
Aws::GameLift::Model::MatchedPlayerSession::SetPlayerId
void SetPlayerId(const char *value)
Definition: MatchedPlayerSession.h:68
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::MatchedPlayerSession::WithPlayerSessionId
MatchedPlayerSession & WithPlayerSessionId(const Aws::String &value)
Definition: MatchedPlayerSession.h:114
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::MatchedPlayerSession::SetPlayerId
void SetPlayerId(const Aws::String &value)
Definition: MatchedPlayerSession.h:58
Aws::GameLift::Model::MatchedPlayerSession::SetPlayerId
void SetPlayerId(Aws::String &&value)
Definition: MatchedPlayerSession.h:63
Aws::GameLift::Model::MatchedPlayerSession::PlayerIdHasBeenSet
bool PlayerIdHasBeenSet() const
Definition: MatchedPlayerSession.h:53
Aws::GameLift::Model::MatchedPlayerSession::GetPlayerId
const Aws::String & GetPlayerId() const
Definition: MatchedPlayerSession.h:48