AWS SDK for C++

AWS SDK for C++ Version 1.11.746

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
61 inline const Aws::String& GetPlayerSessionId() const { return m_playerSessionId; }
62 inline bool PlayerSessionIdHasBeenSet() const { return m_playerSessionIdHasBeenSet; }
63 template <typename PlayerSessionIdT = Aws::String>
64 void SetPlayerSessionId(PlayerSessionIdT&& value) {
65 m_playerSessionIdHasBeenSet = true;
66 m_playerSessionId = std::forward<PlayerSessionIdT>(value);
67 }
68 template <typename PlayerSessionIdT = Aws::String>
69 MatchedPlayerSession& WithPlayerSessionId(PlayerSessionIdT&& value) {
70 SetPlayerSessionId(std::forward<PlayerSessionIdT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_playerId;
76
77 Aws::String m_playerSessionId;
78 bool m_playerIdHasBeenSet = false;
79 bool m_playerSessionIdHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace GameLift
84} // 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