AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename NameT = Aws::String>
55 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
56 template<typename NameT = Aws::String>
57 MatchmakingConfiguration& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_configurationArnHasBeenSet = true; m_configurationArn = std::forward<ConfigurationArnT>(value); }
74 template<typename ConfigurationArnT = Aws::String>
75 MatchmakingConfiguration& WithConfigurationArn(ConfigurationArnT&& value) { SetConfigurationArn(std::forward<ConfigurationArnT>(value)); return *this;}
77
79
82 inline const Aws::String& GetDescription() const { return m_description; }
83 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
84 template<typename DescriptionT = Aws::String>
85 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
86 template<typename DescriptionT = Aws::String>
87 MatchmakingConfiguration& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
89
91
102 inline const Aws::Vector<Aws::String>& GetGameSessionQueueArns() const { return m_gameSessionQueueArns; }
103 inline bool GameSessionQueueArnsHasBeenSet() const { return m_gameSessionQueueArnsHasBeenSet; }
104 template<typename GameSessionQueueArnsT = Aws::Vector<Aws::String>>
105 void SetGameSessionQueueArns(GameSessionQueueArnsT&& value) { m_gameSessionQueueArnsHasBeenSet = true; m_gameSessionQueueArns = std::forward<GameSessionQueueArnsT>(value); }
106 template<typename GameSessionQueueArnsT = Aws::Vector<Aws::String>>
107 MatchmakingConfiguration& WithGameSessionQueueArns(GameSessionQueueArnsT&& value) { SetGameSessionQueueArns(std::forward<GameSessionQueueArnsT>(value)); return *this;}
108 template<typename GameSessionQueueArnsT = Aws::String>
109 MatchmakingConfiguration& AddGameSessionQueueArns(GameSessionQueueArnsT&& value) { m_gameSessionQueueArnsHasBeenSet = true; m_gameSessionQueueArns.emplace_back(std::forward<GameSessionQueueArnsT>(value)); return *this; }
111
113
118 inline int GetRequestTimeoutSeconds() const { return m_requestTimeoutSeconds; }
119 inline bool RequestTimeoutSecondsHasBeenSet() const { return m_requestTimeoutSecondsHasBeenSet; }
120 inline void SetRequestTimeoutSeconds(int value) { m_requestTimeoutSecondsHasBeenSet = true; m_requestTimeoutSeconds = value; }
123
125
131 inline int GetAcceptanceTimeoutSeconds() const { return m_acceptanceTimeoutSeconds; }
132 inline bool AcceptanceTimeoutSecondsHasBeenSet() const { return m_acceptanceTimeoutSecondsHasBeenSet; }
133 inline void SetAcceptanceTimeoutSeconds(int value) { m_acceptanceTimeoutSecondsHasBeenSet = true; m_acceptanceTimeoutSeconds = value; }
136
138
145 inline bool GetAcceptanceRequired() const { return m_acceptanceRequired; }
146 inline bool AcceptanceRequiredHasBeenSet() const { return m_acceptanceRequiredHasBeenSet; }
147 inline void SetAcceptanceRequired(bool value) { m_acceptanceRequiredHasBeenSet = true; m_acceptanceRequired = value; }
148 inline MatchmakingConfiguration& WithAcceptanceRequired(bool value) { SetAcceptanceRequired(value); return *this;}
150
152
157 inline const Aws::String& GetRuleSetName() const { return m_ruleSetName; }
158 inline bool RuleSetNameHasBeenSet() const { return m_ruleSetNameHasBeenSet; }
159 template<typename RuleSetNameT = Aws::String>
160 void SetRuleSetName(RuleSetNameT&& value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName = std::forward<RuleSetNameT>(value); }
161 template<typename RuleSetNameT = Aws::String>
162 MatchmakingConfiguration& WithRuleSetName(RuleSetNameT&& value) { SetRuleSetName(std::forward<RuleSetNameT>(value)); return *this;}
164
166
172 inline const Aws::String& GetRuleSetArn() const { return m_ruleSetArn; }
173 inline bool RuleSetArnHasBeenSet() const { return m_ruleSetArnHasBeenSet; }
174 template<typename RuleSetArnT = Aws::String>
175 void SetRuleSetArn(RuleSetArnT&& value) { m_ruleSetArnHasBeenSet = true; m_ruleSetArn = std::forward<RuleSetArnT>(value); }
176 template<typename RuleSetArnT = Aws::String>
177 MatchmakingConfiguration& WithRuleSetArn(RuleSetArnT&& value) { SetRuleSetArn(std::forward<RuleSetArnT>(value)); return *this;}
179
181
184 inline const Aws::String& GetNotificationTarget() const { return m_notificationTarget; }
185 inline bool NotificationTargetHasBeenSet() const { return m_notificationTargetHasBeenSet; }
186 template<typename NotificationTargetT = Aws::String>
187 void SetNotificationTarget(NotificationTargetT&& value) { m_notificationTargetHasBeenSet = true; m_notificationTarget = std::forward<NotificationTargetT>(value); }
188 template<typename NotificationTargetT = Aws::String>
189 MatchmakingConfiguration& WithNotificationTarget(NotificationTargetT&& value) { SetNotificationTarget(std::forward<NotificationTargetT>(value)); return *this;}
191
193
200 inline int GetAdditionalPlayerCount() const { return m_additionalPlayerCount; }
201 inline bool AdditionalPlayerCountHasBeenSet() const { return m_additionalPlayerCountHasBeenSet; }
202 inline void SetAdditionalPlayerCount(int value) { m_additionalPlayerCountHasBeenSet = true; m_additionalPlayerCount = value; }
205
207
211 inline const Aws::String& GetCustomEventData() const { return m_customEventData; }
212 inline bool CustomEventDataHasBeenSet() const { return m_customEventDataHasBeenSet; }
213 template<typename CustomEventDataT = Aws::String>
214 void SetCustomEventData(CustomEventDataT&& value) { m_customEventDataHasBeenSet = true; m_customEventData = std::forward<CustomEventDataT>(value); }
215 template<typename CustomEventDataT = Aws::String>
216 MatchmakingConfiguration& WithCustomEventData(CustomEventDataT&& value) { SetCustomEventData(std::forward<CustomEventDataT>(value)); return *this;}
218
220
225 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
226 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
227 template<typename CreationTimeT = Aws::Utils::DateTime>
228 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
229 template<typename CreationTimeT = Aws::Utils::DateTime>
230 MatchmakingConfiguration& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
232
234
241 inline const Aws::Vector<GameProperty>& GetGameProperties() const { return m_gameProperties; }
242 inline bool GamePropertiesHasBeenSet() const { return m_gamePropertiesHasBeenSet; }
243 template<typename GamePropertiesT = Aws::Vector<GameProperty>>
244 void SetGameProperties(GamePropertiesT&& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties = std::forward<GamePropertiesT>(value); }
245 template<typename GamePropertiesT = Aws::Vector<GameProperty>>
246 MatchmakingConfiguration& WithGameProperties(GamePropertiesT&& value) { SetGameProperties(std::forward<GamePropertiesT>(value)); return *this;}
247 template<typename GamePropertiesT = GameProperty>
248 MatchmakingConfiguration& AddGameProperties(GamePropertiesT&& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties.emplace_back(std::forward<GamePropertiesT>(value)); return *this; }
250
252
262 inline const Aws::String& GetGameSessionData() const { return m_gameSessionData; }
263 inline bool GameSessionDataHasBeenSet() const { return m_gameSessionDataHasBeenSet; }
264 template<typename GameSessionDataT = Aws::String>
265 void SetGameSessionData(GameSessionDataT&& value) { m_gameSessionDataHasBeenSet = true; m_gameSessionData = std::forward<GameSessionDataT>(value); }
266 template<typename GameSessionDataT = Aws::String>
267 MatchmakingConfiguration& WithGameSessionData(GameSessionDataT&& value) { SetGameSessionData(std::forward<GameSessionDataT>(value)); return *this;}
269
271
281 inline BackfillMode GetBackfillMode() const { return m_backfillMode; }
282 inline bool BackfillModeHasBeenSet() const { return m_backfillModeHasBeenSet; }
283 inline void SetBackfillMode(BackfillMode value) { m_backfillModeHasBeenSet = true; m_backfillMode = value; }
286
288
298 inline FlexMatchMode GetFlexMatchMode() const { return m_flexMatchMode; }
299 inline bool FlexMatchModeHasBeenSet() const { return m_flexMatchModeHasBeenSet; }
300 inline void SetFlexMatchMode(FlexMatchMode value) { m_flexMatchModeHasBeenSet = true; m_flexMatchMode = value; }
303 private:
304
305 Aws::String m_name;
306 bool m_nameHasBeenSet = false;
307
308 Aws::String m_configurationArn;
309 bool m_configurationArnHasBeenSet = false;
310
311 Aws::String m_description;
312 bool m_descriptionHasBeenSet = false;
313
314 Aws::Vector<Aws::String> m_gameSessionQueueArns;
315 bool m_gameSessionQueueArnsHasBeenSet = false;
316
317 int m_requestTimeoutSeconds{0};
318 bool m_requestTimeoutSecondsHasBeenSet = false;
319
320 int m_acceptanceTimeoutSeconds{0};
321 bool m_acceptanceTimeoutSecondsHasBeenSet = false;
322
323 bool m_acceptanceRequired{false};
324 bool m_acceptanceRequiredHasBeenSet = false;
325
326 Aws::String m_ruleSetName;
327 bool m_ruleSetNameHasBeenSet = false;
328
329 Aws::String m_ruleSetArn;
330 bool m_ruleSetArnHasBeenSet = false;
331
332 Aws::String m_notificationTarget;
333 bool m_notificationTargetHasBeenSet = false;
334
335 int m_additionalPlayerCount{0};
336 bool m_additionalPlayerCountHasBeenSet = false;
337
338 Aws::String m_customEventData;
339 bool m_customEventDataHasBeenSet = false;
340
341 Aws::Utils::DateTime m_creationTime{};
342 bool m_creationTimeHasBeenSet = false;
343
344 Aws::Vector<GameProperty> m_gameProperties;
345 bool m_gamePropertiesHasBeenSet = false;
346
347 Aws::String m_gameSessionData;
348 bool m_gameSessionDataHasBeenSet = false;
349
350 BackfillMode m_backfillMode{BackfillMode::NOT_SET};
351 bool m_backfillModeHasBeenSet = false;
352
353 FlexMatchMode m_flexMatchMode{FlexMatchMode::NOT_SET};
354 bool m_flexMatchModeHasBeenSet = false;
355 };
356
357} // namespace Model
358} // namespace GameLift
359} // 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