AWS SDK for C++

AWS SDK for C++ Version 1.11.851

Loading...
Searching...
No Matches
StartMatchBackfillRequest.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 StartMatchBackfillRequest() = 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 "StartMatchBackfill"; }
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
63 inline const Aws::String& GetConfigurationName() const { return m_configurationName; }
64 inline bool ConfigurationNameHasBeenSet() const { return m_configurationNameHasBeenSet; }
65 template <typename ConfigurationNameT = Aws::String>
66 void SetConfigurationName(ConfigurationNameT&& value) {
67 m_configurationNameHasBeenSet = true;
68 m_configurationName = std::forward<ConfigurationNameT>(value);
69 }
70 template <typename ConfigurationNameT = Aws::String>
71 StartMatchBackfillRequest& WithConfigurationName(ConfigurationNameT&& value) {
72 SetConfigurationName(std::forward<ConfigurationNameT>(value));
73 return *this;
74 }
76
78
87 inline const Aws::String& GetGameSessionArn() const { return m_gameSessionArn; }
88 inline bool GameSessionArnHasBeenSet() const { return m_gameSessionArnHasBeenSet; }
89 template <typename GameSessionArnT = Aws::String>
90 void SetGameSessionArn(GameSessionArnT&& value) {
91 m_gameSessionArnHasBeenSet = true;
92 m_gameSessionArn = std::forward<GameSessionArnT>(value);
93 }
94 template <typename GameSessionArnT = Aws::String>
96 SetGameSessionArn(std::forward<GameSessionArnT>(value));
97 return *this;
98 }
100
102
118 inline const Aws::Vector<Player>& GetPlayers() const { return m_players; }
119 inline bool PlayersHasBeenSet() const { return m_playersHasBeenSet; }
120 template <typename PlayersT = Aws::Vector<Player>>
121 void SetPlayers(PlayersT&& value) {
122 m_playersHasBeenSet = true;
123 m_players = std::forward<PlayersT>(value);
124 }
125 template <typename PlayersT = Aws::Vector<Player>>
127 SetPlayers(std::forward<PlayersT>(value));
128 return *this;
129 }
130 template <typename PlayersT = Player>
132 m_playersHasBeenSet = true;
133 m_players.emplace_back(std::forward<PlayersT>(value));
134 return *this;
135 }
137 private:
138 Aws::String m_ticketId;
139
140 Aws::String m_configurationName;
141
142 Aws::String m_gameSessionArn;
143
144 Aws::Vector<Player> m_players;
145 bool m_ticketIdHasBeenSet = false;
146 bool m_configurationNameHasBeenSet = false;
147 bool m_gameSessionArnHasBeenSet = false;
148 bool m_playersHasBeenSet = false;
149};
150
151} // namespace Model
152} // namespace GameLift
153} // namespace Aws
StartMatchBackfillRequest & AddPlayers(PlayersT &&value)
StartMatchBackfillRequest & WithGameSessionArn(GameSessionArnT &&value)
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartMatchBackfillRequest & WithPlayers(PlayersT &&value)
virtual const char * GetServiceRequestName() const override
StartMatchBackfillRequest & WithTicketId(TicketIdT &&value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
StartMatchBackfillRequest & WithConfigurationName(ConfigurationNameT &&value)
AWS_GAMELIFT_API StartMatchBackfillRequest()=default
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