/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace GameLift { namespace Model { /** *

Represents the returned data in response to a request action.

See * Also:

AWS * API Reference

*/ class AWS_GAMELIFT_API CreateGameSessionResult { public: CreateGameSessionResult(); CreateGameSessionResult(const Aws::AmazonWebServiceResult& result); CreateGameSessionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Object that describes the newly created game session record.

*/ inline const GameSession& GetGameSession() const{ return m_gameSession; } /** *

Object that describes the newly created game session record.

*/ inline void SetGameSession(const GameSession& value) { m_gameSession = value; } /** *

Object that describes the newly created game session record.

*/ inline void SetGameSession(GameSession&& value) { m_gameSession = std::move(value); } /** *

Object that describes the newly created game session record.

*/ inline CreateGameSessionResult& WithGameSession(const GameSession& value) { SetGameSession(value); return *this;} /** *

Object that describes the newly created game session record.

*/ inline CreateGameSessionResult& WithGameSession(GameSession&& value) { SetGameSession(std::move(value)); return *this;} private: GameSession m_gameSession; }; } // namespace Model } // namespace GameLift } // namespace Aws