AWS SDK for C++  1.8.56
AWS SDK for C++
GameSessionDetail.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace GameLift
23 {
24 namespace Model
25 {
26 
34  {
35  public:
38  GameSessionDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
39  Aws::Utils::Json::JsonValue Jsonize() const;
40 
41 
45  inline const GameSession& GetGameSession() const{ return m_gameSession; }
46 
50  inline bool GameSessionHasBeenSet() const { return m_gameSessionHasBeenSet; }
51 
55  inline void SetGameSession(const GameSession& value) { m_gameSessionHasBeenSet = true; m_gameSession = value; }
56 
60  inline void SetGameSession(GameSession&& value) { m_gameSessionHasBeenSet = true; m_gameSession = std::move(value); }
61 
65  inline GameSessionDetail& WithGameSession(const GameSession& value) { SetGameSession(value); return *this;}
66 
70  inline GameSessionDetail& WithGameSession(GameSession&& value) { SetGameSession(std::move(value)); return *this;}
71 
72 
80  inline const ProtectionPolicy& GetProtectionPolicy() const{ return m_protectionPolicy; }
81 
89  inline bool ProtectionPolicyHasBeenSet() const { return m_protectionPolicyHasBeenSet; }
90 
98  inline void SetProtectionPolicy(const ProtectionPolicy& value) { m_protectionPolicyHasBeenSet = true; m_protectionPolicy = value; }
99 
107  inline void SetProtectionPolicy(ProtectionPolicy&& value) { m_protectionPolicyHasBeenSet = true; m_protectionPolicy = std::move(value); }
108 
116  inline GameSessionDetail& WithProtectionPolicy(const ProtectionPolicy& value) { SetProtectionPolicy(value); return *this;}
117 
125  inline GameSessionDetail& WithProtectionPolicy(ProtectionPolicy&& value) { SetProtectionPolicy(std::move(value)); return *this;}
126 
127  private:
128 
129  GameSession m_gameSession;
130  bool m_gameSessionHasBeenSet;
131 
132  ProtectionPolicy m_protectionPolicy;
133  bool m_protectionPolicyHasBeenSet;
134  };
135 
136 } // namespace Model
137 } // namespace GameLift
138 } // namespace Aws
GameSessionDetail & WithProtectionPolicy(ProtectionPolicy &&value)
#define AWS_GAMELIFT_API
GameSessionDetail & WithGameSession(GameSession &&value)
void SetGameSession(GameSession &&value)
void SetGameSession(const GameSession &value)
void SetProtectionPolicy(const ProtectionPolicy &value)
GameSessionDetail & WithGameSession(const GameSession &value)
void SetProtectionPolicy(ProtectionPolicy &&value)
const GameSession & GetGameSession() const
const ProtectionPolicy & GetProtectionPolicy() const
GameSessionDetail & WithProtectionPolicy(const ProtectionPolicy &value)