AWS SDK for C++  1.9.159
AWS SDK for C++
DesiredPlayerSession.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 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetPlayerId() const{ return m_playerId; }
46 
50  inline bool PlayerIdHasBeenSet() const { return m_playerIdHasBeenSet; }
51 
55  inline void SetPlayerId(const Aws::String& value) { m_playerIdHasBeenSet = true; m_playerId = value; }
56 
60  inline void SetPlayerId(Aws::String&& value) { m_playerIdHasBeenSet = true; m_playerId = std::move(value); }
61 
65  inline void SetPlayerId(const char* value) { m_playerIdHasBeenSet = true; m_playerId.assign(value); }
66 
70  inline DesiredPlayerSession& WithPlayerId(const Aws::String& value) { SetPlayerId(value); return *this;}
71 
75  inline DesiredPlayerSession& WithPlayerId(Aws::String&& value) { SetPlayerId(std::move(value)); return *this;}
76 
80  inline DesiredPlayerSession& WithPlayerId(const char* value) { SetPlayerId(value); return *this;}
81 
82 
87  inline const Aws::String& GetPlayerData() const{ return m_playerData; }
88 
93  inline bool PlayerDataHasBeenSet() const { return m_playerDataHasBeenSet; }
94 
99  inline void SetPlayerData(const Aws::String& value) { m_playerDataHasBeenSet = true; m_playerData = value; }
100 
105  inline void SetPlayerData(Aws::String&& value) { m_playerDataHasBeenSet = true; m_playerData = std::move(value); }
106 
111  inline void SetPlayerData(const char* value) { m_playerDataHasBeenSet = true; m_playerData.assign(value); }
112 
117  inline DesiredPlayerSession& WithPlayerData(const Aws::String& value) { SetPlayerData(value); return *this;}
118 
123  inline DesiredPlayerSession& WithPlayerData(Aws::String&& value) { SetPlayerData(std::move(value)); return *this;}
124 
129  inline DesiredPlayerSession& WithPlayerData(const char* value) { SetPlayerData(value); return *this;}
130 
131  private:
132 
133  Aws::String m_playerId;
134  bool m_playerIdHasBeenSet;
135 
136  Aws::String m_playerData;
137  bool m_playerDataHasBeenSet;
138  };
139 
140 } // namespace Model
141 } // namespace GameLift
142 } // namespace Aws
Aws::GameLift::Model::DesiredPlayerSession::SetPlayerId
void SetPlayerId(Aws::String &&value)
Definition: DesiredPlayerSession.h:60
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::DesiredPlayerSession::GetPlayerId
const Aws::String & GetPlayerId() const
Definition: DesiredPlayerSession.h:45
Aws::GameLift::Model::DesiredPlayerSession::WithPlayerData
DesiredPlayerSession & WithPlayerData(const char *value)
Definition: DesiredPlayerSession.h:129
Aws::GameLift::Model::DesiredPlayerSession::SetPlayerData
void SetPlayerData(Aws::String &&value)
Definition: DesiredPlayerSession.h:105
Aws::GameLift::Model::DesiredPlayerSession::PlayerDataHasBeenSet
bool PlayerDataHasBeenSet() const
Definition: DesiredPlayerSession.h:93
Aws::GameLift::Model::DesiredPlayerSession::SetPlayerData
void SetPlayerData(const Aws::String &value)
Definition: DesiredPlayerSession.h:99
Aws::GameLift::Model::DesiredPlayerSession::WithPlayerId
DesiredPlayerSession & WithPlayerId(const Aws::String &value)
Definition: DesiredPlayerSession.h:70
Aws::GameLift::Model::DesiredPlayerSession::WithPlayerData
DesiredPlayerSession & WithPlayerData(const Aws::String &value)
Definition: DesiredPlayerSession.h:117
GameLift_EXPORTS.h
Aws::GameLift::Model::DesiredPlayerSession::SetPlayerId
void SetPlayerId(const char *value)
Definition: DesiredPlayerSession.h:65
Aws::GameLift::Model::DesiredPlayerSession::GetPlayerData
const Aws::String & GetPlayerData() const
Definition: DesiredPlayerSession.h:87
Aws::GameLift::Model::DesiredPlayerSession::WithPlayerId
DesiredPlayerSession & WithPlayerId(Aws::String &&value)
Definition: DesiredPlayerSession.h:75
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GameLift::Model::DesiredPlayerSession::SetPlayerData
void SetPlayerData(const char *value)
Definition: DesiredPlayerSession.h:111
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::DesiredPlayerSession::PlayerIdHasBeenSet
bool PlayerIdHasBeenSet() const
Definition: DesiredPlayerSession.h:50
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::DesiredPlayerSession::WithPlayerId
DesiredPlayerSession & WithPlayerId(const char *value)
Definition: DesiredPlayerSession.h:80
Aws::GameLift::Model::DesiredPlayerSession::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GameLift::Model::DesiredPlayerSession::WithPlayerData
DesiredPlayerSession & WithPlayerData(Aws::String &&value)
Definition: DesiredPlayerSession.h:123
Aws::GameLift::Model::DesiredPlayerSession
Definition: DesiredPlayerSession.h:34
Aws::GameLift::Model::DesiredPlayerSession::operator=
DesiredPlayerSession & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::DesiredPlayerSession::SetPlayerId
void SetPlayerId(const Aws::String &value)
Definition: DesiredPlayerSession.h:55
Aws::GameLift::Model::DesiredPlayerSession::DesiredPlayerSession
DesiredPlayerSession()
Aws::GameLift::Model::DesiredPlayerSession::DesiredPlayerSession
DesiredPlayerSession(Aws::Utils::Json::JsonView jsonValue)