AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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
87 inline const Aws::Vector<Aws::String>& GetGameSessionQueueArns() const { return m_gameSessionQueueArns; }
88 inline bool GameSessionQueueArnsHasBeenSet() const { return m_gameSessionQueueArnsHasBeenSet; }
89 template <typename GameSessionQueueArnsT = Aws::Vector<Aws::String>>
90 void SetGameSessionQueueArns(GameSessionQueueArnsT&& value) {
91 m_gameSessionQueueArnsHasBeenSet = true;
92 m_gameSessionQueueArns = std::forward<GameSessionQueueArnsT>(value);
93 }
94 template <typename GameSessionQueueArnsT = Aws::Vector<Aws::String>>
96 SetGameSessionQueueArns(std::forward<GameSessionQueueArnsT>(value));
97 return *this;
98 }
99 template <typename GameSessionQueueArnsT = Aws::String>
101 m_gameSessionQueueArnsHasBeenSet = true;
102 m_gameSessionQueueArns.emplace_back(std::forward<GameSessionQueueArnsT>(value));
103 return *this;
104 }
106
108
113 inline int GetRequestTimeoutSeconds() const { return m_requestTimeoutSeconds; }
114 inline bool RequestTimeoutSecondsHasBeenSet() const { return m_requestTimeoutSecondsHasBeenSet; }
115 inline void SetRequestTimeoutSeconds(int value) {
116 m_requestTimeoutSecondsHasBeenSet = true;
117 m_requestTimeoutSeconds = value;
118 }
121 return *this;
122 }
124
126
130 inline int GetAcceptanceTimeoutSeconds() const { return m_acceptanceTimeoutSeconds; }
131 inline bool AcceptanceTimeoutSecondsHasBeenSet() const { return m_acceptanceTimeoutSecondsHasBeenSet; }
132 inline void SetAcceptanceTimeoutSeconds(int value) {
133 m_acceptanceTimeoutSecondsHasBeenSet = true;
134 m_acceptanceTimeoutSeconds = value;
135 }
138 return *this;
139 }
141
143
150 inline bool GetAcceptanceRequired() const { return m_acceptanceRequired; }
151 inline bool AcceptanceRequiredHasBeenSet() const { return m_acceptanceRequiredHasBeenSet; }
152 inline void SetAcceptanceRequired(bool value) {
153 m_acceptanceRequiredHasBeenSet = true;
154 m_acceptanceRequired = value;
155 }
158 return *this;
159 }
161
163
168 inline const Aws::String& GetRuleSetName() const { return m_ruleSetName; }
169 inline bool RuleSetNameHasBeenSet() const { return m_ruleSetNameHasBeenSet; }
170 template <typename RuleSetNameT = Aws::String>
171 void SetRuleSetName(RuleSetNameT&& value) {
172 m_ruleSetNameHasBeenSet = true;
173 m_ruleSetName = std::forward<RuleSetNameT>(value);
174 }
175 template <typename RuleSetNameT = Aws::String>
177 SetRuleSetName(std::forward<RuleSetNameT>(value));
178 return *this;
179 }
181
183
188 inline const Aws::String& GetNotificationTarget() const { return m_notificationTarget; }
189 inline bool NotificationTargetHasBeenSet() const { return m_notificationTargetHasBeenSet; }
190 template <typename NotificationTargetT = Aws::String>
191 void SetNotificationTarget(NotificationTargetT&& value) {
192 m_notificationTargetHasBeenSet = true;
193 m_notificationTarget = std::forward<NotificationTargetT>(value);
194 }
195 template <typename NotificationTargetT = Aws::String>
197 SetNotificationTarget(std::forward<NotificationTargetT>(value));
198 return *this;
199 }
201
203
210 inline int GetAdditionalPlayerCount() const { return m_additionalPlayerCount; }
211 inline bool AdditionalPlayerCountHasBeenSet() const { return m_additionalPlayerCountHasBeenSet; }
212 inline void SetAdditionalPlayerCount(int value) {
213 m_additionalPlayerCountHasBeenSet = true;
214 m_additionalPlayerCount = value;
215 }
218 return *this;
219 }
221
223
227 inline const Aws::String& GetCustomEventData() const { return m_customEventData; }
228 inline bool CustomEventDataHasBeenSet() const { return m_customEventDataHasBeenSet; }
229 template <typename CustomEventDataT = Aws::String>
230 void SetCustomEventData(CustomEventDataT&& value) {
231 m_customEventDataHasBeenSet = true;
232 m_customEventData = std::forward<CustomEventDataT>(value);
233 }
234 template <typename CustomEventDataT = Aws::String>
236 SetCustomEventData(std::forward<CustomEventDataT>(value));
237 return *this;
238 }
240
242
256 inline const Aws::Vector<GameProperty>& GetGameProperties() const { return m_gameProperties; }
257 inline bool GamePropertiesHasBeenSet() const { return m_gamePropertiesHasBeenSet; }
258 template <typename GamePropertiesT = Aws::Vector<GameProperty>>
259 void SetGameProperties(GamePropertiesT&& value) {
260 m_gamePropertiesHasBeenSet = true;
261 m_gameProperties = std::forward<GamePropertiesT>(value);
262 }
263 template <typename GamePropertiesT = Aws::Vector<GameProperty>>
265 SetGameProperties(std::forward<GamePropertiesT>(value));
266 return *this;
267 }
268 template <typename GamePropertiesT = GameProperty>
270 m_gamePropertiesHasBeenSet = true;
271 m_gameProperties.emplace_back(std::forward<GamePropertiesT>(value));
272 return *this;
273 }
275
277
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
313 inline BackfillMode GetBackfillMode() const { return m_backfillMode; }
314 inline bool BackfillModeHasBeenSet() const { return m_backfillModeHasBeenSet; }
315 inline void SetBackfillMode(BackfillMode value) {
316 m_backfillModeHasBeenSet = true;
317 m_backfillMode = value;
318 }
320 SetBackfillMode(value);
321 return *this;
322 }
324
326
336 inline FlexMatchMode GetFlexMatchMode() const { return m_flexMatchMode; }
337 inline bool FlexMatchModeHasBeenSet() const { return m_flexMatchModeHasBeenSet; }
338 inline void SetFlexMatchMode(FlexMatchMode value) {
339 m_flexMatchModeHasBeenSet = true;
340 m_flexMatchMode = value;
341 }
343 SetFlexMatchMode(value);
344 return *this;
345 }
347
349
358 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
359 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
360 template <typename TagsT = Aws::Vector<Tag>>
361 void SetTags(TagsT&& value) {
362 m_tagsHasBeenSet = true;
363 m_tags = std::forward<TagsT>(value);
364 }
365 template <typename TagsT = Aws::Vector<Tag>>
367 SetTags(std::forward<TagsT>(value));
368 return *this;
369 }
370 template <typename TagsT = Tag>
372 m_tagsHasBeenSet = true;
373 m_tags.emplace_back(std::forward<TagsT>(value));
374 return *this;
375 }
377 private:
378 Aws::String m_name;
379
380 Aws::String m_description;
381
382 Aws::Vector<Aws::String> m_gameSessionQueueArns;
383
384 int m_requestTimeoutSeconds{0};
385
386 int m_acceptanceTimeoutSeconds{0};
387
388 bool m_acceptanceRequired{false};
389
390 Aws::String m_ruleSetName;
391
392 Aws::String m_notificationTarget;
393
394 int m_additionalPlayerCount{0};
395
396 Aws::String m_customEventData;
397
398 Aws::Vector<GameProperty> m_gameProperties;
399
400 Aws::String m_gameSessionData;
401
402 BackfillMode m_backfillMode{BackfillMode::NOT_SET};
403
404 FlexMatchMode m_flexMatchMode{FlexMatchMode::NOT_SET};
405
406 Aws::Vector<Tag> m_tags;
407 bool m_nameHasBeenSet = false;
408 bool m_descriptionHasBeenSet = false;
409 bool m_gameSessionQueueArnsHasBeenSet = false;
410 bool m_requestTimeoutSecondsHasBeenSet = false;
411 bool m_acceptanceTimeoutSecondsHasBeenSet = false;
412 bool m_acceptanceRequiredHasBeenSet = false;
413 bool m_ruleSetNameHasBeenSet = false;
414 bool m_notificationTargetHasBeenSet = false;
415 bool m_additionalPlayerCountHasBeenSet = false;
416 bool m_customEventDataHasBeenSet = false;
417 bool m_gamePropertiesHasBeenSet = false;
418 bool m_gameSessionDataHasBeenSet = false;
419 bool m_backfillModeHasBeenSet = false;
420 bool m_flexMatchModeHasBeenSet = false;
421 bool m_tagsHasBeenSet = false;
422};
423
424} // namespace Model
425} // namespace GameLift
426} // 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