AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateGameSessionRequest.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/GameProperty.h>
12
13#include <utility>
14
15namespace Aws {
16namespace GameLift {
17namespace Model {
18
22 public:
23 AWS_GAMELIFT_API CreateGameSessionRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateGameSession"; }
30
31 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
32
34
36
41 inline const Aws::String& GetFleetId() const { return m_fleetId; }
42 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
43 template <typename FleetIdT = Aws::String>
44 void SetFleetId(FleetIdT&& value) {
45 m_fleetIdHasBeenSet = true;
46 m_fleetId = std::forward<FleetIdT>(value);
47 }
48 template <typename FleetIdT = Aws::String>
50 SetFleetId(std::forward<FleetIdT>(value));
51 return *this;
52 }
54
56
61 inline const Aws::String& GetAliasId() const { return m_aliasId; }
62 inline bool AliasIdHasBeenSet() const { return m_aliasIdHasBeenSet; }
63 template <typename AliasIdT = Aws::String>
64 void SetAliasId(AliasIdT&& value) {
65 m_aliasIdHasBeenSet = true;
66 m_aliasId = std::forward<AliasIdT>(value);
67 }
68 template <typename AliasIdT = Aws::String>
70 SetAliasId(std::forward<AliasIdT>(value));
71 return *this;
72 }
74
76
80 inline int GetMaximumPlayerSessionCount() const { return m_maximumPlayerSessionCount; }
81 inline bool MaximumPlayerSessionCountHasBeenSet() const { return m_maximumPlayerSessionCountHasBeenSet; }
82 inline void SetMaximumPlayerSessionCount(int value) {
83 m_maximumPlayerSessionCountHasBeenSet = true;
84 m_maximumPlayerSessionCount = value;
85 }
88 return *this;
89 }
91
93
97 inline const Aws::String& GetName() const { return m_name; }
98 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
99 template <typename NameT = Aws::String>
100 void SetName(NameT&& value) {
101 m_nameHasBeenSet = true;
102 m_name = std::forward<NameT>(value);
103 }
104 template <typename NameT = Aws::String>
106 SetName(std::forward<NameT>(value));
107 return *this;
108 }
110
112
122 inline const Aws::Vector<GameProperty>& GetGameProperties() const { return m_gameProperties; }
123 inline bool GamePropertiesHasBeenSet() const { return m_gamePropertiesHasBeenSet; }
124 template <typename GamePropertiesT = Aws::Vector<GameProperty>>
125 void SetGameProperties(GamePropertiesT&& value) {
126 m_gamePropertiesHasBeenSet = true;
127 m_gameProperties = std::forward<GamePropertiesT>(value);
128 }
129 template <typename GamePropertiesT = Aws::Vector<GameProperty>>
131 SetGameProperties(std::forward<GamePropertiesT>(value));
132 return *this;
133 }
134 template <typename GamePropertiesT = GameProperty>
135 CreateGameSessionRequest& AddGameProperties(GamePropertiesT&& value) {
136 m_gamePropertiesHasBeenSet = true;
137 m_gameProperties.emplace_back(std::forward<GamePropertiesT>(value));
138 return *this;
139 }
141
143
156 inline const Aws::String& GetCreatorId() const { return m_creatorId; }
157 inline bool CreatorIdHasBeenSet() const { return m_creatorIdHasBeenSet; }
158 template <typename CreatorIdT = Aws::String>
159 void SetCreatorId(CreatorIdT&& value) {
160 m_creatorIdHasBeenSet = true;
161 m_creatorId = std::forward<CreatorIdT>(value);
162 }
163 template <typename CreatorIdT = Aws::String>
165 SetCreatorId(std::forward<CreatorIdT>(value));
166 return *this;
167 }
169
171
177 inline const Aws::String& GetGameSessionId() const { return m_gameSessionId; }
178 inline bool GameSessionIdHasBeenSet() const { return m_gameSessionIdHasBeenSet; }
179 template <typename GameSessionIdT = Aws::String>
180 void SetGameSessionId(GameSessionIdT&& value) {
181 m_gameSessionIdHasBeenSet = true;
182 m_gameSessionId = std::forward<GameSessionIdT>(value);
183 }
184 template <typename GameSessionIdT = Aws::String>
186 SetGameSessionId(std::forward<GameSessionIdT>(value));
187 return *this;
188 }
190
192
204 inline const Aws::String& GetIdempotencyToken() const { return m_idempotencyToken; }
205 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
206 template <typename IdempotencyTokenT = Aws::String>
207 void SetIdempotencyToken(IdempotencyTokenT&& value) {
208 m_idempotencyTokenHasBeenSet = true;
209 m_idempotencyToken = std::forward<IdempotencyTokenT>(value);
210 }
211 template <typename IdempotencyTokenT = Aws::String>
212 CreateGameSessionRequest& WithIdempotencyToken(IdempotencyTokenT&& value) {
213 SetIdempotencyToken(std::forward<IdempotencyTokenT>(value));
214 return *this;
215 }
217
219
226 inline const Aws::String& GetGameSessionData() const { return m_gameSessionData; }
227 inline bool GameSessionDataHasBeenSet() const { return m_gameSessionDataHasBeenSet; }
228 template <typename GameSessionDataT = Aws::String>
229 void SetGameSessionData(GameSessionDataT&& value) {
230 m_gameSessionDataHasBeenSet = true;
231 m_gameSessionData = std::forward<GameSessionDataT>(value);
232 }
233 template <typename GameSessionDataT = Aws::String>
235 SetGameSessionData(std::forward<GameSessionDataT>(value));
236 return *this;
237 }
239
241
248 inline const Aws::String& GetLocation() const { return m_location; }
249 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
250 template <typename LocationT = Aws::String>
251 void SetLocation(LocationT&& value) {
252 m_locationHasBeenSet = true;
253 m_location = std::forward<LocationT>(value);
254 }
255 template <typename LocationT = Aws::String>
257 SetLocation(std::forward<LocationT>(value));
258 return *this;
259 }
261 private:
262 Aws::String m_fleetId;
263
264 Aws::String m_aliasId;
265
266 int m_maximumPlayerSessionCount{0};
267
268 Aws::String m_name;
269
270 Aws::Vector<GameProperty> m_gameProperties;
271
272 Aws::String m_creatorId;
273
274 Aws::String m_gameSessionId;
275
276 Aws::String m_idempotencyToken;
277
278 Aws::String m_gameSessionData;
279
280 Aws::String m_location;
281 bool m_fleetIdHasBeenSet = false;
282 bool m_aliasIdHasBeenSet = false;
283 bool m_maximumPlayerSessionCountHasBeenSet = false;
284 bool m_nameHasBeenSet = false;
285 bool m_gamePropertiesHasBeenSet = false;
286 bool m_creatorIdHasBeenSet = false;
287 bool m_gameSessionIdHasBeenSet = false;
288 bool m_idempotencyTokenHasBeenSet = false;
289 bool m_gameSessionDataHasBeenSet = false;
290 bool m_locationHasBeenSet = false;
291};
292
293} // namespace Model
294} // namespace GameLift
295} // namespace Aws
CreateGameSessionRequest & WithIdempotencyToken(IdempotencyTokenT &&value)
AWS_GAMELIFT_API CreateGameSessionRequest()=default
const Aws::Vector< GameProperty > & GetGameProperties() const
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateGameSessionRequest & WithLocation(LocationT &&value)
CreateGameSessionRequest & WithGameSessionId(GameSessionIdT &&value)
CreateGameSessionRequest & WithGameSessionData(GameSessionDataT &&value)
CreateGameSessionRequest & WithGameProperties(GamePropertiesT &&value)
virtual const char * GetServiceRequestName() const override
AWS_GAMELIFT_API Aws::String SerializePayload() const override
CreateGameSessionRequest & WithName(NameT &&value)
CreateGameSessionRequest & WithFleetId(FleetIdT &&value)
CreateGameSessionRequest & WithAliasId(AliasIdT &&value)
CreateGameSessionRequest & AddGameProperties(GamePropertiesT &&value)
CreateGameSessionRequest & WithMaximumPlayerSessionCount(int value)
CreateGameSessionRequest & WithCreatorId(CreatorIdT &&value)
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