AWS SDK for C++

AWS SDK for C++ Version 1.11.911

Loading...
Searching...
No Matches
CreateMatchmakingConfigurationRequest.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#include <aws/gamelift/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace GameLift {
20namespace Model {
21
25 public:
26 AWS_GAMELIFT_API CreateMatchmakingConfigurationRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateMatchmakingConfiguration"; }
33
34 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
35
37
39
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetDescription() const { return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 template <typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) {
65 m_descriptionHasBeenSet = true;
66 m_description = std::forward<DescriptionT>(value);
67 }
68 template <typename DescriptionT = Aws::String>
70 SetDescription(std::forward<DescriptionT>(value));
71 return *this;
72 }
74
76
89 inline const Aws::Vector<Aws::String>& GetGameSessionQueueArns() const { return m_gameSessionQueueArns; }
90 inline bool GameSessionQueueArnsHasBeenSet() const { return m_gameSessionQueueArnsHasBeenSet; }
91 template <typename GameSessionQueueArnsT = Aws::Vector<Aws::String>>
92 void SetGameSessionQueueArns(GameSessionQueueArnsT&& value) {
93 m_gameSessionQueueArnsHasBeenSet = true;
94 m_gameSessionQueueArns = std::forward<GameSessionQueueArnsT>(value);
95 }
96 template <typename GameSessionQueueArnsT = Aws::Vector<Aws::String>>
98 SetGameSessionQueueArns(std::forward<GameSessionQueueArnsT>(value));
99 return *this;
100 }
101 template <typename GameSessionQueueArnsT = Aws::String>
103 m_gameSessionQueueArnsHasBeenSet = true;
104 m_gameSessionQueueArns.emplace_back(std::forward<GameSessionQueueArnsT>(value));
105 return *this;
106 }
108
110
115 inline int GetRequestTimeoutSeconds() const { return m_requestTimeoutSeconds; }
116 inline bool RequestTimeoutSecondsHasBeenSet() const { return m_requestTimeoutSecondsHasBeenSet; }
117 inline void SetRequestTimeoutSeconds(int value) {
118 m_requestTimeoutSecondsHasBeenSet = true;
119 m_requestTimeoutSeconds = value;
120 }
123 return *this;
124 }
126
128
132 inline int GetAcceptanceTimeoutSeconds() const { return m_acceptanceTimeoutSeconds; }
133 inline bool AcceptanceTimeoutSecondsHasBeenSet() const { return m_acceptanceTimeoutSecondsHasBeenSet; }
134 inline void SetAcceptanceTimeoutSeconds(int value) {
135 m_acceptanceTimeoutSecondsHasBeenSet = true;
136 m_acceptanceTimeoutSeconds = value;
137 }
140 return *this;
141 }
143
145
152 inline bool GetAcceptanceRequired() const { return m_acceptanceRequired; }
153 inline bool AcceptanceRequiredHasBeenSet() const { return m_acceptanceRequiredHasBeenSet; }
154 inline void SetAcceptanceRequired(bool value) {
155 m_acceptanceRequiredHasBeenSet = true;
156 m_acceptanceRequired = value;
157 }
160 return *this;
161 }
163
165
170 inline const Aws::String& GetRuleSetName() const { return m_ruleSetName; }
171 inline bool RuleSetNameHasBeenSet() const { return m_ruleSetNameHasBeenSet; }
172 template <typename RuleSetNameT = Aws::String>
173 void SetRuleSetName(RuleSetNameT&& value) {
174 m_ruleSetNameHasBeenSet = true;
175 m_ruleSetName = std::forward<RuleSetNameT>(value);
176 }
177 template <typename RuleSetNameT = Aws::String>
179 SetRuleSetName(std::forward<RuleSetNameT>(value));
180 return *this;
181 }
183
185
190 inline const Aws::String& GetNotificationTarget() const { return m_notificationTarget; }
191 inline bool NotificationTargetHasBeenSet() const { return m_notificationTargetHasBeenSet; }
192 template <typename NotificationTargetT = Aws::String>
193 void SetNotificationTarget(NotificationTargetT&& value) {
194 m_notificationTargetHasBeenSet = true;
195 m_notificationTarget = std::forward<NotificationTargetT>(value);
196 }
197 template <typename NotificationTargetT = Aws::String>
199 SetNotificationTarget(std::forward<NotificationTargetT>(value));
200 return *this;
201 }
203
205
212 inline int GetAdditionalPlayerCount() const { return m_additionalPlayerCount; }
213 inline bool AdditionalPlayerCountHasBeenSet() const { return m_additionalPlayerCountHasBeenSet; }
214 inline void SetAdditionalPlayerCount(int value) {
215 m_additionalPlayerCountHasBeenSet = true;
216 m_additionalPlayerCount = value;
217 }
220 return *this;
221 }
223
225
229 inline const Aws::String& GetCustomEventData() const { return m_customEventData; }
230 inline bool CustomEventDataHasBeenSet() const { return m_customEventDataHasBeenSet; }
231 template <typename CustomEventDataT = Aws::String>
232 void SetCustomEventData(CustomEventDataT&& value) {
233 m_customEventDataHasBeenSet = true;
234 m_customEventData = std::forward<CustomEventDataT>(value);
235 }
236 template <typename CustomEventDataT = Aws::String>
238 SetCustomEventData(std::forward<CustomEventDataT>(value));
239 return *this;
240 }
242
244
258 inline const Aws::Vector<GameProperty>& GetGameProperties() const { return m_gameProperties; }
259 inline bool GamePropertiesHasBeenSet() const { return m_gamePropertiesHasBeenSet; }
260 template <typename GamePropertiesT = Aws::Vector<GameProperty>>
261 void SetGameProperties(GamePropertiesT&& value) {
262 m_gamePropertiesHasBeenSet = true;
263 m_gameProperties = std::forward<GamePropertiesT>(value);
264 }
265 template <typename GamePropertiesT = Aws::Vector<GameProperty>>
267 SetGameProperties(std::forward<GamePropertiesT>(value));
268 return *this;
269 }
270 template <typename GamePropertiesT = GameProperty>
272 m_gamePropertiesHasBeenSet = true;
273 m_gameProperties.emplace_back(std::forward<GamePropertiesT>(value));
274 return *this;
275 }
277
279
289 inline const Aws::String& GetGameSessionData() const { return m_gameSessionData; }
290 inline bool GameSessionDataHasBeenSet() const { return m_gameSessionDataHasBeenSet; }
291 template <typename GameSessionDataT = Aws::String>
292 void SetGameSessionData(GameSessionDataT&& value) {
293 m_gameSessionDataHasBeenSet = true;
294 m_gameSessionData = std::forward<GameSessionDataT>(value);
295 }
296 template <typename GameSessionDataT = Aws::String>
298 SetGameSessionData(std::forward<GameSessionDataT>(value));
299 return *this;
300 }
302
304
315 inline BackfillMode GetBackfillMode() const { return m_backfillMode; }
316 inline bool BackfillModeHasBeenSet() const { return m_backfillModeHasBeenSet; }
317 inline void SetBackfillMode(BackfillMode value) {
318 m_backfillModeHasBeenSet = true;
319 m_backfillMode = value;
320 }
322 SetBackfillMode(value);
323 return *this;
324 }
326
328
338 inline FlexMatchMode GetFlexMatchMode() const { return m_flexMatchMode; }
339 inline bool FlexMatchModeHasBeenSet() const { return m_flexMatchModeHasBeenSet; }
340 inline void SetFlexMatchMode(FlexMatchMode value) {
341 m_flexMatchModeHasBeenSet = true;
342 m_flexMatchMode = value;
343 }
345 SetFlexMatchMode(value);
346 return *this;
347 }
349
351
360 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
361 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
362 template <typename TagsT = Aws::Vector<Tag>>
363 void SetTags(TagsT&& value) {
364 m_tagsHasBeenSet = true;
365 m_tags = std::forward<TagsT>(value);
366 }
367 template <typename TagsT = Aws::Vector<Tag>>
369 SetTags(std::forward<TagsT>(value));
370 return *this;
371 }
372 template <typename TagsT = Tag>
374 m_tagsHasBeenSet = true;
375 m_tags.emplace_back(std::forward<TagsT>(value));
376 return *this;
377 }
379 private:
380 Aws::String m_name;
381
382 Aws::String m_description;
383
384 Aws::Vector<Aws::String> m_gameSessionQueueArns;
385
386 int m_requestTimeoutSeconds{0};
387
388 int m_acceptanceTimeoutSeconds{0};
389
390 bool m_acceptanceRequired{false};
391
392 Aws::String m_ruleSetName;
393
394 Aws::String m_notificationTarget;
395
396 int m_additionalPlayerCount{0};
397
398 Aws::String m_customEventData;
399
400 Aws::Vector<GameProperty> m_gameProperties;
401
402 Aws::String m_gameSessionData;
403
404 BackfillMode m_backfillMode{BackfillMode::NOT_SET};
405
406 FlexMatchMode m_flexMatchMode{FlexMatchMode::NOT_SET};
407
408 Aws::Vector<Tag> m_tags;
409 bool m_nameHasBeenSet = false;
410 bool m_descriptionHasBeenSet = false;
411 bool m_gameSessionQueueArnsHasBeenSet = false;
412 bool m_requestTimeoutSecondsHasBeenSet = false;
413 bool m_acceptanceTimeoutSecondsHasBeenSet = false;
414 bool m_acceptanceRequiredHasBeenSet = false;
415 bool m_ruleSetNameHasBeenSet = false;
416 bool m_notificationTargetHasBeenSet = false;
417 bool m_additionalPlayerCountHasBeenSet = false;
418 bool m_customEventDataHasBeenSet = false;
419 bool m_gamePropertiesHasBeenSet = false;
420 bool m_gameSessionDataHasBeenSet = false;
421 bool m_backfillModeHasBeenSet = false;
422 bool m_flexMatchModeHasBeenSet = false;
423 bool m_tagsHasBeenSet = false;
424};
425
426} // namespace Model
427} // namespace GameLift
428} // namespace Aws
CreateMatchmakingConfigurationRequest & WithFlexMatchMode(FlexMatchMode value)
CreateMatchmakingConfigurationRequest & WithBackfillMode(BackfillMode value)
CreateMatchmakingConfigurationRequest & WithAdditionalPlayerCount(int value)
CreateMatchmakingConfigurationRequest & WithDescription(DescriptionT &&value)
CreateMatchmakingConfigurationRequest & WithNotificationTarget(NotificationTargetT &&value)
CreateMatchmakingConfigurationRequest & AddGameSessionQueueArns(GameSessionQueueArnsT &&value)
CreateMatchmakingConfigurationRequest & WithAcceptanceRequired(bool value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
CreateMatchmakingConfigurationRequest & WithRequestTimeoutSeconds(int value)
CreateMatchmakingConfigurationRequest & AddGameProperties(GamePropertiesT &&value)
CreateMatchmakingConfigurationRequest & WithName(NameT &&value)
CreateMatchmakingConfigurationRequest & WithGameSessionQueueArns(GameSessionQueueArnsT &&value)
CreateMatchmakingConfigurationRequest & WithGameSessionData(GameSessionDataT &&value)
CreateMatchmakingConfigurationRequest & WithCustomEventData(CustomEventDataT &&value)
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateMatchmakingConfigurationRequest & WithRuleSetName(RuleSetNameT &&value)
CreateMatchmakingConfigurationRequest & WithGameProperties(GamePropertiesT &&value)
CreateMatchmakingConfigurationRequest & WithAcceptanceTimeoutSeconds(int 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