AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
MatchmakingConfiguration.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.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 Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace GameLift {
25namespace Model {
26
35 public:
36 AWS_GAMELIFT_API MatchmakingConfiguration() = default;
39 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template <typename NameT = Aws::String>
49 void SetName(NameT&& value) {
50 m_nameHasBeenSet = true;
51 m_name = std::forward<NameT>(value);
52 }
53 template <typename NameT = Aws::String>
55 SetName(std::forward<NameT>(value));
56 return *this;
57 }
59
61
70 inline const Aws::String& GetConfigurationArn() const { return m_configurationArn; }
71 inline bool ConfigurationArnHasBeenSet() const { return m_configurationArnHasBeenSet; }
72 template <typename ConfigurationArnT = Aws::String>
73 void SetConfigurationArn(ConfigurationArnT&& value) {
74 m_configurationArnHasBeenSet = true;
75 m_configurationArn = std::forward<ConfigurationArnT>(value);
76 }
77 template <typename ConfigurationArnT = Aws::String>
78 MatchmakingConfiguration& WithConfigurationArn(ConfigurationArnT&& value) {
79 SetConfigurationArn(std::forward<ConfigurationArnT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetDescription() const { return m_description; }
89 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
90 template <typename DescriptionT = Aws::String>
91 void SetDescription(DescriptionT&& value) {
92 m_descriptionHasBeenSet = true;
93 m_description = std::forward<DescriptionT>(value);
94 }
95 template <typename DescriptionT = Aws::String>
97 SetDescription(std::forward<DescriptionT>(value));
98 return *this;
99 }
101
103
114 inline const Aws::Vector<Aws::String>& GetGameSessionQueueArns() const { return m_gameSessionQueueArns; }
115 inline bool GameSessionQueueArnsHasBeenSet() const { return m_gameSessionQueueArnsHasBeenSet; }
116 template <typename GameSessionQueueArnsT = Aws::Vector<Aws::String>>
117 void SetGameSessionQueueArns(GameSessionQueueArnsT&& value) {
118 m_gameSessionQueueArnsHasBeenSet = true;
119 m_gameSessionQueueArns = std::forward<GameSessionQueueArnsT>(value);
120 }
121 template <typename GameSessionQueueArnsT = Aws::Vector<Aws::String>>
122 MatchmakingConfiguration& WithGameSessionQueueArns(GameSessionQueueArnsT&& value) {
123 SetGameSessionQueueArns(std::forward<GameSessionQueueArnsT>(value));
124 return *this;
125 }
126 template <typename GameSessionQueueArnsT = Aws::String>
127 MatchmakingConfiguration& AddGameSessionQueueArns(GameSessionQueueArnsT&& value) {
128 m_gameSessionQueueArnsHasBeenSet = true;
129 m_gameSessionQueueArns.emplace_back(std::forward<GameSessionQueueArnsT>(value));
130 return *this;
131 }
133
135
140 inline int GetRequestTimeoutSeconds() const { return m_requestTimeoutSeconds; }
141 inline bool RequestTimeoutSecondsHasBeenSet() const { return m_requestTimeoutSecondsHasBeenSet; }
142 inline void SetRequestTimeoutSeconds(int value) {
143 m_requestTimeoutSecondsHasBeenSet = true;
144 m_requestTimeoutSeconds = value;
145 }
148 return *this;
149 }
151
153
159 inline int GetAcceptanceTimeoutSeconds() const { return m_acceptanceTimeoutSeconds; }
160 inline bool AcceptanceTimeoutSecondsHasBeenSet() const { return m_acceptanceTimeoutSecondsHasBeenSet; }
161 inline void SetAcceptanceTimeoutSeconds(int value) {
162 m_acceptanceTimeoutSecondsHasBeenSet = true;
163 m_acceptanceTimeoutSeconds = value;
164 }
167 return *this;
168 }
170
172
179 inline bool GetAcceptanceRequired() const { return m_acceptanceRequired; }
180 inline bool AcceptanceRequiredHasBeenSet() const { return m_acceptanceRequiredHasBeenSet; }
181 inline void SetAcceptanceRequired(bool value) {
182 m_acceptanceRequiredHasBeenSet = true;
183 m_acceptanceRequired = value;
184 }
187 return *this;
188 }
190
192
197 inline const Aws::String& GetRuleSetName() const { return m_ruleSetName; }
198 inline bool RuleSetNameHasBeenSet() const { return m_ruleSetNameHasBeenSet; }
199 template <typename RuleSetNameT = Aws::String>
200 void SetRuleSetName(RuleSetNameT&& value) {
201 m_ruleSetNameHasBeenSet = true;
202 m_ruleSetName = std::forward<RuleSetNameT>(value);
203 }
204 template <typename RuleSetNameT = Aws::String>
206 SetRuleSetName(std::forward<RuleSetNameT>(value));
207 return *this;
208 }
210
212
218 inline const Aws::String& GetRuleSetArn() const { return m_ruleSetArn; }
219 inline bool RuleSetArnHasBeenSet() const { return m_ruleSetArnHasBeenSet; }
220 template <typename RuleSetArnT = Aws::String>
221 void SetRuleSetArn(RuleSetArnT&& value) {
222 m_ruleSetArnHasBeenSet = true;
223 m_ruleSetArn = std::forward<RuleSetArnT>(value);
224 }
225 template <typename RuleSetArnT = Aws::String>
227 SetRuleSetArn(std::forward<RuleSetArnT>(value));
228 return *this;
229 }
231
233
236 inline const Aws::String& GetNotificationTarget() const { return m_notificationTarget; }
237 inline bool NotificationTargetHasBeenSet() const { return m_notificationTargetHasBeenSet; }
238 template <typename NotificationTargetT = Aws::String>
239 void SetNotificationTarget(NotificationTargetT&& value) {
240 m_notificationTargetHasBeenSet = true;
241 m_notificationTarget = std::forward<NotificationTargetT>(value);
242 }
243 template <typename NotificationTargetT = Aws::String>
244 MatchmakingConfiguration& WithNotificationTarget(NotificationTargetT&& value) {
245 SetNotificationTarget(std::forward<NotificationTargetT>(value));
246 return *this;
247 }
249
251
258 inline int GetAdditionalPlayerCount() const { return m_additionalPlayerCount; }
259 inline bool AdditionalPlayerCountHasBeenSet() const { return m_additionalPlayerCountHasBeenSet; }
260 inline void SetAdditionalPlayerCount(int value) {
261 m_additionalPlayerCountHasBeenSet = true;
262 m_additionalPlayerCount = value;
263 }
266 return *this;
267 }
269
271
275 inline const Aws::String& GetCustomEventData() const { return m_customEventData; }
276 inline bool CustomEventDataHasBeenSet() const { return m_customEventDataHasBeenSet; }
277 template <typename CustomEventDataT = Aws::String>
278 void SetCustomEventData(CustomEventDataT&& value) {
279 m_customEventDataHasBeenSet = true;
280 m_customEventData = std::forward<CustomEventDataT>(value);
281 }
282 template <typename CustomEventDataT = Aws::String>
284 SetCustomEventData(std::forward<CustomEventDataT>(value));
285 return *this;
286 }
288
290
295 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
296 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
297 template <typename CreationTimeT = Aws::Utils::DateTime>
298 void SetCreationTime(CreationTimeT&& value) {
299 m_creationTimeHasBeenSet = true;
300 m_creationTime = std::forward<CreationTimeT>(value);
301 }
302 template <typename CreationTimeT = Aws::Utils::DateTime>
304 SetCreationTime(std::forward<CreationTimeT>(value));
305 return *this;
306 }
308
310
320 inline const Aws::Vector<GameProperty>& GetGameProperties() const { return m_gameProperties; }
321 inline bool GamePropertiesHasBeenSet() const { return m_gamePropertiesHasBeenSet; }
322 template <typename GamePropertiesT = Aws::Vector<GameProperty>>
323 void SetGameProperties(GamePropertiesT&& value) {
324 m_gamePropertiesHasBeenSet = true;
325 m_gameProperties = std::forward<GamePropertiesT>(value);
326 }
327 template <typename GamePropertiesT = Aws::Vector<GameProperty>>
329 SetGameProperties(std::forward<GamePropertiesT>(value));
330 return *this;
331 }
332 template <typename GamePropertiesT = GameProperty>
333 MatchmakingConfiguration& AddGameProperties(GamePropertiesT&& value) {
334 m_gamePropertiesHasBeenSet = true;
335 m_gameProperties.emplace_back(std::forward<GamePropertiesT>(value));
336 return *this;
337 }
339
341
351 inline const Aws::String& GetGameSessionData() const { return m_gameSessionData; }
352 inline bool GameSessionDataHasBeenSet() const { return m_gameSessionDataHasBeenSet; }
353 template <typename GameSessionDataT = Aws::String>
354 void SetGameSessionData(GameSessionDataT&& value) {
355 m_gameSessionDataHasBeenSet = true;
356 m_gameSessionData = std::forward<GameSessionDataT>(value);
357 }
358 template <typename GameSessionDataT = Aws::String>
360 SetGameSessionData(std::forward<GameSessionDataT>(value));
361 return *this;
362 }
364
366
376 inline BackfillMode GetBackfillMode() const { return m_backfillMode; }
377 inline bool BackfillModeHasBeenSet() const { return m_backfillModeHasBeenSet; }
378 inline void SetBackfillMode(BackfillMode value) {
379 m_backfillModeHasBeenSet = true;
380 m_backfillMode = value;
381 }
383 SetBackfillMode(value);
384 return *this;
385 }
387
389
399 inline FlexMatchMode GetFlexMatchMode() const { return m_flexMatchMode; }
400 inline bool FlexMatchModeHasBeenSet() const { return m_flexMatchModeHasBeenSet; }
401 inline void SetFlexMatchMode(FlexMatchMode value) {
402 m_flexMatchModeHasBeenSet = true;
403 m_flexMatchMode = value;
404 }
406 SetFlexMatchMode(value);
407 return *this;
408 }
410 private:
411 Aws::String m_name;
412
413 Aws::String m_configurationArn;
414
415 Aws::String m_description;
416
417 Aws::Vector<Aws::String> m_gameSessionQueueArns;
418
419 int m_requestTimeoutSeconds{0};
420
421 int m_acceptanceTimeoutSeconds{0};
422
423 bool m_acceptanceRequired{false};
424
425 Aws::String m_ruleSetName;
426
427 Aws::String m_ruleSetArn;
428
429 Aws::String m_notificationTarget;
430
431 int m_additionalPlayerCount{0};
432
433 Aws::String m_customEventData;
434
435 Aws::Utils::DateTime m_creationTime{};
436
437 Aws::Vector<GameProperty> m_gameProperties;
438
439 Aws::String m_gameSessionData;
440
441 BackfillMode m_backfillMode{BackfillMode::NOT_SET};
442
443 FlexMatchMode m_flexMatchMode{FlexMatchMode::NOT_SET};
444 bool m_nameHasBeenSet = false;
445 bool m_configurationArnHasBeenSet = false;
446 bool m_descriptionHasBeenSet = false;
447 bool m_gameSessionQueueArnsHasBeenSet = false;
448 bool m_requestTimeoutSecondsHasBeenSet = false;
449 bool m_acceptanceTimeoutSecondsHasBeenSet = false;
450 bool m_acceptanceRequiredHasBeenSet = false;
451 bool m_ruleSetNameHasBeenSet = false;
452 bool m_ruleSetArnHasBeenSet = false;
453 bool m_notificationTargetHasBeenSet = false;
454 bool m_additionalPlayerCountHasBeenSet = false;
455 bool m_customEventDataHasBeenSet = false;
456 bool m_creationTimeHasBeenSet = false;
457 bool m_gamePropertiesHasBeenSet = false;
458 bool m_gameSessionDataHasBeenSet = false;
459 bool m_backfillModeHasBeenSet = false;
460 bool m_flexMatchModeHasBeenSet = false;
461};
462
463} // namespace Model
464} // namespace GameLift
465} // namespace Aws
MatchmakingConfiguration & WithName(NameT &&value)
MatchmakingConfiguration & WithDescription(DescriptionT &&value)
MatchmakingConfiguration & WithFlexMatchMode(FlexMatchMode value)
AWS_GAMELIFT_API MatchmakingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
MatchmakingConfiguration & WithConfigurationArn(ConfigurationArnT &&value)
MatchmakingConfiguration & WithGameSessionQueueArns(GameSessionQueueArnsT &&value)
MatchmakingConfiguration & AddGameProperties(GamePropertiesT &&value)
MatchmakingConfiguration & WithAcceptanceTimeoutSeconds(int value)
const Aws::Vector< Aws::String > & GetGameSessionQueueArns() const
MatchmakingConfiguration & WithRequestTimeoutSeconds(int value)
MatchmakingConfiguration & WithRuleSetName(RuleSetNameT &&value)
MatchmakingConfiguration & WithBackfillMode(BackfillMode value)
MatchmakingConfiguration & WithCustomEventData(CustomEventDataT &&value)
MatchmakingConfiguration & AddGameSessionQueueArns(GameSessionQueueArnsT &&value)
MatchmakingConfiguration & WithAdditionalPlayerCount(int value)
void SetNotificationTarget(NotificationTargetT &&value)
MatchmakingConfiguration & WithCreationTime(CreationTimeT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
AWS_GAMELIFT_API MatchmakingConfiguration(Aws::Utils::Json::JsonView jsonValue)
MatchmakingConfiguration & WithNotificationTarget(NotificationTargetT &&value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
MatchmakingConfiguration & WithGameSessionData(GameSessionDataT &&value)
MatchmakingConfiguration & WithRuleSetArn(RuleSetArnT &&value)
MatchmakingConfiguration & WithAcceptanceRequired(bool value)
MatchmakingConfiguration & WithGameProperties(GamePropertiesT &&value)
AWS_GAMELIFT_API MatchmakingConfiguration()=default
void SetGameSessionQueueArns(GameSessionQueueArnsT &&value)
const Aws::Vector< GameProperty > & GetGameProperties() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue