AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetTicketId(const Aws::String& value) { m_ticketIdHasBeenSet = true; m_ticketId = value; }
54 inline void SetTicketId(Aws::String&& value) { m_ticketIdHasBeenSet = true; m_ticketId = std::move(value); }
55 inline void SetTicketId(const char* value) { m_ticketIdHasBeenSet = true; m_ticketId.assign(value); }
56 inline MatchmakingTicket& WithTicketId(const Aws::String& value) { SetTicketId(value); return *this;}
57 inline MatchmakingTicket& WithTicketId(Aws::String&& value) { SetTicketId(std::move(value)); return *this;}
58 inline MatchmakingTicket& WithTicketId(const char* value) { SetTicketId(value); return *this;}
60
62
67 inline const Aws::String& GetConfigurationName() const{ return m_configurationName; }
68 inline bool ConfigurationNameHasBeenSet() const { return m_configurationNameHasBeenSet; }
69 inline void SetConfigurationName(const Aws::String& value) { m_configurationNameHasBeenSet = true; m_configurationName = value; }
70 inline void SetConfigurationName(Aws::String&& value) { m_configurationNameHasBeenSet = true; m_configurationName = std::move(value); }
71 inline void SetConfigurationName(const char* value) { m_configurationNameHasBeenSet = true; m_configurationName.assign(value); }
72 inline MatchmakingTicket& WithConfigurationName(const Aws::String& value) { SetConfigurationName(value); return *this;}
73 inline MatchmakingTicket& WithConfigurationName(Aws::String&& value) { SetConfigurationName(std::move(value)); return *this;}
74 inline MatchmakingTicket& WithConfigurationName(const char* value) { SetConfigurationName(value); return *this;}
76
78
84 inline const Aws::String& GetConfigurationArn() const{ return m_configurationArn; }
85 inline bool ConfigurationArnHasBeenSet() const { return m_configurationArnHasBeenSet; }
86 inline void SetConfigurationArn(const Aws::String& value) { m_configurationArnHasBeenSet = true; m_configurationArn = value; }
87 inline void SetConfigurationArn(Aws::String&& value) { m_configurationArnHasBeenSet = true; m_configurationArn = std::move(value); }
88 inline void SetConfigurationArn(const char* value) { m_configurationArnHasBeenSet = true; m_configurationArn.assign(value); }
89 inline MatchmakingTicket& WithConfigurationArn(const Aws::String& value) { SetConfigurationArn(value); return *this;}
90 inline MatchmakingTicket& WithConfigurationArn(Aws::String&& value) { SetConfigurationArn(std::move(value)); return *this;}
91 inline MatchmakingTicket& WithConfigurationArn(const char* value) { SetConfigurationArn(value); return *this;}
93
95
116 inline const MatchmakingConfigurationStatus& GetStatus() const{ return m_status; }
117 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
118 inline void SetStatus(const MatchmakingConfigurationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
119 inline void SetStatus(MatchmakingConfigurationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
120 inline MatchmakingTicket& WithStatus(const MatchmakingConfigurationStatus& value) { SetStatus(value); return *this;}
121 inline MatchmakingTicket& WithStatus(MatchmakingConfigurationStatus&& value) { SetStatus(std::move(value)); return *this;}
123
125
130 inline const Aws::String& GetStatusReason() const{ return m_statusReason; }
131 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
132 inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
133 inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); }
134 inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); }
135 inline MatchmakingTicket& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;}
136 inline MatchmakingTicket& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;}
137 inline MatchmakingTicket& WithStatusReason(const char* value) { SetStatusReason(value); return *this;}
139
141
144 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
145 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
146 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
147 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
148 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
149 inline MatchmakingTicket& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
150 inline MatchmakingTicket& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
151 inline MatchmakingTicket& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
153
155
160 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
161 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
162 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
163 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
164 inline MatchmakingTicket& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
165 inline MatchmakingTicket& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
167
169
175 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
176 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
177 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
178 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
179 inline MatchmakingTicket& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
180 inline MatchmakingTicket& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
182
184
191 inline const Aws::Vector<Player>& GetPlayers() const{ return m_players; }
192 inline bool PlayersHasBeenSet() const { return m_playersHasBeenSet; }
193 inline void SetPlayers(const Aws::Vector<Player>& value) { m_playersHasBeenSet = true; m_players = value; }
194 inline void SetPlayers(Aws::Vector<Player>&& value) { m_playersHasBeenSet = true; m_players = std::move(value); }
195 inline MatchmakingTicket& WithPlayers(const Aws::Vector<Player>& value) { SetPlayers(value); return *this;}
196 inline MatchmakingTicket& WithPlayers(Aws::Vector<Player>&& value) { SetPlayers(std::move(value)); return *this;}
197 inline MatchmakingTicket& AddPlayers(const Player& value) { m_playersHasBeenSet = true; m_players.push_back(value); return *this; }
198 inline MatchmakingTicket& AddPlayers(Player&& value) { m_playersHasBeenSet = true; m_players.push_back(std::move(value)); return *this; }
200
202
209 inline const GameSessionConnectionInfo& GetGameSessionConnectionInfo() const{ return m_gameSessionConnectionInfo; }
210 inline bool GameSessionConnectionInfoHasBeenSet() const { return m_gameSessionConnectionInfoHasBeenSet; }
211 inline void SetGameSessionConnectionInfo(const GameSessionConnectionInfo& value) { m_gameSessionConnectionInfoHasBeenSet = true; m_gameSessionConnectionInfo = value; }
212 inline void SetGameSessionConnectionInfo(GameSessionConnectionInfo&& value) { m_gameSessionConnectionInfoHasBeenSet = true; m_gameSessionConnectionInfo = std::move(value); }
216
218
222 inline int GetEstimatedWaitTime() const{ return m_estimatedWaitTime; }
223 inline bool EstimatedWaitTimeHasBeenSet() const { return m_estimatedWaitTimeHasBeenSet; }
224 inline void SetEstimatedWaitTime(int value) { m_estimatedWaitTimeHasBeenSet = true; m_estimatedWaitTime = value; }
225 inline MatchmakingTicket& WithEstimatedWaitTime(int value) { SetEstimatedWaitTime(value); return *this;}
227 private:
228
229 Aws::String m_ticketId;
230 bool m_ticketIdHasBeenSet = false;
231
232 Aws::String m_configurationName;
233 bool m_configurationNameHasBeenSet = false;
234
235 Aws::String m_configurationArn;
236 bool m_configurationArnHasBeenSet = false;
237
239 bool m_statusHasBeenSet = false;
240
241 Aws::String m_statusReason;
242 bool m_statusReasonHasBeenSet = false;
243
244 Aws::String m_statusMessage;
245 bool m_statusMessageHasBeenSet = false;
246
247 Aws::Utils::DateTime m_startTime;
248 bool m_startTimeHasBeenSet = false;
249
250 Aws::Utils::DateTime m_endTime;
251 bool m_endTimeHasBeenSet = false;
252
253 Aws::Vector<Player> m_players;
254 bool m_playersHasBeenSet = false;
255
256 GameSessionConnectionInfo m_gameSessionConnectionInfo;
257 bool m_gameSessionConnectionInfoHasBeenSet = false;
258
259 int m_estimatedWaitTime;
260 bool m_estimatedWaitTimeHasBeenSet = false;
261 };
262
263} // namespace Model
264} // namespace GameLift
265} // namespace Aws
void SetPlayers(const Aws::Vector< Player > &value)
MatchmakingTicket & WithEstimatedWaitTime(int value)
void SetStatusReason(const Aws::String &value)
MatchmakingTicket & WithStatusMessage(const char *value)
void SetStatusMessage(const Aws::String &value)
void SetConfigurationName(const Aws::String &value)
const Aws::String & GetStatusMessage() const
void SetStartTime(Aws::Utils::DateTime &&value)
MatchmakingTicket & WithStatus(MatchmakingConfigurationStatus &&value)
const Aws::Vector< Player > & GetPlayers() const
MatchmakingTicket & WithStatus(const MatchmakingConfigurationStatus &value)
void SetStatus(MatchmakingConfigurationStatus &&value)
MatchmakingTicket & WithTicketId(const char *value)
void SetTicketId(const Aws::String &value)
void SetStatus(const MatchmakingConfigurationStatus &value)
void SetConfigurationArn(Aws::String &&value)
const Aws::String & GetConfigurationArn() const
const Aws::Utils::DateTime & GetStartTime() const
MatchmakingTicket & WithEndTime(Aws::Utils::DateTime &&value)
MatchmakingTicket & WithStatusMessage(Aws::String &&value)
void SetPlayers(Aws::Vector< Player > &&value)
MatchmakingTicket & WithConfigurationArn(Aws::String &&value)
const MatchmakingConfigurationStatus & GetStatus() const
MatchmakingTicket & WithConfigurationName(const Aws::String &value)
MatchmakingTicket & WithStatusReason(Aws::String &&value)
MatchmakingTicket & WithGameSessionConnectionInfo(GameSessionConnectionInfo &&value)
void SetConfigurationName(Aws::String &&value)
void SetConfigurationArn(const Aws::String &value)
MatchmakingTicket & WithStatusMessage(const Aws::String &value)
MatchmakingTicket & WithStartTime(Aws::Utils::DateTime &&value)
MatchmakingTicket & WithConfigurationArn(const char *value)
MatchmakingTicket & WithStatusReason(const char *value)
const GameSessionConnectionInfo & GetGameSessionConnectionInfo() const
MatchmakingTicket & WithConfigurationName(const char *value)
MatchmakingTicket & WithStatusReason(const Aws::String &value)
const Aws::String & GetTicketId() const
AWS_GAMELIFT_API MatchmakingTicket & operator=(Aws::Utils::Json::JsonView jsonValue)
MatchmakingTicket & WithPlayers(Aws::Vector< Player > &&value)
MatchmakingTicket & WithTicketId(Aws::String &&value)
void SetGameSessionConnectionInfo(const GameSessionConnectionInfo &value)
MatchmakingTicket & WithTicketId(const Aws::String &value)
MatchmakingTicket & AddPlayers(Player &&value)
MatchmakingTicket & AddPlayers(const Player &value)
MatchmakingTicket & WithPlayers(const Aws::Vector< Player > &value)
void SetEndTime(Aws::Utils::DateTime &&value)
void SetEndTime(const Aws::Utils::DateTime &value)
MatchmakingTicket & WithConfigurationName(Aws::String &&value)
MatchmakingTicket & WithConfigurationArn(const Aws::String &value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
MatchmakingTicket & WithStartTime(const Aws::Utils::DateTime &value)
AWS_GAMELIFT_API MatchmakingTicket(Aws::Utils::Json::JsonView jsonValue)
void SetGameSessionConnectionInfo(GameSessionConnectionInfo &&value)
const Aws::String & GetConfigurationName() const
const Aws::String & GetStatusReason() const
MatchmakingTicket & WithGameSessionConnectionInfo(const GameSessionConnectionInfo &value)
void SetStartTime(const Aws::Utils::DateTime &value)
MatchmakingTicket & WithEndTime(const Aws::Utils::DateTime &value)
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