AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
MatchmakingTicket.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/gamelift/model/MatchmakingConfigurationStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/gamelift/model/GameSessionConnectionInfo.h>
13#include <aws/gamelift/model/Player.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace GameLift
27{
28namespace Model
29{
30
39 {
40 public:
41 AWS_GAMELIFT_API MatchmakingTicket() = default;
42 AWS_GAMELIFT_API MatchmakingTicket(Aws::Utils::Json::JsonView jsonValue);
44 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetTicketId() const { return m_ticketId; }
52 inline bool TicketIdHasBeenSet() const { return m_ticketIdHasBeenSet; }
53 template<typename TicketIdT = Aws::String>
54 void SetTicketId(TicketIdT&& value) { m_ticketIdHasBeenSet = true; m_ticketId = std::forward<TicketIdT>(value); }
55 template<typename TicketIdT = Aws::String>
56 MatchmakingTicket& WithTicketId(TicketIdT&& value) { SetTicketId(std::forward<TicketIdT>(value)); return *this;}
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) { m_configurationNameHasBeenSet = true; m_configurationName = std::forward<ConfigurationNameT>(value); }
69 template<typename ConfigurationNameT = Aws::String>
70 MatchmakingTicket& WithConfigurationName(ConfigurationNameT&& value) { SetConfigurationName(std::forward<ConfigurationNameT>(value)); return *this;}
72
74
80 inline const Aws::String& GetConfigurationArn() const { return m_configurationArn; }
81 inline bool ConfigurationArnHasBeenSet() const { return m_configurationArnHasBeenSet; }
82 template<typename ConfigurationArnT = Aws::String>
83 void SetConfigurationArn(ConfigurationArnT&& value) { m_configurationArnHasBeenSet = true; m_configurationArn = std::forward<ConfigurationArnT>(value); }
84 template<typename ConfigurationArnT = Aws::String>
85 MatchmakingTicket& WithConfigurationArn(ConfigurationArnT&& value) { SetConfigurationArn(std::forward<ConfigurationArnT>(value)); return *this;}
87
89
110 inline MatchmakingConfigurationStatus GetStatus() const { return m_status; }
111 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
112 inline void SetStatus(MatchmakingConfigurationStatus value) { m_statusHasBeenSet = true; m_status = value; }
115
117
122 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
123 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
124 template<typename StatusReasonT = Aws::String>
125 void SetStatusReason(StatusReasonT&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::forward<StatusReasonT>(value); }
126 template<typename StatusReasonT = Aws::String>
127 MatchmakingTicket& WithStatusReason(StatusReasonT&& value) { SetStatusReason(std::forward<StatusReasonT>(value)); return *this;}
129
131
134 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
135 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
136 template<typename StatusMessageT = Aws::String>
137 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
138 template<typename StatusMessageT = Aws::String>
139 MatchmakingTicket& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
141
143
148 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
149 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
150 template<typename StartTimeT = Aws::Utils::DateTime>
151 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
152 template<typename StartTimeT = Aws::Utils::DateTime>
153 MatchmakingTicket& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
155
157
163 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
164 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
165 template<typename EndTimeT = Aws::Utils::DateTime>
166 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
167 template<typename EndTimeT = Aws::Utils::DateTime>
168 MatchmakingTicket& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
170
172
179 inline const Aws::Vector<Player>& GetPlayers() const { return m_players; }
180 inline bool PlayersHasBeenSet() const { return m_playersHasBeenSet; }
181 template<typename PlayersT = Aws::Vector<Player>>
182 void SetPlayers(PlayersT&& value) { m_playersHasBeenSet = true; m_players = std::forward<PlayersT>(value); }
183 template<typename PlayersT = Aws::Vector<Player>>
184 MatchmakingTicket& WithPlayers(PlayersT&& value) { SetPlayers(std::forward<PlayersT>(value)); return *this;}
185 template<typename PlayersT = Player>
186 MatchmakingTicket& AddPlayers(PlayersT&& value) { m_playersHasBeenSet = true; m_players.emplace_back(std::forward<PlayersT>(value)); return *this; }
188
190
197 inline const GameSessionConnectionInfo& GetGameSessionConnectionInfo() const { return m_gameSessionConnectionInfo; }
198 inline bool GameSessionConnectionInfoHasBeenSet() const { return m_gameSessionConnectionInfoHasBeenSet; }
199 template<typename GameSessionConnectionInfoT = GameSessionConnectionInfo>
200 void SetGameSessionConnectionInfo(GameSessionConnectionInfoT&& value) { m_gameSessionConnectionInfoHasBeenSet = true; m_gameSessionConnectionInfo = std::forward<GameSessionConnectionInfoT>(value); }
201 template<typename GameSessionConnectionInfoT = GameSessionConnectionInfo>
202 MatchmakingTicket& WithGameSessionConnectionInfo(GameSessionConnectionInfoT&& value) { SetGameSessionConnectionInfo(std::forward<GameSessionConnectionInfoT>(value)); return *this;}
204
206
210 inline int GetEstimatedWaitTime() const { return m_estimatedWaitTime; }
211 inline bool EstimatedWaitTimeHasBeenSet() const { return m_estimatedWaitTimeHasBeenSet; }
212 inline void SetEstimatedWaitTime(int value) { m_estimatedWaitTimeHasBeenSet = true; m_estimatedWaitTime = value; }
213 inline MatchmakingTicket& WithEstimatedWaitTime(int value) { SetEstimatedWaitTime(value); return *this;}
215 private:
216
217 Aws::String m_ticketId;
218 bool m_ticketIdHasBeenSet = false;
219
220 Aws::String m_configurationName;
221 bool m_configurationNameHasBeenSet = false;
222
223 Aws::String m_configurationArn;
224 bool m_configurationArnHasBeenSet = false;
225
227 bool m_statusHasBeenSet = false;
228
229 Aws::String m_statusReason;
230 bool m_statusReasonHasBeenSet = false;
231
232 Aws::String m_statusMessage;
233 bool m_statusMessageHasBeenSet = false;
234
235 Aws::Utils::DateTime m_startTime{};
236 bool m_startTimeHasBeenSet = false;
237
238 Aws::Utils::DateTime m_endTime{};
239 bool m_endTimeHasBeenSet = false;
240
241 Aws::Vector<Player> m_players;
242 bool m_playersHasBeenSet = false;
243
244 GameSessionConnectionInfo m_gameSessionConnectionInfo;
245 bool m_gameSessionConnectionInfoHasBeenSet = false;
246
247 int m_estimatedWaitTime{0};
248 bool m_estimatedWaitTimeHasBeenSet = false;
249 };
250
251} // namespace Model
252} // namespace GameLift
253} // 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