AWS SDK for C++

AWS SDK for C++ Version 1.11.747

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
252 inline const Aws::Vector<GameProperty>& GetGameProperties() const { return m_gameProperties; }
253 inline bool GamePropertiesHasBeenSet() const { return m_gamePropertiesHasBeenSet; }
254 template <typename GamePropertiesT = Aws::Vector<GameProperty>>
255 void SetGameProperties(GamePropertiesT&& value) {
256 m_gamePropertiesHasBeenSet = true;
257 m_gameProperties = std::forward<GamePropertiesT>(value);
258 }
259 template <typename GamePropertiesT = Aws::Vector<GameProperty>>
261 SetGameProperties(std::forward<GamePropertiesT>(value));
262 return *this;
263 }
264 template <typename GamePropertiesT = GameProperty>
266 m_gamePropertiesHasBeenSet = true;
267 m_gameProperties.emplace_back(std::forward<GamePropertiesT>(value));
268 return *this;
269 }
271
273
283 inline const Aws::String& GetGameSessionData() const { return m_gameSessionData; }
284 inline bool GameSessionDataHasBeenSet() const { return m_gameSessionDataHasBeenSet; }
285 template <typename GameSessionDataT = Aws::String>
286 void SetGameSessionData(GameSessionDataT&& value) {
287 m_gameSessionDataHasBeenSet = true;
288 m_gameSessionData = std::forward<GameSessionDataT>(value);
289 }
290 template <typename GameSessionDataT = Aws::String>
292 SetGameSessionData(std::forward<GameSessionDataT>(value));
293 return *this;
294 }
296
298
309 inline BackfillMode GetBackfillMode() const { return m_backfillMode; }
310 inline bool BackfillModeHasBeenSet() const { return m_backfillModeHasBeenSet; }
311 inline void SetBackfillMode(BackfillMode value) {
312 m_backfillModeHasBeenSet = true;
313 m_backfillMode = value;
314 }
316 SetBackfillMode(value);
317 return *this;
318 }
320
322
332 inline FlexMatchMode GetFlexMatchMode() const { return m_flexMatchMode; }
333 inline bool FlexMatchModeHasBeenSet() const { return m_flexMatchModeHasBeenSet; }
334 inline void SetFlexMatchMode(FlexMatchMode value) {
335 m_flexMatchModeHasBeenSet = true;
336 m_flexMatchMode = value;
337 }
339 SetFlexMatchMode(value);
340 return *this;
341 }
343
345
354 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
355 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
356 template <typename TagsT = Aws::Vector<Tag>>
357 void SetTags(TagsT&& value) {
358 m_tagsHasBeenSet = true;
359 m_tags = std::forward<TagsT>(value);
360 }
361 template <typename TagsT = Aws::Vector<Tag>>
363 SetTags(std::forward<TagsT>(value));
364 return *this;
365 }
366 template <typename TagsT = Tag>
368 m_tagsHasBeenSet = true;
369 m_tags.emplace_back(std::forward<TagsT>(value));
370 return *this;
371 }
373 private:
374 Aws::String m_name;
375
376 Aws::String m_description;
377
378 Aws::Vector<Aws::String> m_gameSessionQueueArns;
379
380 int m_requestTimeoutSeconds{0};
381
382 int m_acceptanceTimeoutSeconds{0};
383
384 bool m_acceptanceRequired{false};
385
386 Aws::String m_ruleSetName;
387
388 Aws::String m_notificationTarget;
389
390 int m_additionalPlayerCount{0};
391
392 Aws::String m_customEventData;
393
394 Aws::Vector<GameProperty> m_gameProperties;
395
396 Aws::String m_gameSessionData;
397
398 BackfillMode m_backfillMode{BackfillMode::NOT_SET};
399
400 FlexMatchMode m_flexMatchMode{FlexMatchMode::NOT_SET};
401
402 Aws::Vector<Tag> m_tags;
403 bool m_nameHasBeenSet = false;
404 bool m_descriptionHasBeenSet = false;
405 bool m_gameSessionQueueArnsHasBeenSet = false;
406 bool m_requestTimeoutSecondsHasBeenSet = false;
407 bool m_acceptanceTimeoutSecondsHasBeenSet = false;
408 bool m_acceptanceRequiredHasBeenSet = false;
409 bool m_ruleSetNameHasBeenSet = false;
410 bool m_notificationTargetHasBeenSet = false;
411 bool m_additionalPlayerCountHasBeenSet = false;
412 bool m_customEventDataHasBeenSet = false;
413 bool m_gamePropertiesHasBeenSet = false;
414 bool m_gameSessionDataHasBeenSet = false;
415 bool m_backfillModeHasBeenSet = false;
416 bool m_flexMatchModeHasBeenSet = false;
417 bool m_tagsHasBeenSet = false;
418};
419
420} // namespace Model
421} // namespace GameLift
422} // 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