AWS SDK for C++  0.14.3
AWS SDK for C++
PlayerSession.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace GameLift
31 {
32 namespace Model
33 {
34 
39  {
40  public:
41  PlayerSession();
43  PlayerSession& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::String& GetPlayerSessionId() const{ return m_playerSessionId; }
50 
54  inline void SetPlayerSessionId(const Aws::String& value) { m_playerSessionIdHasBeenSet = true; m_playerSessionId = value; }
55 
59  inline void SetPlayerSessionId(Aws::String&& value) { m_playerSessionIdHasBeenSet = true; m_playerSessionId = value; }
60 
64  inline void SetPlayerSessionId(const char* value) { m_playerSessionIdHasBeenSet = true; m_playerSessionId.assign(value); }
65 
69  inline PlayerSession& WithPlayerSessionId(const Aws::String& value) { SetPlayerSessionId(value); return *this;}
70 
74  inline PlayerSession& WithPlayerSessionId(Aws::String&& value) { SetPlayerSessionId(value); return *this;}
75 
79  inline PlayerSession& WithPlayerSessionId(const char* value) { SetPlayerSessionId(value); return *this;}
80 
84  inline const Aws::String& GetPlayerId() const{ return m_playerId; }
85 
89  inline void SetPlayerId(const Aws::String& value) { m_playerIdHasBeenSet = true; m_playerId = value; }
90 
94  inline void SetPlayerId(Aws::String&& value) { m_playerIdHasBeenSet = true; m_playerId = value; }
95 
99  inline void SetPlayerId(const char* value) { m_playerIdHasBeenSet = true; m_playerId.assign(value); }
100 
104  inline PlayerSession& WithPlayerId(const Aws::String& value) { SetPlayerId(value); return *this;}
105 
109  inline PlayerSession& WithPlayerId(Aws::String&& value) { SetPlayerId(value); return *this;}
110 
114  inline PlayerSession& WithPlayerId(const char* value) { SetPlayerId(value); return *this;}
115 
119  inline const Aws::String& GetGameSessionId() const{ return m_gameSessionId; }
120 
124  inline void SetGameSessionId(const Aws::String& value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId = value; }
125 
129  inline void SetGameSessionId(Aws::String&& value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId = value; }
130 
134  inline void SetGameSessionId(const char* value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId.assign(value); }
135 
139  inline PlayerSession& WithGameSessionId(const Aws::String& value) { SetGameSessionId(value); return *this;}
140 
144  inline PlayerSession& WithGameSessionId(Aws::String&& value) { SetGameSessionId(value); return *this;}
145 
149  inline PlayerSession& WithGameSessionId(const char* value) { SetGameSessionId(value); return *this;}
150 
154  inline const Aws::String& GetFleetId() const{ return m_fleetId; }
155 
159  inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
160 
164  inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
165 
169  inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
170 
174  inline PlayerSession& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
175 
179  inline PlayerSession& WithFleetId(Aws::String&& value) { SetFleetId(value); return *this;}
180 
184  inline PlayerSession& WithFleetId(const char* value) { SetFleetId(value); return *this;}
185 
190  inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
191 
196  inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
197 
202  inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
203 
208  inline PlayerSession& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
209 
214  inline PlayerSession& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(value); return *this;}
215 
220  inline const Aws::Utils::DateTime& GetTerminationTime() const{ return m_terminationTime; }
221 
226  inline void SetTerminationTime(const Aws::Utils::DateTime& value) { m_terminationTimeHasBeenSet = true; m_terminationTime = value; }
227 
232  inline void SetTerminationTime(Aws::Utils::DateTime&& value) { m_terminationTimeHasBeenSet = true; m_terminationTime = value; }
233 
238  inline PlayerSession& WithTerminationTime(const Aws::Utils::DateTime& value) { SetTerminationTime(value); return *this;}
239 
244  inline PlayerSession& WithTerminationTime(Aws::Utils::DateTime&& value) { SetTerminationTime(value); return *this;}
245 
256  inline const PlayerSessionStatus& GetStatus() const{ return m_status; }
257 
268  inline void SetStatus(const PlayerSessionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
269 
280  inline void SetStatus(PlayerSessionStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
281 
292  inline PlayerSession& WithStatus(const PlayerSessionStatus& value) { SetStatus(value); return *this;}
293 
304  inline PlayerSession& WithStatus(PlayerSessionStatus&& value) { SetStatus(value); return *this;}
305 
310  inline const Aws::String& GetIpAddress() const{ return m_ipAddress; }
311 
316  inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
317 
322  inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
323 
328  inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); }
329 
334  inline PlayerSession& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;}
335 
340  inline PlayerSession& WithIpAddress(Aws::String&& value) { SetIpAddress(value); return *this;}
341 
346  inline PlayerSession& WithIpAddress(const char* value) { SetIpAddress(value); return *this;}
347 
352  inline int GetPort() const{ return m_port; }
353 
358  inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
359 
364  inline PlayerSession& WithPort(int value) { SetPort(value); return *this;}
365 
366  private:
367  Aws::String m_playerSessionId;
368  bool m_playerSessionIdHasBeenSet;
369  Aws::String m_playerId;
370  bool m_playerIdHasBeenSet;
371  Aws::String m_gameSessionId;
372  bool m_gameSessionIdHasBeenSet;
373  Aws::String m_fleetId;
374  bool m_fleetIdHasBeenSet;
375  Aws::Utils::DateTime m_creationTime;
376  bool m_creationTimeHasBeenSet;
377  Aws::Utils::DateTime m_terminationTime;
378  bool m_terminationTimeHasBeenSet;
379  PlayerSessionStatus m_status;
380  bool m_statusHasBeenSet;
381  Aws::String m_ipAddress;
382  bool m_ipAddressHasBeenSet;
383  int m_port;
384  bool m_portHasBeenSet;
385  };
386 
387 } // namespace Model
388 } // namespace GameLift
389 } // namespace Aws
void SetFleetId(const Aws::String &value)
PlayerSession & WithCreationTime(Aws::Utils::DateTime &&value)
void SetPlayerSessionId(const char *value)
Definition: PlayerSession.h:64
PlayerSession & WithFleetId(const char *value)
PlayerSession & WithPlayerSessionId(const Aws::String &value)
Definition: PlayerSession.h:69
PlayerSession & WithStatus(const PlayerSessionStatus &value)
PlayerSession & WithPlayerSessionId(Aws::String &&value)
Definition: PlayerSession.h:74
#define AWS_GAMELIFT_API
void SetPlayerId(const char *value)
Definition: PlayerSession.h:99
void SetTerminationTime(Aws::Utils::DateTime &&value)
PlayerSession & WithTerminationTime(const Aws::Utils::DateTime &value)
void SetCreationTime(const Aws::Utils::DateTime &value)
const PlayerSessionStatus & GetStatus() const
PlayerSession & WithPlayerSessionId(const char *value)
Definition: PlayerSession.h:79
void SetIpAddress(Aws::String &&value)
void SetFleetId(const char *value)
const Aws::Utils::DateTime & GetCreationTime() const
void SetTerminationTime(const Aws::Utils::DateTime &value)
PlayerSession & WithIpAddress(Aws::String &&value)
PlayerSession & WithCreationTime(const Aws::Utils::DateTime &value)
PlayerSession & WithTerminationTime(Aws::Utils::DateTime &&value)
void SetGameSessionId(const char *value)
PlayerSession & WithStatus(PlayerSessionStatus &&value)
void SetPlayerId(Aws::String &&value)
Definition: PlayerSession.h:94
void SetGameSessionId(const Aws::String &value)
void SetIpAddress(const char *value)
void SetFleetId(Aws::String &&value)
void SetStatus(const PlayerSessionStatus &value)
PlayerSession & WithPlayerId(Aws::String &&value)
const Aws::String & GetPlayerId() const
Definition: PlayerSession.h:84
void SetPlayerSessionId(Aws::String &&value)
Definition: PlayerSession.h:59
void SetIpAddress(const Aws::String &value)
PlayerSession & WithPort(int value)
PlayerSession & WithIpAddress(const char *value)
const Aws::String & GetIpAddress() const
PlayerSession & WithGameSessionId(const char *value)
const Aws::String & GetGameSessionId() const
PlayerSession & WithGameSessionId(Aws::String &&value)
void SetPlayerSessionId(const Aws::String &value)
Definition: PlayerSession.h:54
void SetStatus(PlayerSessionStatus &&value)
const Aws::Utils::DateTime & GetTerminationTime() const
PlayerSession & WithFleetId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetGameSessionId(Aws::String &&value)
void SetPlayerId(const Aws::String &value)
Definition: PlayerSession.h:89
PlayerSession & WithPlayerId(const char *value)
PlayerSession & WithGameSessionId(const Aws::String &value)
const Aws::String & GetPlayerSessionId() const
Definition: PlayerSession.h:49
PlayerSession & WithIpAddress(const Aws::String &value)
PlayerSession & WithPlayerId(const Aws::String &value)
void SetCreationTime(Aws::Utils::DateTime &&value)
PlayerSession & WithFleetId(Aws::String &&value)
const Aws::String & GetFleetId() const
JSON (JavaScript Object Notation).