AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MatchmakingConfiguration.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/gamelift/model/BackfillMode.h>
12#include <aws/gamelift/model/FlexMatchMode.h>
13#include <aws/gamelift/model/GameProperty.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace GameLift
27{
28namespace Model
29{
30
39 {
40 public:
41 AWS_GAMELIFT_API MatchmakingConfiguration();
44 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline const Aws::String& GetName() const{ return m_name; }
53 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
56 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
57 inline MatchmakingConfiguration& WithName(const Aws::String& value) { SetName(value); return *this;}
58 inline MatchmakingConfiguration& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
59 inline MatchmakingConfiguration& WithName(const char* value) { SetName(value); return *this;}
61
63
72 inline const Aws::String& GetConfigurationArn() const{ return m_configurationArn; }
73 inline bool ConfigurationArnHasBeenSet() const { return m_configurationArnHasBeenSet; }
74 inline void SetConfigurationArn(const Aws::String& value) { m_configurationArnHasBeenSet = true; m_configurationArn = value; }
75 inline void SetConfigurationArn(Aws::String&& value) { m_configurationArnHasBeenSet = true; m_configurationArn = std::move(value); }
76 inline void SetConfigurationArn(const char* value) { m_configurationArnHasBeenSet = true; m_configurationArn.assign(value); }
78 inline MatchmakingConfiguration& WithConfigurationArn(Aws::String&& value) { SetConfigurationArn(std::move(value)); return *this;}
79 inline MatchmakingConfiguration& WithConfigurationArn(const char* value) { SetConfigurationArn(value); return *this;}
81
83
86 inline const Aws::String& GetDescription() const{ return m_description; }
87 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
88 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
89 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
90 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
91 inline MatchmakingConfiguration& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
92 inline MatchmakingConfiguration& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
93 inline MatchmakingConfiguration& WithDescription(const char* value) { SetDescription(value); return *this;}
95
97
108 inline const Aws::Vector<Aws::String>& GetGameSessionQueueArns() const{ return m_gameSessionQueueArns; }
109 inline bool GameSessionQueueArnsHasBeenSet() const { return m_gameSessionQueueArnsHasBeenSet; }
110 inline void SetGameSessionQueueArns(const Aws::Vector<Aws::String>& value) { m_gameSessionQueueArnsHasBeenSet = true; m_gameSessionQueueArns = value; }
111 inline void SetGameSessionQueueArns(Aws::Vector<Aws::String>&& value) { m_gameSessionQueueArnsHasBeenSet = true; m_gameSessionQueueArns = std::move(value); }
114 inline MatchmakingConfiguration& AddGameSessionQueueArns(const Aws::String& value) { m_gameSessionQueueArnsHasBeenSet = true; m_gameSessionQueueArns.push_back(value); return *this; }
115 inline MatchmakingConfiguration& AddGameSessionQueueArns(Aws::String&& value) { m_gameSessionQueueArnsHasBeenSet = true; m_gameSessionQueueArns.push_back(std::move(value)); return *this; }
116 inline MatchmakingConfiguration& AddGameSessionQueueArns(const char* value) { m_gameSessionQueueArnsHasBeenSet = true; m_gameSessionQueueArns.push_back(value); return *this; }
118
120
125 inline int GetRequestTimeoutSeconds() const{ return m_requestTimeoutSeconds; }
126 inline bool RequestTimeoutSecondsHasBeenSet() const { return m_requestTimeoutSecondsHasBeenSet; }
127 inline void SetRequestTimeoutSeconds(int value) { m_requestTimeoutSecondsHasBeenSet = true; m_requestTimeoutSeconds = value; }
130
132
138 inline int GetAcceptanceTimeoutSeconds() const{ return m_acceptanceTimeoutSeconds; }
139 inline bool AcceptanceTimeoutSecondsHasBeenSet() const { return m_acceptanceTimeoutSecondsHasBeenSet; }
140 inline void SetAcceptanceTimeoutSeconds(int value) { m_acceptanceTimeoutSecondsHasBeenSet = true; m_acceptanceTimeoutSeconds = value; }
143
145
152 inline bool GetAcceptanceRequired() const{ return m_acceptanceRequired; }
153 inline bool AcceptanceRequiredHasBeenSet() const { return m_acceptanceRequiredHasBeenSet; }
154 inline void SetAcceptanceRequired(bool value) { m_acceptanceRequiredHasBeenSet = true; m_acceptanceRequired = value; }
155 inline MatchmakingConfiguration& WithAcceptanceRequired(bool value) { SetAcceptanceRequired(value); return *this;}
157
159
164 inline const Aws::String& GetRuleSetName() const{ return m_ruleSetName; }
165 inline bool RuleSetNameHasBeenSet() const { return m_ruleSetNameHasBeenSet; }
166 inline void SetRuleSetName(const Aws::String& value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName = value; }
167 inline void SetRuleSetName(Aws::String&& value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName = std::move(value); }
168 inline void SetRuleSetName(const char* value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName.assign(value); }
169 inline MatchmakingConfiguration& WithRuleSetName(const Aws::String& value) { SetRuleSetName(value); return *this;}
170 inline MatchmakingConfiguration& WithRuleSetName(Aws::String&& value) { SetRuleSetName(std::move(value)); return *this;}
171 inline MatchmakingConfiguration& WithRuleSetName(const char* value) { SetRuleSetName(value); return *this;}
173
175
181 inline const Aws::String& GetRuleSetArn() const{ return m_ruleSetArn; }
182 inline bool RuleSetArnHasBeenSet() const { return m_ruleSetArnHasBeenSet; }
183 inline void SetRuleSetArn(const Aws::String& value) { m_ruleSetArnHasBeenSet = true; m_ruleSetArn = value; }
184 inline void SetRuleSetArn(Aws::String&& value) { m_ruleSetArnHasBeenSet = true; m_ruleSetArn = std::move(value); }
185 inline void SetRuleSetArn(const char* value) { m_ruleSetArnHasBeenSet = true; m_ruleSetArn.assign(value); }
186 inline MatchmakingConfiguration& WithRuleSetArn(const Aws::String& value) { SetRuleSetArn(value); return *this;}
187 inline MatchmakingConfiguration& WithRuleSetArn(Aws::String&& value) { SetRuleSetArn(std::move(value)); return *this;}
188 inline MatchmakingConfiguration& WithRuleSetArn(const char* value) { SetRuleSetArn(value); return *this;}
190
192
195 inline const Aws::String& GetNotificationTarget() const{ return m_notificationTarget; }
196 inline bool NotificationTargetHasBeenSet() const { return m_notificationTargetHasBeenSet; }
197 inline void SetNotificationTarget(const Aws::String& value) { m_notificationTargetHasBeenSet = true; m_notificationTarget = value; }
198 inline void SetNotificationTarget(Aws::String&& value) { m_notificationTargetHasBeenSet = true; m_notificationTarget = std::move(value); }
199 inline void SetNotificationTarget(const char* value) { m_notificationTargetHasBeenSet = true; m_notificationTarget.assign(value); }
201 inline MatchmakingConfiguration& WithNotificationTarget(Aws::String&& value) { SetNotificationTarget(std::move(value)); return *this;}
202 inline MatchmakingConfiguration& WithNotificationTarget(const char* value) { SetNotificationTarget(value); return *this;}
204
206
214 inline int GetAdditionalPlayerCount() const{ return m_additionalPlayerCount; }
215 inline bool AdditionalPlayerCountHasBeenSet() const { return m_additionalPlayerCountHasBeenSet; }
216 inline void SetAdditionalPlayerCount(int value) { m_additionalPlayerCountHasBeenSet = true; m_additionalPlayerCount = value; }
219
221
225 inline const Aws::String& GetCustomEventData() const{ return m_customEventData; }
226 inline bool CustomEventDataHasBeenSet() const { return m_customEventDataHasBeenSet; }
227 inline void SetCustomEventData(const Aws::String& value) { m_customEventDataHasBeenSet = true; m_customEventData = value; }
228 inline void SetCustomEventData(Aws::String&& value) { m_customEventDataHasBeenSet = true; m_customEventData = std::move(value); }
229 inline void SetCustomEventData(const char* value) { m_customEventDataHasBeenSet = true; m_customEventData.assign(value); }
230 inline MatchmakingConfiguration& WithCustomEventData(const Aws::String& value) { SetCustomEventData(value); return *this;}
231 inline MatchmakingConfiguration& WithCustomEventData(Aws::String&& value) { SetCustomEventData(std::move(value)); return *this;}
232 inline MatchmakingConfiguration& WithCustomEventData(const char* value) { SetCustomEventData(value); return *this;}
234
236
241 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
242 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
243 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
244 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
246 inline MatchmakingConfiguration& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
248
250
257 inline const Aws::Vector<GameProperty>& GetGameProperties() const{ return m_gameProperties; }
258 inline bool GamePropertiesHasBeenSet() const { return m_gamePropertiesHasBeenSet; }
259 inline void SetGameProperties(const Aws::Vector<GameProperty>& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties = value; }
260 inline void SetGameProperties(Aws::Vector<GameProperty>&& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties = std::move(value); }
263 inline MatchmakingConfiguration& AddGameProperties(const GameProperty& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties.push_back(value); return *this; }
264 inline MatchmakingConfiguration& AddGameProperties(GameProperty&& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties.push_back(std::move(value)); return *this; }
266
268
278 inline const Aws::String& GetGameSessionData() const{ return m_gameSessionData; }
279 inline bool GameSessionDataHasBeenSet() const { return m_gameSessionDataHasBeenSet; }
280 inline void SetGameSessionData(const Aws::String& value) { m_gameSessionDataHasBeenSet = true; m_gameSessionData = value; }
281 inline void SetGameSessionData(Aws::String&& value) { m_gameSessionDataHasBeenSet = true; m_gameSessionData = std::move(value); }
282 inline void SetGameSessionData(const char* value) { m_gameSessionDataHasBeenSet = true; m_gameSessionData.assign(value); }
283 inline MatchmakingConfiguration& WithGameSessionData(const Aws::String& value) { SetGameSessionData(value); return *this;}
284 inline MatchmakingConfiguration& WithGameSessionData(Aws::String&& value) { SetGameSessionData(std::move(value)); return *this;}
285 inline MatchmakingConfiguration& WithGameSessionData(const char* value) { SetGameSessionData(value); return *this;}
287
289
299 inline const BackfillMode& GetBackfillMode() const{ return m_backfillMode; }
300 inline bool BackfillModeHasBeenSet() const { return m_backfillModeHasBeenSet; }
301 inline void SetBackfillMode(const BackfillMode& value) { m_backfillModeHasBeenSet = true; m_backfillMode = value; }
302 inline void SetBackfillMode(BackfillMode&& value) { m_backfillModeHasBeenSet = true; m_backfillMode = std::move(value); }
303 inline MatchmakingConfiguration& WithBackfillMode(const BackfillMode& value) { SetBackfillMode(value); return *this;}
304 inline MatchmakingConfiguration& WithBackfillMode(BackfillMode&& value) { SetBackfillMode(std::move(value)); return *this;}
306
308
318 inline const FlexMatchMode& GetFlexMatchMode() const{ return m_flexMatchMode; }
319 inline bool FlexMatchModeHasBeenSet() const { return m_flexMatchModeHasBeenSet; }
320 inline void SetFlexMatchMode(const FlexMatchMode& value) { m_flexMatchModeHasBeenSet = true; m_flexMatchMode = value; }
321 inline void SetFlexMatchMode(FlexMatchMode&& value) { m_flexMatchModeHasBeenSet = true; m_flexMatchMode = std::move(value); }
322 inline MatchmakingConfiguration& WithFlexMatchMode(const FlexMatchMode& value) { SetFlexMatchMode(value); return *this;}
323 inline MatchmakingConfiguration& WithFlexMatchMode(FlexMatchMode&& value) { SetFlexMatchMode(std::move(value)); return *this;}
325 private:
326
327 Aws::String m_name;
328 bool m_nameHasBeenSet = false;
329
330 Aws::String m_configurationArn;
331 bool m_configurationArnHasBeenSet = false;
332
333 Aws::String m_description;
334 bool m_descriptionHasBeenSet = false;
335
336 Aws::Vector<Aws::String> m_gameSessionQueueArns;
337 bool m_gameSessionQueueArnsHasBeenSet = false;
338
339 int m_requestTimeoutSeconds;
340 bool m_requestTimeoutSecondsHasBeenSet = false;
341
342 int m_acceptanceTimeoutSeconds;
343 bool m_acceptanceTimeoutSecondsHasBeenSet = false;
344
345 bool m_acceptanceRequired;
346 bool m_acceptanceRequiredHasBeenSet = false;
347
348 Aws::String m_ruleSetName;
349 bool m_ruleSetNameHasBeenSet = false;
350
351 Aws::String m_ruleSetArn;
352 bool m_ruleSetArnHasBeenSet = false;
353
354 Aws::String m_notificationTarget;
355 bool m_notificationTargetHasBeenSet = false;
356
357 int m_additionalPlayerCount;
358 bool m_additionalPlayerCountHasBeenSet = false;
359
360 Aws::String m_customEventData;
361 bool m_customEventDataHasBeenSet = false;
362
363 Aws::Utils::DateTime m_creationTime;
364 bool m_creationTimeHasBeenSet = false;
365
366 Aws::Vector<GameProperty> m_gameProperties;
367 bool m_gamePropertiesHasBeenSet = false;
368
369 Aws::String m_gameSessionData;
370 bool m_gameSessionDataHasBeenSet = false;
371
372 BackfillMode m_backfillMode;
373 bool m_backfillModeHasBeenSet = false;
374
375 FlexMatchMode m_flexMatchMode;
376 bool m_flexMatchModeHasBeenSet = false;
377 };
378
379} // namespace Model
380} // namespace GameLift
381} // namespace Aws
MatchmakingConfiguration & WithGameProperties(const Aws::Vector< GameProperty > &value)
MatchmakingConfiguration & WithNotificationTarget(Aws::String &&value)
MatchmakingConfiguration & AddGameProperties(const GameProperty &value)
void SetGameProperties(Aws::Vector< GameProperty > &&value)
MatchmakingConfiguration & WithCreationTime(const Aws::Utils::DateTime &value)
MatchmakingConfiguration & WithCustomEventData(const char *value)
MatchmakingConfiguration & WithRuleSetName(const Aws::String &value)
AWS_GAMELIFT_API MatchmakingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
MatchmakingConfiguration & AddGameProperties(GameProperty &&value)
MatchmakingConfiguration & WithDescription(const Aws::String &value)
void SetGameProperties(const Aws::Vector< GameProperty > &value)
MatchmakingConfiguration & WithAcceptanceTimeoutSeconds(int value)
const Aws::Vector< Aws::String > & GetGameSessionQueueArns() const
MatchmakingConfiguration & WithName(const char *value)
MatchmakingConfiguration & WithNotificationTarget(const char *value)
MatchmakingConfiguration & WithCustomEventData(const Aws::String &value)
MatchmakingConfiguration & WithFlexMatchMode(FlexMatchMode &&value)
MatchmakingConfiguration & WithRequestTimeoutSeconds(int value)
MatchmakingConfiguration & WithBackfillMode(BackfillMode &&value)
MatchmakingConfiguration & WithDescription(const char *value)
MatchmakingConfiguration & WithRuleSetArn(const Aws::String &value)
void SetGameSessionQueueArns(const Aws::Vector< Aws::String > &value)
MatchmakingConfiguration & WithName(Aws::String &&value)
MatchmakingConfiguration & WithConfigurationArn(const Aws::String &value)
MatchmakingConfiguration & WithBackfillMode(const BackfillMode &value)
MatchmakingConfiguration & WithRuleSetName(const char *value)
MatchmakingConfiguration & WithGameSessionData(const Aws::String &value)
MatchmakingConfiguration & WithRuleSetName(Aws::String &&value)
void SetCreationTime(const Aws::Utils::DateTime &value)
MatchmakingConfiguration & WithGameProperties(Aws::Vector< GameProperty > &&value)
MatchmakingConfiguration & WithGameSessionData(Aws::String &&value)
MatchmakingConfiguration & WithAdditionalPlayerCount(int value)
MatchmakingConfiguration & WithNotificationTarget(const Aws::String &value)
MatchmakingConfiguration & WithRuleSetArn(const char *value)
MatchmakingConfiguration & WithCustomEventData(Aws::String &&value)
void SetGameSessionQueueArns(Aws::Vector< Aws::String > &&value)
const Aws::Utils::DateTime & GetCreationTime() const
MatchmakingConfiguration & AddGameSessionQueueArns(const Aws::String &value)
MatchmakingConfiguration & WithCreationTime(Aws::Utils::DateTime &&value)
AWS_GAMELIFT_API MatchmakingConfiguration(Aws::Utils::Json::JsonView jsonValue)
MatchmakingConfiguration & WithConfigurationArn(const char *value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
MatchmakingConfiguration & WithConfigurationArn(Aws::String &&value)
MatchmakingConfiguration & AddGameSessionQueueArns(Aws::String &&value)
MatchmakingConfiguration & AddGameSessionQueueArns(const char *value)
MatchmakingConfiguration & WithGameSessionQueueArns(Aws::Vector< Aws::String > &&value)
MatchmakingConfiguration & WithDescription(Aws::String &&value)
MatchmakingConfiguration & WithAcceptanceRequired(bool value)
MatchmakingConfiguration & WithName(const Aws::String &value)
MatchmakingConfiguration & WithRuleSetArn(Aws::String &&value)
MatchmakingConfiguration & WithGameSessionQueueArns(const Aws::Vector< Aws::String > &value)
MatchmakingConfiguration & WithGameSessionData(const char *value)
const Aws::Vector< GameProperty > & GetGameProperties() const
MatchmakingConfiguration & WithFlexMatchMode(const FlexMatchMode &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue