AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PlacedPlayerSession.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
35 {
36 public:
37 AWS_GAMELIFT_API PlacedPlayerSession() = default;
40 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetPlayerId() const { return m_playerId; }
49 inline bool PlayerIdHasBeenSet() const { return m_playerIdHasBeenSet; }
50 template<typename PlayerIdT = Aws::String>
51 void SetPlayerId(PlayerIdT&& value) { m_playerIdHasBeenSet = true; m_playerId = std::forward<PlayerIdT>(value); }
52 template<typename PlayerIdT = Aws::String>
53 PlacedPlayerSession& WithPlayerId(PlayerIdT&& value) { SetPlayerId(std::forward<PlayerIdT>(value)); return *this;}
55
57
60 inline const Aws::String& GetPlayerSessionId() const { return m_playerSessionId; }
61 inline bool PlayerSessionIdHasBeenSet() const { return m_playerSessionIdHasBeenSet; }
62 template<typename PlayerSessionIdT = Aws::String>
63 void SetPlayerSessionId(PlayerSessionIdT&& value) { m_playerSessionIdHasBeenSet = true; m_playerSessionId = std::forward<PlayerSessionIdT>(value); }
64 template<typename PlayerSessionIdT = Aws::String>
65 PlacedPlayerSession& WithPlayerSessionId(PlayerSessionIdT&& value) { SetPlayerSessionId(std::forward<PlayerSessionIdT>(value)); return *this;}
67 private:
68
69 Aws::String m_playerId;
70 bool m_playerIdHasBeenSet = false;
71
72 Aws::String m_playerSessionId;
73 bool m_playerSessionIdHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace GameLift
78} // namespace Aws
void SetPlayerSessionId(PlayerSessionIdT &&value)
PlacedPlayerSession & WithPlayerId(PlayerIdT &&value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetPlayerSessionId() const
AWS_GAMELIFT_API PlacedPlayerSession()=default
AWS_GAMELIFT_API PlacedPlayerSession(Aws::Utils::Json::JsonView jsonValue)
PlacedPlayerSession & WithPlayerSessionId(PlayerSessionIdT &&value)
AWS_GAMELIFT_API PlacedPlayerSession & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue