AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GameSessionPlacement.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/GameSessionPlacementState.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/gamelift/model/PriorityConfigurationOverride.h>
13#include <aws/gamelift/model/GameProperty.h>
14#include <aws/gamelift/model/PlayerLatency.h>
15#include <aws/gamelift/model/PlacedPlayerSession.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace GameLift
29{
30namespace Model
31{
32
49 {
50 public:
51 AWS_GAMELIFT_API GameSessionPlacement() = default;
54 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
55
56
58
61 inline const Aws::String& GetPlacementId() const { return m_placementId; }
62 inline bool PlacementIdHasBeenSet() const { return m_placementIdHasBeenSet; }
63 template<typename PlacementIdT = Aws::String>
64 void SetPlacementId(PlacementIdT&& value) { m_placementIdHasBeenSet = true; m_placementId = std::forward<PlacementIdT>(value); }
65 template<typename PlacementIdT = Aws::String>
66 GameSessionPlacement& WithPlacementId(PlacementIdT&& value) { SetPlacementId(std::forward<PlacementIdT>(value)); return *this;}
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) { m_gameSessionQueueNameHasBeenSet = true; m_gameSessionQueueName = std::forward<GameSessionQueueNameT>(value); }
78 template<typename GameSessionQueueNameT = Aws::String>
79 GameSessionPlacement& WithGameSessionQueueName(GameSessionQueueNameT&& value) { SetGameSessionQueueName(std::forward<GameSessionQueueNameT>(value)); return *this;}
81
83
96 inline GameSessionPlacementState GetStatus() const { return m_status; }
97 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
98 inline void SetStatus(GameSessionPlacementState value) { m_statusHasBeenSet = true; m_status = value; }
101
103
107 inline const Aws::Vector<GameProperty>& GetGameProperties() const { return m_gameProperties; }
108 inline bool GamePropertiesHasBeenSet() const { return m_gamePropertiesHasBeenSet; }
109 template<typename GamePropertiesT = Aws::Vector<GameProperty>>
110 void SetGameProperties(GamePropertiesT&& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties = std::forward<GamePropertiesT>(value); }
111 template<typename GamePropertiesT = Aws::Vector<GameProperty>>
112 GameSessionPlacement& WithGameProperties(GamePropertiesT&& value) { SetGameProperties(std::forward<GamePropertiesT>(value)); return *this;}
113 template<typename GamePropertiesT = GameProperty>
114 GameSessionPlacement& AddGameProperties(GamePropertiesT&& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties.emplace_back(std::forward<GamePropertiesT>(value)); return *this; }
116
118
122 inline int GetMaximumPlayerSessionCount() const { return m_maximumPlayerSessionCount; }
123 inline bool MaximumPlayerSessionCountHasBeenSet() const { return m_maximumPlayerSessionCountHasBeenSet; }
124 inline void SetMaximumPlayerSessionCount(int value) { m_maximumPlayerSessionCountHasBeenSet = true; m_maximumPlayerSessionCount = value; }
127
129
133 inline const Aws::String& GetGameSessionName() const { return m_gameSessionName; }
134 inline bool GameSessionNameHasBeenSet() const { return m_gameSessionNameHasBeenSet; }
135 template<typename GameSessionNameT = Aws::String>
136 void SetGameSessionName(GameSessionNameT&& value) { m_gameSessionNameHasBeenSet = true; m_gameSessionName = std::forward<GameSessionNameT>(value); }
137 template<typename GameSessionNameT = Aws::String>
138 GameSessionPlacement& WithGameSessionName(GameSessionNameT&& value) { SetGameSessionName(std::forward<GameSessionNameT>(value)); return *this;}
140
142
146 inline const Aws::String& GetGameSessionId() const { return m_gameSessionId; }
147 inline bool GameSessionIdHasBeenSet() const { return m_gameSessionIdHasBeenSet; }
148 template<typename GameSessionIdT = Aws::String>
149 void SetGameSessionId(GameSessionIdT&& value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId = std::forward<GameSessionIdT>(value); }
150 template<typename GameSessionIdT = Aws::String>
151 GameSessionPlacement& WithGameSessionId(GameSessionIdT&& value) { SetGameSessionId(std::forward<GameSessionIdT>(value)); return *this;}
153
155
160 inline const Aws::String& GetGameSessionArn() const { return m_gameSessionArn; }
161 inline bool GameSessionArnHasBeenSet() const { return m_gameSessionArnHasBeenSet; }
162 template<typename GameSessionArnT = Aws::String>
163 void SetGameSessionArn(GameSessionArnT&& value) { m_gameSessionArnHasBeenSet = true; m_gameSessionArn = std::forward<GameSessionArnT>(value); }
164 template<typename GameSessionArnT = Aws::String>
165 GameSessionPlacement& WithGameSessionArn(GameSessionArnT&& value) { SetGameSessionArn(std::forward<GameSessionArnT>(value)); return *this;}
167
169
174 inline const Aws::String& GetGameSessionRegion() const { return m_gameSessionRegion; }
175 inline bool GameSessionRegionHasBeenSet() const { return m_gameSessionRegionHasBeenSet; }
176 template<typename GameSessionRegionT = Aws::String>
177 void SetGameSessionRegion(GameSessionRegionT&& value) { m_gameSessionRegionHasBeenSet = true; m_gameSessionRegion = std::forward<GameSessionRegionT>(value); }
178 template<typename GameSessionRegionT = Aws::String>
179 GameSessionPlacement& WithGameSessionRegion(GameSessionRegionT&& value) { SetGameSessionRegion(std::forward<GameSessionRegionT>(value)); return *this;}
181
183
188 inline const Aws::Vector<PlayerLatency>& GetPlayerLatencies() const { return m_playerLatencies; }
189 inline bool PlayerLatenciesHasBeenSet() const { return m_playerLatenciesHasBeenSet; }
190 template<typename PlayerLatenciesT = Aws::Vector<PlayerLatency>>
191 void SetPlayerLatencies(PlayerLatenciesT&& value) { m_playerLatenciesHasBeenSet = true; m_playerLatencies = std::forward<PlayerLatenciesT>(value); }
192 template<typename PlayerLatenciesT = Aws::Vector<PlayerLatency>>
193 GameSessionPlacement& WithPlayerLatencies(PlayerLatenciesT&& value) { SetPlayerLatencies(std::forward<PlayerLatenciesT>(value)); return *this;}
194 template<typename PlayerLatenciesT = PlayerLatency>
195 GameSessionPlacement& AddPlayerLatencies(PlayerLatenciesT&& value) { m_playerLatenciesHasBeenSet = true; m_playerLatencies.emplace_back(std::forward<PlayerLatenciesT>(value)); return *this; }
197
199
204 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
205 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
206 template<typename StartTimeT = Aws::Utils::DateTime>
207 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
208 template<typename StartTimeT = Aws::Utils::DateTime>
209 GameSessionPlacement& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
211
213
217 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
218 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
219 template<typename EndTimeT = Aws::Utils::DateTime>
220 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
221 template<typename EndTimeT = Aws::Utils::DateTime>
222 GameSessionPlacement& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
224
226
231 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
232 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
233 template<typename IpAddressT = Aws::String>
234 void SetIpAddress(IpAddressT&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::forward<IpAddressT>(value); }
235 template<typename IpAddressT = Aws::String>
236 GameSessionPlacement& WithIpAddress(IpAddressT&& value) { SetIpAddress(std::forward<IpAddressT>(value)); return *this;}
238
240
252 inline const Aws::String& GetDnsName() const { return m_dnsName; }
253 inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
254 template<typename DnsNameT = Aws::String>
255 void SetDnsName(DnsNameT&& value) { m_dnsNameHasBeenSet = true; m_dnsName = std::forward<DnsNameT>(value); }
256 template<typename DnsNameT = Aws::String>
257 GameSessionPlacement& WithDnsName(DnsNameT&& value) { SetDnsName(std::forward<DnsNameT>(value)); return *this;}
259
261
266 inline int GetPort() const { return m_port; }
267 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
268 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
269 inline GameSessionPlacement& WithPort(int value) { SetPort(value); return *this;}
271
273
280 inline const Aws::Vector<PlacedPlayerSession>& GetPlacedPlayerSessions() const { return m_placedPlayerSessions; }
281 inline bool PlacedPlayerSessionsHasBeenSet() const { return m_placedPlayerSessionsHasBeenSet; }
282 template<typename PlacedPlayerSessionsT = Aws::Vector<PlacedPlayerSession>>
283 void SetPlacedPlayerSessions(PlacedPlayerSessionsT&& value) { m_placedPlayerSessionsHasBeenSet = true; m_placedPlayerSessions = std::forward<PlacedPlayerSessionsT>(value); }
284 template<typename PlacedPlayerSessionsT = Aws::Vector<PlacedPlayerSession>>
285 GameSessionPlacement& WithPlacedPlayerSessions(PlacedPlayerSessionsT&& value) { SetPlacedPlayerSessions(std::forward<PlacedPlayerSessionsT>(value)); return *this;}
286 template<typename PlacedPlayerSessionsT = PlacedPlayerSession>
287 GameSessionPlacement& AddPlacedPlayerSessions(PlacedPlayerSessionsT&& value) { m_placedPlayerSessionsHasBeenSet = true; m_placedPlayerSessions.emplace_back(std::forward<PlacedPlayerSessionsT>(value)); return *this; }
289
291
298 inline const Aws::String& GetGameSessionData() const { return m_gameSessionData; }
299 inline bool GameSessionDataHasBeenSet() const { return m_gameSessionDataHasBeenSet; }
300 template<typename GameSessionDataT = Aws::String>
301 void SetGameSessionData(GameSessionDataT&& value) { m_gameSessionDataHasBeenSet = true; m_gameSessionData = std::forward<GameSessionDataT>(value); }
302 template<typename GameSessionDataT = Aws::String>
303 GameSessionPlacement& WithGameSessionData(GameSessionDataT&& value) { SetGameSessionData(std::forward<GameSessionDataT>(value)); return *this;}
305
307
316 inline const Aws::String& GetMatchmakerData() const { return m_matchmakerData; }
317 inline bool MatchmakerDataHasBeenSet() const { return m_matchmakerDataHasBeenSet; }
318 template<typename MatchmakerDataT = Aws::String>
319 void SetMatchmakerData(MatchmakerDataT&& value) { m_matchmakerDataHasBeenSet = true; m_matchmakerData = std::forward<MatchmakerDataT>(value); }
320 template<typename MatchmakerDataT = Aws::String>
321 GameSessionPlacement& WithMatchmakerData(MatchmakerDataT&& value) { SetMatchmakerData(std::forward<MatchmakerDataT>(value)); return *this;}
323
325
333 inline const PriorityConfigurationOverride& GetPriorityConfigurationOverride() const { return m_priorityConfigurationOverride; }
334 inline bool PriorityConfigurationOverrideHasBeenSet() const { return m_priorityConfigurationOverrideHasBeenSet; }
335 template<typename PriorityConfigurationOverrideT = PriorityConfigurationOverride>
336 void SetPriorityConfigurationOverride(PriorityConfigurationOverrideT&& value) { m_priorityConfigurationOverrideHasBeenSet = true; m_priorityConfigurationOverride = std::forward<PriorityConfigurationOverrideT>(value); }
337 template<typename PriorityConfigurationOverrideT = PriorityConfigurationOverride>
338 GameSessionPlacement& WithPriorityConfigurationOverride(PriorityConfigurationOverrideT&& value) { SetPriorityConfigurationOverride(std::forward<PriorityConfigurationOverrideT>(value)); return *this;}
340 private:
341
342 Aws::String m_placementId;
343 bool m_placementIdHasBeenSet = false;
344
345 Aws::String m_gameSessionQueueName;
346 bool m_gameSessionQueueNameHasBeenSet = false;
347
349 bool m_statusHasBeenSet = false;
350
351 Aws::Vector<GameProperty> m_gameProperties;
352 bool m_gamePropertiesHasBeenSet = false;
353
354 int m_maximumPlayerSessionCount{0};
355 bool m_maximumPlayerSessionCountHasBeenSet = false;
356
357 Aws::String m_gameSessionName;
358 bool m_gameSessionNameHasBeenSet = false;
359
360 Aws::String m_gameSessionId;
361 bool m_gameSessionIdHasBeenSet = false;
362
363 Aws::String m_gameSessionArn;
364 bool m_gameSessionArnHasBeenSet = false;
365
366 Aws::String m_gameSessionRegion;
367 bool m_gameSessionRegionHasBeenSet = false;
368
369 Aws::Vector<PlayerLatency> m_playerLatencies;
370 bool m_playerLatenciesHasBeenSet = false;
371
372 Aws::Utils::DateTime m_startTime{};
373 bool m_startTimeHasBeenSet = false;
374
375 Aws::Utils::DateTime m_endTime{};
376 bool m_endTimeHasBeenSet = false;
377
378 Aws::String m_ipAddress;
379 bool m_ipAddressHasBeenSet = false;
380
381 Aws::String m_dnsName;
382 bool m_dnsNameHasBeenSet = false;
383
384 int m_port{0};
385 bool m_portHasBeenSet = false;
386
387 Aws::Vector<PlacedPlayerSession> m_placedPlayerSessions;
388 bool m_placedPlayerSessionsHasBeenSet = false;
389
390 Aws::String m_gameSessionData;
391 bool m_gameSessionDataHasBeenSet = false;
392
393 Aws::String m_matchmakerData;
394 bool m_matchmakerDataHasBeenSet = false;
395
396 PriorityConfigurationOverride m_priorityConfigurationOverride;
397 bool m_priorityConfigurationOverrideHasBeenSet = false;
398 };
399
400} // namespace Model
401} // namespace GameLift
402} // 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