AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename GameSessionT = GameSession>
49 void SetGameSession(GameSessionT&& value) { m_gameSessionHasBeenSet = true; m_gameSession = std::forward<GameSessionT>(value); }
50 template<typename GameSessionT = GameSession>
51 GameSessionDetail& WithGameSession(GameSessionT&& value) { SetGameSession(std::forward<GameSessionT>(value)); return *this;}
53
55
62 inline ProtectionPolicy GetProtectionPolicy() const { return m_protectionPolicy; }
63 inline bool ProtectionPolicyHasBeenSet() const { return m_protectionPolicyHasBeenSet; }
64 inline void SetProtectionPolicy(ProtectionPolicy value) { m_protectionPolicyHasBeenSet = true; m_protectionPolicy = value; }
67 private:
68
69 GameSession m_gameSession;
70 bool m_gameSessionHasBeenSet = false;
71
73 bool m_protectionPolicyHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace GameLift
78} // namespace Aws
GameSessionDetail & WithProtectionPolicy(ProtectionPolicy value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
GameSessionDetail & WithGameSession(GameSessionT &&value)
AWS_GAMELIFT_API GameSessionDetail(Aws::Utils::Json::JsonView jsonValue)
ProtectionPolicy GetProtectionPolicy() const
void SetGameSession(GameSessionT &&value)
AWS_GAMELIFT_API GameSessionDetail()=default
const GameSession & GetGameSession() const
void SetProtectionPolicy(ProtectionPolicy value)
AWS_GAMELIFT_API GameSessionDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue