AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
GameSessionDetail.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/gamelift/GameLift_EXPORTS.h>
9#include <aws/gamelift/model/GameSession.h>
10#include <aws/gamelift/model/ProtectionPolicy.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace GameLift {
21namespace Model {
22
30 public:
31 AWS_GAMELIFT_API GameSessionDetail() = default;
32 AWS_GAMELIFT_API GameSessionDetail(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_GAMELIFT_API GameSessionDetail& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) 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
77 bool m_gameSessionHasBeenSet = false;
78 bool m_protectionPolicyHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace GameLift
83} // namespace Aws
GameSessionDetail & WithProtectionPolicy(ProtectionPolicy value)
GameSessionDetail & WithGameSession(GameSessionT &&value)
ProtectionPolicy GetProtectionPolicy() const
AWS_GAMELIFT_API GameSessionDetail(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetGameSession(GameSessionT &&value)
AWS_GAMELIFT_API GameSessionDetail()=default
const GameSession & GetGameSession() const
void SetProtectionPolicy(ProtectionPolicy value)
AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_GAMELIFT_API GameSessionDetail & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)