/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace GameLift { namespace Model { /** */ class AcceptMatchRequest : public GameLiftRequest { public: AWS_GAMELIFT_API AcceptMatchRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "AcceptMatch"; } AWS_GAMELIFT_API Aws::String SerializePayload() const override; AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A unique identifier for a matchmaking ticket. The ticket must be in status * REQUIRES_ACCEPTANCE; otherwise this request will fail.

*/ inline const Aws::String& GetTicketId() const{ return m_ticketId; } /** *

A unique identifier for a matchmaking ticket. The ticket must be in status * REQUIRES_ACCEPTANCE; otherwise this request will fail.

*/ inline bool TicketIdHasBeenSet() const { return m_ticketIdHasBeenSet; } /** *

A unique identifier for a matchmaking ticket. The ticket must be in status * REQUIRES_ACCEPTANCE; otherwise this request will fail.

*/ inline void SetTicketId(const Aws::String& value) { m_ticketIdHasBeenSet = true; m_ticketId = value; } /** *

A unique identifier for a matchmaking ticket. The ticket must be in status * REQUIRES_ACCEPTANCE; otherwise this request will fail.

*/ inline void SetTicketId(Aws::String&& value) { m_ticketIdHasBeenSet = true; m_ticketId = std::move(value); } /** *

A unique identifier for a matchmaking ticket. The ticket must be in status * REQUIRES_ACCEPTANCE; otherwise this request will fail.

*/ inline void SetTicketId(const char* value) { m_ticketIdHasBeenSet = true; m_ticketId.assign(value); } /** *

A unique identifier for a matchmaking ticket. The ticket must be in status * REQUIRES_ACCEPTANCE; otherwise this request will fail.

*/ inline AcceptMatchRequest& WithTicketId(const Aws::String& value) { SetTicketId(value); return *this;} /** *

A unique identifier for a matchmaking ticket. The ticket must be in status * REQUIRES_ACCEPTANCE; otherwise this request will fail.

*/ inline AcceptMatchRequest& WithTicketId(Aws::String&& value) { SetTicketId(std::move(value)); return *this;} /** *

A unique identifier for a matchmaking ticket. The ticket must be in status * REQUIRES_ACCEPTANCE; otherwise this request will fail.

*/ inline AcceptMatchRequest& WithTicketId(const char* value) { SetTicketId(value); return *this;} /** *

A unique identifier for a player delivering the response. This parameter can * include one or multiple player IDs.

*/ inline const Aws::Vector& GetPlayerIds() const{ return m_playerIds; } /** *

A unique identifier for a player delivering the response. This parameter can * include one or multiple player IDs.

*/ inline bool PlayerIdsHasBeenSet() const { return m_playerIdsHasBeenSet; } /** *

A unique identifier for a player delivering the response. This parameter can * include one or multiple player IDs.

*/ inline void SetPlayerIds(const Aws::Vector& value) { m_playerIdsHasBeenSet = true; m_playerIds = value; } /** *

A unique identifier for a player delivering the response. This parameter can * include one or multiple player IDs.

*/ inline void SetPlayerIds(Aws::Vector&& value) { m_playerIdsHasBeenSet = true; m_playerIds = std::move(value); } /** *

A unique identifier for a player delivering the response. This parameter can * include one or multiple player IDs.

*/ inline AcceptMatchRequest& WithPlayerIds(const Aws::Vector& value) { SetPlayerIds(value); return *this;} /** *

A unique identifier for a player delivering the response. This parameter can * include one or multiple player IDs.

*/ inline AcceptMatchRequest& WithPlayerIds(Aws::Vector&& value) { SetPlayerIds(std::move(value)); return *this;} /** *

A unique identifier for a player delivering the response. This parameter can * include one or multiple player IDs.

*/ inline AcceptMatchRequest& AddPlayerIds(const Aws::String& value) { m_playerIdsHasBeenSet = true; m_playerIds.push_back(value); return *this; } /** *

A unique identifier for a player delivering the response. This parameter can * include one or multiple player IDs.

*/ inline AcceptMatchRequest& AddPlayerIds(Aws::String&& value) { m_playerIdsHasBeenSet = true; m_playerIds.push_back(std::move(value)); return *this; } /** *

A unique identifier for a player delivering the response. This parameter can * include one or multiple player IDs.

*/ inline AcceptMatchRequest& AddPlayerIds(const char* value) { m_playerIdsHasBeenSet = true; m_playerIds.push_back(value); return *this; } /** *

Player response to the proposed match.

*/ inline const AcceptanceType& GetAcceptanceType() const{ return m_acceptanceType; } /** *

Player response to the proposed match.

*/ inline bool AcceptanceTypeHasBeenSet() const { return m_acceptanceTypeHasBeenSet; } /** *

Player response to the proposed match.

*/ inline void SetAcceptanceType(const AcceptanceType& value) { m_acceptanceTypeHasBeenSet = true; m_acceptanceType = value; } /** *

Player response to the proposed match.

*/ inline void SetAcceptanceType(AcceptanceType&& value) { m_acceptanceTypeHasBeenSet = true; m_acceptanceType = std::move(value); } /** *

Player response to the proposed match.

*/ inline AcceptMatchRequest& WithAcceptanceType(const AcceptanceType& value) { SetAcceptanceType(value); return *this;} /** *

Player response to the proposed match.

*/ inline AcceptMatchRequest& WithAcceptanceType(AcceptanceType&& value) { SetAcceptanceType(std::move(value)); return *this;} private: Aws::String m_ticketId; bool m_ticketIdHasBeenSet = false; Aws::Vector m_playerIds; bool m_playerIdsHasBeenSet = false; AcceptanceType m_acceptanceType; bool m_acceptanceTypeHasBeenSet = false; }; } // namespace Model } // namespace GameLift } // namespace Aws