AWS SDK for C++  1.8.55
AWS SDK for C++
StartMatchmakingRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace GameLift
17 {
18 namespace Model
19 {
20 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "StartMatchmaking"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40 
41 
48  inline const Aws::String& GetTicketId() const{ return m_ticketId; }
49 
56  inline bool TicketIdHasBeenSet() const { return m_ticketIdHasBeenSet; }
57 
64  inline void SetTicketId(const Aws::String& value) { m_ticketIdHasBeenSet = true; m_ticketId = value; }
65 
72  inline void SetTicketId(Aws::String&& value) { m_ticketIdHasBeenSet = true; m_ticketId = std::move(value); }
73 
80  inline void SetTicketId(const char* value) { m_ticketIdHasBeenSet = true; m_ticketId.assign(value); }
81 
88  inline StartMatchmakingRequest& WithTicketId(const Aws::String& value) { SetTicketId(value); return *this;}
89 
96  inline StartMatchmakingRequest& WithTicketId(Aws::String&& value) { SetTicketId(std::move(value)); return *this;}
97 
104  inline StartMatchmakingRequest& WithTicketId(const char* value) { SetTicketId(value); return *this;}
105 
106 
112  inline const Aws::String& GetConfigurationName() const{ return m_configurationName; }
113 
119  inline bool ConfigurationNameHasBeenSet() const { return m_configurationNameHasBeenSet; }
120 
126  inline void SetConfigurationName(const Aws::String& value) { m_configurationNameHasBeenSet = true; m_configurationName = value; }
127 
133  inline void SetConfigurationName(Aws::String&& value) { m_configurationNameHasBeenSet = true; m_configurationName = std::move(value); }
134 
140  inline void SetConfigurationName(const char* value) { m_configurationNameHasBeenSet = true; m_configurationName.assign(value); }
141 
147  inline StartMatchmakingRequest& WithConfigurationName(const Aws::String& value) { SetConfigurationName(value); return *this;}
148 
154  inline StartMatchmakingRequest& WithConfigurationName(Aws::String&& value) { SetConfigurationName(std::move(value)); return *this;}
155 
161  inline StartMatchmakingRequest& WithConfigurationName(const char* value) { SetConfigurationName(value); return *this;}
162 
163 
170  inline const Aws::Vector<Player>& GetPlayers() const{ return m_players; }
171 
178  inline bool PlayersHasBeenSet() const { return m_playersHasBeenSet; }
179 
186  inline void SetPlayers(const Aws::Vector<Player>& value) { m_playersHasBeenSet = true; m_players = value; }
187 
194  inline void SetPlayers(Aws::Vector<Player>&& value) { m_playersHasBeenSet = true; m_players = std::move(value); }
195 
202  inline StartMatchmakingRequest& WithPlayers(const Aws::Vector<Player>& value) { SetPlayers(value); return *this;}
203 
210  inline StartMatchmakingRequest& WithPlayers(Aws::Vector<Player>&& value) { SetPlayers(std::move(value)); return *this;}
211 
218  inline StartMatchmakingRequest& AddPlayers(const Player& value) { m_playersHasBeenSet = true; m_players.push_back(value); return *this; }
219 
226  inline StartMatchmakingRequest& AddPlayers(Player&& value) { m_playersHasBeenSet = true; m_players.push_back(std::move(value)); return *this; }
227 
228  private:
229 
230  Aws::String m_ticketId;
231  bool m_ticketIdHasBeenSet;
232 
233  Aws::String m_configurationName;
234  bool m_configurationNameHasBeenSet;
235 
236  Aws::Vector<Player> m_players;
237  bool m_playersHasBeenSet;
238  };
239 
240 } // namespace Model
241 } // namespace GameLift
242 } // namespace Aws
#define AWS_GAMELIFT_API
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
StartMatchmakingRequest & AddPlayers(Player &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
StartMatchmakingRequest & WithTicketId(const Aws::String &value)
StartMatchmakingRequest & WithTicketId(const char *value)
StartMatchmakingRequest & WithPlayers(Aws::Vector< Player > &&value)
const Aws::Vector< Player > & GetPlayers() const
StartMatchmakingRequest & WithPlayers(const Aws::Vector< Player > &value)
void SetPlayers(Aws::Vector< Player > &&value)
StartMatchmakingRequest & WithTicketId(Aws::String &&value)
void SetPlayers(const Aws::Vector< Player > &value)
StartMatchmakingRequest & WithConfigurationName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
virtual const char * GetServiceRequestName() const override
StartMatchmakingRequest & WithConfigurationName(const Aws::String &value)
StartMatchmakingRequest & WithConfigurationName(const char *value)
StartMatchmakingRequest & AddPlayers(const Player &value)