AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DesiredPlayerSession.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GameLift
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_GAMELIFT_API DesiredPlayerSession();
38 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetPlayerId() const{ return m_playerId; }
46 inline bool PlayerIdHasBeenSet() const { return m_playerIdHasBeenSet; }
47 inline void SetPlayerId(const Aws::String& value) { m_playerIdHasBeenSet = true; m_playerId = value; }
48 inline void SetPlayerId(Aws::String&& value) { m_playerIdHasBeenSet = true; m_playerId = std::move(value); }
49 inline void SetPlayerId(const char* value) { m_playerIdHasBeenSet = true; m_playerId.assign(value); }
50 inline DesiredPlayerSession& WithPlayerId(const Aws::String& value) { SetPlayerId(value); return *this;}
51 inline DesiredPlayerSession& WithPlayerId(Aws::String&& value) { SetPlayerId(std::move(value)); return *this;}
52 inline DesiredPlayerSession& WithPlayerId(const char* value) { SetPlayerId(value); return *this;}
54
56
60 inline const Aws::String& GetPlayerData() const{ return m_playerData; }
61 inline bool PlayerDataHasBeenSet() const { return m_playerDataHasBeenSet; }
62 inline void SetPlayerData(const Aws::String& value) { m_playerDataHasBeenSet = true; m_playerData = value; }
63 inline void SetPlayerData(Aws::String&& value) { m_playerDataHasBeenSet = true; m_playerData = std::move(value); }
64 inline void SetPlayerData(const char* value) { m_playerDataHasBeenSet = true; m_playerData.assign(value); }
65 inline DesiredPlayerSession& WithPlayerData(const Aws::String& value) { SetPlayerData(value); return *this;}
66 inline DesiredPlayerSession& WithPlayerData(Aws::String&& value) { SetPlayerData(std::move(value)); return *this;}
67 inline DesiredPlayerSession& WithPlayerData(const char* value) { SetPlayerData(value); return *this;}
69 private:
70
71 Aws::String m_playerId;
72 bool m_playerIdHasBeenSet = false;
73
74 Aws::String m_playerData;
75 bool m_playerDataHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace GameLift
80} // namespace Aws
void SetPlayerData(const Aws::String &value)
DesiredPlayerSession & WithPlayerData(const Aws::String &value)
DesiredPlayerSession & WithPlayerId(Aws::String &&value)
DesiredPlayerSession & WithPlayerData(const char *value)
DesiredPlayerSession & WithPlayerData(Aws::String &&value)
DesiredPlayerSession & WithPlayerId(const char *value)
AWS_GAMELIFT_API DesiredPlayerSession(Aws::Utils::Json::JsonView jsonValue)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
DesiredPlayerSession & WithPlayerId(const Aws::String &value)
AWS_GAMELIFT_API DesiredPlayerSession & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue