AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GameSessionDetail.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/gamelift/model/GameSession.h>
9#include <aws/gamelift/model/ProtectionPolicy.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GameLift
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_GAMELIFT_API GameSessionDetail();
37 AWS_GAMELIFT_API GameSessionDetail(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const GameSession& GetGameSession() const{ return m_gameSession; }
47 inline bool GameSessionHasBeenSet() const { return m_gameSessionHasBeenSet; }
48 inline void SetGameSession(const GameSession& value) { m_gameSessionHasBeenSet = true; m_gameSession = value; }
49 inline void SetGameSession(GameSession&& value) { m_gameSessionHasBeenSet = true; m_gameSession = std::move(value); }
50 inline GameSessionDetail& WithGameSession(const GameSession& value) { SetGameSession(value); return *this;}
51 inline GameSessionDetail& WithGameSession(GameSession&& value) { SetGameSession(std::move(value)); return *this;}
53
55
62 inline const ProtectionPolicy& GetProtectionPolicy() const{ return m_protectionPolicy; }
63 inline bool ProtectionPolicyHasBeenSet() const { return m_protectionPolicyHasBeenSet; }
64 inline void SetProtectionPolicy(const ProtectionPolicy& value) { m_protectionPolicyHasBeenSet = true; m_protectionPolicy = value; }
65 inline void SetProtectionPolicy(ProtectionPolicy&& value) { m_protectionPolicyHasBeenSet = true; m_protectionPolicy = std::move(value); }
66 inline GameSessionDetail& WithProtectionPolicy(const ProtectionPolicy& value) { SetProtectionPolicy(value); return *this;}
67 inline GameSessionDetail& WithProtectionPolicy(ProtectionPolicy&& value) { SetProtectionPolicy(std::move(value)); return *this;}
69 private:
70
71 GameSession m_gameSession;
72 bool m_gameSessionHasBeenSet = false;
73
74 ProtectionPolicy m_protectionPolicy;
75 bool m_protectionPolicyHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace GameLift
80} // namespace Aws
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetGameSession(const GameSession &value)
AWS_GAMELIFT_API GameSessionDetail(Aws::Utils::Json::JsonView jsonValue)
const ProtectionPolicy & GetProtectionPolicy() const
GameSessionDetail & WithProtectionPolicy(const ProtectionPolicy &value)
GameSessionDetail & WithGameSession(const GameSession &value)
GameSessionDetail & WithGameSession(GameSession &&value)
void SetProtectionPolicy(const ProtectionPolicy &value)
const GameSession & GetGameSession() const
void SetProtectionPolicy(ProtectionPolicy &&value)
AWS_GAMELIFT_API GameSessionDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
GameSessionDetail & WithProtectionPolicy(ProtectionPolicy &&value)
Aws::Utils::Json::JsonValue JsonValue