AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartMatchmakingRequest.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/Player.h>
12#include <utility>
13
14namespace Aws
15{
16namespace GameLift
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_GAMELIFT_API StartMatchmakingRequest();
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 "StartMatchmaking"; }
33
34 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
35
37
38
40
46 inline const Aws::String& GetTicketId() const{ return m_ticketId; }
47 inline bool TicketIdHasBeenSet() const { return m_ticketIdHasBeenSet; }
48 inline void SetTicketId(const Aws::String& value) { m_ticketIdHasBeenSet = true; m_ticketId = value; }
49 inline void SetTicketId(Aws::String&& value) { m_ticketIdHasBeenSet = true; m_ticketId = std::move(value); }
50 inline void SetTicketId(const char* value) { m_ticketIdHasBeenSet = true; m_ticketId.assign(value); }
51 inline StartMatchmakingRequest& WithTicketId(const Aws::String& value) { SetTicketId(value); return *this;}
52 inline StartMatchmakingRequest& WithTicketId(Aws::String&& value) { SetTicketId(std::move(value)); return *this;}
53 inline StartMatchmakingRequest& WithTicketId(const char* value) { SetTicketId(value); return *this;}
55
57
62 inline const Aws::String& GetConfigurationName() const{ return m_configurationName; }
63 inline bool ConfigurationNameHasBeenSet() const { return m_configurationNameHasBeenSet; }
64 inline void SetConfigurationName(const Aws::String& value) { m_configurationNameHasBeenSet = true; m_configurationName = value; }
65 inline void SetConfigurationName(Aws::String&& value) { m_configurationNameHasBeenSet = true; m_configurationName = std::move(value); }
66 inline void SetConfigurationName(const char* value) { m_configurationNameHasBeenSet = true; m_configurationName.assign(value); }
68 inline StartMatchmakingRequest& WithConfigurationName(Aws::String&& value) { SetConfigurationName(std::move(value)); return *this;}
69 inline StartMatchmakingRequest& WithConfigurationName(const char* value) { SetConfigurationName(value); return *this;}
71
73
80 inline const Aws::Vector<Player>& GetPlayers() const{ return m_players; }
81 inline bool PlayersHasBeenSet() const { return m_playersHasBeenSet; }
82 inline void SetPlayers(const Aws::Vector<Player>& value) { m_playersHasBeenSet = true; m_players = value; }
83 inline void SetPlayers(Aws::Vector<Player>&& value) { m_playersHasBeenSet = true; m_players = std::move(value); }
84 inline StartMatchmakingRequest& WithPlayers(const Aws::Vector<Player>& value) { SetPlayers(value); return *this;}
85 inline StartMatchmakingRequest& WithPlayers(Aws::Vector<Player>&& value) { SetPlayers(std::move(value)); return *this;}
86 inline StartMatchmakingRequest& AddPlayers(const Player& value) { m_playersHasBeenSet = true; m_players.push_back(value); return *this; }
87 inline StartMatchmakingRequest& AddPlayers(Player&& value) { m_playersHasBeenSet = true; m_players.push_back(std::move(value)); return *this; }
89 private:
90
91 Aws::String m_ticketId;
92 bool m_ticketIdHasBeenSet = false;
93
94 Aws::String m_configurationName;
95 bool m_configurationNameHasBeenSet = false;
96
97 Aws::Vector<Player> m_players;
98 bool m_playersHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace GameLift
103} // namespace Aws
virtual const char * GetServiceRequestName() const override
StartMatchmakingRequest & AddPlayers(const Player &value)
StartMatchmakingRequest & WithConfigurationName(const char *value)
StartMatchmakingRequest & WithTicketId(const Aws::String &value)
StartMatchmakingRequest & WithTicketId(Aws::String &&value)
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartMatchmakingRequest & WithPlayers(Aws::Vector< Player > &&value)
StartMatchmakingRequest & WithTicketId(const char *value)
StartMatchmakingRequest & WithPlayers(const Aws::Vector< Player > &value)
StartMatchmakingRequest & WithConfigurationName(const Aws::String &value)
StartMatchmakingRequest & WithConfigurationName(Aws::String &&value)
void SetPlayers(Aws::Vector< Player > &&value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
const Aws::Vector< Player > & GetPlayers() const
void SetPlayers(const Aws::Vector< Player > &value)
StartMatchmakingRequest & AddPlayers(Player &&value)
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