AWS SDK for C++

AWS SDK for C++ Version 1.11.685

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GameLift {
21namespace Model {
22
30 public:
31 AWS_GAMELIFT_API GameSessionDetail() = default;
32 AWS_GAMELIFT_API GameSessionDetail(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const GameSession& GetGameSession() const { return m_gameSession; }
41 inline bool GameSessionHasBeenSet() const { return m_gameSessionHasBeenSet; }
42 template <typename GameSessionT = GameSession>
43 void SetGameSession(GameSessionT&& value) {
44 m_gameSessionHasBeenSet = true;
45 m_gameSession = std::forward<GameSessionT>(value);
46 }
47 template <typename GameSessionT = GameSession>
48 GameSessionDetail& WithGameSession(GameSessionT&& value) {
49 SetGameSession(std::forward<GameSessionT>(value));
50 return *this;
51 }
53
55
62 inline ProtectionPolicy GetProtectionPolicy() const { return m_protectionPolicy; }
63 inline bool ProtectionPolicyHasBeenSet() const { return m_protectionPolicyHasBeenSet; }
65 m_protectionPolicyHasBeenSet = true;
66 m_protectionPolicy = value;
67 }
70 return *this;
71 }
73 private:
74 GameSession m_gameSession;
75 bool m_gameSessionHasBeenSet = false;
76
78 bool m_protectionPolicyHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace GameLift
83} // 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