AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
UpdateMatchmakingConfigurationRequest.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/BackfillMode.h>
12#include <aws/gamelift/model/FlexMatchMode.h>
13#include <aws/gamelift/model/GameProperty.h>
14
15#include <utility>
16
17namespace Aws {
18namespace GameLift {
19namespace Model {
20
24 public:
25 AWS_GAMELIFT_API UpdateMatchmakingConfigurationRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateMatchmakingConfiguration"; }
32
33 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
34
36
38
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetDescription() const { return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 template <typename DescriptionT = Aws::String>
63 void SetDescription(DescriptionT&& value) {
64 m_descriptionHasBeenSet = true;
65 m_description = std::forward<DescriptionT>(value);
66 }
67 template <typename DescriptionT = Aws::String>
69 SetDescription(std::forward<DescriptionT>(value));
70 return *this;
71 }
73
75
86 inline const Aws::Vector<Aws::String>& GetGameSessionQueueArns() const { return m_gameSessionQueueArns; }
87 inline bool GameSessionQueueArnsHasBeenSet() const { return m_gameSessionQueueArnsHasBeenSet; }
88 template <typename GameSessionQueueArnsT = Aws::Vector<Aws::String>>
89 void SetGameSessionQueueArns(GameSessionQueueArnsT&& value) {
90 m_gameSessionQueueArnsHasBeenSet = true;
91 m_gameSessionQueueArns = std::forward<GameSessionQueueArnsT>(value);
92 }
93 template <typename GameSessionQueueArnsT = Aws::Vector<Aws::String>>
95 SetGameSessionQueueArns(std::forward<GameSessionQueueArnsT>(value));
96 return *this;
97 }
98 template <typename GameSessionQueueArnsT = Aws::String>
100 m_gameSessionQueueArnsHasBeenSet = true;
101 m_gameSessionQueueArns.emplace_back(std::forward<GameSessionQueueArnsT>(value));
102 return *this;
103 }
105
107
112 inline int GetRequestTimeoutSeconds() const { return m_requestTimeoutSeconds; }
113 inline bool RequestTimeoutSecondsHasBeenSet() const { return m_requestTimeoutSecondsHasBeenSet; }
114 inline void SetRequestTimeoutSeconds(int value) {
115 m_requestTimeoutSecondsHasBeenSet = true;
116 m_requestTimeoutSeconds = value;
117 }
120 return *this;
121 }
123
125
129 inline int GetAcceptanceTimeoutSeconds() const { return m_acceptanceTimeoutSeconds; }
130 inline bool AcceptanceTimeoutSecondsHasBeenSet() const { return m_acceptanceTimeoutSecondsHasBeenSet; }
131 inline void SetAcceptanceTimeoutSeconds(int value) {
132 m_acceptanceTimeoutSecondsHasBeenSet = true;
133 m_acceptanceTimeoutSeconds = value;
134 }
137 return *this;
138 }
140
142
149 inline bool GetAcceptanceRequired() const { return m_acceptanceRequired; }
150 inline bool AcceptanceRequiredHasBeenSet() const { return m_acceptanceRequiredHasBeenSet; }
151 inline void SetAcceptanceRequired(bool value) {
152 m_acceptanceRequiredHasBeenSet = true;
153 m_acceptanceRequired = value;
154 }
157 return *this;
158 }
160
162
167 inline const Aws::String& GetRuleSetName() const { return m_ruleSetName; }
168 inline bool RuleSetNameHasBeenSet() const { return m_ruleSetNameHasBeenSet; }
169 template <typename RuleSetNameT = Aws::String>
170 void SetRuleSetName(RuleSetNameT&& value) {
171 m_ruleSetNameHasBeenSet = true;
172 m_ruleSetName = std::forward<RuleSetNameT>(value);
173 }
174 template <typename RuleSetNameT = Aws::String>
176 SetRuleSetName(std::forward<RuleSetNameT>(value));
177 return *this;
178 }
180
182
187 inline const Aws::String& GetNotificationTarget() const { return m_notificationTarget; }
188 inline bool NotificationTargetHasBeenSet() const { return m_notificationTargetHasBeenSet; }
189 template <typename NotificationTargetT = Aws::String>
190 void SetNotificationTarget(NotificationTargetT&& value) {
191 m_notificationTargetHasBeenSet = true;
192 m_notificationTarget = std::forward<NotificationTargetT>(value);
193 }
194 template <typename NotificationTargetT = Aws::String>
196 SetNotificationTarget(std::forward<NotificationTargetT>(value));
197 return *this;
198 }
200
202
209 inline int GetAdditionalPlayerCount() const { return m_additionalPlayerCount; }
210 inline bool AdditionalPlayerCountHasBeenSet() const { return m_additionalPlayerCountHasBeenSet; }
211 inline void SetAdditionalPlayerCount(int value) {
212 m_additionalPlayerCountHasBeenSet = true;
213 m_additionalPlayerCount = value;
214 }
217 return *this;
218 }
220
222
226 inline const Aws::String& GetCustomEventData() const { return m_customEventData; }
227 inline bool CustomEventDataHasBeenSet() const { return m_customEventDataHasBeenSet; }
228 template <typename CustomEventDataT = Aws::String>
229 void SetCustomEventData(CustomEventDataT&& value) {
230 m_customEventDataHasBeenSet = true;
231 m_customEventData = std::forward<CustomEventDataT>(value);
232 }
233 template <typename CustomEventDataT = Aws::String>
235 SetCustomEventData(std::forward<CustomEventDataT>(value));
236 return *this;
237 }
239
241
251 inline const Aws::Vector<GameProperty>& GetGameProperties() const { return m_gameProperties; }
252 inline bool GamePropertiesHasBeenSet() const { return m_gamePropertiesHasBeenSet; }
253 template <typename GamePropertiesT = Aws::Vector<GameProperty>>
254 void SetGameProperties(GamePropertiesT&& value) {
255 m_gamePropertiesHasBeenSet = true;
256 m_gameProperties = std::forward<GamePropertiesT>(value);
257 }
258 template <typename GamePropertiesT = Aws::Vector<GameProperty>>
260 SetGameProperties(std::forward<GamePropertiesT>(value));
261 return *this;
262 }
263 template <typename GamePropertiesT = GameProperty>
265 m_gamePropertiesHasBeenSet = true;
266 m_gameProperties.emplace_back(std::forward<GamePropertiesT>(value));
267 return *this;
268 }
270
272
281 inline const Aws::String& GetGameSessionData() const { return m_gameSessionData; }
282 inline bool GameSessionDataHasBeenSet() const { return m_gameSessionDataHasBeenSet; }
283 template <typename GameSessionDataT = Aws::String>
284 void SetGameSessionData(GameSessionDataT&& value) {
285 m_gameSessionDataHasBeenSet = true;
286 m_gameSessionData = std::forward<GameSessionDataT>(value);
287 }
288 template <typename GameSessionDataT = Aws::String>
290 SetGameSessionData(std::forward<GameSessionDataT>(value));
291 return *this;
292 }
294
296
306 inline BackfillMode GetBackfillMode() const { return m_backfillMode; }
307 inline bool BackfillModeHasBeenSet() const { return m_backfillModeHasBeenSet; }
308 inline void SetBackfillMode(BackfillMode value) {
309 m_backfillModeHasBeenSet = true;
310 m_backfillMode = value;
311 }
313 SetBackfillMode(value);
314 return *this;
315 }
317
319
329 inline FlexMatchMode GetFlexMatchMode() const { return m_flexMatchMode; }
330 inline bool FlexMatchModeHasBeenSet() const { return m_flexMatchModeHasBeenSet; }
331 inline void SetFlexMatchMode(FlexMatchMode value) {
332 m_flexMatchModeHasBeenSet = true;
333 m_flexMatchMode = value;
334 }
336 SetFlexMatchMode(value);
337 return *this;
338 }
340 private:
341 Aws::String m_name;
342
343 Aws::String m_description;
344
345 Aws::Vector<Aws::String> m_gameSessionQueueArns;
346
347 int m_requestTimeoutSeconds{0};
348
349 int m_acceptanceTimeoutSeconds{0};
350
351 bool m_acceptanceRequired{false};
352
353 Aws::String m_ruleSetName;
354
355 Aws::String m_notificationTarget;
356
357 int m_additionalPlayerCount{0};
358
359 Aws::String m_customEventData;
360
361 Aws::Vector<GameProperty> m_gameProperties;
362
363 Aws::String m_gameSessionData;
364
365 BackfillMode m_backfillMode{BackfillMode::NOT_SET};
366
367 FlexMatchMode m_flexMatchMode{FlexMatchMode::NOT_SET};
368 bool m_nameHasBeenSet = false;
369 bool m_descriptionHasBeenSet = false;
370 bool m_gameSessionQueueArnsHasBeenSet = false;
371 bool m_requestTimeoutSecondsHasBeenSet = false;
372 bool m_acceptanceTimeoutSecondsHasBeenSet = false;
373 bool m_acceptanceRequiredHasBeenSet = false;
374 bool m_ruleSetNameHasBeenSet = false;
375 bool m_notificationTargetHasBeenSet = false;
376 bool m_additionalPlayerCountHasBeenSet = false;
377 bool m_customEventDataHasBeenSet = false;
378 bool m_gamePropertiesHasBeenSet = false;
379 bool m_gameSessionDataHasBeenSet = false;
380 bool m_backfillModeHasBeenSet = false;
381 bool m_flexMatchModeHasBeenSet = false;
382};
383
384} // namespace Model
385} // namespace GameLift
386} // namespace Aws
UpdateMatchmakingConfigurationRequest & WithDescription(DescriptionT &&value)
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateMatchmakingConfigurationRequest & WithGameSessionData(GameSessionDataT &&value)
UpdateMatchmakingConfigurationRequest & WithName(NameT &&value)
UpdateMatchmakingConfigurationRequest & WithAcceptanceRequired(bool value)
UpdateMatchmakingConfigurationRequest & AddGameProperties(GamePropertiesT &&value)
UpdateMatchmakingConfigurationRequest & AddGameSessionQueueArns(GameSessionQueueArnsT &&value)
UpdateMatchmakingConfigurationRequest & WithRequestTimeoutSeconds(int value)
UpdateMatchmakingConfigurationRequest & WithGameProperties(GamePropertiesT &&value)
UpdateMatchmakingConfigurationRequest & WithAcceptanceTimeoutSeconds(int value)
UpdateMatchmakingConfigurationRequest & WithRuleSetName(RuleSetNameT &&value)
UpdateMatchmakingConfigurationRequest & WithFlexMatchMode(FlexMatchMode value)
UpdateMatchmakingConfigurationRequest & WithGameSessionQueueArns(GameSessionQueueArnsT &&value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
UpdateMatchmakingConfigurationRequest & WithAdditionalPlayerCount(int value)
UpdateMatchmakingConfigurationRequest & WithBackfillMode(BackfillMode value)
UpdateMatchmakingConfigurationRequest & WithCustomEventData(CustomEventDataT &&value)
UpdateMatchmakingConfigurationRequest & WithNotificationTarget(NotificationTargetT &&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