AWS SDK for C++  1.8.56
AWS SDK for C++
StartMatchBackfillRequest.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 "StartMatchBackfill"; }
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 StartMatchBackfillRequest& WithTicketId(const Aws::String& value) { SetTicketId(value); return *this;}
89 
96  inline StartMatchBackfillRequest& WithTicketId(Aws::String&& value) { SetTicketId(std::move(value)); return *this;}
97 
104  inline StartMatchBackfillRequest& WithTicketId(const char* value) { SetTicketId(value); return *this;}
105 
106 
113  inline const Aws::String& GetConfigurationName() const{ return m_configurationName; }
114 
121  inline bool ConfigurationNameHasBeenSet() const { return m_configurationNameHasBeenSet; }
122 
129  inline void SetConfigurationName(const Aws::String& value) { m_configurationNameHasBeenSet = true; m_configurationName = value; }
130 
137  inline void SetConfigurationName(Aws::String&& value) { m_configurationNameHasBeenSet = true; m_configurationName = std::move(value); }
138 
145  inline void SetConfigurationName(const char* value) { m_configurationNameHasBeenSet = true; m_configurationName.assign(value); }
146 
153  inline StartMatchBackfillRequest& WithConfigurationName(const Aws::String& value) { SetConfigurationName(value); return *this;}
154 
161  inline StartMatchBackfillRequest& WithConfigurationName(Aws::String&& value) { SetConfigurationName(std::move(value)); return *this;}
162 
169  inline StartMatchBackfillRequest& WithConfigurationName(const char* value) { SetConfigurationName(value); return *this;}
170 
171 
178  inline const Aws::String& GetGameSessionArn() const{ return m_gameSessionArn; }
179 
186  inline bool GameSessionArnHasBeenSet() const { return m_gameSessionArnHasBeenSet; }
187 
194  inline void SetGameSessionArn(const Aws::String& value) { m_gameSessionArnHasBeenSet = true; m_gameSessionArn = value; }
195 
202  inline void SetGameSessionArn(Aws::String&& value) { m_gameSessionArnHasBeenSet = true; m_gameSessionArn = std::move(value); }
203 
210  inline void SetGameSessionArn(const char* value) { m_gameSessionArnHasBeenSet = true; m_gameSessionArn.assign(value); }
211 
218  inline StartMatchBackfillRequest& WithGameSessionArn(const Aws::String& value) { SetGameSessionArn(value); return *this;}
219 
226  inline StartMatchBackfillRequest& WithGameSessionArn(Aws::String&& value) { SetGameSessionArn(std::move(value)); return *this;}
227 
234  inline StartMatchBackfillRequest& WithGameSessionArn(const char* value) { SetGameSessionArn(value); return *this;}
235 
236 
251  inline const Aws::Vector<Player>& GetPlayers() const{ return m_players; }
252 
267  inline bool PlayersHasBeenSet() const { return m_playersHasBeenSet; }
268 
283  inline void SetPlayers(const Aws::Vector<Player>& value) { m_playersHasBeenSet = true; m_players = value; }
284 
299  inline void SetPlayers(Aws::Vector<Player>&& value) { m_playersHasBeenSet = true; m_players = std::move(value); }
300 
315  inline StartMatchBackfillRequest& WithPlayers(const Aws::Vector<Player>& value) { SetPlayers(value); return *this;}
316 
331  inline StartMatchBackfillRequest& WithPlayers(Aws::Vector<Player>&& value) { SetPlayers(std::move(value)); return *this;}
332 
347  inline StartMatchBackfillRequest& AddPlayers(const Player& value) { m_playersHasBeenSet = true; m_players.push_back(value); return *this; }
348 
363  inline StartMatchBackfillRequest& AddPlayers(Player&& value) { m_playersHasBeenSet = true; m_players.push_back(std::move(value)); return *this; }
364 
365  private:
366 
367  Aws::String m_ticketId;
368  bool m_ticketIdHasBeenSet;
369 
370  Aws::String m_configurationName;
371  bool m_configurationNameHasBeenSet;
372 
373  Aws::String m_gameSessionArn;
374  bool m_gameSessionArnHasBeenSet;
375 
376  Aws::Vector<Player> m_players;
377  bool m_playersHasBeenSet;
378  };
379 
380 } // namespace Model
381 } // namespace GameLift
382 } // namespace Aws
StartMatchBackfillRequest & WithGameSessionArn(const Aws::String &value)
StartMatchBackfillRequest & WithTicketId(Aws::String &&value)
StartMatchBackfillRequest & WithPlayers(const Aws::Vector< Player > &value)
StartMatchBackfillRequest & WithTicketId(const Aws::String &value)
#define AWS_GAMELIFT_API
void SetPlayers(const Aws::Vector< Player > &value)
StartMatchBackfillRequest & WithConfigurationName(const Aws::String &value)
StartMatchBackfillRequest & WithTicketId(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
StartMatchBackfillRequest & WithConfigurationName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Player > & GetPlayers() const
StartMatchBackfillRequest & WithGameSessionArn(Aws::String &&value)
StartMatchBackfillRequest & WithPlayers(Aws::Vector< Player > &&value)
StartMatchBackfillRequest & AddPlayers(const Player &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
StartMatchBackfillRequest & AddPlayers(Player &&value)
StartMatchBackfillRequest & WithConfigurationName(const char *value)
StartMatchBackfillRequest & WithGameSessionArn(const char *value)