AWS SDK for C++

AWS SDK for C++ Version 1.11.912

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
88 inline const Aws::Vector<Aws::String>& GetGameSessionQueueArns() const { return m_gameSessionQueueArns; }
89 inline bool GameSessionQueueArnsHasBeenSet() const { return m_gameSessionQueueArnsHasBeenSet; }
90 template <typename GameSessionQueueArnsT = Aws::Vector<Aws::String>>
91 void SetGameSessionQueueArns(GameSessionQueueArnsT&& value) {
92 m_gameSessionQueueArnsHasBeenSet = true;
93 m_gameSessionQueueArns = std::forward<GameSessionQueueArnsT>(value);
94 }
95 template <typename GameSessionQueueArnsT = Aws::Vector<Aws::String>>
97 SetGameSessionQueueArns(std::forward<GameSessionQueueArnsT>(value));
98 return *this;
99 }
100 template <typename GameSessionQueueArnsT = Aws::String>
102 m_gameSessionQueueArnsHasBeenSet = true;
103 m_gameSessionQueueArns.emplace_back(std::forward<GameSessionQueueArnsT>(value));
104 return *this;
105 }
107
109
114 inline int GetRequestTimeoutSeconds() const { return m_requestTimeoutSeconds; }
115 inline bool RequestTimeoutSecondsHasBeenSet() const { return m_requestTimeoutSecondsHasBeenSet; }
116 inline void SetRequestTimeoutSeconds(int value) {
117 m_requestTimeoutSecondsHasBeenSet = true;
118 m_requestTimeoutSeconds = value;
119 }
122 return *this;
123 }
125
127
131 inline int GetAcceptanceTimeoutSeconds() const { return m_acceptanceTimeoutSeconds; }
132 inline bool AcceptanceTimeoutSecondsHasBeenSet() const { return m_acceptanceTimeoutSecondsHasBeenSet; }
133 inline void SetAcceptanceTimeoutSeconds(int value) {
134 m_acceptanceTimeoutSecondsHasBeenSet = true;
135 m_acceptanceTimeoutSeconds = value;
136 }
139 return *this;
140 }
142
144
151 inline bool GetAcceptanceRequired() const { return m_acceptanceRequired; }
152 inline bool AcceptanceRequiredHasBeenSet() const { return m_acceptanceRequiredHasBeenSet; }
153 inline void SetAcceptanceRequired(bool value) {
154 m_acceptanceRequiredHasBeenSet = true;
155 m_acceptanceRequired = value;
156 }
159 return *this;
160 }
162
164
169 inline const Aws::String& GetRuleSetName() const { return m_ruleSetName; }
170 inline bool RuleSetNameHasBeenSet() const { return m_ruleSetNameHasBeenSet; }
171 template <typename RuleSetNameT = Aws::String>
172 void SetRuleSetName(RuleSetNameT&& value) {
173 m_ruleSetNameHasBeenSet = true;
174 m_ruleSetName = std::forward<RuleSetNameT>(value);
175 }
176 template <typename RuleSetNameT = Aws::String>
178 SetRuleSetName(std::forward<RuleSetNameT>(value));
179 return *this;
180 }
182
184
189 inline const Aws::String& GetNotificationTarget() const { return m_notificationTarget; }
190 inline bool NotificationTargetHasBeenSet() const { return m_notificationTargetHasBeenSet; }
191 template <typename NotificationTargetT = Aws::String>
192 void SetNotificationTarget(NotificationTargetT&& value) {
193 m_notificationTargetHasBeenSet = true;
194 m_notificationTarget = std::forward<NotificationTargetT>(value);
195 }
196 template <typename NotificationTargetT = Aws::String>
198 SetNotificationTarget(std::forward<NotificationTargetT>(value));
199 return *this;
200 }
202
204
211 inline int GetAdditionalPlayerCount() const { return m_additionalPlayerCount; }
212 inline bool AdditionalPlayerCountHasBeenSet() const { return m_additionalPlayerCountHasBeenSet; }
213 inline void SetAdditionalPlayerCount(int value) {
214 m_additionalPlayerCountHasBeenSet = true;
215 m_additionalPlayerCount = value;
216 }
219 return *this;
220 }
222
224
228 inline const Aws::String& GetCustomEventData() const { return m_customEventData; }
229 inline bool CustomEventDataHasBeenSet() const { return m_customEventDataHasBeenSet; }
230 template <typename CustomEventDataT = Aws::String>
231 void SetCustomEventData(CustomEventDataT&& value) {
232 m_customEventDataHasBeenSet = true;
233 m_customEventData = std::forward<CustomEventDataT>(value);
234 }
235 template <typename CustomEventDataT = Aws::String>
237 SetCustomEventData(std::forward<CustomEventDataT>(value));
238 return *this;
239 }
241
243
257 inline const Aws::Vector<GameProperty>& GetGameProperties() const { return m_gameProperties; }
258 inline bool GamePropertiesHasBeenSet() const { return m_gamePropertiesHasBeenSet; }
259 template <typename GamePropertiesT = Aws::Vector<GameProperty>>
260 void SetGameProperties(GamePropertiesT&& value) {
261 m_gamePropertiesHasBeenSet = true;
262 m_gameProperties = std::forward<GamePropertiesT>(value);
263 }
264 template <typename GamePropertiesT = Aws::Vector<GameProperty>>
266 SetGameProperties(std::forward<GamePropertiesT>(value));
267 return *this;
268 }
269 template <typename GamePropertiesT = GameProperty>
271 m_gamePropertiesHasBeenSet = true;
272 m_gameProperties.emplace_back(std::forward<GamePropertiesT>(value));
273 return *this;
274 }
276
278
287 inline const Aws::String& GetGameSessionData() const { return m_gameSessionData; }
288 inline bool GameSessionDataHasBeenSet() const { return m_gameSessionDataHasBeenSet; }
289 template <typename GameSessionDataT = Aws::String>
290 void SetGameSessionData(GameSessionDataT&& value) {
291 m_gameSessionDataHasBeenSet = true;
292 m_gameSessionData = std::forward<GameSessionDataT>(value);
293 }
294 template <typename GameSessionDataT = Aws::String>
296 SetGameSessionData(std::forward<GameSessionDataT>(value));
297 return *this;
298 }
300
302
312 inline BackfillMode GetBackfillMode() const { return m_backfillMode; }
313 inline bool BackfillModeHasBeenSet() const { return m_backfillModeHasBeenSet; }
314 inline void SetBackfillMode(BackfillMode value) {
315 m_backfillModeHasBeenSet = true;
316 m_backfillMode = value;
317 }
319 SetBackfillMode(value);
320 return *this;
321 }
323
325
335 inline FlexMatchMode GetFlexMatchMode() const { return m_flexMatchMode; }
336 inline bool FlexMatchModeHasBeenSet() const { return m_flexMatchModeHasBeenSet; }
337 inline void SetFlexMatchMode(FlexMatchMode value) {
338 m_flexMatchModeHasBeenSet = true;
339 m_flexMatchMode = value;
340 }
342 SetFlexMatchMode(value);
343 return *this;
344 }
346 private:
347 Aws::String m_name;
348
349 Aws::String m_description;
350
351 Aws::Vector<Aws::String> m_gameSessionQueueArns;
352
353 int m_requestTimeoutSeconds{0};
354
355 int m_acceptanceTimeoutSeconds{0};
356
357 bool m_acceptanceRequired{false};
358
359 Aws::String m_ruleSetName;
360
361 Aws::String m_notificationTarget;
362
363 int m_additionalPlayerCount{0};
364
365 Aws::String m_customEventData;
366
367 Aws::Vector<GameProperty> m_gameProperties;
368
369 Aws::String m_gameSessionData;
370
371 BackfillMode m_backfillMode{BackfillMode::NOT_SET};
372
373 FlexMatchMode m_flexMatchMode{FlexMatchMode::NOT_SET};
374 bool m_nameHasBeenSet = false;
375 bool m_descriptionHasBeenSet = false;
376 bool m_gameSessionQueueArnsHasBeenSet = false;
377 bool m_requestTimeoutSecondsHasBeenSet = false;
378 bool m_acceptanceTimeoutSecondsHasBeenSet = false;
379 bool m_acceptanceRequiredHasBeenSet = false;
380 bool m_ruleSetNameHasBeenSet = false;
381 bool m_notificationTargetHasBeenSet = false;
382 bool m_additionalPlayerCountHasBeenSet = false;
383 bool m_customEventDataHasBeenSet = false;
384 bool m_gamePropertiesHasBeenSet = false;
385 bool m_gameSessionDataHasBeenSet = false;
386 bool m_backfillModeHasBeenSet = false;
387 bool m_flexMatchModeHasBeenSet = false;
388};
389
390} // namespace Model
391} // namespace GameLift
392} // 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