AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename TicketIdT = Aws::String>
49 void SetTicketId(TicketIdT&& value) { m_ticketIdHasBeenSet = true; m_ticketId = std::forward<TicketIdT>(value); }
50 template<typename TicketIdT = Aws::String>
51 StartMatchmakingRequest& WithTicketId(TicketIdT&& value) { SetTicketId(std::forward<TicketIdT>(value)); return *this;}
53
55
60 inline const Aws::String& GetConfigurationName() const { return m_configurationName; }
61 inline bool ConfigurationNameHasBeenSet() const { return m_configurationNameHasBeenSet; }
62 template<typename ConfigurationNameT = Aws::String>
63 void SetConfigurationName(ConfigurationNameT&& value) { m_configurationNameHasBeenSet = true; m_configurationName = std::forward<ConfigurationNameT>(value); }
64 template<typename ConfigurationNameT = Aws::String>
65 StartMatchmakingRequest& WithConfigurationName(ConfigurationNameT&& value) { SetConfigurationName(std::forward<ConfigurationNameT>(value)); return *this;}
67
69
76 inline const Aws::Vector<Player>& GetPlayers() const { return m_players; }
77 inline bool PlayersHasBeenSet() const { return m_playersHasBeenSet; }
78 template<typename PlayersT = Aws::Vector<Player>>
79 void SetPlayers(PlayersT&& value) { m_playersHasBeenSet = true; m_players = std::forward<PlayersT>(value); }
80 template<typename PlayersT = Aws::Vector<Player>>
81 StartMatchmakingRequest& WithPlayers(PlayersT&& value) { SetPlayers(std::forward<PlayersT>(value)); return *this;}
82 template<typename PlayersT = Player>
83 StartMatchmakingRequest& AddPlayers(PlayersT&& value) { m_playersHasBeenSet = true; m_players.emplace_back(std::forward<PlayersT>(value)); return *this; }
85 private:
86
87 Aws::String m_ticketId;
88 bool m_ticketIdHasBeenSet = false;
89
90 Aws::String m_configurationName;
91 bool m_configurationNameHasBeenSet = false;
92
93 Aws::Vector<Player> m_players;
94 bool m_playersHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace GameLift
99} // 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