AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
StartGameSessionPlacementRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/gamelift/GameLiftRequest.h>
10#include <aws/gamelift/GameLift_EXPORTS.h>
11#include <aws/gamelift/model/DesiredPlayerSession.h>
12#include <aws/gamelift/model/GameProperty.h>
13#include <aws/gamelift/model/PlayerLatency.h>
14#include <aws/gamelift/model/PriorityConfigurationOverride.h>
15
16#include <utility>
17
18namespace Aws {
19namespace GameLift {
20namespace Model {
21
25 public:
26 AWS_GAMELIFT_API StartGameSessionPlacementRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "StartGameSessionPlacement"; }
33
34 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
35
37
39
44 inline const Aws::String& GetPlacementId() const { return m_placementId; }
45 inline bool PlacementIdHasBeenSet() const { return m_placementIdHasBeenSet; }
46 template <typename PlacementIdT = Aws::String>
47 void SetPlacementId(PlacementIdT&& value) {
48 m_placementIdHasBeenSet = true;
49 m_placementId = std::forward<PlacementIdT>(value);
50 }
51 template <typename PlacementIdT = Aws::String>
53 SetPlacementId(std::forward<PlacementIdT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetGameSessionQueueName() const { return m_gameSessionQueueName; }
64 inline bool GameSessionQueueNameHasBeenSet() const { return m_gameSessionQueueNameHasBeenSet; }
65 template <typename GameSessionQueueNameT = Aws::String>
66 void SetGameSessionQueueName(GameSessionQueueNameT&& value) {
67 m_gameSessionQueueNameHasBeenSet = true;
68 m_gameSessionQueueName = std::forward<GameSessionQueueNameT>(value);
69 }
70 template <typename GameSessionQueueNameT = Aws::String>
72 SetGameSessionQueueName(std::forward<GameSessionQueueNameT>(value));
73 return *this;
74 }
76
78
86 inline const Aws::Vector<GameProperty>& GetGameProperties() const { return m_gameProperties; }
87 inline bool GamePropertiesHasBeenSet() const { return m_gamePropertiesHasBeenSet; }
88 template <typename GamePropertiesT = Aws::Vector<GameProperty>>
89 void SetGameProperties(GamePropertiesT&& value) {
90 m_gamePropertiesHasBeenSet = true;
91 m_gameProperties = std::forward<GamePropertiesT>(value);
92 }
93 template <typename GamePropertiesT = Aws::Vector<GameProperty>>
95 SetGameProperties(std::forward<GamePropertiesT>(value));
96 return *this;
97 }
98 template <typename GamePropertiesT = GameProperty>
100 m_gamePropertiesHasBeenSet = true;
101 m_gameProperties.emplace_back(std::forward<GamePropertiesT>(value));
102 return *this;
103 }
105
107
111 inline int GetMaximumPlayerSessionCount() const { return m_maximumPlayerSessionCount; }
112 inline bool MaximumPlayerSessionCountHasBeenSet() const { return m_maximumPlayerSessionCountHasBeenSet; }
113 inline void SetMaximumPlayerSessionCount(int value) {
114 m_maximumPlayerSessionCountHasBeenSet = true;
115 m_maximumPlayerSessionCount = value;
116 }
119 return *this;
120 }
122
124
128 inline const Aws::String& GetGameSessionName() const { return m_gameSessionName; }
129 inline bool GameSessionNameHasBeenSet() const { return m_gameSessionNameHasBeenSet; }
130 template <typename GameSessionNameT = Aws::String>
131 void SetGameSessionName(GameSessionNameT&& value) {
132 m_gameSessionNameHasBeenSet = true;
133 m_gameSessionName = std::forward<GameSessionNameT>(value);
134 }
135 template <typename GameSessionNameT = Aws::String>
137 SetGameSessionName(std::forward<GameSessionNameT>(value));
138 return *this;
139 }
141
143
149 inline const Aws::Vector<PlayerLatency>& GetPlayerLatencies() const { return m_playerLatencies; }
150 inline bool PlayerLatenciesHasBeenSet() const { return m_playerLatenciesHasBeenSet; }
151 template <typename PlayerLatenciesT = Aws::Vector<PlayerLatency>>
152 void SetPlayerLatencies(PlayerLatenciesT&& value) {
153 m_playerLatenciesHasBeenSet = true;
154 m_playerLatencies = std::forward<PlayerLatenciesT>(value);
155 }
156 template <typename PlayerLatenciesT = Aws::Vector<PlayerLatency>>
158 SetPlayerLatencies(std::forward<PlayerLatenciesT>(value));
159 return *this;
160 }
161 template <typename PlayerLatenciesT = PlayerLatency>
163 m_playerLatenciesHasBeenSet = true;
164 m_playerLatencies.emplace_back(std::forward<PlayerLatenciesT>(value));
165 return *this;
166 }
168
170
173 inline const Aws::Vector<DesiredPlayerSession>& GetDesiredPlayerSessions() const { return m_desiredPlayerSessions; }
174 inline bool DesiredPlayerSessionsHasBeenSet() const { return m_desiredPlayerSessionsHasBeenSet; }
175 template <typename DesiredPlayerSessionsT = Aws::Vector<DesiredPlayerSession>>
176 void SetDesiredPlayerSessions(DesiredPlayerSessionsT&& value) {
177 m_desiredPlayerSessionsHasBeenSet = true;
178 m_desiredPlayerSessions = std::forward<DesiredPlayerSessionsT>(value);
179 }
180 template <typename DesiredPlayerSessionsT = Aws::Vector<DesiredPlayerSession>>
182 SetDesiredPlayerSessions(std::forward<DesiredPlayerSessionsT>(value));
183 return *this;
184 }
185 template <typename DesiredPlayerSessionsT = DesiredPlayerSession>
187 m_desiredPlayerSessionsHasBeenSet = true;
188 m_desiredPlayerSessions.emplace_back(std::forward<DesiredPlayerSessionsT>(value));
189 return *this;
190 }
192
194
201 inline const Aws::String& GetGameSessionData() const { return m_gameSessionData; }
202 inline bool GameSessionDataHasBeenSet() const { return m_gameSessionDataHasBeenSet; }
203 template <typename GameSessionDataT = Aws::String>
204 void SetGameSessionData(GameSessionDataT&& value) {
205 m_gameSessionDataHasBeenSet = true;
206 m_gameSessionData = std::forward<GameSessionDataT>(value);
207 }
208 template <typename GameSessionDataT = Aws::String>
210 SetGameSessionData(std::forward<GameSessionDataT>(value));
211 return *this;
212 }
214
216
227 inline const PriorityConfigurationOverride& GetPriorityConfigurationOverride() const { return m_priorityConfigurationOverride; }
228 inline bool PriorityConfigurationOverrideHasBeenSet() const { return m_priorityConfigurationOverrideHasBeenSet; }
229 template <typename PriorityConfigurationOverrideT = PriorityConfigurationOverride>
230 void SetPriorityConfigurationOverride(PriorityConfigurationOverrideT&& value) {
231 m_priorityConfigurationOverrideHasBeenSet = true;
232 m_priorityConfigurationOverride = std::forward<PriorityConfigurationOverrideT>(value);
233 }
234 template <typename PriorityConfigurationOverrideT = PriorityConfigurationOverride>
236 SetPriorityConfigurationOverride(std::forward<PriorityConfigurationOverrideT>(value));
237 return *this;
238 }
240 private:
241 Aws::String m_placementId;
242
243 Aws::String m_gameSessionQueueName;
244
245 Aws::Vector<GameProperty> m_gameProperties;
246
247 int m_maximumPlayerSessionCount{0};
248
249 Aws::String m_gameSessionName;
250
251 Aws::Vector<PlayerLatency> m_playerLatencies;
252
253 Aws::Vector<DesiredPlayerSession> m_desiredPlayerSessions;
254
255 Aws::String m_gameSessionData;
256
257 PriorityConfigurationOverride m_priorityConfigurationOverride;
258 bool m_placementIdHasBeenSet = false;
259 bool m_gameSessionQueueNameHasBeenSet = false;
260 bool m_gamePropertiesHasBeenSet = false;
261 bool m_maximumPlayerSessionCountHasBeenSet = false;
262 bool m_gameSessionNameHasBeenSet = false;
263 bool m_playerLatenciesHasBeenSet = false;
264 bool m_desiredPlayerSessionsHasBeenSet = false;
265 bool m_gameSessionDataHasBeenSet = false;
266 bool m_priorityConfigurationOverrideHasBeenSet = false;
267};
268
269} // namespace Model
270} // namespace GameLift
271} // namespace Aws
const PriorityConfigurationOverride & GetPriorityConfigurationOverride() const
StartGameSessionPlacementRequest & AddDesiredPlayerSessions(DesiredPlayerSessionsT &&value)
StartGameSessionPlacementRequest & WithPlacementId(PlacementIdT &&value)
StartGameSessionPlacementRequest & AddPlayerLatencies(PlayerLatenciesT &&value)
void SetPriorityConfigurationOverride(PriorityConfigurationOverrideT &&value)
StartGameSessionPlacementRequest & WithPlayerLatencies(PlayerLatenciesT &&value)
StartGameSessionPlacementRequest & WithGameSessionQueueName(GameSessionQueueNameT &&value)
StartGameSessionPlacementRequest & WithDesiredPlayerSessions(DesiredPlayerSessionsT &&value)
AWS_GAMELIFT_API StartGameSessionPlacementRequest()=default
StartGameSessionPlacementRequest & WithGameSessionData(GameSessionDataT &&value)
StartGameSessionPlacementRequest & WithPriorityConfigurationOverride(PriorityConfigurationOverrideT &&value)
StartGameSessionPlacementRequest & AddGameProperties(GamePropertiesT &&value)
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartGameSessionPlacementRequest & WithGameSessionName(GameSessionNameT &&value)
StartGameSessionPlacementRequest & WithMaximumPlayerSessionCount(int value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
StartGameSessionPlacementRequest & WithGameProperties(GamePropertiesT &&value)
const Aws::Vector< DesiredPlayerSession > & GetDesiredPlayerSessions() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector