AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
StartMatchmakingRequest.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/Player.h>
12
13#include <utility>
14
15namespace Aws {
16namespace GameLift {
17namespace Model {
18
22 public:
23 AWS_GAMELIFT_API StartMatchmakingRequest() = 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 "StartMatchmaking"; }
30
31 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
32
34
36
42 inline const Aws::String& GetTicketId() const { return m_ticketId; }
43 inline bool TicketIdHasBeenSet() const { return m_ticketIdHasBeenSet; }
44 template <typename TicketIdT = Aws::String>
45 void SetTicketId(TicketIdT&& value) {
46 m_ticketIdHasBeenSet = true;
47 m_ticketId = std::forward<TicketIdT>(value);
48 }
49 template <typename TicketIdT = Aws::String>
51 SetTicketId(std::forward<TicketIdT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::String& GetConfigurationName() const { return m_configurationName; }
63 inline bool ConfigurationNameHasBeenSet() const { return m_configurationNameHasBeenSet; }
64 template <typename ConfigurationNameT = Aws::String>
65 void SetConfigurationName(ConfigurationNameT&& value) {
66 m_configurationNameHasBeenSet = true;
67 m_configurationName = std::forward<ConfigurationNameT>(value);
68 }
69 template <typename ConfigurationNameT = Aws::String>
70 StartMatchmakingRequest& WithConfigurationName(ConfigurationNameT&& value) {
71 SetConfigurationName(std::forward<ConfigurationNameT>(value));
72 return *this;
73 }
75
77
84 inline const Aws::Vector<Player>& GetPlayers() const { return m_players; }
85 inline bool PlayersHasBeenSet() const { return m_playersHasBeenSet; }
86 template <typename PlayersT = Aws::Vector<Player>>
87 void SetPlayers(PlayersT&& value) {
88 m_playersHasBeenSet = true;
89 m_players = std::forward<PlayersT>(value);
90 }
91 template <typename PlayersT = Aws::Vector<Player>>
93 SetPlayers(std::forward<PlayersT>(value));
94 return *this;
95 }
96 template <typename PlayersT = Player>
98 m_playersHasBeenSet = true;
99 m_players.emplace_back(std::forward<PlayersT>(value));
100 return *this;
101 }
103 private:
104 Aws::String m_ticketId;
105
106 Aws::String m_configurationName;
107
108 Aws::Vector<Player> m_players;
109 bool m_ticketIdHasBeenSet = false;
110 bool m_configurationNameHasBeenSet = false;
111 bool m_playersHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace GameLift
116} // namespace Aws
virtual const char * GetServiceRequestName() const override
void SetConfigurationName(ConfigurationNameT &&value)
StartMatchmakingRequest & AddPlayers(PlayersT &&value)
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartMatchmakingRequest & WithTicketId(TicketIdT &&value)
StartMatchmakingRequest & WithPlayers(PlayersT &&value)
AWS_GAMELIFT_API StartMatchmakingRequest()=default
StartMatchmakingRequest & WithConfigurationName(ConfigurationNameT &&value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
const Aws::Vector< Player > & GetPlayers() 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