AWS SDK for C++  1.9.15
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:
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
Aws::GameLift::Model::GameSession
Definition: GameSession.h:49
Aws::GameLift::Model::GameSessionDetail::SetGameSession
void SetGameSession(const GameSession &value)
Definition: GameSessionDetail.h:55
GameSession.h
Aws::GameLift::Model::GameSessionDetail::WithGameSession
GameSessionDetail & WithGameSession(GameSession &&value)
Definition: GameSessionDetail.h:70
Aws::GameLift::Model::GameSessionDetail::WithProtectionPolicy
GameSessionDetail & WithProtectionPolicy(const ProtectionPolicy &value)
Definition: GameSessionDetail.h:116
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::ProtectionPolicy
ProtectionPolicy
Definition: ProtectionPolicy.h:17
Aws::GameLift::Model::GameSessionDetail
Definition: GameSessionDetail.h:34
Aws::GameLift::Model::GameSessionDetail::operator=
GameSessionDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::GameSessionDetail::SetGameSession
void SetGameSession(GameSession &&value)
Definition: GameSessionDetail.h:60
Aws::GameLift::Model::GameSessionDetail::GameSessionDetail
GameSessionDetail(Aws::Utils::Json::JsonView jsonValue)
GameLift_EXPORTS.h
Aws::GameLift::Model::GameSessionDetail::GetGameSession
const GameSession & GetGameSession() const
Definition: GameSessionDetail.h:45
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
ProtectionPolicy.h
Aws::GameLift::Model::GameSessionDetail::SetProtectionPolicy
void SetProtectionPolicy(const ProtectionPolicy &value)
Definition: GameSessionDetail.h:98
Aws::GameLift::Model::GameSessionDetail::SetProtectionPolicy
void SetProtectionPolicy(ProtectionPolicy &&value)
Definition: GameSessionDetail.h:107
Aws::GameLift::Model::GameSessionDetail::WithProtectionPolicy
GameSessionDetail & WithProtectionPolicy(ProtectionPolicy &&value)
Definition: GameSessionDetail.h:125
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::GameSessionDetail::GetProtectionPolicy
const ProtectionPolicy & GetProtectionPolicy() const
Definition: GameSessionDetail.h:80
Aws::GameLift::Model::GameSessionDetail::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GameLift::Model::GameSessionDetail::GameSessionHasBeenSet
bool GameSessionHasBeenSet() const
Definition: GameSessionDetail.h:50
Aws::GameLift::Model::GameSessionDetail::ProtectionPolicyHasBeenSet
bool ProtectionPolicyHasBeenSet() const
Definition: GameSessionDetail.h:89
Aws::GameLift::Model::GameSessionDetail::WithGameSession
GameSessionDetail & WithGameSession(const GameSession &value)
Definition: GameSessionDetail.h:65
Aws::GameLift::Model::GameSessionDetail::GameSessionDetail
GameSessionDetail()