AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
MatchedPlayerSession.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/gamelift/GameLift_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GameLift {
20namespace Model {
21
33 public:
34 AWS_GAMELIFT_API MatchedPlayerSession() = default;
37 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetPlayerId() const { return m_playerId; }
44 inline bool PlayerIdHasBeenSet() const { return m_playerIdHasBeenSet; }
45 template <typename PlayerIdT = Aws::String>
46 void SetPlayerId(PlayerIdT&& value) {
47 m_playerIdHasBeenSet = true;
48 m_playerId = std::forward<PlayerIdT>(value);
49 }
50 template <typename PlayerIdT = Aws::String>
51 MatchedPlayerSession& WithPlayerId(PlayerIdT&& value) {
52 SetPlayerId(std::forward<PlayerIdT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::String& GetPlayerSessionId() const { return m_playerSessionId; }
64 inline bool PlayerSessionIdHasBeenSet() const { return m_playerSessionIdHasBeenSet; }
65 template <typename PlayerSessionIdT = Aws::String>
66 void SetPlayerSessionId(PlayerSessionIdT&& value) {
67 m_playerSessionIdHasBeenSet = true;
68 m_playerSessionId = std::forward<PlayerSessionIdT>(value);
69 }
70 template <typename PlayerSessionIdT = Aws::String>
71 MatchedPlayerSession& WithPlayerSessionId(PlayerSessionIdT&& value) {
72 SetPlayerSessionId(std::forward<PlayerSessionIdT>(value));
73 return *this;
74 }
76 private:
77 Aws::String m_playerId;
78
79 Aws::String m_playerSessionId;
80 bool m_playerIdHasBeenSet = false;
81 bool m_playerSessionIdHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace GameLift
86} // namespace Aws
MatchedPlayerSession & WithPlayerSessionId(PlayerSessionIdT &&value)
MatchedPlayerSession & WithPlayerId(PlayerIdT &&value)
void SetPlayerSessionId(PlayerSessionIdT &&value)
AWS_GAMELIFT_API MatchedPlayerSession(Aws::Utils::Json::JsonView jsonValue)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GAMELIFT_API MatchedPlayerSession & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GAMELIFT_API MatchedPlayerSession()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue