AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
MatchmakingTicket.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/gamelift/GameLift_EXPORTS.h>
11#include <aws/gamelift/model/GameSessionConnectionInfo.h>
12#include <aws/gamelift/model/MatchmakingConfigurationStatus.h>
13#include <aws/gamelift/model/Player.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace GameLift {
25namespace Model {
26
35 public:
36 AWS_GAMELIFT_API MatchmakingTicket() = default;
37 AWS_GAMELIFT_API MatchmakingTicket(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetTicketId() const { return m_ticketId; }
46 inline bool TicketIdHasBeenSet() const { return m_ticketIdHasBeenSet; }
47 template <typename TicketIdT = Aws::String>
48 void SetTicketId(TicketIdT&& value) {
49 m_ticketIdHasBeenSet = true;
50 m_ticketId = std::forward<TicketIdT>(value);
51 }
52 template <typename TicketIdT = Aws::String>
53 MatchmakingTicket& WithTicketId(TicketIdT&& value) {
54 SetTicketId(std::forward<TicketIdT>(value));
55 return *this;
56 }
58
60
65 inline const Aws::String& GetConfigurationName() const { return m_configurationName; }
66 inline bool ConfigurationNameHasBeenSet() const { return m_configurationNameHasBeenSet; }
67 template <typename ConfigurationNameT = Aws::String>
68 void SetConfigurationName(ConfigurationNameT&& value) {
69 m_configurationNameHasBeenSet = true;
70 m_configurationName = std::forward<ConfigurationNameT>(value);
71 }
72 template <typename ConfigurationNameT = Aws::String>
73 MatchmakingTicket& WithConfigurationName(ConfigurationNameT&& value) {
74 SetConfigurationName(std::forward<ConfigurationNameT>(value));
75 return *this;
76 }
78
80
86 inline const Aws::String& GetConfigurationArn() const { return m_configurationArn; }
87 inline bool ConfigurationArnHasBeenSet() const { return m_configurationArnHasBeenSet; }
88 template <typename ConfigurationArnT = Aws::String>
89 void SetConfigurationArn(ConfigurationArnT&& value) {
90 m_configurationArnHasBeenSet = true;
91 m_configurationArn = std::forward<ConfigurationArnT>(value);
92 }
93 template <typename ConfigurationArnT = Aws::String>
94 MatchmakingTicket& WithConfigurationArn(ConfigurationArnT&& value) {
95 SetConfigurationArn(std::forward<ConfigurationArnT>(value));
96 return *this;
97 }
99
101
122 inline MatchmakingConfigurationStatus GetStatus() const { return m_status; }
123 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
125 m_statusHasBeenSet = true;
126 m_status = value;
127 }
129 SetStatus(value);
130 return *this;
131 }
133
135
140 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
141 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
142 template <typename StatusReasonT = Aws::String>
143 void SetStatusReason(StatusReasonT&& value) {
144 m_statusReasonHasBeenSet = true;
145 m_statusReason = std::forward<StatusReasonT>(value);
146 }
147 template <typename StatusReasonT = Aws::String>
148 MatchmakingTicket& WithStatusReason(StatusReasonT&& value) {
149 SetStatusReason(std::forward<StatusReasonT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
159 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
160 template <typename StatusMessageT = Aws::String>
161 void SetStatusMessage(StatusMessageT&& value) {
162 m_statusMessageHasBeenSet = true;
163 m_statusMessage = std::forward<StatusMessageT>(value);
164 }
165 template <typename StatusMessageT = Aws::String>
166 MatchmakingTicket& WithStatusMessage(StatusMessageT&& value) {
167 SetStatusMessage(std::forward<StatusMessageT>(value));
168 return *this;
169 }
171
173
178 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
179 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
180 template <typename StartTimeT = Aws::Utils::DateTime>
181 void SetStartTime(StartTimeT&& value) {
182 m_startTimeHasBeenSet = true;
183 m_startTime = std::forward<StartTimeT>(value);
184 }
185 template <typename StartTimeT = Aws::Utils::DateTime>
186 MatchmakingTicket& WithStartTime(StartTimeT&& value) {
187 SetStartTime(std::forward<StartTimeT>(value));
188 return *this;
189 }
191
193
199 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
200 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
201 template <typename EndTimeT = Aws::Utils::DateTime>
202 void SetEndTime(EndTimeT&& value) {
203 m_endTimeHasBeenSet = true;
204 m_endTime = std::forward<EndTimeT>(value);
205 }
206 template <typename EndTimeT = Aws::Utils::DateTime>
207 MatchmakingTicket& WithEndTime(EndTimeT&& value) {
208 SetEndTime(std::forward<EndTimeT>(value));
209 return *this;
210 }
212
214
221 inline const Aws::Vector<Player>& GetPlayers() const { return m_players; }
222 inline bool PlayersHasBeenSet() const { return m_playersHasBeenSet; }
223 template <typename PlayersT = Aws::Vector<Player>>
224 void SetPlayers(PlayersT&& value) {
225 m_playersHasBeenSet = true;
226 m_players = std::forward<PlayersT>(value);
227 }
228 template <typename PlayersT = Aws::Vector<Player>>
229 MatchmakingTicket& WithPlayers(PlayersT&& value) {
230 SetPlayers(std::forward<PlayersT>(value));
231 return *this;
232 }
233 template <typename PlayersT = Player>
234 MatchmakingTicket& AddPlayers(PlayersT&& value) {
235 m_playersHasBeenSet = true;
236 m_players.emplace_back(std::forward<PlayersT>(value));
237 return *this;
238 }
240
242
249 inline const GameSessionConnectionInfo& GetGameSessionConnectionInfo() const { return m_gameSessionConnectionInfo; }
250 inline bool GameSessionConnectionInfoHasBeenSet() const { return m_gameSessionConnectionInfoHasBeenSet; }
251 template <typename GameSessionConnectionInfoT = GameSessionConnectionInfo>
252 void SetGameSessionConnectionInfo(GameSessionConnectionInfoT&& value) {
253 m_gameSessionConnectionInfoHasBeenSet = true;
254 m_gameSessionConnectionInfo = std::forward<GameSessionConnectionInfoT>(value);
255 }
256 template <typename GameSessionConnectionInfoT = GameSessionConnectionInfo>
257 MatchmakingTicket& WithGameSessionConnectionInfo(GameSessionConnectionInfoT&& value) {
258 SetGameSessionConnectionInfo(std::forward<GameSessionConnectionInfoT>(value));
259 return *this;
260 }
262
264
268 inline int GetEstimatedWaitTime() const { return m_estimatedWaitTime; }
269 inline bool EstimatedWaitTimeHasBeenSet() const { return m_estimatedWaitTimeHasBeenSet; }
270 inline void SetEstimatedWaitTime(int value) {
271 m_estimatedWaitTimeHasBeenSet = true;
272 m_estimatedWaitTime = value;
273 }
276 return *this;
277 }
279 private:
280 Aws::String m_ticketId;
281
282 Aws::String m_configurationName;
283
284 Aws::String m_configurationArn;
285
287
288 Aws::String m_statusReason;
289
290 Aws::String m_statusMessage;
291
292 Aws::Utils::DateTime m_startTime{};
293
294 Aws::Utils::DateTime m_endTime{};
295
296 Aws::Vector<Player> m_players;
297
298 GameSessionConnectionInfo m_gameSessionConnectionInfo;
299
300 int m_estimatedWaitTime{0};
301 bool m_ticketIdHasBeenSet = false;
302 bool m_configurationNameHasBeenSet = false;
303 bool m_configurationArnHasBeenSet = false;
304 bool m_statusHasBeenSet = false;
305 bool m_statusReasonHasBeenSet = false;
306 bool m_statusMessageHasBeenSet = false;
307 bool m_startTimeHasBeenSet = false;
308 bool m_endTimeHasBeenSet = false;
309 bool m_playersHasBeenSet = false;
310 bool m_gameSessionConnectionInfoHasBeenSet = false;
311 bool m_estimatedWaitTimeHasBeenSet = false;
312};
313
314} // namespace Model
315} // namespace GameLift
316} // namespace Aws
MatchmakingConfigurationStatus GetStatus() const
void SetStatusReason(StatusReasonT &&value)
MatchmakingTicket & WithEndTime(EndTimeT &&value)
MatchmakingTicket & WithEstimatedWaitTime(int value)
MatchmakingTicket & WithTicketId(TicketIdT &&value)
MatchmakingTicket & WithStatusMessage(StatusMessageT &&value)
const Aws::String & GetStatusMessage() const
const Aws::Vector< Player > & GetPlayers() const
void SetConfigurationName(ConfigurationNameT &&value)
MatchmakingTicket & WithStatusReason(StatusReasonT &&value)
MatchmakingTicket & AddPlayers(PlayersT &&value)
const Aws::String & GetConfigurationArn() const
const Aws::Utils::DateTime & GetStartTime() const
MatchmakingTicket & WithGameSessionConnectionInfo(GameSessionConnectionInfoT &&value)
MatchmakingTicket & WithConfigurationName(ConfigurationNameT &&value)
MatchmakingTicket & WithConfigurationArn(ConfigurationArnT &&value)
const GameSessionConnectionInfo & GetGameSessionConnectionInfo() const
const Aws::String & GetTicketId() const
MatchmakingTicket & WithPlayers(PlayersT &&value)
void SetGameSessionConnectionInfo(GameSessionConnectionInfoT &&value)
AWS_GAMELIFT_API MatchmakingTicket & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(MatchmakingConfigurationStatus value)
AWS_GAMELIFT_API MatchmakingTicket()=default
void SetStatusMessage(StatusMessageT &&value)
MatchmakingTicket & WithStartTime(StartTimeT &&value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GAMELIFT_API MatchmakingTicket(Aws::Utils::Json::JsonView jsonValue)
MatchmakingTicket & WithStatus(MatchmakingConfigurationStatus value)
void SetConfigurationArn(ConfigurationArnT &&value)
const Aws::String & GetConfigurationName() const
const Aws::String & GetStatusReason() const
const Aws::Utils::DateTime & GetEndTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue