AWSGameLiftCreateSessionRequest.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <Multiplayer/Session/SessionRequests.h>
  10. namespace AWSGameLift
  11. {
  12. //! AWSGameLiftCreateSessionRequest
  13. //! GameLift create session on fleet request which corresponds to Amazon GameLift
  14. //! CreateGameSessionRequest
  15. struct AWSGameLiftCreateSessionRequest
  16. : public Multiplayer::CreateSessionRequest
  17. {
  18. public:
  19. AZ_RTTI(AWSGameLiftCreateSessionRequest, "{69612D5D-F899-4DEB-AD63-4C497ABC5C0D}", Multiplayer::CreateSessionRequest);
  20. static void Reflect(AZ::ReflectContext* context);
  21. AWSGameLiftCreateSessionRequest() = default;
  22. virtual ~AWSGameLiftCreateSessionRequest() = default;
  23. //! A unique identifier for the alias associated with the fleet to create a game session in.
  24. AZStd::string m_aliasId;
  25. //! A unique identifier for the fleet to create a game session in.
  26. AZStd::string m_fleetId;
  27. //! Custom string that uniquely identifies the new game session request.
  28. //! This is useful for ensuring that game session requests with the same idempotency token are processed only once.
  29. AZStd::string m_idempotencyToken;
  30. };
  31. } // namespace AWSGameLift