AWS SDK for C++  0.12.9
AWS SDK for C++
GameSessionDetail.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace GameLift
30 {
31 namespace Model
32 {
33 
38  {
39  public:
42  GameSessionDetail& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
45 
46  inline const GameSession& GetGameSession() const{ return m_gameSession; }
47 
48 
49  inline void SetGameSession(const GameSession& value) { m_gameSessionHasBeenSet = true; m_gameSession = value; }
50 
51 
52  inline void SetGameSession(GameSession&& value) { m_gameSessionHasBeenSet = true; m_gameSession = value; }
53 
54 
55  inline GameSessionDetail& WithGameSession(const GameSession& value) { SetGameSession(value); return *this;}
56 
57 
58  inline GameSessionDetail& WithGameSession(GameSession&& value) { SetGameSession(value); return *this;}
59 
66  inline const ProtectionPolicy& GetProtectionPolicy() const{ return m_protectionPolicy; }
67 
74  inline void SetProtectionPolicy(const ProtectionPolicy& value) { m_protectionPolicyHasBeenSet = true; m_protectionPolicy = value; }
75 
82  inline void SetProtectionPolicy(ProtectionPolicy&& value) { m_protectionPolicyHasBeenSet = true; m_protectionPolicy = value; }
83 
90  inline GameSessionDetail& WithProtectionPolicy(const ProtectionPolicy& value) { SetProtectionPolicy(value); return *this;}
91 
98  inline GameSessionDetail& WithProtectionPolicy(ProtectionPolicy&& value) { SetProtectionPolicy(value); return *this;}
99 
100  private:
101  GameSession m_gameSession;
102  bool m_gameSessionHasBeenSet;
103  ProtectionPolicy m_protectionPolicy;
104  bool m_protectionPolicyHasBeenSet;
105  };
106 
107 } // namespace Model
108 } // namespace GameLift
109 } // namespace Aws
GameSessionDetail & WithProtectionPolicy(ProtectionPolicy &&value)
#define AWS_GAMELIFT_API
GameSessionDetail & WithGameSession(GameSession &&value)
void SetGameSession(GameSession &&value)
void SetGameSession(const GameSession &value)
void SetProtectionPolicy(const ProtectionPolicy &value)
GameSessionDetail & WithGameSession(const GameSession &value)
const ProtectionPolicy & GetProtectionPolicy() const
void SetProtectionPolicy(ProtectionPolicy &&value)
const GameSession & GetGameSession() const
GameSessionDetail & WithProtectionPolicy(const ProtectionPolicy &value)
JSON (JavaScript Object Notation).