AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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/PlayerGatewayStatus.h>
15#include <aws/gamelift/model/PlayerLatency.h>
16#include <aws/gamelift/model/PriorityConfigurationOverride.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace GameLift {
28namespace Model {
29
46 public:
47 AWS_GAMELIFT_API GameSessionPlacement() = default;
50 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() 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 int GetMaximumPlayerSessionCount() const { return m_maximumPlayerSessionCount; }
153 inline bool MaximumPlayerSessionCountHasBeenSet() const { return m_maximumPlayerSessionCountHasBeenSet; }
154 inline void SetMaximumPlayerSessionCount(int 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
188 inline const Aws::String& GetGameSessionId() const { return m_gameSessionId; }
189 inline bool GameSessionIdHasBeenSet() const { return m_gameSessionIdHasBeenSet; }
190 template <typename GameSessionIdT = Aws::String>
191 void SetGameSessionId(GameSessionIdT&& value) {
192 m_gameSessionIdHasBeenSet = true;
193 m_gameSessionId = std::forward<GameSessionIdT>(value);
194 }
195 template <typename GameSessionIdT = Aws::String>
196 GameSessionPlacement& WithGameSessionId(GameSessionIdT&& value) {
197 SetGameSessionId(std::forward<GameSessionIdT>(value));
198 return *this;
199 }
201
203
208 inline const Aws::String& GetGameSessionArn() const { return m_gameSessionArn; }
209 inline bool GameSessionArnHasBeenSet() const { return m_gameSessionArnHasBeenSet; }
210 template <typename GameSessionArnT = Aws::String>
211 void SetGameSessionArn(GameSessionArnT&& value) {
212 m_gameSessionArnHasBeenSet = true;
213 m_gameSessionArn = std::forward<GameSessionArnT>(value);
214 }
215 template <typename GameSessionArnT = Aws::String>
216 GameSessionPlacement& WithGameSessionArn(GameSessionArnT&& value) {
217 SetGameSessionArn(std::forward<GameSessionArnT>(value));
218 return *this;
219 }
221
223
228 inline const Aws::String& GetGameSessionRegion() const { return m_gameSessionRegion; }
229 inline bool GameSessionRegionHasBeenSet() const { return m_gameSessionRegionHasBeenSet; }
230 template <typename GameSessionRegionT = Aws::String>
231 void SetGameSessionRegion(GameSessionRegionT&& value) {
232 m_gameSessionRegionHasBeenSet = true;
233 m_gameSessionRegion = std::forward<GameSessionRegionT>(value);
234 }
235 template <typename GameSessionRegionT = Aws::String>
236 GameSessionPlacement& WithGameSessionRegion(GameSessionRegionT&& value) {
237 SetGameSessionRegion(std::forward<GameSessionRegionT>(value));
238 return *this;
239 }
241
243
248 inline const Aws::Vector<PlayerLatency>& GetPlayerLatencies() const { return m_playerLatencies; }
249 inline bool PlayerLatenciesHasBeenSet() const { return m_playerLatenciesHasBeenSet; }
250 template <typename PlayerLatenciesT = Aws::Vector<PlayerLatency>>
251 void SetPlayerLatencies(PlayerLatenciesT&& value) {
252 m_playerLatenciesHasBeenSet = true;
253 m_playerLatencies = std::forward<PlayerLatenciesT>(value);
254 }
255 template <typename PlayerLatenciesT = Aws::Vector<PlayerLatency>>
256 GameSessionPlacement& WithPlayerLatencies(PlayerLatenciesT&& value) {
257 SetPlayerLatencies(std::forward<PlayerLatenciesT>(value));
258 return *this;
259 }
260 template <typename PlayerLatenciesT = PlayerLatency>
261 GameSessionPlacement& AddPlayerLatencies(PlayerLatenciesT&& value) {
262 m_playerLatenciesHasBeenSet = true;
263 m_playerLatencies.emplace_back(std::forward<PlayerLatenciesT>(value));
264 return *this;
265 }
267
269
274 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
275 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
276 template <typename StartTimeT = Aws::Utils::DateTime>
277 void SetStartTime(StartTimeT&& value) {
278 m_startTimeHasBeenSet = true;
279 m_startTime = std::forward<StartTimeT>(value);
280 }
281 template <typename StartTimeT = Aws::Utils::DateTime>
282 GameSessionPlacement& WithStartTime(StartTimeT&& value) {
283 SetStartTime(std::forward<StartTimeT>(value));
284 return *this;
285 }
287
289
293 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
294 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
295 template <typename EndTimeT = Aws::Utils::DateTime>
296 void SetEndTime(EndTimeT&& value) {
297 m_endTimeHasBeenSet = true;
298 m_endTime = std::forward<EndTimeT>(value);
299 }
300 template <typename EndTimeT = Aws::Utils::DateTime>
302 SetEndTime(std::forward<EndTimeT>(value));
303 return *this;
304 }
306
308
313 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
314 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
315 template <typename IpAddressT = Aws::String>
316 void SetIpAddress(IpAddressT&& value) {
317 m_ipAddressHasBeenSet = true;
318 m_ipAddress = std::forward<IpAddressT>(value);
319 }
320 template <typename IpAddressT = Aws::String>
321 GameSessionPlacement& WithIpAddress(IpAddressT&& value) {
322 SetIpAddress(std::forward<IpAddressT>(value));
323 return *this;
324 }
326
328
340 inline const Aws::String& GetDnsName() const { return m_dnsName; }
341 inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
342 template <typename DnsNameT = Aws::String>
343 void SetDnsName(DnsNameT&& value) {
344 m_dnsNameHasBeenSet = true;
345 m_dnsName = std::forward<DnsNameT>(value);
346 }
347 template <typename DnsNameT = Aws::String>
349 SetDnsName(std::forward<DnsNameT>(value));
350 return *this;
351 }
353
355
360 inline int GetPort() const { return m_port; }
361 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
362 inline void SetPort(int value) {
363 m_portHasBeenSet = true;
364 m_port = value;
365 }
366 inline GameSessionPlacement& WithPort(int value) {
367 SetPort(value);
368 return *this;
369 }
371
373
380 inline const Aws::Vector<PlacedPlayerSession>& GetPlacedPlayerSessions() const { return m_placedPlayerSessions; }
381 inline bool PlacedPlayerSessionsHasBeenSet() const { return m_placedPlayerSessionsHasBeenSet; }
382 template <typename PlacedPlayerSessionsT = Aws::Vector<PlacedPlayerSession>>
383 void SetPlacedPlayerSessions(PlacedPlayerSessionsT&& value) {
384 m_placedPlayerSessionsHasBeenSet = true;
385 m_placedPlayerSessions = std::forward<PlacedPlayerSessionsT>(value);
386 }
387 template <typename PlacedPlayerSessionsT = Aws::Vector<PlacedPlayerSession>>
388 GameSessionPlacement& WithPlacedPlayerSessions(PlacedPlayerSessionsT&& value) {
389 SetPlacedPlayerSessions(std::forward<PlacedPlayerSessionsT>(value));
390 return *this;
391 }
392 template <typename PlacedPlayerSessionsT = PlacedPlayerSession>
393 GameSessionPlacement& AddPlacedPlayerSessions(PlacedPlayerSessionsT&& value) {
394 m_placedPlayerSessionsHasBeenSet = true;
395 m_placedPlayerSessions.emplace_back(std::forward<PlacedPlayerSessionsT>(value));
396 return *this;
397 }
399
401
408 inline const Aws::String& GetGameSessionData() const { return m_gameSessionData; }
409 inline bool GameSessionDataHasBeenSet() const { return m_gameSessionDataHasBeenSet; }
410 template <typename GameSessionDataT = Aws::String>
411 void SetGameSessionData(GameSessionDataT&& value) {
412 m_gameSessionDataHasBeenSet = true;
413 m_gameSessionData = std::forward<GameSessionDataT>(value);
414 }
415 template <typename GameSessionDataT = Aws::String>
416 GameSessionPlacement& WithGameSessionData(GameSessionDataT&& value) {
417 SetGameSessionData(std::forward<GameSessionDataT>(value));
418 return *this;
419 }
421
423
432 inline const Aws::String& GetMatchmakerData() const { return m_matchmakerData; }
433 inline bool MatchmakerDataHasBeenSet() const { return m_matchmakerDataHasBeenSet; }
434 template <typename MatchmakerDataT = Aws::String>
435 void SetMatchmakerData(MatchmakerDataT&& value) {
436 m_matchmakerDataHasBeenSet = true;
437 m_matchmakerData = std::forward<MatchmakerDataT>(value);
438 }
439 template <typename MatchmakerDataT = Aws::String>
440 GameSessionPlacement& WithMatchmakerData(MatchmakerDataT&& value) {
441 SetMatchmakerData(std::forward<MatchmakerDataT>(value));
442 return *this;
443 }
445
447
455 inline const PriorityConfigurationOverride& GetPriorityConfigurationOverride() const { return m_priorityConfigurationOverride; }
456 inline bool PriorityConfigurationOverrideHasBeenSet() const { return m_priorityConfigurationOverrideHasBeenSet; }
457 template <typename PriorityConfigurationOverrideT = PriorityConfigurationOverride>
458 void SetPriorityConfigurationOverride(PriorityConfigurationOverrideT&& value) {
459 m_priorityConfigurationOverrideHasBeenSet = true;
460 m_priorityConfigurationOverride = std::forward<PriorityConfigurationOverrideT>(value);
461 }
462 template <typename PriorityConfigurationOverrideT = PriorityConfigurationOverride>
463 GameSessionPlacement& WithPriorityConfigurationOverride(PriorityConfigurationOverrideT&& value) {
464 SetPriorityConfigurationOverride(std::forward<PriorityConfigurationOverrideT>(value));
465 return *this;
466 }
468
470
481 inline PlayerGatewayStatus GetPlayerGatewayStatus() const { return m_playerGatewayStatus; }
482 inline bool PlayerGatewayStatusHasBeenSet() const { return m_playerGatewayStatusHasBeenSet; }
484 m_playerGatewayStatusHasBeenSet = true;
485 m_playerGatewayStatus = value;
486 }
489 return *this;
490 }
492 private:
493 Aws::String m_placementId;
494
495 Aws::String m_gameSessionQueueName;
496
498
499 Aws::Vector<GameProperty> m_gameProperties;
500
501 int m_maximumPlayerSessionCount{0};
502
503 Aws::String m_gameSessionName;
504
505 Aws::String m_gameSessionId;
506
507 Aws::String m_gameSessionArn;
508
509 Aws::String m_gameSessionRegion;
510
511 Aws::Vector<PlayerLatency> m_playerLatencies;
512
513 Aws::Utils::DateTime m_startTime{};
514
515 Aws::Utils::DateTime m_endTime{};
516
517 Aws::String m_ipAddress;
518
519 Aws::String m_dnsName;
520
521 int m_port{0};
522
523 Aws::Vector<PlacedPlayerSession> m_placedPlayerSessions;
524
525 Aws::String m_gameSessionData;
526
527 Aws::String m_matchmakerData;
528
529 PriorityConfigurationOverride m_priorityConfigurationOverride;
530
532 bool m_placementIdHasBeenSet = false;
533 bool m_gameSessionQueueNameHasBeenSet = false;
534 bool m_statusHasBeenSet = false;
535 bool m_gamePropertiesHasBeenSet = false;
536 bool m_maximumPlayerSessionCountHasBeenSet = false;
537 bool m_gameSessionNameHasBeenSet = false;
538 bool m_gameSessionIdHasBeenSet = false;
539 bool m_gameSessionArnHasBeenSet = false;
540 bool m_gameSessionRegionHasBeenSet = false;
541 bool m_playerLatenciesHasBeenSet = false;
542 bool m_startTimeHasBeenSet = false;
543 bool m_endTimeHasBeenSet = false;
544 bool m_ipAddressHasBeenSet = false;
545 bool m_dnsNameHasBeenSet = false;
546 bool m_portHasBeenSet = false;
547 bool m_placedPlayerSessionsHasBeenSet = false;
548 bool m_gameSessionDataHasBeenSet = false;
549 bool m_matchmakerDataHasBeenSet = false;
550 bool m_priorityConfigurationOverrideHasBeenSet = false;
551 bool m_playerGatewayStatusHasBeenSet = false;
552};
553
554} // namespace Model
555} // namespace GameLift
556} // 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
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 & 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)
GameSessionPlacement & WithPlayerGatewayStatus(PlayerGatewayStatus 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