AWS SDK for C++  1.9.104
AWS SDK for C++
PlacedPlayerSession.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 
40  {
41  public:
46 
47 
52  inline const Aws::String& GetPlayerId() const{ return m_playerId; }
53 
58  inline bool PlayerIdHasBeenSet() const { return m_playerIdHasBeenSet; }
59 
64  inline void SetPlayerId(const Aws::String& value) { m_playerIdHasBeenSet = true; m_playerId = value; }
65 
70  inline void SetPlayerId(Aws::String&& value) { m_playerIdHasBeenSet = true; m_playerId = std::move(value); }
71 
76  inline void SetPlayerId(const char* value) { m_playerIdHasBeenSet = true; m_playerId.assign(value); }
77 
82  inline PlacedPlayerSession& WithPlayerId(const Aws::String& value) { SetPlayerId(value); return *this;}
83 
88  inline PlacedPlayerSession& WithPlayerId(Aws::String&& value) { SetPlayerId(std::move(value)); return *this;}
89 
94  inline PlacedPlayerSession& WithPlayerId(const char* value) { SetPlayerId(value); return *this;}
95 
96 
100  inline const Aws::String& GetPlayerSessionId() const{ return m_playerSessionId; }
101 
105  inline bool PlayerSessionIdHasBeenSet() const { return m_playerSessionIdHasBeenSet; }
106 
110  inline void SetPlayerSessionId(const Aws::String& value) { m_playerSessionIdHasBeenSet = true; m_playerSessionId = value; }
111 
115  inline void SetPlayerSessionId(Aws::String&& value) { m_playerSessionIdHasBeenSet = true; m_playerSessionId = std::move(value); }
116 
120  inline void SetPlayerSessionId(const char* value) { m_playerSessionIdHasBeenSet = true; m_playerSessionId.assign(value); }
121 
125  inline PlacedPlayerSession& WithPlayerSessionId(const Aws::String& value) { SetPlayerSessionId(value); return *this;}
126 
130  inline PlacedPlayerSession& WithPlayerSessionId(Aws::String&& value) { SetPlayerSessionId(std::move(value)); return *this;}
131 
135  inline PlacedPlayerSession& WithPlayerSessionId(const char* value) { SetPlayerSessionId(value); return *this;}
136 
137  private:
138 
139  Aws::String m_playerId;
140  bool m_playerIdHasBeenSet;
141 
142  Aws::String m_playerSessionId;
143  bool m_playerSessionIdHasBeenSet;
144  };
145 
146 } // namespace Model
147 } // namespace GameLift
148 } // namespace Aws
Aws::GameLift::Model::PlacedPlayerSession::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GameLift::Model::PlacedPlayerSession
Definition: PlacedPlayerSession.h:40
Aws::GameLift::Model::PlacedPlayerSession::PlacedPlayerSession
PlacedPlayerSession()
Aws::GameLift::Model::PlacedPlayerSession::WithPlayerSessionId
PlacedPlayerSession & WithPlayerSessionId(const Aws::String &value)
Definition: PlacedPlayerSession.h:125
Aws::GameLift::Model::PlacedPlayerSession::GetPlayerId
const Aws::String & GetPlayerId() const
Definition: PlacedPlayerSession.h:52
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
GameLift_EXPORTS.h
Aws::GameLift::Model::PlacedPlayerSession::PlayerSessionIdHasBeenSet
bool PlayerSessionIdHasBeenSet() const
Definition: PlacedPlayerSession.h:105
Aws::GameLift::Model::PlacedPlayerSession::SetPlayerId
void SetPlayerId(const char *value)
Definition: PlacedPlayerSession.h:76
Aws::GameLift::Model::PlacedPlayerSession::SetPlayerSessionId
void SetPlayerSessionId(Aws::String &&value)
Definition: PlacedPlayerSession.h:115
Aws::GameLift::Model::PlacedPlayerSession::WithPlayerId
PlacedPlayerSession & WithPlayerId(const char *value)
Definition: PlacedPlayerSession.h:94
Aws::GameLift::Model::PlacedPlayerSession::PlayerIdHasBeenSet
bool PlayerIdHasBeenSet() const
Definition: PlacedPlayerSession.h:58
Aws::GameLift::Model::PlacedPlayerSession::operator=
PlacedPlayerSession & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::PlacedPlayerSession::SetPlayerSessionId
void SetPlayerSessionId(const Aws::String &value)
Definition: PlacedPlayerSession.h:110
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::GameLift::Model::PlacedPlayerSession::SetPlayerSessionId
void SetPlayerSessionId(const char *value)
Definition: PlacedPlayerSession.h:120
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GameLift::Model::PlacedPlayerSession::WithPlayerSessionId
PlacedPlayerSession & WithPlayerSessionId(const char *value)
Definition: PlacedPlayerSession.h:135
Aws::GameLift::Model::PlacedPlayerSession::WithPlayerSessionId
PlacedPlayerSession & WithPlayerSessionId(Aws::String &&value)
Definition: PlacedPlayerSession.h:130
Aws::GameLift::Model::PlacedPlayerSession::WithPlayerId
PlacedPlayerSession & WithPlayerId(Aws::String &&value)
Definition: PlacedPlayerSession.h:88
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::PlacedPlayerSession::WithPlayerId
PlacedPlayerSession & WithPlayerId(const Aws::String &value)
Definition: PlacedPlayerSession.h:82
Aws::GameLift::Model::PlacedPlayerSession::SetPlayerId
void SetPlayerId(Aws::String &&value)
Definition: PlacedPlayerSession.h:70
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::PlacedPlayerSession::PlacedPlayerSession
PlacedPlayerSession(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::PlacedPlayerSession::GetPlayerSessionId
const Aws::String & GetPlayerSessionId() const
Definition: PlacedPlayerSession.h:100
Aws::GameLift::Model::PlacedPlayerSession::SetPlayerId
void SetPlayerId(const Aws::String &value)
Definition: PlacedPlayerSession.h:64