AWS SDK for C++

AWS SDK for C++ Version 1.11.852

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/crt/cbor/Cbor.h>
11#include <aws/gamelift/GameLift_EXPORTS.h>
12#include <aws/gamelift/model/GameProperty.h>
13#include <aws/gamelift/model/GameSessionPlacementState.h>
14#include <aws/gamelift/model/PlacedPlayerSession.h>
15#include <aws/gamelift/model/PlayerGatewayStatus.h>
16#include <aws/gamelift/model/PlayerLatency.h>
17#include <aws/gamelift/model/PriorityConfigurationOverride.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Cbor {
24class CborValue;
25} // namespace Cbor
26} // namespace Utils
27namespace GameLift {
28namespace Model {
29
46 public:
47 AWS_GAMELIFT_API GameSessionPlacement() = default;
48 AWS_GAMELIFT_API GameSessionPlacement(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
49 AWS_GAMELIFT_API GameSessionPlacement& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
50 AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
51
53
56 inline const Aws::String& GetPlacementId() const { return m_placementId; }
57 inline bool PlacementIdHasBeenSet() const { return m_placementIdHasBeenSet; }
58 template <typename PlacementIdT = Aws::String>
59 void SetPlacementId(PlacementIdT&& value) {
60 m_placementIdHasBeenSet = true;
61 m_placementId = std::forward<PlacementIdT>(value);
62 }
63 template <typename PlacementIdT = Aws::String>
64 GameSessionPlacement& WithPlacementId(PlacementIdT&& value) {
65 SetPlacementId(std::forward<PlacementIdT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::String& GetGameSessionQueueName() const { return m_gameSessionQueueName; }
76 inline bool GameSessionQueueNameHasBeenSet() const { return m_gameSessionQueueNameHasBeenSet; }
77 template <typename GameSessionQueueNameT = Aws::String>
78 void SetGameSessionQueueName(GameSessionQueueNameT&& value) {
79 m_gameSessionQueueNameHasBeenSet = true;
80 m_gameSessionQueueName = std::forward<GameSessionQueueNameT>(value);
81 }
82 template <typename GameSessionQueueNameT = Aws::String>
83 GameSessionPlacement& WithGameSessionQueueName(GameSessionQueueNameT&& value) {
84 SetGameSessionQueueName(std::forward<GameSessionQueueNameT>(value));
85 return *this;
86 }
88
90
103 inline GameSessionPlacementState GetStatus() const { return m_status; }
104 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
106 m_statusHasBeenSet = true;
107 m_status = value;
108 }
110 SetStatus(value);
111 return *this;
112 }
114
116
127 inline const Aws::Vector<GameProperty>& GetGameProperties() const { return m_gameProperties; }
128 inline bool GamePropertiesHasBeenSet() const { return m_gamePropertiesHasBeenSet; }
129 template <typename GamePropertiesT = Aws::Vector<GameProperty>>
130 void SetGameProperties(GamePropertiesT&& value) {
131 m_gamePropertiesHasBeenSet = true;
132 m_gameProperties = std::forward<GamePropertiesT>(value);
133 }
134 template <typename GamePropertiesT = Aws::Vector<GameProperty>>
135 GameSessionPlacement& WithGameProperties(GamePropertiesT&& value) {
136 SetGameProperties(std::forward<GamePropertiesT>(value));
137 return *this;
138 }
139 template <typename GamePropertiesT = GameProperty>
140 GameSessionPlacement& AddGameProperties(GamePropertiesT&& value) {
141 m_gamePropertiesHasBeenSet = true;
142 m_gameProperties.emplace_back(std::forward<GamePropertiesT>(value));
143 return *this;
144 }
146
148
152 inline int64_t GetMaximumPlayerSessionCount() const { return m_maximumPlayerSessionCount; }
153 inline bool MaximumPlayerSessionCountHasBeenSet() const { return m_maximumPlayerSessionCountHasBeenSet; }
154 inline void SetMaximumPlayerSessionCount(int64_t value) {
155 m_maximumPlayerSessionCountHasBeenSet = true;
156 m_maximumPlayerSessionCount = value;
157 }
160 return *this;
161 }
163
165
169 inline const Aws::String& GetGameSessionName() const { return m_gameSessionName; }
170 inline bool GameSessionNameHasBeenSet() const { return m_gameSessionNameHasBeenSet; }
171 template <typename GameSessionNameT = Aws::String>
172 void SetGameSessionName(GameSessionNameT&& value) {
173 m_gameSessionNameHasBeenSet = true;
174 m_gameSessionName = std::forward<GameSessionNameT>(value);
175 }
176 template <typename GameSessionNameT = Aws::String>
177 GameSessionPlacement& WithGameSessionName(GameSessionNameT&& value) {
178 SetGameSessionName(std::forward<GameSessionNameT>(value));
179 return *this;
180 }
182
184
194 inline const Aws::String& GetGameSessionId() const { return m_gameSessionId; }
195 inline bool GameSessionIdHasBeenSet() const { return m_gameSessionIdHasBeenSet; }
196 template <typename GameSessionIdT = Aws::String>
197 void SetGameSessionId(GameSessionIdT&& value) {
198 m_gameSessionIdHasBeenSet = true;
199 m_gameSessionId = std::forward<GameSessionIdT>(value);
200 }
201 template <typename GameSessionIdT = Aws::String>
202 GameSessionPlacement& WithGameSessionId(GameSessionIdT&& value) {
203 SetGameSessionId(std::forward<GameSessionIdT>(value));
204 return *this;
205 }
207
209
219 inline const Aws::String& GetGameSessionArn() const { return m_gameSessionArn; }
220 inline bool GameSessionArnHasBeenSet() const { return m_gameSessionArnHasBeenSet; }
221 template <typename GameSessionArnT = Aws::String>
222 void SetGameSessionArn(GameSessionArnT&& value) {
223 m_gameSessionArnHasBeenSet = true;
224 m_gameSessionArn = std::forward<GameSessionArnT>(value);
225 }
226 template <typename GameSessionArnT = Aws::String>
227 GameSessionPlacement& WithGameSessionArn(GameSessionArnT&& value) {
228 SetGameSessionArn(std::forward<GameSessionArnT>(value));
229 return *this;
230 }
232
234
239 inline const Aws::String& GetGameSessionRegion() const { return m_gameSessionRegion; }
240 inline bool GameSessionRegionHasBeenSet() const { return m_gameSessionRegionHasBeenSet; }
241 template <typename GameSessionRegionT = Aws::String>
242 void SetGameSessionRegion(GameSessionRegionT&& value) {
243 m_gameSessionRegionHasBeenSet = true;
244 m_gameSessionRegion = std::forward<GameSessionRegionT>(value);
245 }
246 template <typename GameSessionRegionT = Aws::String>
247 GameSessionPlacement& WithGameSessionRegion(GameSessionRegionT&& value) {
248 SetGameSessionRegion(std::forward<GameSessionRegionT>(value));
249 return *this;
250 }
252
254
260 inline const Aws::Vector<PlayerLatency>& GetPlayerLatencies() const { return m_playerLatencies; }
261 inline bool PlayerLatenciesHasBeenSet() const { return m_playerLatenciesHasBeenSet; }
262 template <typename PlayerLatenciesT = Aws::Vector<PlayerLatency>>
263 void SetPlayerLatencies(PlayerLatenciesT&& value) {
264 m_playerLatenciesHasBeenSet = true;
265 m_playerLatencies = std::forward<PlayerLatenciesT>(value);
266 }
267 template <typename PlayerLatenciesT = Aws::Vector<PlayerLatency>>
268 GameSessionPlacement& WithPlayerLatencies(PlayerLatenciesT&& value) {
269 SetPlayerLatencies(std::forward<PlayerLatenciesT>(value));
270 return *this;
271 }
272 template <typename PlayerLatenciesT = PlayerLatency>
273 GameSessionPlacement& AddPlayerLatencies(PlayerLatenciesT&& value) {
274 m_playerLatenciesHasBeenSet = true;
275 m_playerLatencies.emplace_back(std::forward<PlayerLatenciesT>(value));
276 return *this;
277 }
279
281
286 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
287 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
288 template <typename StartTimeT = Aws::Utils::DateTime>
289 void SetStartTime(StartTimeT&& value) {
290 m_startTimeHasBeenSet = true;
291 m_startTime = std::forward<StartTimeT>(value);
292 }
293 template <typename StartTimeT = Aws::Utils::DateTime>
294 GameSessionPlacement& WithStartTime(StartTimeT&& value) {
295 SetStartTime(std::forward<StartTimeT>(value));
296 return *this;
297 }
299
301
305 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
306 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
307 template <typename EndTimeT = Aws::Utils::DateTime>
308 void SetEndTime(EndTimeT&& value) {
309 m_endTimeHasBeenSet = true;
310 m_endTime = std::forward<EndTimeT>(value);
311 }
312 template <typename EndTimeT = Aws::Utils::DateTime>
314 SetEndTime(std::forward<EndTimeT>(value));
315 return *this;
316 }
318
320
325 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
326 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
327 template <typename IpAddressT = Aws::String>
328 void SetIpAddress(IpAddressT&& value) {
329 m_ipAddressHasBeenSet = true;
330 m_ipAddress = std::forward<IpAddressT>(value);
331 }
332 template <typename IpAddressT = Aws::String>
333 GameSessionPlacement& WithIpAddress(IpAddressT&& value) {
334 SetIpAddress(std::forward<IpAddressT>(value));
335 return *this;
336 }
338
340
352 inline const Aws::String& GetDnsName() const { return m_dnsName; }
353 inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
354 template <typename DnsNameT = Aws::String>
355 void SetDnsName(DnsNameT&& value) {
356 m_dnsNameHasBeenSet = true;
357 m_dnsName = std::forward<DnsNameT>(value);
358 }
359 template <typename DnsNameT = Aws::String>
361 SetDnsName(std::forward<DnsNameT>(value));
362 return *this;
363 }
365
367
372 inline int64_t GetPort() const { return m_port; }
373 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
374 inline void SetPort(int64_t value) {
375 m_portHasBeenSet = true;
376 m_port = value;
377 }
378 inline GameSessionPlacement& WithPort(int64_t value) {
379 SetPort(value);
380 return *this;
381 }
383
385
392 inline const Aws::Vector<PlacedPlayerSession>& GetPlacedPlayerSessions() const { return m_placedPlayerSessions; }
393 inline bool PlacedPlayerSessionsHasBeenSet() const { return m_placedPlayerSessionsHasBeenSet; }
394 template <typename PlacedPlayerSessionsT = Aws::Vector<PlacedPlayerSession>>
395 void SetPlacedPlayerSessions(PlacedPlayerSessionsT&& value) {
396 m_placedPlayerSessionsHasBeenSet = true;
397 m_placedPlayerSessions = std::forward<PlacedPlayerSessionsT>(value);
398 }
399 template <typename PlacedPlayerSessionsT = Aws::Vector<PlacedPlayerSession>>
400 GameSessionPlacement& WithPlacedPlayerSessions(PlacedPlayerSessionsT&& value) {
401 SetPlacedPlayerSessions(std::forward<PlacedPlayerSessionsT>(value));
402 return *this;
403 }
404 template <typename PlacedPlayerSessionsT = PlacedPlayerSession>
405 GameSessionPlacement& AddPlacedPlayerSessions(PlacedPlayerSessionsT&& value) {
406 m_placedPlayerSessionsHasBeenSet = true;
407 m_placedPlayerSessions.emplace_back(std::forward<PlacedPlayerSessionsT>(value));
408 return *this;
409 }
411
413
420 inline const Aws::String& GetGameSessionData() const { return m_gameSessionData; }
421 inline bool GameSessionDataHasBeenSet() const { return m_gameSessionDataHasBeenSet; }
422 template <typename GameSessionDataT = Aws::String>
423 void SetGameSessionData(GameSessionDataT&& value) {
424 m_gameSessionDataHasBeenSet = true;
425 m_gameSessionData = std::forward<GameSessionDataT>(value);
426 }
427 template <typename GameSessionDataT = Aws::String>
428 GameSessionPlacement& WithGameSessionData(GameSessionDataT&& value) {
429 SetGameSessionData(std::forward<GameSessionDataT>(value));
430 return *this;
431 }
433
435
444 inline const Aws::String& GetMatchmakerData() const { return m_matchmakerData; }
445 inline bool MatchmakerDataHasBeenSet() const { return m_matchmakerDataHasBeenSet; }
446 template <typename MatchmakerDataT = Aws::String>
447 void SetMatchmakerData(MatchmakerDataT&& value) {
448 m_matchmakerDataHasBeenSet = true;
449 m_matchmakerData = std::forward<MatchmakerDataT>(value);
450 }
451 template <typename MatchmakerDataT = Aws::String>
452 GameSessionPlacement& WithMatchmakerData(MatchmakerDataT&& value) {
453 SetMatchmakerData(std::forward<MatchmakerDataT>(value));
454 return *this;
455 }
457
459
467 inline const PriorityConfigurationOverride& GetPriorityConfigurationOverride() const { return m_priorityConfigurationOverride; }
468 inline bool PriorityConfigurationOverrideHasBeenSet() const { return m_priorityConfigurationOverrideHasBeenSet; }
469 template <typename PriorityConfigurationOverrideT = PriorityConfigurationOverride>
470 void SetPriorityConfigurationOverride(PriorityConfigurationOverrideT&& value) {
471 m_priorityConfigurationOverrideHasBeenSet = true;
472 m_priorityConfigurationOverride = std::forward<PriorityConfigurationOverrideT>(value);
473 }
474 template <typename PriorityConfigurationOverrideT = PriorityConfigurationOverride>
475 GameSessionPlacement& WithPriorityConfigurationOverride(PriorityConfigurationOverrideT&& value) {
476 SetPriorityConfigurationOverride(std::forward<PriorityConfigurationOverrideT>(value));
477 return *this;
478 }
480
482
493 inline PlayerGatewayStatus GetPlayerGatewayStatus() const { return m_playerGatewayStatus; }
494 inline bool PlayerGatewayStatusHasBeenSet() const { return m_playerGatewayStatusHasBeenSet; }
496 m_playerGatewayStatusHasBeenSet = true;
497 m_playerGatewayStatus = value;
498 }
501 return *this;
502 }
504 private:
505 Aws::String m_placementId;
506
507 Aws::String m_gameSessionQueueName;
508
510
511 Aws::Vector<GameProperty> m_gameProperties;
512
513 int64_t m_maximumPlayerSessionCount{0};
514
515 Aws::String m_gameSessionName;
516
517 Aws::String m_gameSessionId;
518
519 Aws::String m_gameSessionArn;
520
521 Aws::String m_gameSessionRegion;
522
523 Aws::Vector<PlayerLatency> m_playerLatencies;
524
525 Aws::Utils::DateTime m_startTime{};
526
527 Aws::Utils::DateTime m_endTime{};
528
529 Aws::String m_ipAddress;
530
531 Aws::String m_dnsName;
532
533 int64_t m_port{0};
534
535 Aws::Vector<PlacedPlayerSession> m_placedPlayerSessions;
536
537 Aws::String m_gameSessionData;
538
539 Aws::String m_matchmakerData;
540
541 PriorityConfigurationOverride m_priorityConfigurationOverride;
542
544 bool m_placementIdHasBeenSet = false;
545 bool m_gameSessionQueueNameHasBeenSet = false;
546 bool m_statusHasBeenSet = false;
547 bool m_gamePropertiesHasBeenSet = false;
548 bool m_maximumPlayerSessionCountHasBeenSet = false;
549 bool m_gameSessionNameHasBeenSet = false;
550 bool m_gameSessionIdHasBeenSet = false;
551 bool m_gameSessionArnHasBeenSet = false;
552 bool m_gameSessionRegionHasBeenSet = false;
553 bool m_playerLatenciesHasBeenSet = false;
554 bool m_startTimeHasBeenSet = false;
555 bool m_endTimeHasBeenSet = false;
556 bool m_ipAddressHasBeenSet = false;
557 bool m_dnsNameHasBeenSet = false;
558 bool m_portHasBeenSet = false;
559 bool m_placedPlayerSessionsHasBeenSet = false;
560 bool m_gameSessionDataHasBeenSet = false;
561 bool m_matchmakerDataHasBeenSet = false;
562 bool m_priorityConfigurationOverrideHasBeenSet = false;
563 bool m_playerGatewayStatusHasBeenSet = false;
564};
565
566} // namespace Model
567} // namespace GameLift
568} // 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)
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 & WithMaximumPlayerSessionCount(int64_t value)
GameSessionPlacement & WithGameSessionRegion(GameSessionRegionT &&value)
GameSessionPlacement & WithPlacementId(PlacementIdT &&value)
void SetPlayerLatencies(PlayerLatenciesT &&value)
AWS_GAMELIFT_API GameSessionPlacement & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetPlayerGatewayStatus(PlayerGatewayStatus value)
GameSessionPlacement & WithDnsName(DnsNameT &&value)
GameSessionPlacement & WithStartTime(StartTimeT &&value)
GameSessionPlacement & WithGameProperties(GamePropertiesT &&value)
GameSessionPlacement & AddPlacedPlayerSessions(PlacedPlayerSessionsT &&value)
GameSessionPlacement & WithGameSessionId(GameSessionIdT &&value)
GameSessionPlacement & WithPort(int64_t 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)
void SetGameSessionName(GameSessionNameT &&value)
void SetGameProperties(GamePropertiesT &&value)
GameSessionPlacement & WithStatus(GameSessionPlacementState value)
AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetPlacedPlayerSessions(PlacedPlayerSessionsT &&value)
GameSessionPlacement & WithPlayerGatewayStatus(PlayerGatewayStatus value)
void SetGameSessionArn(GameSessionArnT &&value)
const PriorityConfigurationOverride & GetPriorityConfigurationOverride() const
const Aws::Utils::DateTime & GetStartTime() const
AWS_GAMELIFT_API GameSessionPlacement(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector