AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
AcceptMatchRequest.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/gamelift/GameLiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/gamelift/model/AcceptanceType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace GameLift
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_GAMELIFT_API AcceptMatchRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "AcceptMatch"; }
33
34 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::String& GetTicketId() const { return m_ticketId; }
45 inline bool TicketIdHasBeenSet() const { return m_ticketIdHasBeenSet; }
46 template<typename TicketIdT = Aws::String>
47 void SetTicketId(TicketIdT&& value) { m_ticketIdHasBeenSet = true; m_ticketId = std::forward<TicketIdT>(value); }
48 template<typename TicketIdT = Aws::String>
49 AcceptMatchRequest& WithTicketId(TicketIdT&& value) { SetTicketId(std::forward<TicketIdT>(value)); return *this;}
51
53
57 inline const Aws::Vector<Aws::String>& GetPlayerIds() const { return m_playerIds; }
58 inline bool PlayerIdsHasBeenSet() const { return m_playerIdsHasBeenSet; }
59 template<typename PlayerIdsT = Aws::Vector<Aws::String>>
60 void SetPlayerIds(PlayerIdsT&& value) { m_playerIdsHasBeenSet = true; m_playerIds = std::forward<PlayerIdsT>(value); }
61 template<typename PlayerIdsT = Aws::Vector<Aws::String>>
62 AcceptMatchRequest& WithPlayerIds(PlayerIdsT&& value) { SetPlayerIds(std::forward<PlayerIdsT>(value)); return *this;}
63 template<typename PlayerIdsT = Aws::String>
64 AcceptMatchRequest& AddPlayerIds(PlayerIdsT&& value) { m_playerIdsHasBeenSet = true; m_playerIds.emplace_back(std::forward<PlayerIdsT>(value)); return *this; }
66
68
71 inline AcceptanceType GetAcceptanceType() const { return m_acceptanceType; }
72 inline bool AcceptanceTypeHasBeenSet() const { return m_acceptanceTypeHasBeenSet; }
73 inline void SetAcceptanceType(AcceptanceType value) { m_acceptanceTypeHasBeenSet = true; m_acceptanceType = value; }
76 private:
77
78 Aws::String m_ticketId;
79 bool m_ticketIdHasBeenSet = false;
80
81 Aws::Vector<Aws::String> m_playerIds;
82 bool m_playerIdsHasBeenSet = false;
83
85 bool m_acceptanceTypeHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace GameLift
90} // namespace Aws
AcceptMatchRequest & WithTicketId(TicketIdT &&value)
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_GAMELIFT_API Aws::String SerializePayload() const override
AcceptMatchRequest & AddPlayerIds(PlayerIdsT &&value)
virtual const char * GetServiceRequestName() const override
AcceptMatchRequest & WithAcceptanceType(AcceptanceType value)
AcceptMatchRequest & WithPlayerIds(PlayerIdsT &&value)
void SetAcceptanceType(AcceptanceType value)
AWS_GAMELIFT_API AcceptMatchRequest()=default
const Aws::Vector< Aws::String > & GetPlayerIds() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector