AWS SDK for C++

AWS SDK for C++ Version 1.11.816

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
191 inline const Aws::String& GetGameSessionId() const { return m_gameSessionId; }
192 inline bool GameSessionIdHasBeenSet() const { return m_gameSessionIdHasBeenSet; }
193 template <typename GameSessionIdT = Aws::String>
194 void SetGameSessionId(GameSessionIdT&& value) {
195 m_gameSessionIdHasBeenSet = true;
196 m_gameSessionId = std::forward<GameSessionIdT>(value);
197 }
198 template <typename GameSessionIdT = Aws::String>
199 GameSessionPlacement& WithGameSessionId(GameSessionIdT&& value) {
200 SetGameSessionId(std::forward<GameSessionIdT>(value));
201 return *this;
202 }
204
206
213 inline const Aws::String& GetGameSessionArn() const { return m_gameSessionArn; }
214 inline bool GameSessionArnHasBeenSet() const { return m_gameSessionArnHasBeenSet; }
215 template <typename GameSessionArnT = Aws::String>
216 void SetGameSessionArn(GameSessionArnT&& value) {
217 m_gameSessionArnHasBeenSet = true;
218 m_gameSessionArn = std::forward<GameSessionArnT>(value);
219 }
220 template <typename GameSessionArnT = Aws::String>
221 GameSessionPlacement& WithGameSessionArn(GameSessionArnT&& value) {
222 SetGameSessionArn(std::forward<GameSessionArnT>(value));
223 return *this;
224 }
226
228
233 inline const Aws::String& GetGameSessionRegion() const { return m_gameSessionRegion; }
234 inline bool GameSessionRegionHasBeenSet() const { return m_gameSessionRegionHasBeenSet; }
235 template <typename GameSessionRegionT = Aws::String>
236 void SetGameSessionRegion(GameSessionRegionT&& value) {
237 m_gameSessionRegionHasBeenSet = true;
238 m_gameSessionRegion = std::forward<GameSessionRegionT>(value);
239 }
240 template <typename GameSessionRegionT = Aws::String>
241 GameSessionPlacement& WithGameSessionRegion(GameSessionRegionT&& value) {
242 SetGameSessionRegion(std::forward<GameSessionRegionT>(value));
243 return *this;
244 }
246
248
253 inline const Aws::Vector<PlayerLatency>& GetPlayerLatencies() const { return m_playerLatencies; }
254 inline bool PlayerLatenciesHasBeenSet() const { return m_playerLatenciesHasBeenSet; }
255 template <typename PlayerLatenciesT = Aws::Vector<PlayerLatency>>
256 void SetPlayerLatencies(PlayerLatenciesT&& value) {
257 m_playerLatenciesHasBeenSet = true;
258 m_playerLatencies = std::forward<PlayerLatenciesT>(value);
259 }
260 template <typename PlayerLatenciesT = Aws::Vector<PlayerLatency>>
261 GameSessionPlacement& WithPlayerLatencies(PlayerLatenciesT&& value) {
262 SetPlayerLatencies(std::forward<PlayerLatenciesT>(value));
263 return *this;
264 }
265 template <typename PlayerLatenciesT = PlayerLatency>
266 GameSessionPlacement& AddPlayerLatencies(PlayerLatenciesT&& value) {
267 m_playerLatenciesHasBeenSet = true;
268 m_playerLatencies.emplace_back(std::forward<PlayerLatenciesT>(value));
269 return *this;
270 }
272
274
279 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
280 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
281 template <typename StartTimeT = Aws::Utils::DateTime>
282 void SetStartTime(StartTimeT&& value) {
283 m_startTimeHasBeenSet = true;
284 m_startTime = std::forward<StartTimeT>(value);
285 }
286 template <typename StartTimeT = Aws::Utils::DateTime>
287 GameSessionPlacement& WithStartTime(StartTimeT&& value) {
288 SetStartTime(std::forward<StartTimeT>(value));
289 return *this;
290 }
292
294
298 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
299 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
300 template <typename EndTimeT = Aws::Utils::DateTime>
301 void SetEndTime(EndTimeT&& value) {
302 m_endTimeHasBeenSet = true;
303 m_endTime = std::forward<EndTimeT>(value);
304 }
305 template <typename EndTimeT = Aws::Utils::DateTime>
307 SetEndTime(std::forward<EndTimeT>(value));
308 return *this;
309 }
311
313
318 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
319 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
320 template <typename IpAddressT = Aws::String>
321 void SetIpAddress(IpAddressT&& value) {
322 m_ipAddressHasBeenSet = true;
323 m_ipAddress = std::forward<IpAddressT>(value);
324 }
325 template <typename IpAddressT = Aws::String>
326 GameSessionPlacement& WithIpAddress(IpAddressT&& value) {
327 SetIpAddress(std::forward<IpAddressT>(value));
328 return *this;
329 }
331
333
345 inline const Aws::String& GetDnsName() const { return m_dnsName; }
346 inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
347 template <typename DnsNameT = Aws::String>
348 void SetDnsName(DnsNameT&& value) {
349 m_dnsNameHasBeenSet = true;
350 m_dnsName = std::forward<DnsNameT>(value);
351 }
352 template <typename DnsNameT = Aws::String>
354 SetDnsName(std::forward<DnsNameT>(value));
355 return *this;
356 }
358
360
365 inline int64_t GetPort() const { return m_port; }
366 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
367 inline void SetPort(int64_t value) {
368 m_portHasBeenSet = true;
369 m_port = value;
370 }
371 inline GameSessionPlacement& WithPort(int64_t value) {
372 SetPort(value);
373 return *this;
374 }
376
378
385 inline const Aws::Vector<PlacedPlayerSession>& GetPlacedPlayerSessions() const { return m_placedPlayerSessions; }
386 inline bool PlacedPlayerSessionsHasBeenSet() const { return m_placedPlayerSessionsHasBeenSet; }
387 template <typename PlacedPlayerSessionsT = Aws::Vector<PlacedPlayerSession>>
388 void SetPlacedPlayerSessions(PlacedPlayerSessionsT&& value) {
389 m_placedPlayerSessionsHasBeenSet = true;
390 m_placedPlayerSessions = std::forward<PlacedPlayerSessionsT>(value);
391 }
392 template <typename PlacedPlayerSessionsT = Aws::Vector<PlacedPlayerSession>>
393 GameSessionPlacement& WithPlacedPlayerSessions(PlacedPlayerSessionsT&& value) {
394 SetPlacedPlayerSessions(std::forward<PlacedPlayerSessionsT>(value));
395 return *this;
396 }
397 template <typename PlacedPlayerSessionsT = PlacedPlayerSession>
398 GameSessionPlacement& AddPlacedPlayerSessions(PlacedPlayerSessionsT&& value) {
399 m_placedPlayerSessionsHasBeenSet = true;
400 m_placedPlayerSessions.emplace_back(std::forward<PlacedPlayerSessionsT>(value));
401 return *this;
402 }
404
406
413 inline const Aws::String& GetGameSessionData() const { return m_gameSessionData; }
414 inline bool GameSessionDataHasBeenSet() const { return m_gameSessionDataHasBeenSet; }
415 template <typename GameSessionDataT = Aws::String>
416 void SetGameSessionData(GameSessionDataT&& value) {
417 m_gameSessionDataHasBeenSet = true;
418 m_gameSessionData = std::forward<GameSessionDataT>(value);
419 }
420 template <typename GameSessionDataT = Aws::String>
421 GameSessionPlacement& WithGameSessionData(GameSessionDataT&& value) {
422 SetGameSessionData(std::forward<GameSessionDataT>(value));
423 return *this;
424 }
426
428
437 inline const Aws::String& GetMatchmakerData() const { return m_matchmakerData; }
438 inline bool MatchmakerDataHasBeenSet() const { return m_matchmakerDataHasBeenSet; }
439 template <typename MatchmakerDataT = Aws::String>
440 void SetMatchmakerData(MatchmakerDataT&& value) {
441 m_matchmakerDataHasBeenSet = true;
442 m_matchmakerData = std::forward<MatchmakerDataT>(value);
443 }
444 template <typename MatchmakerDataT = Aws::String>
445 GameSessionPlacement& WithMatchmakerData(MatchmakerDataT&& value) {
446 SetMatchmakerData(std::forward<MatchmakerDataT>(value));
447 return *this;
448 }
450
452
460 inline const PriorityConfigurationOverride& GetPriorityConfigurationOverride() const { return m_priorityConfigurationOverride; }
461 inline bool PriorityConfigurationOverrideHasBeenSet() const { return m_priorityConfigurationOverrideHasBeenSet; }
462 template <typename PriorityConfigurationOverrideT = PriorityConfigurationOverride>
463 void SetPriorityConfigurationOverride(PriorityConfigurationOverrideT&& value) {
464 m_priorityConfigurationOverrideHasBeenSet = true;
465 m_priorityConfigurationOverride = std::forward<PriorityConfigurationOverrideT>(value);
466 }
467 template <typename PriorityConfigurationOverrideT = PriorityConfigurationOverride>
468 GameSessionPlacement& WithPriorityConfigurationOverride(PriorityConfigurationOverrideT&& value) {
469 SetPriorityConfigurationOverride(std::forward<PriorityConfigurationOverrideT>(value));
470 return *this;
471 }
473
475
486 inline PlayerGatewayStatus GetPlayerGatewayStatus() const { return m_playerGatewayStatus; }
487 inline bool PlayerGatewayStatusHasBeenSet() const { return m_playerGatewayStatusHasBeenSet; }
489 m_playerGatewayStatusHasBeenSet = true;
490 m_playerGatewayStatus = value;
491 }
494 return *this;
495 }
497 private:
498 Aws::String m_placementId;
499
500 Aws::String m_gameSessionQueueName;
501
503
504 Aws::Vector<GameProperty> m_gameProperties;
505
506 int64_t m_maximumPlayerSessionCount{0};
507
508 Aws::String m_gameSessionName;
509
510 Aws::String m_gameSessionId;
511
512 Aws::String m_gameSessionArn;
513
514 Aws::String m_gameSessionRegion;
515
516 Aws::Vector<PlayerLatency> m_playerLatencies;
517
518 Aws::Utils::DateTime m_startTime{};
519
520 Aws::Utils::DateTime m_endTime{};
521
522 Aws::String m_ipAddress;
523
524 Aws::String m_dnsName;
525
526 int64_t m_port{0};
527
528 Aws::Vector<PlacedPlayerSession> m_placedPlayerSessions;
529
530 Aws::String m_gameSessionData;
531
532 Aws::String m_matchmakerData;
533
534 PriorityConfigurationOverride m_priorityConfigurationOverride;
535
537 bool m_placementIdHasBeenSet = false;
538 bool m_gameSessionQueueNameHasBeenSet = false;
539 bool m_statusHasBeenSet = false;
540 bool m_gamePropertiesHasBeenSet = false;
541 bool m_maximumPlayerSessionCountHasBeenSet = false;
542 bool m_gameSessionNameHasBeenSet = false;
543 bool m_gameSessionIdHasBeenSet = false;
544 bool m_gameSessionArnHasBeenSet = false;
545 bool m_gameSessionRegionHasBeenSet = false;
546 bool m_playerLatenciesHasBeenSet = false;
547 bool m_startTimeHasBeenSet = false;
548 bool m_endTimeHasBeenSet = false;
549 bool m_ipAddressHasBeenSet = false;
550 bool m_dnsNameHasBeenSet = false;
551 bool m_portHasBeenSet = false;
552 bool m_placedPlayerSessionsHasBeenSet = false;
553 bool m_gameSessionDataHasBeenSet = false;
554 bool m_matchmakerDataHasBeenSet = false;
555 bool m_priorityConfigurationOverrideHasBeenSet = false;
556 bool m_playerGatewayStatusHasBeenSet = false;
557};
558
559} // namespace Model
560} // namespace GameLift
561} // 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