AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/GameProperty.h>
13#include <aws/gamelift/model/PlayerLatency.h>
14#include <aws/gamelift/model/PlacedPlayerSession.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace GameLift
28{
29namespace Model
30{
31
47 {
48 public:
49 AWS_GAMELIFT_API GameSessionPlacement();
52 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
53
54
56
59 inline const Aws::String& GetPlacementId() const{ return m_placementId; }
60 inline bool PlacementIdHasBeenSet() const { return m_placementIdHasBeenSet; }
61 inline void SetPlacementId(const Aws::String& value) { m_placementIdHasBeenSet = true; m_placementId = value; }
62 inline void SetPlacementId(Aws::String&& value) { m_placementIdHasBeenSet = true; m_placementId = std::move(value); }
63 inline void SetPlacementId(const char* value) { m_placementIdHasBeenSet = true; m_placementId.assign(value); }
64 inline GameSessionPlacement& WithPlacementId(const Aws::String& value) { SetPlacementId(value); return *this;}
65 inline GameSessionPlacement& WithPlacementId(Aws::String&& value) { SetPlacementId(std::move(value)); return *this;}
66 inline GameSessionPlacement& WithPlacementId(const char* value) { SetPlacementId(value); return *this;}
68
70
74 inline const Aws::String& GetGameSessionQueueName() const{ return m_gameSessionQueueName; }
75 inline bool GameSessionQueueNameHasBeenSet() const { return m_gameSessionQueueNameHasBeenSet; }
76 inline void SetGameSessionQueueName(const Aws::String& value) { m_gameSessionQueueNameHasBeenSet = true; m_gameSessionQueueName = value; }
77 inline void SetGameSessionQueueName(Aws::String&& value) { m_gameSessionQueueNameHasBeenSet = true; m_gameSessionQueueName = std::move(value); }
78 inline void SetGameSessionQueueName(const char* value) { m_gameSessionQueueNameHasBeenSet = true; m_gameSessionQueueName.assign(value); }
80 inline GameSessionPlacement& WithGameSessionQueueName(Aws::String&& value) { SetGameSessionQueueName(std::move(value)); return *this;}
81 inline GameSessionPlacement& WithGameSessionQueueName(const char* value) { SetGameSessionQueueName(value); return *this;}
83
85
98 inline const GameSessionPlacementState& GetStatus() const{ return m_status; }
99 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
100 inline void SetStatus(const GameSessionPlacementState& value) { m_statusHasBeenSet = true; m_status = value; }
101 inline void SetStatus(GameSessionPlacementState&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
102 inline GameSessionPlacement& WithStatus(const GameSessionPlacementState& value) { SetStatus(value); return *this;}
103 inline GameSessionPlacement& WithStatus(GameSessionPlacementState&& value) { SetStatus(std::move(value)); return *this;}
105
107
111 inline const Aws::Vector<GameProperty>& GetGameProperties() const{ return m_gameProperties; }
112 inline bool GamePropertiesHasBeenSet() const { return m_gamePropertiesHasBeenSet; }
113 inline void SetGameProperties(const Aws::Vector<GameProperty>& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties = value; }
114 inline void SetGameProperties(Aws::Vector<GameProperty>&& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties = std::move(value); }
116 inline GameSessionPlacement& WithGameProperties(Aws::Vector<GameProperty>&& value) { SetGameProperties(std::move(value)); return *this;}
117 inline GameSessionPlacement& AddGameProperties(const GameProperty& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties.push_back(value); return *this; }
118 inline GameSessionPlacement& AddGameProperties(GameProperty&& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties.push_back(std::move(value)); return *this; }
120
122
126 inline int GetMaximumPlayerSessionCount() const{ return m_maximumPlayerSessionCount; }
127 inline bool MaximumPlayerSessionCountHasBeenSet() const { return m_maximumPlayerSessionCountHasBeenSet; }
128 inline void SetMaximumPlayerSessionCount(int value) { m_maximumPlayerSessionCountHasBeenSet = true; m_maximumPlayerSessionCount = value; }
131
133
137 inline const Aws::String& GetGameSessionName() const{ return m_gameSessionName; }
138 inline bool GameSessionNameHasBeenSet() const { return m_gameSessionNameHasBeenSet; }
139 inline void SetGameSessionName(const Aws::String& value) { m_gameSessionNameHasBeenSet = true; m_gameSessionName = value; }
140 inline void SetGameSessionName(Aws::String&& value) { m_gameSessionNameHasBeenSet = true; m_gameSessionName = std::move(value); }
141 inline void SetGameSessionName(const char* value) { m_gameSessionNameHasBeenSet = true; m_gameSessionName.assign(value); }
142 inline GameSessionPlacement& WithGameSessionName(const Aws::String& value) { SetGameSessionName(value); return *this;}
143 inline GameSessionPlacement& WithGameSessionName(Aws::String&& value) { SetGameSessionName(std::move(value)); return *this;}
144 inline GameSessionPlacement& WithGameSessionName(const char* value) { SetGameSessionName(value); return *this;}
146
148
152 inline const Aws::String& GetGameSessionId() const{ return m_gameSessionId; }
153 inline bool GameSessionIdHasBeenSet() const { return m_gameSessionIdHasBeenSet; }
154 inline void SetGameSessionId(const Aws::String& value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId = value; }
155 inline void SetGameSessionId(Aws::String&& value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId = std::move(value); }
156 inline void SetGameSessionId(const char* value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId.assign(value); }
157 inline GameSessionPlacement& WithGameSessionId(const Aws::String& value) { SetGameSessionId(value); return *this;}
158 inline GameSessionPlacement& WithGameSessionId(Aws::String&& value) { SetGameSessionId(std::move(value)); return *this;}
159 inline GameSessionPlacement& WithGameSessionId(const char* value) { SetGameSessionId(value); return *this;}
161
163
168 inline const Aws::String& GetGameSessionArn() const{ return m_gameSessionArn; }
169 inline bool GameSessionArnHasBeenSet() const { return m_gameSessionArnHasBeenSet; }
170 inline void SetGameSessionArn(const Aws::String& value) { m_gameSessionArnHasBeenSet = true; m_gameSessionArn = value; }
171 inline void SetGameSessionArn(Aws::String&& value) { m_gameSessionArnHasBeenSet = true; m_gameSessionArn = std::move(value); }
172 inline void SetGameSessionArn(const char* value) { m_gameSessionArnHasBeenSet = true; m_gameSessionArn.assign(value); }
173 inline GameSessionPlacement& WithGameSessionArn(const Aws::String& value) { SetGameSessionArn(value); return *this;}
174 inline GameSessionPlacement& WithGameSessionArn(Aws::String&& value) { SetGameSessionArn(std::move(value)); return *this;}
175 inline GameSessionPlacement& WithGameSessionArn(const char* value) { SetGameSessionArn(value); return *this;}
177
179
184 inline const Aws::String& GetGameSessionRegion() const{ return m_gameSessionRegion; }
185 inline bool GameSessionRegionHasBeenSet() const { return m_gameSessionRegionHasBeenSet; }
186 inline void SetGameSessionRegion(const Aws::String& value) { m_gameSessionRegionHasBeenSet = true; m_gameSessionRegion = value; }
187 inline void SetGameSessionRegion(Aws::String&& value) { m_gameSessionRegionHasBeenSet = true; m_gameSessionRegion = std::move(value); }
188 inline void SetGameSessionRegion(const char* value) { m_gameSessionRegionHasBeenSet = true; m_gameSessionRegion.assign(value); }
189 inline GameSessionPlacement& WithGameSessionRegion(const Aws::String& value) { SetGameSessionRegion(value); return *this;}
190 inline GameSessionPlacement& WithGameSessionRegion(Aws::String&& value) { SetGameSessionRegion(std::move(value)); return *this;}
191 inline GameSessionPlacement& WithGameSessionRegion(const char* value) { SetGameSessionRegion(value); return *this;}
193
195
200 inline const Aws::Vector<PlayerLatency>& GetPlayerLatencies() const{ return m_playerLatencies; }
201 inline bool PlayerLatenciesHasBeenSet() const { return m_playerLatenciesHasBeenSet; }
202 inline void SetPlayerLatencies(const Aws::Vector<PlayerLatency>& value) { m_playerLatenciesHasBeenSet = true; m_playerLatencies = value; }
203 inline void SetPlayerLatencies(Aws::Vector<PlayerLatency>&& value) { m_playerLatenciesHasBeenSet = true; m_playerLatencies = std::move(value); }
206 inline GameSessionPlacement& AddPlayerLatencies(const PlayerLatency& value) { m_playerLatenciesHasBeenSet = true; m_playerLatencies.push_back(value); return *this; }
207 inline GameSessionPlacement& AddPlayerLatencies(PlayerLatency&& value) { m_playerLatenciesHasBeenSet = true; m_playerLatencies.push_back(std::move(value)); return *this; }
209
211
216 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
217 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
218 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
219 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
220 inline GameSessionPlacement& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
221 inline GameSessionPlacement& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
223
225
229 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
230 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
231 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
232 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
233 inline GameSessionPlacement& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
234 inline GameSessionPlacement& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
236
238
243 inline const Aws::String& GetIpAddress() const{ return m_ipAddress; }
244 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
245 inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
246 inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::move(value); }
247 inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); }
248 inline GameSessionPlacement& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;}
249 inline GameSessionPlacement& WithIpAddress(Aws::String&& value) { SetIpAddress(std::move(value)); return *this;}
250 inline GameSessionPlacement& WithIpAddress(const char* value) { SetIpAddress(value); return *this;}
252
254
266 inline const Aws::String& GetDnsName() const{ return m_dnsName; }
267 inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
268 inline void SetDnsName(const Aws::String& value) { m_dnsNameHasBeenSet = true; m_dnsName = value; }
269 inline void SetDnsName(Aws::String&& value) { m_dnsNameHasBeenSet = true; m_dnsName = std::move(value); }
270 inline void SetDnsName(const char* value) { m_dnsNameHasBeenSet = true; m_dnsName.assign(value); }
271 inline GameSessionPlacement& WithDnsName(const Aws::String& value) { SetDnsName(value); return *this;}
272 inline GameSessionPlacement& WithDnsName(Aws::String&& value) { SetDnsName(std::move(value)); return *this;}
273 inline GameSessionPlacement& WithDnsName(const char* value) { SetDnsName(value); return *this;}
275
277
282 inline int GetPort() const{ return m_port; }
283 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
284 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
285 inline GameSessionPlacement& WithPort(int value) { SetPort(value); return *this;}
287
289
296 inline const Aws::Vector<PlacedPlayerSession>& GetPlacedPlayerSessions() const{ return m_placedPlayerSessions; }
297 inline bool PlacedPlayerSessionsHasBeenSet() const { return m_placedPlayerSessionsHasBeenSet; }
298 inline void SetPlacedPlayerSessions(const Aws::Vector<PlacedPlayerSession>& value) { m_placedPlayerSessionsHasBeenSet = true; m_placedPlayerSessions = value; }
299 inline void SetPlacedPlayerSessions(Aws::Vector<PlacedPlayerSession>&& value) { m_placedPlayerSessionsHasBeenSet = true; m_placedPlayerSessions = std::move(value); }
302 inline GameSessionPlacement& AddPlacedPlayerSessions(const PlacedPlayerSession& value) { m_placedPlayerSessionsHasBeenSet = true; m_placedPlayerSessions.push_back(value); return *this; }
303 inline GameSessionPlacement& AddPlacedPlayerSessions(PlacedPlayerSession&& value) { m_placedPlayerSessionsHasBeenSet = true; m_placedPlayerSessions.push_back(std::move(value)); return *this; }
305
307
314 inline const Aws::String& GetGameSessionData() const{ return m_gameSessionData; }
315 inline bool GameSessionDataHasBeenSet() const { return m_gameSessionDataHasBeenSet; }
316 inline void SetGameSessionData(const Aws::String& value) { m_gameSessionDataHasBeenSet = true; m_gameSessionData = value; }
317 inline void SetGameSessionData(Aws::String&& value) { m_gameSessionDataHasBeenSet = true; m_gameSessionData = std::move(value); }
318 inline void SetGameSessionData(const char* value) { m_gameSessionDataHasBeenSet = true; m_gameSessionData.assign(value); }
319 inline GameSessionPlacement& WithGameSessionData(const Aws::String& value) { SetGameSessionData(value); return *this;}
320 inline GameSessionPlacement& WithGameSessionData(Aws::String&& value) { SetGameSessionData(std::move(value)); return *this;}
321 inline GameSessionPlacement& WithGameSessionData(const char* value) { SetGameSessionData(value); return *this;}
323
325
334 inline const Aws::String& GetMatchmakerData() const{ return m_matchmakerData; }
335 inline bool MatchmakerDataHasBeenSet() const { return m_matchmakerDataHasBeenSet; }
336 inline void SetMatchmakerData(const Aws::String& value) { m_matchmakerDataHasBeenSet = true; m_matchmakerData = value; }
337 inline void SetMatchmakerData(Aws::String&& value) { m_matchmakerDataHasBeenSet = true; m_matchmakerData = std::move(value); }
338 inline void SetMatchmakerData(const char* value) { m_matchmakerDataHasBeenSet = true; m_matchmakerData.assign(value); }
339 inline GameSessionPlacement& WithMatchmakerData(const Aws::String& value) { SetMatchmakerData(value); return *this;}
340 inline GameSessionPlacement& WithMatchmakerData(Aws::String&& value) { SetMatchmakerData(std::move(value)); return *this;}
341 inline GameSessionPlacement& WithMatchmakerData(const char* value) { SetMatchmakerData(value); return *this;}
343 private:
344
345 Aws::String m_placementId;
346 bool m_placementIdHasBeenSet = false;
347
348 Aws::String m_gameSessionQueueName;
349 bool m_gameSessionQueueNameHasBeenSet = false;
350
352 bool m_statusHasBeenSet = false;
353
354 Aws::Vector<GameProperty> m_gameProperties;
355 bool m_gamePropertiesHasBeenSet = false;
356
357 int m_maximumPlayerSessionCount;
358 bool m_maximumPlayerSessionCountHasBeenSet = false;
359
360 Aws::String m_gameSessionName;
361 bool m_gameSessionNameHasBeenSet = false;
362
363 Aws::String m_gameSessionId;
364 bool m_gameSessionIdHasBeenSet = false;
365
366 Aws::String m_gameSessionArn;
367 bool m_gameSessionArnHasBeenSet = false;
368
369 Aws::String m_gameSessionRegion;
370 bool m_gameSessionRegionHasBeenSet = false;
371
372 Aws::Vector<PlayerLatency> m_playerLatencies;
373 bool m_playerLatenciesHasBeenSet = false;
374
375 Aws::Utils::DateTime m_startTime;
376 bool m_startTimeHasBeenSet = false;
377
378 Aws::Utils::DateTime m_endTime;
379 bool m_endTimeHasBeenSet = false;
380
381 Aws::String m_ipAddress;
382 bool m_ipAddressHasBeenSet = false;
383
384 Aws::String m_dnsName;
385 bool m_dnsNameHasBeenSet = false;
386
387 int m_port;
388 bool m_portHasBeenSet = false;
389
390 Aws::Vector<PlacedPlayerSession> m_placedPlayerSessions;
391 bool m_placedPlayerSessionsHasBeenSet = false;
392
393 Aws::String m_gameSessionData;
394 bool m_gameSessionDataHasBeenSet = false;
395
396 Aws::String m_matchmakerData;
397 bool m_matchmakerDataHasBeenSet = false;
398 };
399
400} // namespace Model
401} // namespace GameLift
402} // namespace Aws
GameSessionPlacement & WithGameSessionArn(const Aws::String &value)
GameSessionPlacement & AddPlacedPlayerSessions(const PlacedPlayerSession &value)
void SetPlayerLatencies(const Aws::Vector< PlayerLatency > &value)
void SetStartTime(const Aws::Utils::DateTime &value)
GameSessionPlacement & WithStartTime(Aws::Utils::DateTime &&value)
void SetGameSessionArn(const Aws::String &value)
GameSessionPlacement & WithGameSessionData(const Aws::String &value)
AWS_GAMELIFT_API GameSessionPlacement & operator=(Aws::Utils::Json::JsonView jsonValue)
GameSessionPlacement & AddGameProperties(const GameProperty &value)
void SetPlayerLatencies(Aws::Vector< PlayerLatency > &&value)
const Aws::Utils::DateTime & GetEndTime() const
GameSessionPlacement & WithGameSessionQueueName(const char *value)
GameSessionPlacement & WithPlacementId(const char *value)
const Aws::String & GetGameSessionQueueName() const
GameSessionPlacement & WithGameSessionId(Aws::String &&value)
const Aws::Vector< PlacedPlayerSession > & GetPlacedPlayerSessions() const
const Aws::Vector< GameProperty > & GetGameProperties() const
GameSessionPlacement & WithIpAddress(const char *value)
GameSessionPlacement & WithGameSessionName(Aws::String &&value)
GameSessionPlacement & WithGameSessionArn(const char *value)
void SetStartTime(Aws::Utils::DateTime &&value)
GameSessionPlacement & AddPlacedPlayerSessions(PlacedPlayerSession &&value)
void SetStatus(GameSessionPlacementState &&value)
GameSessionPlacement & WithMatchmakerData(const char *value)
GameSessionPlacement & WithDnsName(const Aws::String &value)
GameSessionPlacement & WithDnsName(const char *value)
GameSessionPlacement & WithMatchmakerData(const Aws::String &value)
void SetPlacedPlayerSessions(const Aws::Vector< PlacedPlayerSession > &value)
GameSessionPlacement & WithGameSessionId(const Aws::String &value)
GameSessionPlacement & WithMatchmakerData(Aws::String &&value)
GameSessionPlacement & WithStatus(GameSessionPlacementState &&value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEndTime(Aws::Utils::DateTime &&value)
GameSessionPlacement & WithGameProperties(Aws::Vector< GameProperty > &&value)
void SetGameProperties(const Aws::Vector< GameProperty > &value)
void SetGameSessionData(const Aws::String &value)
GameSessionPlacement & WithGameProperties(const Aws::Vector< GameProperty > &value)
void SetGameSessionRegion(const Aws::String &value)
void SetGameSessionQueueName(const Aws::String &value)
void SetGameProperties(Aws::Vector< GameProperty > &&value)
GameSessionPlacement & WithStartTime(const Aws::Utils::DateTime &value)
void SetGameSessionName(const Aws::String &value)
GameSessionPlacement & WithGameSessionQueueName(const Aws::String &value)
GameSessionPlacement & WithPlacementId(const Aws::String &value)
GameSessionPlacement & WithGameSessionRegion(Aws::String &&value)
GameSessionPlacement & WithGameSessionRegion(const char *value)
const GameSessionPlacementState & GetStatus() const
const Aws::Vector< PlayerLatency > & GetPlayerLatencies() const
void SetGameSessionId(const Aws::String &value)
GameSessionPlacement & WithGameSessionId(const char *value)
void SetEndTime(const Aws::Utils::DateTime &value)
GameSessionPlacement & WithGameSessionArn(Aws::String &&value)
void SetPlacedPlayerSessions(Aws::Vector< PlacedPlayerSession > &&value)
void SetStatus(const GameSessionPlacementState &value)
GameSessionPlacement & WithGameSessionName(const char *value)
AWS_GAMELIFT_API GameSessionPlacement(Aws::Utils::Json::JsonView jsonValue)
GameSessionPlacement & WithDnsName(Aws::String &&value)
GameSessionPlacement & AddGameProperties(GameProperty &&value)
GameSessionPlacement & AddPlayerLatencies(PlayerLatency &&value)
GameSessionPlacement & WithPlacedPlayerSessions(Aws::Vector< PlacedPlayerSession > &&value)
GameSessionPlacement & AddPlayerLatencies(const PlayerLatency &value)
GameSessionPlacement & WithStatus(const GameSessionPlacementState &value)
GameSessionPlacement & WithPlayerLatencies(Aws::Vector< PlayerLatency > &&value)
GameSessionPlacement & WithGameSessionData(const char *value)
const Aws::Utils::DateTime & GetStartTime() const
GameSessionPlacement & WithIpAddress(Aws::String &&value)
void SetMatchmakerData(const Aws::String &value)
GameSessionPlacement & WithGameSessionData(Aws::String &&value)
GameSessionPlacement & WithIpAddress(const Aws::String &value)
GameSessionPlacement & WithPlacedPlayerSessions(const Aws::Vector< PlacedPlayerSession > &value)
void SetPlacementId(const Aws::String &value)
GameSessionPlacement & WithGameSessionName(const Aws::String &value)
GameSessionPlacement & WithMaximumPlayerSessionCount(int value)
GameSessionPlacement & WithEndTime(Aws::Utils::DateTime &&value)
GameSessionPlacement & WithPlacementId(Aws::String &&value)
GameSessionPlacement & WithGameSessionQueueName(Aws::String &&value)
GameSessionPlacement & WithPlayerLatencies(const Aws::Vector< PlayerLatency > &value)
GameSessionPlacement & WithPort(int value)
GameSessionPlacement & WithGameSessionRegion(const Aws::String &value)
GameSessionPlacement & WithEndTime(const Aws::Utils::DateTime &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