Lesson 35 - Get Compute Auth Token Working

This commit is contained in:
Norman Lansing
2026-02-28 12:32:28 -05:00
parent 1d477ee42a
commit 4fde462bce
7743 changed files with 1397833 additions and 18 deletions

View File

@@ -0,0 +1,80 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/gamelift/GameLift_EXPORTS.h>
#include <aws/gamelift/model/GameSession.h>
#include <aws/gamelift/model/ProtectionPolicy.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace GameLift
{
namespace Model
{
/**
* <p>A game session's properties plus the protection policy currently in
* force.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/GameSessionDetail">AWS
* API Reference</a></p>
*/
class GameSessionDetail
{
public:
AWS_GAMELIFT_API GameSessionDetail();
AWS_GAMELIFT_API GameSessionDetail(Aws::Utils::Json::JsonView jsonValue);
AWS_GAMELIFT_API GameSessionDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
///@{
/**
* <p>Object that describes a game session.</p>
*/
inline const GameSession& GetGameSession() const{ return m_gameSession; }
inline bool GameSessionHasBeenSet() const { return m_gameSessionHasBeenSet; }
inline void SetGameSession(const GameSession& value) { m_gameSessionHasBeenSet = true; m_gameSession = value; }
inline void SetGameSession(GameSession&& value) { m_gameSessionHasBeenSet = true; m_gameSession = std::move(value); }
inline GameSessionDetail& WithGameSession(const GameSession& value) { SetGameSession(value); return *this;}
inline GameSessionDetail& WithGameSession(GameSession&& value) { SetGameSession(std::move(value)); return *this;}
///@}
///@{
/**
* <p>Current status of protection for the game session.</p> <ul> <li> <p>
* <b>NoProtection</b> -- The game session can be terminated during a scale-down
* event.</p> </li> <li> <p> <b>FullProtection</b> -- If the game session is in an
* <code>ACTIVE</code> status, it cannot be terminated during a scale-down
* event.</p> </li> </ul>
*/
inline const ProtectionPolicy& GetProtectionPolicy() const{ return m_protectionPolicy; }
inline bool ProtectionPolicyHasBeenSet() const { return m_protectionPolicyHasBeenSet; }
inline void SetProtectionPolicy(const ProtectionPolicy& value) { m_protectionPolicyHasBeenSet = true; m_protectionPolicy = value; }
inline void SetProtectionPolicy(ProtectionPolicy&& value) { m_protectionPolicyHasBeenSet = true; m_protectionPolicy = std::move(value); }
inline GameSessionDetail& WithProtectionPolicy(const ProtectionPolicy& value) { SetProtectionPolicy(value); return *this;}
inline GameSessionDetail& WithProtectionPolicy(ProtectionPolicy&& value) { SetProtectionPolicy(std::move(value)); return *this;}
///@}
private:
GameSession m_gameSession;
bool m_gameSessionHasBeenSet = false;
ProtectionPolicy m_protectionPolicy;
bool m_protectionPolicyHasBeenSet = false;
};
} // namespace Model
} // namespace GameLift
} // namespace Aws