AWS SDK for C++  1.8.56
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 
41  {
42  public:
45  PlacedPlayerSession& operator=(Aws::Utils::Json::JsonView jsonValue);
46  Aws::Utils::Json::JsonValue Jsonize() const;
47 
48 
53  inline const Aws::String& GetPlayerId() const{ return m_playerId; }
54 
59  inline bool PlayerIdHasBeenSet() const { return m_playerIdHasBeenSet; }
60 
65  inline void SetPlayerId(const Aws::String& value) { m_playerIdHasBeenSet = true; m_playerId = value; }
66 
71  inline void SetPlayerId(Aws::String&& value) { m_playerIdHasBeenSet = true; m_playerId = std::move(value); }
72 
77  inline void SetPlayerId(const char* value) { m_playerIdHasBeenSet = true; m_playerId.assign(value); }
78 
83  inline PlacedPlayerSession& WithPlayerId(const Aws::String& value) { SetPlayerId(value); return *this;}
84 
89  inline PlacedPlayerSession& WithPlayerId(Aws::String&& value) { SetPlayerId(std::move(value)); return *this;}
90 
95  inline PlacedPlayerSession& WithPlayerId(const char* value) { SetPlayerId(value); return *this;}
96 
97 
101  inline const Aws::String& GetPlayerSessionId() const{ return m_playerSessionId; }
102 
106  inline bool PlayerSessionIdHasBeenSet() const { return m_playerSessionIdHasBeenSet; }
107 
111  inline void SetPlayerSessionId(const Aws::String& value) { m_playerSessionIdHasBeenSet = true; m_playerSessionId = value; }
112 
116  inline void SetPlayerSessionId(Aws::String&& value) { m_playerSessionIdHasBeenSet = true; m_playerSessionId = std::move(value); }
117 
121  inline void SetPlayerSessionId(const char* value) { m_playerSessionIdHasBeenSet = true; m_playerSessionId.assign(value); }
122 
126  inline PlacedPlayerSession& WithPlayerSessionId(const Aws::String& value) { SetPlayerSessionId(value); return *this;}
127 
131  inline PlacedPlayerSession& WithPlayerSessionId(Aws::String&& value) { SetPlayerSessionId(std::move(value)); return *this;}
132 
136  inline PlacedPlayerSession& WithPlayerSessionId(const char* value) { SetPlayerSessionId(value); return *this;}
137 
138  private:
139 
140  Aws::String m_playerId;
141  bool m_playerIdHasBeenSet;
142 
143  Aws::String m_playerSessionId;
144  bool m_playerSessionIdHasBeenSet;
145  };
146 
147 } // namespace Model
148 } // namespace GameLift
149 } // namespace Aws
void SetPlayerId(const Aws::String &value)
#define AWS_GAMELIFT_API
const Aws::String & GetPlayerSessionId() const
PlacedPlayerSession & WithPlayerId(const Aws::String &value)
PlacedPlayerSession & WithPlayerSessionId(const char *value)
void SetPlayerSessionId(const Aws::String &value)
PlacedPlayerSession & WithPlayerSessionId(const Aws::String &value)
PlacedPlayerSession & WithPlayerId(Aws::String &&value)
PlacedPlayerSession & WithPlayerSessionId(Aws::String &&value)
PlacedPlayerSession & WithPlayerId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97