AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
AcceptMatchRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/gamelift/GameLiftRequest.h>
10#include <aws/gamelift/GameLift_EXPORTS.h>
11#include <aws/gamelift/model/AcceptanceType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace GameLift {
17namespace Model {
18
22 public:
23 AWS_GAMELIFT_API AcceptMatchRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "AcceptMatch"; }
30
31 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
32
34
36
40 inline const Aws::String& GetTicketId() const { return m_ticketId; }
41 inline bool TicketIdHasBeenSet() const { return m_ticketIdHasBeenSet; }
42 template <typename TicketIdT = Aws::String>
43 void SetTicketId(TicketIdT&& value) {
44 m_ticketIdHasBeenSet = true;
45 m_ticketId = std::forward<TicketIdT>(value);
46 }
47 template <typename TicketIdT = Aws::String>
48 AcceptMatchRequest& WithTicketId(TicketIdT&& value) {
49 SetTicketId(std::forward<TicketIdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::Vector<Aws::String>& GetPlayerIds() const { return m_playerIds; }
60 inline bool PlayerIdsHasBeenSet() const { return m_playerIdsHasBeenSet; }
61 template <typename PlayerIdsT = Aws::Vector<Aws::String>>
62 void SetPlayerIds(PlayerIdsT&& value) {
63 m_playerIdsHasBeenSet = true;
64 m_playerIds = std::forward<PlayerIdsT>(value);
65 }
66 template <typename PlayerIdsT = Aws::Vector<Aws::String>>
67 AcceptMatchRequest& WithPlayerIds(PlayerIdsT&& value) {
68 SetPlayerIds(std::forward<PlayerIdsT>(value));
69 return *this;
70 }
71 template <typename PlayerIdsT = Aws::String>
72 AcceptMatchRequest& AddPlayerIds(PlayerIdsT&& value) {
73 m_playerIdsHasBeenSet = true;
74 m_playerIds.emplace_back(std::forward<PlayerIdsT>(value));
75 return *this;
76 }
78
80
83 inline AcceptanceType GetAcceptanceType() const { return m_acceptanceType; }
84 inline bool AcceptanceTypeHasBeenSet() const { return m_acceptanceTypeHasBeenSet; }
85 inline void SetAcceptanceType(AcceptanceType value) {
86 m_acceptanceTypeHasBeenSet = true;
87 m_acceptanceType = value;
88 }
90 SetAcceptanceType(value);
91 return *this;
92 }
94 private:
95 Aws::String m_ticketId;
96
97 Aws::Vector<Aws::String> m_playerIds;
98
100 bool m_ticketIdHasBeenSet = false;
101 bool m_playerIdsHasBeenSet = false;
102 bool m_acceptanceTypeHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace GameLift
107} // 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