AWS SDK for C++  1.8.7
AWS SDK for C++
StartGameSessionPlacementRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace GameLift
19 {
20 namespace Model
21 {
22 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "StartGameSessionPlacement"; }
38 
39  Aws::String SerializePayload() const override;
40 
41  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
42 
43 
50  inline const Aws::String& GetPlacementId() const{ return m_placementId; }
51 
58  inline bool PlacementIdHasBeenSet() const { return m_placementIdHasBeenSet; }
59 
66  inline void SetPlacementId(const Aws::String& value) { m_placementIdHasBeenSet = true; m_placementId = value; }
67 
74  inline void SetPlacementId(Aws::String&& value) { m_placementIdHasBeenSet = true; m_placementId = std::move(value); }
75 
82  inline void SetPlacementId(const char* value) { m_placementIdHasBeenSet = true; m_placementId.assign(value); }
83 
90  inline StartGameSessionPlacementRequest& WithPlacementId(const Aws::String& value) { SetPlacementId(value); return *this;}
91 
98  inline StartGameSessionPlacementRequest& WithPlacementId(Aws::String&& value) { SetPlacementId(std::move(value)); return *this;}
99 
106  inline StartGameSessionPlacementRequest& WithPlacementId(const char* value) { SetPlacementId(value); return *this;}
107 
108 
113  inline const Aws::String& GetGameSessionQueueName() const{ return m_gameSessionQueueName; }
114 
119  inline bool GameSessionQueueNameHasBeenSet() const { return m_gameSessionQueueNameHasBeenSet; }
120 
125  inline void SetGameSessionQueueName(const Aws::String& value) { m_gameSessionQueueNameHasBeenSet = true; m_gameSessionQueueName = value; }
126 
131  inline void SetGameSessionQueueName(Aws::String&& value) { m_gameSessionQueueNameHasBeenSet = true; m_gameSessionQueueName = std::move(value); }
132 
137  inline void SetGameSessionQueueName(const char* value) { m_gameSessionQueueNameHasBeenSet = true; m_gameSessionQueueName.assign(value); }
138 
143  inline StartGameSessionPlacementRequest& WithGameSessionQueueName(const Aws::String& value) { SetGameSessionQueueName(value); return *this;}
144 
149  inline StartGameSessionPlacementRequest& WithGameSessionQueueName(Aws::String&& value) { SetGameSessionQueueName(std::move(value)); return *this;}
150 
155  inline StartGameSessionPlacementRequest& WithGameSessionQueueName(const char* value) { SetGameSessionQueueName(value); return *this;}
156 
157 
165  inline const Aws::Vector<GameProperty>& GetGameProperties() const{ return m_gameProperties; }
166 
174  inline bool GamePropertiesHasBeenSet() const { return m_gamePropertiesHasBeenSet; }
175 
183  inline void SetGameProperties(const Aws::Vector<GameProperty>& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties = value; }
184 
192  inline void SetGameProperties(Aws::Vector<GameProperty>&& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties = std::move(value); }
193 
201  inline StartGameSessionPlacementRequest& WithGameProperties(const Aws::Vector<GameProperty>& value) { SetGameProperties(value); return *this;}
202 
210  inline StartGameSessionPlacementRequest& WithGameProperties(Aws::Vector<GameProperty>&& value) { SetGameProperties(std::move(value)); return *this;}
211 
219  inline StartGameSessionPlacementRequest& AddGameProperties(const GameProperty& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties.push_back(value); return *this; }
220 
228  inline StartGameSessionPlacementRequest& AddGameProperties(GameProperty&& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties.push_back(std::move(value)); return *this; }
229 
230 
235  inline int GetMaximumPlayerSessionCount() const{ return m_maximumPlayerSessionCount; }
236 
241  inline bool MaximumPlayerSessionCountHasBeenSet() const { return m_maximumPlayerSessionCountHasBeenSet; }
242 
247  inline void SetMaximumPlayerSessionCount(int value) { m_maximumPlayerSessionCountHasBeenSet = true; m_maximumPlayerSessionCount = value; }
248 
253  inline StartGameSessionPlacementRequest& WithMaximumPlayerSessionCount(int value) { SetMaximumPlayerSessionCount(value); return *this;}
254 
255 
260  inline const Aws::String& GetGameSessionName() const{ return m_gameSessionName; }
261 
266  inline bool GameSessionNameHasBeenSet() const { return m_gameSessionNameHasBeenSet; }
267 
272  inline void SetGameSessionName(const Aws::String& value) { m_gameSessionNameHasBeenSet = true; m_gameSessionName = value; }
273 
278  inline void SetGameSessionName(Aws::String&& value) { m_gameSessionNameHasBeenSet = true; m_gameSessionName = std::move(value); }
279 
284  inline void SetGameSessionName(const char* value) { m_gameSessionNameHasBeenSet = true; m_gameSessionName.assign(value); }
285 
290  inline StartGameSessionPlacementRequest& WithGameSessionName(const Aws::String& value) { SetGameSessionName(value); return *this;}
291 
296  inline StartGameSessionPlacementRequest& WithGameSessionName(Aws::String&& value) { SetGameSessionName(std::move(value)); return *this;}
297 
302  inline StartGameSessionPlacementRequest& WithGameSessionName(const char* value) { SetGameSessionName(value); return *this;}
303 
304 
311  inline const Aws::Vector<PlayerLatency>& GetPlayerLatencies() const{ return m_playerLatencies; }
312 
319  inline bool PlayerLatenciesHasBeenSet() const { return m_playerLatenciesHasBeenSet; }
320 
327  inline void SetPlayerLatencies(const Aws::Vector<PlayerLatency>& value) { m_playerLatenciesHasBeenSet = true; m_playerLatencies = value; }
328 
335  inline void SetPlayerLatencies(Aws::Vector<PlayerLatency>&& value) { m_playerLatenciesHasBeenSet = true; m_playerLatencies = std::move(value); }
336 
343  inline StartGameSessionPlacementRequest& WithPlayerLatencies(const Aws::Vector<PlayerLatency>& value) { SetPlayerLatencies(value); return *this;}
344 
351  inline StartGameSessionPlacementRequest& WithPlayerLatencies(Aws::Vector<PlayerLatency>&& value) { SetPlayerLatencies(std::move(value)); return *this;}
352 
359  inline StartGameSessionPlacementRequest& AddPlayerLatencies(const PlayerLatency& value) { m_playerLatenciesHasBeenSet = true; m_playerLatencies.push_back(value); return *this; }
360 
367  inline StartGameSessionPlacementRequest& AddPlayerLatencies(PlayerLatency&& value) { m_playerLatenciesHasBeenSet = true; m_playerLatencies.push_back(std::move(value)); return *this; }
368 
369 
373  inline const Aws::Vector<DesiredPlayerSession>& GetDesiredPlayerSessions() const{ return m_desiredPlayerSessions; }
374 
378  inline bool DesiredPlayerSessionsHasBeenSet() const { return m_desiredPlayerSessionsHasBeenSet; }
379 
383  inline void SetDesiredPlayerSessions(const Aws::Vector<DesiredPlayerSession>& value) { m_desiredPlayerSessionsHasBeenSet = true; m_desiredPlayerSessions = value; }
384 
388  inline void SetDesiredPlayerSessions(Aws::Vector<DesiredPlayerSession>&& value) { m_desiredPlayerSessionsHasBeenSet = true; m_desiredPlayerSessions = std::move(value); }
389 
393  inline StartGameSessionPlacementRequest& WithDesiredPlayerSessions(const Aws::Vector<DesiredPlayerSession>& value) { SetDesiredPlayerSessions(value); return *this;}
394 
398  inline StartGameSessionPlacementRequest& WithDesiredPlayerSessions(Aws::Vector<DesiredPlayerSession>&& value) { SetDesiredPlayerSessions(std::move(value)); return *this;}
399 
403  inline StartGameSessionPlacementRequest& AddDesiredPlayerSessions(const DesiredPlayerSession& value) { m_desiredPlayerSessionsHasBeenSet = true; m_desiredPlayerSessions.push_back(value); return *this; }
404 
408  inline StartGameSessionPlacementRequest& AddDesiredPlayerSessions(DesiredPlayerSession&& value) { m_desiredPlayerSessionsHasBeenSet = true; m_desiredPlayerSessions.push_back(std::move(value)); return *this; }
409 
410 
418  inline const Aws::String& GetGameSessionData() const{ return m_gameSessionData; }
419 
427  inline bool GameSessionDataHasBeenSet() const { return m_gameSessionDataHasBeenSet; }
428 
436  inline void SetGameSessionData(const Aws::String& value) { m_gameSessionDataHasBeenSet = true; m_gameSessionData = value; }
437 
445  inline void SetGameSessionData(Aws::String&& value) { m_gameSessionDataHasBeenSet = true; m_gameSessionData = std::move(value); }
446 
454  inline void SetGameSessionData(const char* value) { m_gameSessionDataHasBeenSet = true; m_gameSessionData.assign(value); }
455 
463  inline StartGameSessionPlacementRequest& WithGameSessionData(const Aws::String& value) { SetGameSessionData(value); return *this;}
464 
472  inline StartGameSessionPlacementRequest& WithGameSessionData(Aws::String&& value) { SetGameSessionData(std::move(value)); return *this;}
473 
481  inline StartGameSessionPlacementRequest& WithGameSessionData(const char* value) { SetGameSessionData(value); return *this;}
482 
483  private:
484 
485  Aws::String m_placementId;
486  bool m_placementIdHasBeenSet;
487 
488  Aws::String m_gameSessionQueueName;
489  bool m_gameSessionQueueNameHasBeenSet;
490 
491  Aws::Vector<GameProperty> m_gameProperties;
492  bool m_gamePropertiesHasBeenSet;
493 
494  int m_maximumPlayerSessionCount;
495  bool m_maximumPlayerSessionCountHasBeenSet;
496 
497  Aws::String m_gameSessionName;
498  bool m_gameSessionNameHasBeenSet;
499 
500  Aws::Vector<PlayerLatency> m_playerLatencies;
501  bool m_playerLatenciesHasBeenSet;
502 
503  Aws::Vector<DesiredPlayerSession> m_desiredPlayerSessions;
504  bool m_desiredPlayerSessionsHasBeenSet;
505 
506  Aws::String m_gameSessionData;
507  bool m_gameSessionDataHasBeenSet;
508  };
509 
510 } // namespace Model
511 } // namespace GameLift
512 } // namespace Aws
StartGameSessionPlacementRequest & AddPlayerLatencies(PlayerLatency &&value)
void SetDesiredPlayerSessions(const Aws::Vector< DesiredPlayerSession > &value)
#define AWS_GAMELIFT_API
StartGameSessionPlacementRequest & WithDesiredPlayerSessions(const Aws::Vector< DesiredPlayerSession > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
StartGameSessionPlacementRequest & AddDesiredPlayerSessions(const DesiredPlayerSession &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
StartGameSessionPlacementRequest & WithGameProperties(Aws::Vector< GameProperty > &&value)
StartGameSessionPlacementRequest & WithPlacementId(Aws::String &&value)
StartGameSessionPlacementRequest & WithGameSessionQueueName(const char *value)
StartGameSessionPlacementRequest & WithGameSessionQueueName(const Aws::String &value)
StartGameSessionPlacementRequest & WithPlacementId(const Aws::String &value)
StartGameSessionPlacementRequest & WithGameSessionName(const char *value)
StartGameSessionPlacementRequest & AddGameProperties(GameProperty &&value)
StartGameSessionPlacementRequest & WithGameSessionData(const char *value)
void SetPlayerLatencies(const Aws::Vector< PlayerLatency > &value)
StartGameSessionPlacementRequest & WithGameSessionName(Aws::String &&value)
StartGameSessionPlacementRequest & AddPlayerLatencies(const PlayerLatency &value)
StartGameSessionPlacementRequest & WithPlayerLatencies(Aws::Vector< PlayerLatency > &&value)
void SetDesiredPlayerSessions(Aws::Vector< DesiredPlayerSession > &&value)
StartGameSessionPlacementRequest & WithGameSessionData(const Aws::String &value)
StartGameSessionPlacementRequest & WithGameSessionQueueName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
StartGameSessionPlacementRequest & WithDesiredPlayerSessions(Aws::Vector< DesiredPlayerSession > &&value)
StartGameSessionPlacementRequest & AddGameProperties(const GameProperty &value)
StartGameSessionPlacementRequest & WithGameProperties(const Aws::Vector< GameProperty > &value)
const Aws::Vector< DesiredPlayerSession > & GetDesiredPlayerSessions() const
StartGameSessionPlacementRequest & WithPlayerLatencies(const Aws::Vector< PlayerLatency > &value)
void SetGameProperties(const Aws::Vector< GameProperty > &value)
StartGameSessionPlacementRequest & WithGameSessionName(const Aws::String &value)
StartGameSessionPlacementRequest & AddDesiredPlayerSessions(DesiredPlayerSession &&value)
StartGameSessionPlacementRequest & WithGameSessionData(Aws::String &&value)
const Aws::Vector< PlayerLatency > & GetPlayerLatencies() const
StartGameSessionPlacementRequest & WithPlacementId(const char *value)
StartGameSessionPlacementRequest & WithMaximumPlayerSessionCount(int value)