AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
GameSessionPlacement.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/GameProperty.h>
12#include <aws/gamelift/model/GameSessionPlacementState.h>
13#include <aws/gamelift/model/PlacedPlayerSession.h>
14#include <aws/gamelift/model/PlayerLatency.h>
15#include <aws/gamelift/model/PriorityConfigurationOverride.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace GameLift {
27namespace Model {
28
45 public:
46 AWS_GAMELIFT_API GameSessionPlacement() = default;
49 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
50
52
55 inline const Aws::String& GetPlacementId() const { return m_placementId; }
56 inline bool PlacementIdHasBeenSet() const { return m_placementIdHasBeenSet; }
57 template <typename PlacementIdT = Aws::String>
58 void SetPlacementId(PlacementIdT&& value) {
59 m_placementIdHasBeenSet = true;
60 m_placementId = std::forward<PlacementIdT>(value);
61 }
62 template <typename PlacementIdT = Aws::String>
63 GameSessionPlacement& WithPlacementId(PlacementIdT&& value) {
64 SetPlacementId(std::forward<PlacementIdT>(value));
65 return *this;
66 }
68
70
74 inline const Aws::String& GetGameSessionQueueName() const { return m_gameSessionQueueName; }
75 inline bool GameSessionQueueNameHasBeenSet() const { return m_gameSessionQueueNameHasBeenSet; }
76 template <typename GameSessionQueueNameT = Aws::String>
77 void SetGameSessionQueueName(GameSessionQueueNameT&& value) {
78 m_gameSessionQueueNameHasBeenSet = true;
79 m_gameSessionQueueName = std::forward<GameSessionQueueNameT>(value);
80 }
81 template <typename GameSessionQueueNameT = Aws::String>
82 GameSessionPlacement& WithGameSessionQueueName(GameSessionQueueNameT&& value) {
83 SetGameSessionQueueName(std::forward<GameSessionQueueNameT>(value));
84 return *this;
85 }
87
89
102 inline GameSessionPlacementState GetStatus() const { return m_status; }
103 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
105 m_statusHasBeenSet = true;
106 m_status = value;
107 }
109 SetStatus(value);
110 return *this;
111 }
113
115
123 inline const Aws::Vector<GameProperty>& GetGameProperties() const { return m_gameProperties; }
124 inline bool GamePropertiesHasBeenSet() const { return m_gamePropertiesHasBeenSet; }
125 template <typename GamePropertiesT = Aws::Vector<GameProperty>>
126 void SetGameProperties(GamePropertiesT&& value) {
127 m_gamePropertiesHasBeenSet = true;
128 m_gameProperties = std::forward<GamePropertiesT>(value);
129 }
130 template <typename GamePropertiesT = Aws::Vector<GameProperty>>
131 GameSessionPlacement& WithGameProperties(GamePropertiesT&& value) {
132 SetGameProperties(std::forward<GamePropertiesT>(value));
133 return *this;
134 }
135 template <typename GamePropertiesT = GameProperty>
136 GameSessionPlacement& AddGameProperties(GamePropertiesT&& value) {
137 m_gamePropertiesHasBeenSet = true;
138 m_gameProperties.emplace_back(std::forward<GamePropertiesT>(value));
139 return *this;
140 }
142
144
148 inline int GetMaximumPlayerSessionCount() const { return m_maximumPlayerSessionCount; }
149 inline bool MaximumPlayerSessionCountHasBeenSet() const { return m_maximumPlayerSessionCountHasBeenSet; }
150 inline void SetMaximumPlayerSessionCount(int value) {
151 m_maximumPlayerSessionCountHasBeenSet = true;
152 m_maximumPlayerSessionCount = value;
153 }
156 return *this;
157 }
159
161
165 inline const Aws::String& GetGameSessionName() const { return m_gameSessionName; }
166 inline bool GameSessionNameHasBeenSet() const { return m_gameSessionNameHasBeenSet; }
167 template <typename GameSessionNameT = Aws::String>
168 void SetGameSessionName(GameSessionNameT&& value) {
169 m_gameSessionNameHasBeenSet = true;
170 m_gameSessionName = std::forward<GameSessionNameT>(value);
171 }
172 template <typename GameSessionNameT = Aws::String>
173 GameSessionPlacement& WithGameSessionName(GameSessionNameT&& value) {
174 SetGameSessionName(std::forward<GameSessionNameT>(value));
175 return *this;
176 }
178
180
184 inline const Aws::String& GetGameSessionId() const { return m_gameSessionId; }
185 inline bool GameSessionIdHasBeenSet() const { return m_gameSessionIdHasBeenSet; }
186 template <typename GameSessionIdT = Aws::String>
187 void SetGameSessionId(GameSessionIdT&& value) {
188 m_gameSessionIdHasBeenSet = true;
189 m_gameSessionId = std::forward<GameSessionIdT>(value);
190 }
191 template <typename GameSessionIdT = Aws::String>
192 GameSessionPlacement& WithGameSessionId(GameSessionIdT&& value) {
193 SetGameSessionId(std::forward<GameSessionIdT>(value));
194 return *this;
195 }
197
199
204 inline const Aws::String& GetGameSessionArn() const { return m_gameSessionArn; }
205 inline bool GameSessionArnHasBeenSet() const { return m_gameSessionArnHasBeenSet; }
206 template <typename GameSessionArnT = Aws::String>
207 void SetGameSessionArn(GameSessionArnT&& value) {
208 m_gameSessionArnHasBeenSet = true;
209 m_gameSessionArn = std::forward<GameSessionArnT>(value);
210 }
211 template <typename GameSessionArnT = Aws::String>
212 GameSessionPlacement& WithGameSessionArn(GameSessionArnT&& value) {
213 SetGameSessionArn(std::forward<GameSessionArnT>(value));
214 return *this;
215 }
217
219
224 inline const Aws::String& GetGameSessionRegion() const { return m_gameSessionRegion; }
225 inline bool GameSessionRegionHasBeenSet() const { return m_gameSessionRegionHasBeenSet; }
226 template <typename GameSessionRegionT = Aws::String>
227 void SetGameSessionRegion(GameSessionRegionT&& value) {
228 m_gameSessionRegionHasBeenSet = true;
229 m_gameSessionRegion = std::forward<GameSessionRegionT>(value);
230 }
231 template <typename GameSessionRegionT = Aws::String>
232 GameSessionPlacement& WithGameSessionRegion(GameSessionRegionT&& value) {
233 SetGameSessionRegion(std::forward<GameSessionRegionT>(value));
234 return *this;
235 }
237
239
244 inline const Aws::Vector<PlayerLatency>& GetPlayerLatencies() const { return m_playerLatencies; }
245 inline bool PlayerLatenciesHasBeenSet() const { return m_playerLatenciesHasBeenSet; }
246 template <typename PlayerLatenciesT = Aws::Vector<PlayerLatency>>
247 void SetPlayerLatencies(PlayerLatenciesT&& value) {
248 m_playerLatenciesHasBeenSet = true;
249 m_playerLatencies = std::forward<PlayerLatenciesT>(value);
250 }
251 template <typename PlayerLatenciesT = Aws::Vector<PlayerLatency>>
252 GameSessionPlacement& WithPlayerLatencies(PlayerLatenciesT&& value) {
253 SetPlayerLatencies(std::forward<PlayerLatenciesT>(value));
254 return *this;
255 }
256 template <typename PlayerLatenciesT = PlayerLatency>
257 GameSessionPlacement& AddPlayerLatencies(PlayerLatenciesT&& value) {
258 m_playerLatenciesHasBeenSet = true;
259 m_playerLatencies.emplace_back(std::forward<PlayerLatenciesT>(value));
260 return *this;
261 }
263
265
270 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
271 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
272 template <typename StartTimeT = Aws::Utils::DateTime>
273 void SetStartTime(StartTimeT&& value) {
274 m_startTimeHasBeenSet = true;
275 m_startTime = std::forward<StartTimeT>(value);
276 }
277 template <typename StartTimeT = Aws::Utils::DateTime>
278 GameSessionPlacement& WithStartTime(StartTimeT&& value) {
279 SetStartTime(std::forward<StartTimeT>(value));
280 return *this;
281 }
283
285
289 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
290 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
291 template <typename EndTimeT = Aws::Utils::DateTime>
292 void SetEndTime(EndTimeT&& value) {
293 m_endTimeHasBeenSet = true;
294 m_endTime = std::forward<EndTimeT>(value);
295 }
296 template <typename EndTimeT = Aws::Utils::DateTime>
298 SetEndTime(std::forward<EndTimeT>(value));
299 return *this;
300 }
302
304
309 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
310 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
311 template <typename IpAddressT = Aws::String>
312 void SetIpAddress(IpAddressT&& value) {
313 m_ipAddressHasBeenSet = true;
314 m_ipAddress = std::forward<IpAddressT>(value);
315 }
316 template <typename IpAddressT = Aws::String>
317 GameSessionPlacement& WithIpAddress(IpAddressT&& value) {
318 SetIpAddress(std::forward<IpAddressT>(value));
319 return *this;
320 }
322
324
336 inline const Aws::String& GetDnsName() const { return m_dnsName; }
337 inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
338 template <typename DnsNameT = Aws::String>
339 void SetDnsName(DnsNameT&& value) {
340 m_dnsNameHasBeenSet = true;
341 m_dnsName = std::forward<DnsNameT>(value);
342 }
343 template <typename DnsNameT = Aws::String>
345 SetDnsName(std::forward<DnsNameT>(value));
346 return *this;
347 }
349
351
356 inline int GetPort() const { return m_port; }
357 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
358 inline void SetPort(int value) {
359 m_portHasBeenSet = true;
360 m_port = value;
361 }
362 inline GameSessionPlacement& WithPort(int value) {
363 SetPort(value);
364 return *this;
365 }
367
369
376 inline const Aws::Vector<PlacedPlayerSession>& GetPlacedPlayerSessions() const { return m_placedPlayerSessions; }
377 inline bool PlacedPlayerSessionsHasBeenSet() const { return m_placedPlayerSessionsHasBeenSet; }
378 template <typename PlacedPlayerSessionsT = Aws::Vector<PlacedPlayerSession>>
379 void SetPlacedPlayerSessions(PlacedPlayerSessionsT&& value) {
380 m_placedPlayerSessionsHasBeenSet = true;
381 m_placedPlayerSessions = std::forward<PlacedPlayerSessionsT>(value);
382 }
383 template <typename PlacedPlayerSessionsT = Aws::Vector<PlacedPlayerSession>>
384 GameSessionPlacement& WithPlacedPlayerSessions(PlacedPlayerSessionsT&& value) {
385 SetPlacedPlayerSessions(std::forward<PlacedPlayerSessionsT>(value));
386 return *this;
387 }
388 template <typename PlacedPlayerSessionsT = PlacedPlayerSession>
389 GameSessionPlacement& AddPlacedPlayerSessions(PlacedPlayerSessionsT&& value) {
390 m_placedPlayerSessionsHasBeenSet = true;
391 m_placedPlayerSessions.emplace_back(std::forward<PlacedPlayerSessionsT>(value));
392 return *this;
393 }
395
397
404 inline const Aws::String& GetGameSessionData() const { return m_gameSessionData; }
405 inline bool GameSessionDataHasBeenSet() const { return m_gameSessionDataHasBeenSet; }
406 template <typename GameSessionDataT = Aws::String>
407 void SetGameSessionData(GameSessionDataT&& value) {
408 m_gameSessionDataHasBeenSet = true;
409 m_gameSessionData = std::forward<GameSessionDataT>(value);
410 }
411 template <typename GameSessionDataT = Aws::String>
412 GameSessionPlacement& WithGameSessionData(GameSessionDataT&& value) {
413 SetGameSessionData(std::forward<GameSessionDataT>(value));
414 return *this;
415 }
417
419
428 inline const Aws::String& GetMatchmakerData() const { return m_matchmakerData; }
429 inline bool MatchmakerDataHasBeenSet() const { return m_matchmakerDataHasBeenSet; }
430 template <typename MatchmakerDataT = Aws::String>
431 void SetMatchmakerData(MatchmakerDataT&& value) {
432 m_matchmakerDataHasBeenSet = true;
433 m_matchmakerData = std::forward<MatchmakerDataT>(value);
434 }
435 template <typename MatchmakerDataT = Aws::String>
436 GameSessionPlacement& WithMatchmakerData(MatchmakerDataT&& value) {
437 SetMatchmakerData(std::forward<MatchmakerDataT>(value));
438 return *this;
439 }
441
443
451 inline const PriorityConfigurationOverride& GetPriorityConfigurationOverride() const { return m_priorityConfigurationOverride; }
452 inline bool PriorityConfigurationOverrideHasBeenSet() const { return m_priorityConfigurationOverrideHasBeenSet; }
453 template <typename PriorityConfigurationOverrideT = PriorityConfigurationOverride>
454 void SetPriorityConfigurationOverride(PriorityConfigurationOverrideT&& value) {
455 m_priorityConfigurationOverrideHasBeenSet = true;
456 m_priorityConfigurationOverride = std::forward<PriorityConfigurationOverrideT>(value);
457 }
458 template <typename PriorityConfigurationOverrideT = PriorityConfigurationOverride>
459 GameSessionPlacement& WithPriorityConfigurationOverride(PriorityConfigurationOverrideT&& value) {
460 SetPriorityConfigurationOverride(std::forward<PriorityConfigurationOverrideT>(value));
461 return *this;
462 }
464 private:
465 Aws::String m_placementId;
466
467 Aws::String m_gameSessionQueueName;
468
470
471 Aws::Vector<GameProperty> m_gameProperties;
472
473 int m_maximumPlayerSessionCount{0};
474
475 Aws::String m_gameSessionName;
476
477 Aws::String m_gameSessionId;
478
479 Aws::String m_gameSessionArn;
480
481 Aws::String m_gameSessionRegion;
482
483 Aws::Vector<PlayerLatency> m_playerLatencies;
484
485 Aws::Utils::DateTime m_startTime{};
486
487 Aws::Utils::DateTime m_endTime{};
488
489 Aws::String m_ipAddress;
490
491 Aws::String m_dnsName;
492
493 int m_port{0};
494
495 Aws::Vector<PlacedPlayerSession> m_placedPlayerSessions;
496
497 Aws::String m_gameSessionData;
498
499 Aws::String m_matchmakerData;
500
501 PriorityConfigurationOverride m_priorityConfigurationOverride;
502 bool m_placementIdHasBeenSet = false;
503 bool m_gameSessionQueueNameHasBeenSet = false;
504 bool m_statusHasBeenSet = false;
505 bool m_gamePropertiesHasBeenSet = false;
506 bool m_maximumPlayerSessionCountHasBeenSet = false;
507 bool m_gameSessionNameHasBeenSet = false;
508 bool m_gameSessionIdHasBeenSet = false;
509 bool m_gameSessionArnHasBeenSet = false;
510 bool m_gameSessionRegionHasBeenSet = false;
511 bool m_playerLatenciesHasBeenSet = false;
512 bool m_startTimeHasBeenSet = false;
513 bool m_endTimeHasBeenSet = false;
514 bool m_ipAddressHasBeenSet = false;
515 bool m_dnsNameHasBeenSet = false;
516 bool m_portHasBeenSet = false;
517 bool m_placedPlayerSessionsHasBeenSet = false;
518 bool m_gameSessionDataHasBeenSet = false;
519 bool m_matchmakerDataHasBeenSet = false;
520 bool m_priorityConfigurationOverrideHasBeenSet = false;
521};
522
523} // namespace Model
524} // namespace GameLift
525} // namespace Aws
void SetStatus(GameSessionPlacementState value)
GameSessionPlacement & AddPlayerLatencies(PlayerLatenciesT &&value)
GameSessionPlacement & WithPriorityConfigurationOverride(PriorityConfigurationOverrideT &&value)
GameSessionPlacement & WithEndTime(EndTimeT &&value)
GameSessionPlacement & WithGameSessionQueueName(GameSessionQueueNameT &&value)
GameSessionPlacement & WithGameSessionName(GameSessionNameT &&value)
AWS_GAMELIFT_API GameSessionPlacement & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetEndTime() const
const Aws::String & GetGameSessionQueueName() const
const Aws::Vector< PlacedPlayerSession > & GetPlacedPlayerSessions() const
GameSessionPlacement & WithIpAddress(IpAddressT &&value)
GameSessionPlacement & WithPlacedPlayerSessions(PlacedPlayerSessionsT &&value)
const Aws::Vector< GameProperty > & GetGameProperties() const
void SetGameSessionQueueName(GameSessionQueueNameT &&value)
GameSessionPlacement & WithPlayerLatencies(PlayerLatenciesT &&value)
void SetGameSessionData(GameSessionDataT &&value)
GameSessionPlacement & WithMatchmakerData(MatchmakerDataT &&value)
GameSessionPlacement & WithGameSessionRegion(GameSessionRegionT &&value)
GameSessionPlacement & WithPlacementId(PlacementIdT &&value)
void SetPlayerLatencies(PlayerLatenciesT &&value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
GameSessionPlacement & WithDnsName(DnsNameT &&value)
GameSessionPlacement & WithStartTime(StartTimeT &&value)
GameSessionPlacement & WithGameProperties(GamePropertiesT &&value)
GameSessionPlacement & AddPlacedPlayerSessions(PlacedPlayerSessionsT &&value)
GameSessionPlacement & WithGameSessionId(GameSessionIdT &&value)
GameSessionPlacement & WithGameSessionArn(GameSessionArnT &&value)
const Aws::Vector< PlayerLatency > & GetPlayerLatencies() const
void SetGameSessionRegion(GameSessionRegionT &&value)
void SetPriorityConfigurationOverride(PriorityConfigurationOverrideT &&value)
GameSessionPlacement & WithGameSessionData(GameSessionDataT &&value)
void SetMatchmakerData(MatchmakerDataT &&value)
GameSessionPlacementState GetStatus() const
AWS_GAMELIFT_API GameSessionPlacement()=default
GameSessionPlacement & AddGameProperties(GamePropertiesT &&value)
AWS_GAMELIFT_API GameSessionPlacement(Aws::Utils::Json::JsonView jsonValue)
void SetGameSessionName(GameSessionNameT &&value)
void SetGameProperties(GamePropertiesT &&value)
GameSessionPlacement & WithStatus(GameSessionPlacementState value)
void SetPlacedPlayerSessions(PlacedPlayerSessionsT &&value)
void SetGameSessionArn(GameSessionArnT &&value)
const PriorityConfigurationOverride & GetPriorityConfigurationOverride() const
const Aws::Utils::DateTime & GetStartTime() const
GameSessionPlacement & WithMaximumPlayerSessionCount(int value)
GameSessionPlacement & WithPort(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue